From richard.llom at gmail.com Thu Nov 2 15:48:49 2017 From: richard.llom at gmail.com (Richard llom) Date: Thu, 2 Nov 2017 07:48:49 -0700 (MST) Subject: [Scilab-users] Digit Grouping in msprintf? Message-ID: <1509634129870-0.post@n3.nabble.com> Hey, is it possible to have this msprintf('%.f kWh',2725977) output something like "2.725.977 kWh" or even better "2?725?977 kWh" (with thin spaces)? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From W.Schulz at ove.at Thu Nov 2 08:55:20 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Thu, 2 Nov 2017 07:55:20 +0000 Subject: [Scilab-users] Increase memory In-Reply-To: References: Message-ID: <07A8AF089844A549B0F0CCC727AF31AA79ED739B@OVEKBG.ove.at> Hello, I would recommend changing to SCILAB 6. There the stacksize doesn't exist and you can use the installed memory of your PC. Wolfgang Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Paul Bignier Gesendet: Dienstag, 31. Oktober 2017 12:38 An: users at lists.scilab.org Betreff: Re: [Scilab-users] Increase memory Hello Matteo, Thank you for reporting this issue, could you please report it to our bugzilla with a minimal test-case as well as your config (Scilab version, your operating system, installed toolboxes, ...)? http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software Best regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users > on behalf of Matteo Toma > Sent: Monday, October 30, 2017 3:45 PM To: users at lists.scilab.org Subject: [Scilab-users] Increase memory Hello I'm working with very large matrices and I use the karmarkar function. When processing comes to the karmakar function. Scilab says: "Stack size has been exceeded!" I used the maximum stacksize value but the error remains. My running computer on Windows has 8GB of memory so that the computer is not the limiting factor. There is a way to increase the maximum stack size? Best regards Matteo Tom? Production Engineer matteotoma at cozzani.com [cid:image003.jpg at 01D353B8.4FF39E10] DOTT.ING.MARIO COZZANI S.r.l. Viale XXV Aprile, 7 19021 Arcola (SP) - ITALY Tel. :+39 0187 955 81 Fax. :+39 0187 955 853 info at cozzani.com www.cozzani.com This email message is for the exclusive use of the intended recipient(s) and may contain confidential, privileged and non-disclosable information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email immediately and destroy any and all copies of the message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 64 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 167 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 14977 bytes Desc: image003.jpg URL: From richard.llom at gmail.com Thu Nov 2 19:33:51 2017 From: richard.llom at gmail.com (Richard llom) Date: Thu, 2 Nov 2017 11:33:51 -0700 (MST) Subject: [Scilab-users] Bug? plot with nan values (Linux Ubuntu 17.04 In-Reply-To: References: <591a-59e86080-3f-5ef7a000@127385434> <62a0-59e86280-55-669bbb80@41690801> <8F1D40232A0E68409E3FC23A30C326620174D5B2CC68@THSONEA01CMS04P.one.grp> Message-ID: <1509647631920-0.post@n3.nabble.com> On my Linux machine it is also working as expected. System: Host: cray3 Kernel: 4.12.4-1-CHAKRA x86_64 bits: 64 Desktop: KDE Plasma 5.10.5 Distro: Chakra Machine: Device: desktop Mobo: ASUSTeK model: A88XM-PLUS v: Rev X.0x serial: N/A UEFI: American Megatrends v: 3003 date: 03/04/2017 CPU: Quad core AMD A10-7850K Radeon R7 12 Compute Cores 4C+8G (-MCP-) cache: 8192 KB clock speeds: max: 4200 MHz 1: 1700 MHz 2: 1700 MHz 3: 1700 MHz 4: 1700 MHz Graphics: Card: Advanced Micro Devices [AMD/ATI] Fiji [Radeon R9 FURY / NANO Series] Display Server: x11 (X.Org 1.19.3 ) driver: amdgpu Resolution: 2560x1440 at 143.86hz OpenGL: renderer: Gallium 0.4 on AMD FIJI (DRM 3.15.0 / 4.12.4-1-CHAKRA, LLVM 4.0.1) version: 4.5 Mesa 17.1.5 -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From shamika.i.nair at gmail.com Mon Nov 6 06:22:20 2017 From: shamika.i.nair at gmail.com (Shamika Mohanan) Date: Mon, 6 Nov 2017 10:52:20 +0530 Subject: [Scilab-users] How to link a static library Message-ID: Hello, I'm building a toolbox where I have to link a static library (.a file). I'm able to build the toolbox using *exec builder.sce*. I have the following line in the .start file *link(lib_path + "/liboctave.a");* When I load the toolbox using *exec loader.sce*, I get the error *link: The shared archive was not loaded: liboctave.a: invalid ELF header* If I change it to* link(lib_path + "/liboctave");*, I get the error *: cannot open shared object file: No such file or directory* How do I use link() to link a static library in the .start file? Regards, Shamika -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Mon Nov 6 16:00:25 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 6 Nov 2017 15:00:25 +0000 Subject: [Scilab-users] Digit Grouping in msprintf? In-Reply-To: <1509634129870-0.post@n3.nabble.com> References: <1509634129870-0.post@n3.nabble.com> Message-ID: Hi, The thousands separator flag for the printf (apostrophe) is non-standard and it does not seem to work in Scilab. You may need to program this in order to get a nicer printout. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Thursday, November 02, 2017 3:49 PM To: users at lists.scilab.org Subject: [Scilab-users] Digit Grouping in msprintf? Hey, is it possible to have this msprintf('%.f kWh',2725977) output something like "2.725.977 kWh" or even better "2?725?977 kWh" (with thin spaces)? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Mon Nov 6 16:03:49 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 6 Nov 2017 16:03:49 +0100 (CET) Subject: [Scilab-users] Digit Grouping in msprintf? In-Reply-To: <1509634129870-0.post@n3.nabble.com> Message-ID: <1628121258.322996611.1509980629424.JavaMail.root@zimbra75-e12.priv.proxad.net> Hi Richard, Are you sure that a relative accuracy of 5e-8 of your result is relevant/actual/significant?! (.f displays 6 decimal digits after the dot). If yes, and if msprintf('%5.2f GWh',2725977/1e6) does not match your actual data and relative accuracy, AFAIK there is no way with the Scilab C format to group digits. So, you may post-process the resulting string with some strsplit(s,..) and strcat(s, " ") calls. Tuning the space's width is mainly/only possible with a LaTeX rendering on graphics. HTH Samuel ----- Mail original ----- De: "Richard llom" ?: users at lists.scilab.org Envoy?: Jeudi 2 Novembre 2017 15:48:49 Objet: [Scilab-users] Digit Grouping in msprintf? Hey, is it possible to have this msprintf('%.f kWh',2725977) output something like "2.725.977 kWh" or even better "2?725?977 kWh" (with thin spaces)? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From brantosaurus at hotmail.com Sat Nov 4 17:38:12 2017 From: brantosaurus at hotmail.com (David Brant) Date: Sat, 4 Nov 2017 16:38:12 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP Message-ID: Hi, I have a problem loading the SIVP toolbox 0.5.3.2 from the ATOMS module manager under Linux Mint 18.1. I get error: The shared archive was not loaded: libtiff.so.4: cannot open shared object file: No such file or directory (see attachment). I read somewhere it has also been known on Ubuntu distro and was something to do with a labeling issue with *.so.* files. Is there a workaround? If you could tell me what to type i'll have a go. Thanks, Dave -------------- next part -------------- A non-text attachment was scrubbed... Name: query.png Type: image/png Size: 897755 bytes Desc: query.png URL: From arvefageraas at gmail.com Fri Nov 3 13:38:29 2017 From: arvefageraas at gmail.com (arve_f) Date: Fri, 3 Nov 2017 05:38:29 -0700 (MST) Subject: [Scilab-users] Problems getting started with Xcos In-Reply-To: <1490372054723-4035982.post@n3.nabble.com> References: <1490372054723-4035982.post@n3.nabble.com> Message-ID: <1509712709823-0.post@n3.nabble.com> Hello, I have a similar problem as your problem no.4, some of my Xcos 6.0.0 block diagram files can be edited, and saved, and simulations can be run without problems, but next time Xcos is opened the block diagram has disappeared. The file size is not zero, so it seems like the file has some data. I have only tested it on Windows 10. Any ideas how to solve this problem? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From antoine.elias at scilab-enterprises.com Tue Nov 7 09:50:07 2017 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Tue, 7 Nov 2017 09:50:07 +0100 Subject: [Scilab-users] [Scilab-Dev] Scilab forge down In-Reply-To: <777ef811-ecc2-68cc-76c3-8de2b0d8915c@utc.fr> References: <777ef811-ecc2-68cc-76c3-8de2b0d8915c@utc.fr> Message-ID: <58a83d8b-7a56-ffcb-b482-c4b09ed670da@scilab-enterprises.com> Hello all, Since Tuesday evening, services around xxx.scilab.org are interrupted by a hardware failure of an internal connection. ISP is working on it. In the meantime, ITs start to move servers ( VM ) to another site. They started by the mailing list server. I do not have more information except that it is not voluntary. And that ESI IT teams work to solve the problem. Regards, Antoine Le 06/11/2017 ? 17:47, St?phane Mottelet a ?crit?: > Hello Scilab/ESI guys, > > The scilab forge (forge.scilab.org) seems to be down. Is there a > maintenance happening ? I hope that this is just temporary : in the > future that would be nice to announce in adavance such > unavailabilities... > > S. > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev From rouxph.22 at gmail.com Tue Nov 7 15:29:58 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 7 Nov 2017 15:29:58 +0100 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP In-Reply-To: References: Message-ID: Hi, Le 04/11/2017 ? 17:38, David Brant a ?crit?: > Hi, > > I have a problem loading the SIVP toolbox 0.5.3.2 from the ATOMS module manager under Linux Mint 18.1. > > I get error: The shared archive was not loaded: libtiff.so.4: cannot open shared object file: No such file or directory (see attachment). > I read somewhere it has also been known on Ubuntu distro and was something to do with a labeling issue with *.so.* files. > > Is there a workaround? If you could tell me what to type i'll have a go. first try to locate the lib on your system : sudo find /usr/lib/ -name "libtiff.so.4*" /usr/lib/x86_64-linux-gnu/libtiff.so.4.3.6 /usr/lib/x86_64-linux-gnu/libtiff.so.4 if the "libtiff.so.4" doesn't appear add a symbolic link to the existing one in the same directory : cd /usr/lib/x86_64-linux-gnu/ sudo ln -s libtiff.so.4.3.6 libtiff.so.4 Best regards, Philippe From richard.llom at gmail.com Tue Nov 7 15:38:45 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 7 Nov 2017 07:38:45 -0700 (MST) Subject: [Scilab-users] How to read in date & time ? Message-ID: <1510065525808-0.post@n3.nabble.com> Hello, I have logfiles in the following form: DESC: AAA 2017 Datum;Zeit;kWh 01.01.2017;06:00;419,942 01.01.2017;07:00;513,273 01.01.2017;08:00;478,268 01.01.2017;09:00;711,572 01.01.2017;10:00;606,592 01.01.2017;11:00;594,92 01.01.2017;12:00;594,92 01.01.2017;13:00;524,933 ... I can read these in either as double or string [log_data, comments] = csvRead(log_file, ";", ",", "double",[], "/^[^0-9\-]/"); [log_data, comments] = csvRead(log_file, ";", ",", "string",[], "/^[^0-9\-]/"); However what I'm missing is a way to convert the date & time column to a date format in scilab. There doesn't seem to be function for this in scilab. Is there a recommended way of doing so? Thanks & regards richard PS: I'm so glad the list is working again! Would have been nice tho to inform the users in advance and with some sort of status.scilab.org site or something... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amonmayr at laas.fr Tue Nov 7 15:46:49 2017 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Tue, 7 Nov 2017 15:46:49 +0100 Subject: [Scilab-users] How to read in date & time ? In-Reply-To: <1510065525808-0.post@n3.nabble.com> References: <1510065525808-0.post@n3.nabble.com> Message-ID: Hello Richard, There are: datevec datenum getdate that could do the job. I am not sure whether there is a recommended way of doing the conversion. Cheers, Antoine Le 07/11/2017 ? 15:38, Richard llom a ?crit?: > Hello, > I have logfiles in the following form: > DESC: AAA 2017 > Datum;Zeit;kWh > 01.01.2017;06:00;419,942 > 01.01.2017;07:00;513,273 > 01.01.2017;08:00;478,268 > 01.01.2017;09:00;711,572 > 01.01.2017;10:00;606,592 > 01.01.2017;11:00;594,92 > 01.01.2017;12:00;594,92 > 01.01.2017;13:00;524,933 > ... > > I can read these in either as double or string > [log_data, comments] = csvRead(log_file, ";", ",", "double",[], > "/^[^0-9\-]/"); > > [log_data, comments] = csvRead(log_file, ";", ",", "string",[], > "/^[^0-9\-]/"); > > However what I'm missing is a way to convert the date & time column to a > date format in scilab. There doesn't seem to be function for this in scilab. > Is there a recommended way of doing so? > > Thanks & regards > richard > > > PS: > I'm so glad the list is working again! Would have been nice tho to inform > the users in advance and with some sort of status.scilab.org site or > something... > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From j-lan at online.no Tue Nov 7 16:59:14 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Tue, 7 Nov 2017 16:59:14 +0100 Subject: [Scilab-users] How to read in date & time ? In-Reply-To: <1510065525808-0.post@n3.nabble.com> References: <1510065525808-0.post@n3.nabble.com> Message-ID: Hello Assuming you have two header lines in your files, try this: tt=csvRead(log_file,";",[],"double",[".",";";":",";";",",";"],[],[],2) tv=datenum(tt(:,3),tt(:,2),tt(:,1),tt(:,4),tt(:,5),0) td=datevec(tv) Jan On 07.11.2017 15:38, Richard llom wrote: > Hello, > I have logfiles in the following form: > DESC: AAA 2017 > Datum;Zeit;kWh > 01.01.2017;06:00;419,942 > 01.01.2017;07:00;513,273 > 01.01.2017;08:00;478,268 > 01.01.2017;09:00;711,572 > 01.01.2017;10:00;606,592 > 01.01.2017;11:00;594,92 > 01.01.2017;12:00;594,92 > 01.01.2017;13:00;524,933 > ... > > I can read these in either as double or string > [log_data, comments] = csvRead(log_file, ";", ",", "double",[], > "/^[^0-9\-]/"); > > [log_data, comments] = csvRead(log_file, ";", ",", "string",[], > "/^[^0-9\-]/"); > > However what I'm missing is a way to convert the date & time column to a > date format in scilab. There doesn't seem to be function for this in scilab. > Is there a recommended way of doing so? > > Thanks & regards > richard > > > PS: > I'm so glad the list is working again! Would have been nice tho to inform > the users in advance and with some sort of status.scilab.org site or > something... > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From rouxph.22 at gmail.com Tue Nov 7 18:34:49 2017 From: rouxph.22 at gmail.com (philippe) Date: Tue, 7 Nov 2017 18:34:49 +0100 Subject: [Scilab-users] How to read in date & time ? In-Reply-To: <1510065525808-0.post@n3.nabble.com> References: <1510065525808-0.post@n3.nabble.com> Message-ID: Le 07/11/2017 ? 15:38, Richard llom a ?crit?: > > > However what I'm missing is a way to convert the date & time column to a > date format in scilab. There doesn't seem to be function for this in scilab. > Is there a recommended way of doing so? use datenum and datevec , example : yourline=["01.01.2017"; "06:00";"419,942"] // D=day, M=month,Y=year DMY=tokens(yourline(1),".") execstr(strsplit("DMY","")+"="+DMY) DT=datenum(y,m,d) [Ye,Mo,Da,ho,mi,se]=datevec(DT) // h=hhours, m=minutes, s=secondes hm=tokens(yourline(2),":") execstr(strsplit("hM","")+"="+hM) s=27 DT=datenum(y,m,d,h,M,s) [Ye,Mo,Da,ho,mi,se]=datevec(DT) best regards, Philippe From brantosaurus at hotmail.com Wed Nov 8 14:29:10 2017 From: brantosaurus at hotmail.com (David Brant) Date: Wed, 8 Nov 2017 13:29:10 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP Message-ID: Thanks for getting back Philippe. Only so.4 appeared. Checking with Nemo I have: libtiff.so.4 libtiff.so.5 libtiff.so.5.2.4 All have identical size and time stamps. Nemo reports 'link to unknown' for so.4 and so.5, and 'unknown' for so.5.2.4 Could you please advise on terminal commands to set up symbolic links to correct files? Regards, Dave (Moderator note: I can see but can't reply directly to the thread. Some kind of ongoing problem, so sent email) From richard.llom at gmail.com Wed Nov 8 14:52:53 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 8 Nov 2017 06:52:53 -0700 (MST) Subject: [Scilab-users] How to read in date & time ? In-Reply-To: References: <1510065525808-0.post@n3.nabble.com> Message-ID: <1510149173282-0.post@n3.nabble.com> Hello, thanks for all the replies! Somehow datenum and datevec slipped thorugh my search ... :-/ Jan's approach seems the most suitable to me, however I forget to mention that my log file also contains some missing / empty values, e.g. 01.01.2017;06:00;419,942 01.01.2017;07:00;513,273 01.01.2017;08:00;478,268 01.01.2017;09:00; 01.01.2017;10:00;606,592 01.01.2017;11:00; 01.01.2017;12:00;594,92 01.01.2017;13:00;524,933 But I could fix this with: [log_data, comments] = csvRead(log_file,';',',','double',['.',';';':',';'],"/^[^0-9\-]/"); and using log_date = datenum(log_data(:,3),log_data(:,2),log_data(:,1),log_data(:,4),log_data(:,5),0); mprintf('Log Start: %d-%02d-%02d at %02d:%02d\n',datevec(log_date(1,1))); etc... richard > Hello, > Assuming you have two header lines in your files, try this: > tt=csvRead(log_file,";",[],"double",[".",";";":",";";",",";"],[],[],2) > tv=datenum(tt(:,3),tt(:,2),tt(:,1),tt(:,4),tt(:,5),0) > td=datevec(tv) > > Jan > > On 07.11.2017 15:38, Richard llom wrote: >> >> Hello, >> I have logfiles in the following form: >> DESC: AAA 2017 >> Datum;Zeit;kWh >> 01.01.2017;06:00;419,942 >> 01.01.2017;07:00;513,273 >> 01.01.2017;08:00;478,268 >> 01.01.2017;09:00;711,572 >> 01.01.2017;10:00;606,592 >> 01.01.2017;11:00;594,92 >> 01.01.2017;12:00;594,92 >> 01.01.2017;13:00;524,933 >> ... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From richard.llom at gmail.com Wed Nov 8 15:07:31 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 8 Nov 2017 07:07:31 -0700 (MST) Subject: [Scilab-users] Shift indices Message-ID: <1510150051523-0.post@n3.nabble.com> Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. This is what I come up with: log_data2 = zeros(log_data); log_data2 = log_data(4001:size(log_data,1),:); log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = log_data(1:4000,:); But I'm wondering if there is a prettier solution? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From krotersv at gmail.com Wed Nov 8 15:20:55 2017 From: krotersv at gmail.com (Stanislav) Date: Wed, 8 Nov 2017 07:20:55 -0700 (MST) Subject: [Scilab-users] Shift indices In-Reply-To: <1510150051523-0.post@n3.nabble.com> References: <1510150051523-0.post@n3.nabble.com> Message-ID: <1510150855106-0.post@n3.nabble.com> See fftshift -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Wed Nov 8 16:06:08 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 8 Nov 2017 15:06:08 +0000 Subject: [Scilab-users] Shift indices In-Reply-To: <1510150051523-0.post@n3.nabble.com> References: <1510150051523-0.post@n3.nabble.com> Message-ID: Is this solution fine with you? aa = [1:10]; ix = [6:10,1:5]; bb = aa(ix) Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Wednesday, November 08, 2017 3:08 PM To: users at lists.scilab.org Subject: [Scilab-users] Shift indices Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. This is what I come up with: log_data2 = zeros(log_data); log_data2 = log_data(4001:size(log_data,1),:); log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = log_data(1:4000,:); But I'm wondering if there is a prettier solution? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From rouxph.22 at gmail.com Wed Nov 8 19:03:11 2017 From: rouxph.22 at gmail.com (philippe) Date: Wed, 8 Nov 2017 19:03:11 +0100 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP In-Reply-To: References: Message-ID: Le 08/11/2017 ? 14:29, David Brant a ?crit?: > Thanks for getting back Philippe. > > Only so.4 appeared. Checking with Nemo I have: > > libtiff.so.4 > libtiff.so.5 > libtiff.so.5.2.4 > > All have identical size and time stamps. > Nemo reports 'link to unknown' for so.4 and so.5, and 'unknown' for so.5.2.4 it looks that you don't have libtiff.so.4 on your system try download it from internet (http://www.filewatcher.com/m/libtiff.so.4.16-0.html not the best souce probably ...) and put it in the directory /usr/lib/x86_64-linux-gnu/ Best regards, Philippe From sgougeon at free.fr Thu Nov 9 00:31:27 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 00:31:27 +0100 Subject: [Scilab-users] Shift indices In-Reply-To: <1510150051523-0.post@n3.nabble.com> References: <1510150051523-0.post@n3.nabble.com> Message-ID: Le 08/11/2017 ? 15:07, Richard llom a ?crit : > Hello, > is there a function available to shift indices? > E.g. I have > aa = [1:10] > and want > bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. If you need to shift i = 1:n indices by /any/ p -- not necessarily n/2 --, you may do si = modulo(i+p-1, n)+1 // with n = length(i); Example: i = 1:10, p = 2; si = modulo(i+p-1, length(i))+1 --> i = 1:10, p = 2; i = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. --> si = modulo(i+p-1, length(i))+1 si = 3. 4. 5. 6. 7. 8. 9. 10. 1. 2. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Thu Nov 9 07:36:40 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Thu, 9 Nov 2017 06:36:40 +0000 Subject: [Scilab-users] Nightly builds Message-ID: <07A8AF089844A549B0F0CCC727AF31AA79EDF031@OVEKBG.ove.at> Hello, is there any possibility to get a current nightly build somewhere? Best regards Wolfgang -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Nov 9 09:31:30 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 9 Nov 2017 08:31:30 +0000 Subject: [Scilab-users] Weird things with the continuation dots Message-ID: Hello, When I used a script written for 5.4 with 6.0, I noticed some weird things with the continuation mark "..". E.g. in 5.4, "abc... def" was OK, it now gives an error ; I have to fix it with "abc"+... "def" Additionally, there should be a space after a * or a / ; *this is not documented*. This is quite logical as "/." is a different operator. But "*." Is not an operator. Only "-." Is documented. E.g. --> 5*.. syntax error , unexpected . --> 5*... > 2 Op?ration ind?finie pour les op?randes donn?es. --> 5/... > 2 ans = 0.4545455 I don't understand the result of this later case. Everything is fine with a space, e.g. "5* .." I didn't find anything on Bugzilla with "continuation mark" so should I fill in a form? -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France CS 60627, Octeville-sur-Mer 76059 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Thu Nov 9 10:08:28 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 10:08:28 +0100 Subject: [Scilab-users] Weird things with the continuation dots In-Reply-To: References: Message-ID: <080a2b95-981b-2607-fdfd-275fd51c4b2b@free.fr> Hello Christophe, Le 09/11/2017 ? 09:31, Dang Ngoc Chan, Christophe a ?crit : > Hello, > > When I used a script written for 5.4 with 6.0, > > I noticed some weird things with the continuation mark "..". > E.g. in 5.4, > > "abc... > def" > > was OK, it now gives an error ; I have to fix it with > "abc"+... > "def" Indeed, it was not a documented CHANGE in the 6.0.0 release. This official change has been added in CHANGES for 6.0.1. > Additionally, there should be a space after a * or a / ; *this is not documented*. > > This is quite logical as "/." is a different operator. > But "*." Is not an operator. > Only "-." Is documented. "*." is documented as well: --> uman * dl =========================================================================================================== Scilab > Scilab keywords > star ............................... star - (*) multiplication operator Description ----------- .../... A*.B is an operator with no predefined meaning. It may be used to define a new operator (see overloading) with the same precedence as * or /. But i somewhat agree with you: the parser should behave in the same way for all dotted operators. So a report could indeed be filled in, about "*." and ".." Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Nov 9 10:22:09 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 10:22:09 +0100 Subject: [Scilab-users] Weird things with the continuation dots In-Reply-To: <080a2b95-981b-2607-fdfd-275fd51c4b2b@free.fr> References: <080a2b95-981b-2607-fdfd-275fd51c4b2b@free.fr> Message-ID: <9674ee07-6bc5-c4f3-5005-a2d6fadd7665@free.fr> Le 09/11/2017 ? 10:08, Samuel Gougeon a ?crit : > Hello Christophe, > > Le 09/11/2017 ? 09:31, Dang Ngoc Chan, Christophe a ?crit : >> Hello, >> >> When I used a script written for 5.4 with 6.0, >> >> I noticed some weird things with the continuation mark "..". >> E.g. in 5.4, >> >> "abc... >> def" >> >> was OK, it now gives an error ; I have to fix it with >> "abc"+... >> "def" > Indeed, it was not a documented CHANGE in the 6.0.0 release. This > official change has been added in CHANGES for 6.0.1. > > >> Additionally, there should be a space after a * or a / ; *this is not documented*. >> >> This is quite logical as "/." is a different operator. >> But "*." Is not an operator. >> Only "-." Is documented. > > "*." is documented as well: > > --> uman * dl > =========================================================================================================== > > Scilab > Scilab keywords > star > ............................... > > star - (*) multiplication operator > > Description > ----------- > .../... > A*.B is an operator with no predefined meaning. It may be used to define > a new operator (see overloading) with the same precedence as * or /. > > But i somewhat agree with you: the parser should behave in the same > way for all dotted > operators. So a report could indeed be filled in, about "*." and ".." Hmm, actually, i am not so sure that the current behavior is wrong: > Le 09/11/2017 ? 09:31, Dang Ngoc Chan, Christophe a ?crit : >> .../... >> >> --> 5*.. >> syntax error , unexpected . That's right, in the way that "*." is parsed before ".." >> --> 5*... >> > 2 >> Op?ration ind?finie pour les op?randes donn?es. Unless you have actually overloaded "*." -- have you? --, this looks also right. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Nov 9 10:34:17 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 10:34:17 +0100 Subject: [Scilab-users] Weird things with the continuation dots In-Reply-To: References: Message-ID: <1c50db08-fb87-1899-4b85-2ac074a2cca1@free.fr> Le 09/11/2017 ? 09:31, Dang Ngoc Chan, Christophe a ?crit : > --> 5*... > > 2 > Op?ration ind?finie pour les op?randes donn?es. By the way, with the official 6.0.0 and a later nighlty built for Windows, i don't get the same error message. I get the clearer message: --> 5*... > 2 Undefined operation for the given operands. check or define function %s_u_s for overloading. Are you using a 6.0.0- pre-release? From sgougeon at free.fr Thu Nov 9 12:05:39 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 12:05:39 +0100 Subject: [Scilab-users] Shift indices In-Reply-To: <1510150051523-0.post@n3.nabble.com> References: <1510150051523-0.post@n3.nabble.com> Message-ID: <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> Le 08/11/2017 ? 15:07, Richard llom a ?crit : > Hello, > is there a function available to shift indices? > E.g. I have > aa = [1:10] > and want > bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. > > This is what I come up with: > log_data2 = zeros(log_data); > log_data2 = log_data(4001:size(log_data,1),:); > log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = > log_data(1:4000,:); > > But I'm wondering if there is a prettier solution? n = size(log_data,1); log_data = log_data(modulo((1:n)-2+4001, n)+1, :); Samuel From jrafaelbguerra at hotmail.com Thu Nov 9 12:42:55 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 9 Nov 2017 11:42:55 +0000 Subject: [Scilab-users] Shift indices In-Reply-To: <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> References: <1510150051523-0.post@n3.nabble.com> <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> Message-ID: n = size(log_data,1); log_data = log_data([4001:n,1:4000], :); Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Thursday, November 09, 2017 12:06 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Shift indices Le 08/11/2017 ? 15:07, Richard llom a ?crit : > Hello, > is there a function available to shift indices? > E.g. I have > aa = [1:10] > and want > bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. > > This is what I come up with: > log_data2 = zeros(log_data); > log_data2 = log_data(4001:size(log_data,1),:); > log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = > log_data(1:4000,:); > > But I'm wondering if there is a prettier solution? n = size(log_data,1); log_data = log_data(modulo((1:n)-2+4001, n)+1, :); Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Christophe.Dang at sidel.com Thu Nov 9 13:42:53 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 9 Nov 2017 12:42:53 +0000 Subject: [Scilab-users] {EXT} Weird things with the continuation dots In-Reply-To: References: Message-ID: Hello, For an unknown reason, I don't receive your messages Samuel, so I copy/paste from http://mailinglists.scilab.org > "*." is documented as well OK, I saw this but the "operator with no predefined meaning" puzzled me a bit ^_^ > Are you using a 6.0.0- pre-release? I tried with the 6.0.0 release and the Scilab-branch-1493471536 nightly build. Thanks for your answers There is still this pending: --> 5/... > 2 ans = 0.4545455 Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services Avenue de la Patrouille de France CS 60627, Octeville-sur-Mer 76059 Le Havre cedex, France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Thu Nov 9 14:05:15 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 9 Nov 2017 14:05:15 +0100 Subject: [Scilab-users] Shift indices In-Reply-To: References: <1510150051523-0.post@n3.nabble.com> <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> Message-ID: Le 09/11/2017 ? 12:42, Rafael Guerra a ?crit : > n = size(log_data,1); > log_data = log_data([4001:n,1:4000], :); Yes, it's definitely simpler! (unfortunately, we can't use the implicit polynomial 4001:$ to replace n=.., 4001:n, because it can't be concatenated) From jrafaelbguerra at hotmail.com Thu Nov 9 14:25:44 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 9 Nov 2017 13:25:44 +0000 Subject: [Scilab-users] Shift indices In-Reply-To: References: <1510150051523-0.post@n3.nabble.com> <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> Message-ID: Yes we can, with the one liner solution: log_data = [log_data(4001:$, :); log_data(1:4000, :)]; Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Thursday, November 09, 2017 2:05 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Shift indices Le 09/11/2017 ? 12:42, Rafael Guerra a ?crit : > n = size(log_data,1); > log_data = log_data([4001:n,1:4000], :); Yes, it's definitely simpler! (unfortunately, we can't use the implicit polynomial 4001:$ to replace n=.., 4001:n, because it can't be concatenated) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From j-lan at online.no Thu Nov 9 15:42:23 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Thu, 9 Nov 2017 15:42:23 +0100 Subject: [Scilab-users] Weird things with the continuation dots In-Reply-To: <1c50db08-fb87-1899-4b85-2ac074a2cca1@free.fr> References: <1c50db08-fb87-1899-4b85-2ac074a2cca1@free.fr> Message-ID: <8a1cd43c-915f-6b77-a345-cd285a0bbecf@online.no> In text documents it is good practice to use ? (U+2026) rather than ... . Some text editors (Open Office at least) even quietly autocorrect it. Should it be allowed in Scilab? Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Thu Nov 9 19:21:08 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Thu, 9 Nov 2017 18:21:08 +0000 Subject: [Scilab-users] NIghtly builds In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA79ECCB56@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA79ECCB56@OVEKBG.ove.at> Message-ID: <1510251667.2013.18.camel@esi-group.com> Hi Wolfgang, You could download the CI (Continuous Integration) builds from https://build.scilab.org ; for example for the 6.0 branch browse the https://build.scilab.org/view/Scilab%206.0/ page. For the windows x64 build download it as an "artefact" (below the job title) from https://build.scilab.org/view/Scilab%206.0/job/scilab-6.0-windows-64/ . Unfortunately, the nightly builds script (which generates date, timestamps, size information) did not work anymore after the www.scilab.org migration out of INRIA network. The CI builds let us iterate more quickly (one build after each commit) than nightly builds (one build each night) ; using it might be enough for most of us. Thanks, -- Cl?ment Le mercredi 25 octobre 2017 ? 05:36 +0000, SCHULZ Wolfgang a ?crit : > Hello, > I?m really missing a current nightly build. Is there another place where I could download them? > Thanks for your help > Wolfgang > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From brantosaurus at hotmail.com Fri Nov 10 10:22:54 2017 From: brantosaurus at hotmail.com (David Brant) Date: Fri, 10 Nov 2017 09:22:54 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP Message-ID: Hi I created symbolic link from missing libtiff.so4 to existing libtiff.so.5.2.4 Then it complained: atomsLoad: An error occurred while loading 'SIVP-0.5.3.2': link: The shared archive was not loaded: libjpeg.so.62: cannot open shared object file: No such file or directory I did same again for missing libjpeg.so.62 to existing libjpeg.so.9.2.0 Then all hell broke loose!!! atomsLoad: An error occurred while loading 'SIVP-0.5.3.2': link: The shared archive was not loaded: /home/dave/.Scilab/scilab-5.5.2/atoms/SIVP/0.5.3.2/sci_gateway/c//../../thirdparty/opencv/linux/x64/libavformat.so: file too short Really not sure what to try next. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: take2a.jpg Type: image/jpeg Size: 65738 bytes Desc: take2a.jpg URL: From Paul.Bignier at esi-group.com Fri Nov 10 15:01:43 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Fri, 10 Nov 2017 14:01:43 +0000 Subject: [Scilab-users] Scilab 5.5.2 on macOS High Sierra Message-ID: Hello Mac users, As Scilab 5.5.2 requires a Java 1.5 install, we need to make it think it has one. Here are steps to run Scilab 5.5.2 on High Sierra: * open a terminal (found in Applications -> Utilities -> Terminal) * note the path returned by: * /usr/libexec/java_home * in my case it returns /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home so in the following commands, replace it with your path. Run the following commands (you'll need sudo rights): * sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/ /System/Library/Frameworks/JavaVM.framework/Versions/1.5 # Make Java 1.5 point to our install * sudo mkdir -p /bundle/Libraries * sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/server/libjvm.dylib /bundle/Libraries/libserver.dylib # Make the requested libserver.dylib file point to our libjvm.dylib * if you get 'Operation not permitted' errors then please consult http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x to bypass macOS protections * at Scilab startup, click on Try Anyway when asked about the macOS version * if you're asked for Java6, follow the steps described at http://www.scilab.org/en/download/latest Regarding Scilab 6, it is recommended to wait for the next Scilab release which simplifies the launch on High Sierra. Otherwise you may refer to http://bugzilla.scilab.org/show_bug.cgi?id=15307 for a workaround. Best regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Fri Nov 10 21:32:31 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 10 Nov 2017 21:32:31 +0100 Subject: [Scilab-users] =?utf-8?q?frame=2C_plot_=26_non_working_zoom=3A_yo?= =?utf-8?q?ur_help_for_a_bug_report_and_a_possible_workaround?= Message-ID: <508d-5a060d00-9-72ef9800@221671369> Hello Scilab users, I'm facing a bug that prevents zooming on a plot inside a frame (or a tab). Here is my minimum working (or bugging) example: ////////////////////////////////// // Two axes in one figure: // left one is inside a frame // right one is directly attached to the figure // GUI zoom and zoom_rect don't work on the left plot h=scf(); h.axes_size=[800,600]; a_right=newaxes(h); a_right.axes_bounds(3)=0.5; a_right.axes_bounds(1)=0.5 plot2d() a_right.title.text="GUI zoom & zoom_rect work here"; frame_left = uicontrol(h, ... "style", "frame", ... "backgroundcolor", [1 0 1], ... "Position", [0,0,400,600]); a_left=newaxes(frame_left); plot2d(); a_left.title.text="GUI zoom & zoom_rect DO NOT work here"; ////////////////////////////////// Now come the questions: 1) Did you face the same bug and do you know any workaround to zoom on a plot inside a frame? 2) I plan to report a bug, any advice on the short summary keywords? "zoom not working on plots inside frame or tab uicontrols"? Cheers, Antoine From sgougeon at free.fr Fri Nov 10 23:43:53 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Nov 2017 23:43:53 +0100 Subject: [Scilab-users] frame, plot & non working zoom: your help for a bug report and a possible workaround In-Reply-To: <508d-5a060d00-9-72ef9800@221671369> References: <508d-5a060d00-9-72ef9800@221671369> Message-ID: Hello Antoine, Le 10/11/2017 ? 21:32, Antoine Monmayrant a ?crit : > Hello Scilab users, > > I'm facing a bug that prevents zooming on a plot inside a frame (or a tab). > Here is my minimum working (or bugging) example: > > ////////////////////////////////// > // Two axes in one figure: > // left one is inside a frame > // right one is directly attached to the figure > // GUI zoom and zoom_rect don't work on the left plot > > h=scf(); > h.axes_size=[800,600]; > a_right=newaxes(h); > a_right.axes_bounds(3)=0.5; > a_right.axes_bounds(1)=0.5 > plot2d() > a_right.title.text="GUI zoom & zoom_rect work here"; > > frame_left = uicontrol(h, ... > "style", "frame", ... > "backgroundcolor", [1 0 1], ... > "Position", [0,0,400,600]); > a_left=newaxes(frame_left); > plot2d(); > a_left.title.text="GUI zoom & zoom_rect DO NOT work here"; > ////////////////////////////////// > > Now come the questions: > > 1) Did you face the same bug Yes i do on the 6.0 NB-Jenkins of yesterday > and do you know any workaround to zoom on a plot inside a frame? Interactively: with the mouse wheel, and then panning (click-hold and drag) Otherwise: the gca().zoom_box property should work (it does with the wheel). > 2) I plan to report a bug, any advice on the short summary keywords? "zoom not working on plots inside frame or tab uicontrols"? Yes. "zoom_rect() can't focus on and fails in a uicontrol frame". Your example does not involve uicontrol tab. So tabs can't be the cause here. The figure's button runs zoom_rect(). Cheers Samuel From amonmayr at laas.fr Sat Nov 11 08:29:53 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Sat, 11 Nov 2017 08:29:53 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyBmcmFt?= =?utf-8?q?e=2C_plot_=26_non_working_zoom=3A_your_help_for_a_bug_report_an?= =?utf-8?q?d_a_possible_workaround?= In-Reply-To: Message-ID: <2dbf-5a06a700-5-1e830c40@51499506> > Your example does not involve uicontrol tab. So tabs can't be the cause > here. I know, but this is my minimum bugging example. In my code, I first encountered this bug with a plot inside a tab. I think that the bug is present whenever a plot is not directly a children of the figure, but the children of any uicontrol. Antoine From brantosaurus at hotmail.com Sat Nov 11 11:29:10 2017 From: brantosaurus at hotmail.com (David Brant) Date: Sat, 11 Nov 2017 10:29:10 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP Message-ID: Hi Everything works fine on windows, but unforunately i need to work with linux. It appears ATOMS has not been configured to run correctly on Linux Mint. This is a real same. Without the toolkits, its reduce capability is a big hit. Would this be worth submitting as a bug report? Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sat Nov 11 16:06:11 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 11 Nov 2017 18:06:11 +0300 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP In-Reply-To: References: Message-ID: Dear Dave! I got libtiff.so.4 from Ubuntu Saucy (see this AskUbuntu answer - https://askubuntu.com/a/457034/66509 ). Then I installed SIVP with atomsUpdate(); atomsInstall("SIVP"); from Scilab 5.5.2 x64 on Ubuntu Xenial Xerus 16.04 LTS (as your LinuxMint is based on it). As was already mentioned on SIVP ATOMS page - symbolics links are broken inside SIVP archive ( https://atoms.scilab.org/toolboxes/SIVP/0.5.3.2#comment2775 ) . So with current SIVP version user should do the following from terminal: cd /home/$USER/.Scilab/scilab-5.5.2/atoms/SIVP/ 0.5.3.2/thirdparty/opencv/linux/x64 rm libavcodec.so ln -s libavcodec.so.52 libavcodec.so rm libavformat.so ln -s libavformat.so.52 libavformat.so rm libavutil.so ln -s libavutil.so.49 libavutil.so rm libcvaux.so ln -s libcvaux.so.4 libcvaux.so rm libcv.so ln -s libcv.so.4 libcv.so rm libcxcore.so ln -s libcxcore.so.4 libcxcore.so rm libdc1394.so ln -s libdc1394.so.22 libdc1394.so rm libhighgui.so ln -s libhighgui.so.4 libhighgui.so rm libml.so ln -s libml.so.4 libml.so rm libswscale.so ln -s libswscale.so.0 libswscale.so I'm not SIVP and/or OpenCV expert, I did not use it before your e-mail, but it seems that it works after aforementioned manipulations. I can run all SIVP Demonstrations. Hope this helps. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-11-11 13:29 GMT+03:00 David Brant : > Hi > Everything works fine on windows, but unforunately i need to work with > linux. > It appears ATOMS has not been configured to run correctly on Linux Mint. > This is a real same. Without the toolkits, its reduce capability is a big > hit. > > Would this be worth submitting as a bug report? > > Dave > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 11 16:11:42 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 11 Nov 2017 16:11:42 +0100 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP In-Reply-To: References: Message-ID: <9e398c67-ed26-37d5-d07c-37a2a135ff8c@free.fr> Hello David, Le 11/11/2017 ? 11:29, David Brant a ?crit : > Hi > Everything works fine on windows, but unforunately i need to work with > linux. > It appears ATOMS has not been configured to run correctly on Linux Mint. Could you be more explicit? What's the problem with ATOMS, and with which Scilab version? If you get error messages, which one? Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From brantosaurus at hotmail.com Sun Nov 12 13:40:34 2017 From: brantosaurus at hotmail.com (David Brant) Date: Sun, 12 Nov 2017 12:40:34 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - SOLVED Message-ID: Hello I didn't spot the SIVP ATOMS page article, but many thanks to Nikolay for his excellent reply . I followed the instructions and much to my surprise it now works perfectly! Very much appreciated Best regards Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From brantosaurus at hotmail.com Mon Nov 13 10:29:09 2017 From: brantosaurus at hotmail.com (David Brant) Date: Mon, 13 Nov 2017 09:29:09 +0000 Subject: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP Message-ID: Hello I didn't spot the SIVP ATOMS page article, but many thanks to Nikolay for his excellent reply . I followed the instructions and much to my surprise it now works perfectly! Very much appreciated Best regards Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Mon Nov 13 13:14:15 2017 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Mon, 13 Nov 2017 13:14:15 +0100 Subject: [Scilab-users] frame, plot & non working zoom: your help for a bug report and a possible workaround In-Reply-To: <508d-5a060d00-9-72ef9800@221671369> References: <508d-5a060d00-9-72ef9800@221671369> Message-ID: <88cb7611-c73d-7592-99ff-5ff1b4302c78@laas.fr> Bug submitted: https://bugzilla.scilab.org/show_bug.cgi?id=15325 Thanks for your feedbacks. Antoine Le 10/11/2017 ? 21:32, Antoine Monmayrant a ?crit?: > Hello Scilab users, > > I'm facing a bug that prevents zooming on a plot inside a frame (or a tab). > Here is my minimum working (or bugging) example: > > ////////////////////////////////// > // Two axes in one figure: > // left one is inside a frame > // right one is directly attached to the figure > // GUI zoom and zoom_rect don't work on the left plot > > h=scf(); > h.axes_size=[800,600]; > a_right=newaxes(h); > a_right.axes_bounds(3)=0.5; > a_right.axes_bounds(1)=0.5 > plot2d() > a_right.title.text="GUI zoom & zoom_rect work here"; > > frame_left = uicontrol(h, ... > "style", "frame", ... > "backgroundcolor", [1 0 1], ... > "Position", [0,0,400,600]); > a_left=newaxes(frame_left); > plot2d(); > a_left.title.text="GUI zoom & zoom_rect DO NOT work here"; > ////////////////////////////////// > > Now come the questions: > > 1) Did you face the same bug and do you know any workaround to zoom on a plot inside a frame? > 2) I plan to report a bug, any advice on the short summary keywords? "zoom not working on plots inside frame or tab uicontrols"? > > Cheers, > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From sgougeon at free.fr Tue Nov 14 20:53:28 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Nov 2017 20:53:28 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> Message-ID: <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> Hello, Le 26/09/2017 ? 22:49, Samuel Gougeon a ?crit : > Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : >> Hello, >> >> Is anyone having trouble logging into their ATOMS account? I'm unable >> to log in or create a new account. > > Neither are we. Please have a look at > http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html There are some slight changes on this side, despite it is still impossible to update existing modules and filesets and to create new ones: When login, we no longer get neither a blank page without actually being logged, nor -- more recently -- getting any red messages about internal errors (likely addressed to debuggers). But there is now a kind of status inversion: Let's logging. Then, we are directed back to the ATOMS portal with displayed on the top right corner, and still without any admin rights. The strange thing is that when we then click on "create an account" while we have already one and we just tried to logging, we get on the top right corner So, we have been actually acknowledged by the loggin process! Unfortunately, clicking on Preferences does not lead to the dedicated personal page. No actual page uses the user profile and the SESSION_ID. This stands also after having removed all old cookies, that could prevent a sane ATOMS session after the migration of the ATOMS server. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kcmkijekkcigijbc.png Type: image/png Size: 1067 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nhkecebmpphdgcmg.png Type: image/png Size: 2102 bytes Desc: not available URL: From herozigle at gmail.com Wed Nov 15 09:42:48 2017 From: herozigle at gmail.com (Hermes) Date: Wed, 15 Nov 2017 01:42:48 -0700 (MST) Subject: [Scilab-users] create submatrix Message-ID: <1510735368777-0.post@n3.nabble.com> Hola, I have the following matrix a = [1 2 3; 4 5 6] and I want to select all columns except one. I have achieved it in the following way. a (:, [1 3]); a (:, [2 3]); a (:, [1 2]); and in this other way: b = [1 2 3] a (:, [b (b ~ = 1)]); a (:, [b (b ~ = 2)]); a (:, [b (b ~ = 3)]); But I would like to achieve it using a single index; something like that: a (:, [column ~ = 2]) Any suggestions, Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Wed Nov 15 09:51:13 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 15 Nov 2017 08:51:13 +0000 Subject: [Scilab-users] create submatrix In-Reply-To: <1510735368777-0.post@n3.nabble.com> References: <1510735368777-0.post@n3.nabble.com> Message-ID: Hi, You can try this: a = [1 2 3; 4 5 6]; ix = 1:size(a,2); a(:,find(ix<>2)) Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes Sent: Wednesday, November 15, 2017 9:43 AM To: users at lists.scilab.org Subject: [Scilab-users] create submatrix Hola, I have the following matrix a = [1 2 3; 4 5 6] and I want to select all columns except one. I have achieved it in the following way. a (:, [1 3]); a (:, [2 3]); a (:, [1 2]); and in this other way: b = [1 2 3] a (:, [b (b ~ = 1)]); a (:, [b (b ~ = 2)]); a (:, [b (b ~ = 3)]); But I would like to achieve it using a single index; something like that: a (:, [column ~ = 2]) Any suggestions, Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From jasper at amsterchem.com Wed Nov 15 09:47:21 2017 From: jasper at amsterchem.com (jasper van baten) Date: Wed, 15 Nov 2017 09:47:21 +0100 Subject: [Scilab-users] create submatrix In-Reply-To: <1510735368777-0.post@n3.nabble.com> References: <1510735368777-0.post@n3.nabble.com> Message-ID: <4527bd5a-0168-e36e-2327-6aaf9b142881@amsterchem.com> n=size(a,2) for i=1:n ??? b=a(:,[1:(i-1) (i+1):n]) end On 11/15/2017 9:42, Hermes wrote: > Hola, > I have the following matrix > a = [1 2 3; 4 5 6] > and I want to select all columns except one. > I have achieved it in the following way. > a (:, [1 3]); > a (:, [2 3]); > a (:, [1 2]); > > and in this other way: > b = [1 2 3] > a (:, [b (b ~ = 1)]); > a (:, [b (b ~ = 2)]); > a (:, [b (b ~ = 3)]); > > But I would like to achieve it using a single index; something like that: > a (:, [column ~ = 2]) > Any suggestions, > > Gracias > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Wed Nov 15 12:05:36 2017 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Wed, 15 Nov 2017 09:05:36 -0200 Subject: [Scilab-users] create submatrix In-Reply-To: References: , <1510735368777-0.post@n3.nabble.com> Message-ID: An HTML attachment was scrubbed... URL: From jean-philippe.grivet at wanadoo.fr Wed Nov 15 13:01:41 2017 From: jean-philippe.grivet at wanadoo.fr (Jean-Philippe Grivet) Date: Wed, 15 Nov 2017 13:01:41 +0100 Subject: [Scilab-users] Radon transform In-Reply-To: References: <1510735368777-0.post@n3.nabble.com> Message-ID: <5A0C2CA5.3070503@wanadoo.fr> Hello, Does an implementation of the Radon transform exist in Scilab, similar to the Matlab "radon" function ? Would anybody be willing to share a homemade version ? Thank you for your input JP Grivet --- L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le logiciel antivirus Avast. https://www.avast.com/antivirus From chinluh at tritytech.com Wed Nov 15 13:48:10 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 15 Nov 2017 20:48:10 +0800 Subject: [Scilab-users] Radon transform In-Reply-To: <5A0C2CA5.3070503@wanadoo.fr> References: <1510735368777-0.post@n3.nabble.com> <5A0C2CA5.3070503@wanadoo.fr> Message-ID: <5826e3d3-8197-b673-0a0a-cc7dcfd2be6b@tritytech.com> Hi, If you are using the Scilab 6, you can consider using IPCV "imradon" function. another implementation in scilab code attached in this email, radon.sci. This is pretty slow as it is using a for loop if you were to plot from 0:179 degree. this function will need nan toolbox. hope this helps. rgds, CL On 15/11/2017 8:01 PM, Jean-Philippe Grivet wrote: > Hello, > > Does an implementation of the Radon transform exist in Scilab, similar > to the Matlab > "radon" function ? Would anybody be willing to share a homemade version ? > > Thank you for your input > JP Grivet > > > --- > L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le > logiciel antivirus Avast. > https://www.avast.com/antivirus > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- function [RT,Xp] = radon(I,theta) [m, n] = size (I); //pause // center of image xc = floor ((m+1)/2); yc = floor ((n+1)/2); // divide each pixel into 2x2 subpixels d = matrix (I,[1 m 1 n]); d = d([1 1],:,[1 1],:); d = matrix (d,[2*m 2*n])/4; b = ceil (sqrt (sum (size (I).^2))/2 + 1); xp = [-b:b]'; sz = size(xp); [X,Y] = ndgrid (0.75 - xc + [0:2*m-1]/2,0.75 - yc + [0:2*n-1]/2); X = X(:)'; Y = Y(:)'; d = d(:)'; th = theta*%pi/180; for l=1:length (theta) // project each pixel to vector (-sin(th),cos(th)) Xp = -sin (th(l)) * X + cos (th(l)) * Y; ip = Xp + b + 1; k = floor (ip); frac = ip-k; RT(:,l) = nan_accumarray (k',d .* (1-frac),sz) + nan_accumarray (k'+1,d .* frac,sz); end endfunction From herozigle at gmail.com Wed Nov 15 15:46:55 2017 From: herozigle at gmail.com (Hermes) Date: Wed, 15 Nov 2017 07:46:55 -0700 (MST) Subject: [Scilab-users] The numderivative function consumes a lot of time Message-ID: <1510757215562-0.post@n3.nabble.com> Hi; The numderivative function consumes a lot of time in the calculations. In the following script I show two options for my "odes" function In one of them I use the numderivative function; and the calculation is extended by 9 minutes. And in the other I use the Jacobian determinant of the function, for each variable, obtained in wxMaxima. And the calculation is a few, few, seconds. I am interested in using the function with numderivative, and very similar to how I have developed it, since it allows me to use it for systems of more equations. //Draghilev's Method clc; clear; function Sys=Q(x) Sys(1)=(x(1)-2)^2+(x(2)-2)^2+x(3)^2-9; Sys(2)=x(1)^6+x(2)^6+x(3)^6-12; Sys(3)=x(3); endfunction [j,v,info]=fsolve([2;-0.1;3],Q) ics=j; // N=100; smin=0.0; smax=0.046; h=0.001; *function [dydt]=odes(t,x) //Scilab gfd=numderivative(Q,x); [r,c]=size(gfd) ic=1:c for i=1:c dydt(i)=(-1)^i*det(gfd(1:$-1,find(ic~=i))); end endfunction * //from wxMaxima function dydt=odes(t,x) //dydt=zeros(x); dydt(1)=-12*(x(2)-2)*x(3)^5+12*x(2)^5*x(3) dydt(2)=12*(x(1)-2)*x(3)^5-12*x(1)^5*x(3) dydt(3)=-12*(x(1)-2)*x(2)^5+12*x(1)^5*(x(2)-2) endfunction step=smax/N; t=[smin:step:smax*N]; t0=0 atol=h/100000; LL= ode( ics,t0, t,atol,odes) clf; drawlater() param3d(LL(3,:)',LL(2,:)',LL(1,:)'); set(gce(),"mark_mode","on","mark_style",2,"mark_size_unit","point","mark_size",4,"line_mode","off") drawnow() Is it possible to decrease the calculation time if I manipulate the options of% ODEOPTIONS = [*, ..., *]? What parameters would I manipulate? Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From skiba.g at gmail.com Wed Nov 15 19:04:57 2017 From: skiba.g at gmail.com (Grzegorz) Date: Wed, 15 Nov 2017 11:04:57 -0700 (MST) Subject: [Scilab-users] MicroDAQ Toolbox 1.2v - data acquisition and real-time processing Message-ID: <1510769097495-0.post@n3.nabble.com> MicroDAQ Toolbox 1.2v - data acquisition and real-time processing After over 5000 downloads from Atoms, we are proud to announce the new release of MicroDAQ toolbox for Scilab. The 1.2v release introduces data acquisition functionality which enables Scilab users to create advanced data acquisition applications without a need to use with external tools or programs. The user can use analog inputs and outputs to acquire data or generate signals from Scilab. Digital IO (PWM, Encoder, DIO) also can be controlled with new software. We also improved DSP code generator by allowing finite state machine code generation and GUI prototyping with Evidence E4Coder tools. Improved Xcos block generator allows custom block C code compilation for DSP and Host which allows block verification before running on MicroDAQ DSP core. This release can be used with Scilab 5.5.2 and Scilab 6 on Windows, Linux, and MacOS. How to install: getURL("www.microdaq.org/scilab/toolbox/microdaq_1.2.0.zip") atomsInstall("microdaq_1.2.0.zip") Toolbox overview: https://www.youtube.com/watch?v=p9ed3iIV_Ug&t=0s (video) http://www.microdaq.org/software/scilab/microdaq-toolbox-for-scilab-overview-2.html Release notes: www.microdaq.org/scilab/toolbox/MicroDAQ%20toolbox%20for%20Scilab%201.2v%20-%20release notes.pdf E4coder - finite state machine code generation and GUI prototyping http://www.e4coder.com/content/microdaq Data acquisition with Scilab (examples): http://www.microdaq.org/software/scilab/data-acquisition-with-scilab.html Embedded Solutions Team -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From skiba.g at gmail.com Wed Nov 15 19:18:07 2017 From: skiba.g at gmail.com (Grzegorz Skiba) Date: Wed, 15 Nov 2017 19:18:07 +0100 Subject: [Scilab-users] MicroDAQ Toolbox 1.2v - data acquisition and real-time processing Message-ID: MicroDAQ Toolbox 1.2v - data acquisition and real-time processing After over 5000 downloads from Atoms, we are proud to announce the new release of MicroDAQ toolbox for Scilab. The 1.2v release introduces data acquisition functionality which enables Scilab users to create advanced data acquisition applications without a need to use with external tools or programs. The user can use analog inputs and outputs to acquire data or generate signals from Scilab. Digital IO (PWM, Encoder, DIO) also can be controlled with new software. We also improved DSP code generator by allowing finite state machine code generation and GUI prototyping with Evidence E4Coder tools. Improved Xcos block generator allows custom block C code compilation for DSP and Host which allows block verification before running on MicroDAQ DSP core. This release can be used with Scilab 5.5.2 and Scilab 6 on Windows, Linux, and MacOS. How to install: getURL("www.microdaq.org/scilab/toolbox/microdaq_1.2.0.zip") atomsInstall("microdaq_1.2.0.zip") Toolbox overview: https://www.youtube.com/watch?v=p9ed3iIV_Ug&t=0s (video) http://www.microdaq.org/software/scilab/microdaq-toolbox-for-scilab-overview-2.html Release notes: www.microdaq.org/scilab/toolbox/MicroDAQ%20toolbox%20for%20Scilab%201.2v%20-%20release%20notes.pdf E4coder - finite state machine code generation and GUI prototyping http://www.e4coder.com/content/microdaq Data acquisition with Scilab (examples): http://www.microdaq.org/software/scilab/data-acquisition-with-scilab.html Embedded Solutions Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Nov 16 09:30:01 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 16 Nov 2017 08:30:01 +0000 Subject: [Scilab-users] {EXT} Re: create submatrix In-Reply-To: References: , <1510735368777-0.post@n3.nabble.com> Message-ID: Hello, > On 11/15/2017 9:42, Hermes wrote: > > Hola, > I have the following matrix > a = [1 2 3; 4 5 6] > and I want to select all columns except one. Another possibility : --> a = [1 2 3; 4 5 6] a = 1. 2. 3. 4. 5. 6. --> foo = a foo = 1. 2. 3. 4. 5. 6. --> foo(:, 2) = [] foo = 1. 3. 4. 6. HTH, regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From simon.marchetto at scilab-enterprises.com Fri Nov 17 11:22:18 2017 From: simon.marchetto at scilab-enterprises.com (simon.marchetto at scilab-enterprises.com) Date: Fri, 17 Nov 2017 11:22:18 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> Message-ID: <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> Hello, The login issue has been fixed. There were two problems with LDAP configuration (due to migration), and session management. There is still a problem about email sending, probably due to a bad configuration on the new server, we are working on it. But it does not prevent toolbox or file (fileexchange) updates. Sorry for the delay. Simon Marchetto Le 2017-11-14 20:53, Samuel Gougeon a ?crit?: > Hello, > > Le 26/09/2017 ? 22:49, Samuel Gougeon a ?crit : > >> Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : >> >>> Hello, >>> >>> Is anyone having trouble logging into their ATOMS account? I'm >>> unable to log in or create a new account. >> >> Neither are we. Please have a look at >> > http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html >> [1] > > There are some slight changes on this side, despite it is still > impossible to update existing modules and filesets and to create new > ones: > When login, we no longer get neither a blank page without actually > being logged, nor -- more recently -- getting any red messages about > internal errors (likely addressed to debuggers). > > But there is now a kind of status inversion: > Let's logging. Then, we are directed back to the ATOMS portal with > > displayed on the top right corner, and still without any admin > rights. The strange thing is that > when we then click on "create an account" while we have already one > and we just tried to logging, > we get on the top right corner > > So, we have been actually acknowledged by the loggin process! > Unfortunately, clicking on Preferences does not lead to the > dedicated personal page. > No actual page uses the user profile and the SESSION_ID. > > This stands also after having removed all old cookies, that could > prevent a sane ATOMS session after the migration of the ATOMS server. > > Regards > Samuel Gougeon > > > > Links: > ------ > [1] > http://mailinglists.scilab.org/Scilab-users-Cannot-access-module-at-atom-scilab-tt4036831.html > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From heinznabielek at me.com Thu Nov 16 13:41:18 2017 From: heinznabielek at me.com (Heinz Nabielek) Date: Thu, 16 Nov 2017 13:41:18 +0100 Subject: [Scilab-users] create submatrix In-Reply-To: References: <1510735368777-0.post@n3.nabble.com> Message-ID: <9682F4FD-191D-43EE-94D2-EF205938D966@me.com> Ingenious: I had the problem months ago and used a much more clumsy solution.... Heinz On 15.11.2017, at 12:05, Osvaldo Sergio Farhat de Carvalho wrote: > Try this: > > -->a = [1 2 3; 4 5 6] > a = > > 1. 2. 3. > 4. 5. 6. > > -->b = 1:3 > b = > > 1. 2. 3. > > -->a(:,b~=2) > ans = > > 1. 3. > 4. 6. > > -----"users" escreveu: ----- > Para: users at lists.scilab.org > De: jasper van baten > Enviado por: "users" > Data: 15/11/2017 07:08 AM > Assunto: Re: [Scilab-users] create submatrix > > n=size(a,2) > for i=1:n > b=a(:,[1:(i-1) (i+1):n]) > end > > > On 11/15/2017 9:42, Hermes wrote: >> Hola, >> I have the following matrix >> a = [1 2 3; 4 5 6] >> and I want to select all columns except one. >> I have achieved it in the following way. >> a (:, [1 3]); >> a (:, [2 3]); >> a (:, [1 2]); >> >> and in this other way: >> b = [1 2 3] >> a (:, [b (b ~ = 1)]); >> a (:, [b (b ~ = 2)]); >> a (:, [b (b ~ = 3)]); >> >> But I would like to achieve it using a single index; something like that: >> a (:, [column ~ = 2]) >> Any suggestions, >> >> Gracias >> scilab.org/mailman/listinfo/users From simone.decataldo at studenti.unipr.it Fri Nov 17 12:27:39 2017 From: simone.decataldo at studenti.unipr.it (SIMONE DECATALDO) Date: Fri, 17 Nov 2017 12:27:39 +0100 Subject: [Scilab-users] CMSCOPE Xcos Message-ID: Good morning, I contact you since I need an help with CMSCOPE of XCOS. When I execute my diagram, I obtain my figures. Now I want rename axis title: I make this by FIGURE PROPERTY or AXIS PROPERTY, but this is a momentary modification, in fact, if I run again my diagram, figures mantain their default title. Thank you for your collaboration. Simone Decataldo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Bignier at esi-group.com Fri Nov 17 15:34:04 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Fri, 17 Nov 2017 14:34:04 +0000 Subject: [Scilab-users] CMSCOPE Xcos In-Reply-To: References: Message-ID: Hello Simone, Could you please report this on our bugzilla, with the Wishlist tag? Thanks a lot, kind regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of SIMONE DECATALDO Sent: Friday, November 17, 2017 12:27 PM To: users at lists.scilab.org Subject: [Scilab-users] CMSCOPE Xcos Good morning, I contact you since I need an help with CMSCOPE of XCOS. When I execute my diagram, I obtain my figures. Now I want rename axis title: I make this by FIGURE PROPERTY or AXIS PROPERTY, but this is a momentary modification, in fact, if I run again my diagram, figures mantain their default title. Thank you for your collaboration. Simone Decataldo -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Fri Nov 17 17:12:25 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 17 Nov 2017 09:12:25 -0700 (MST) Subject: [Scilab-users] Digit Grouping in msprintf? In-Reply-To: <1628121258.322996611.1509980629424.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1509634129870-0.post@n3.nabble.com> <1628121258.322996611.1509980629424.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1510935145548-0.post@n3.nabble.com> Hi Samuel, I need the number in "kWh", but no digits after the comma. Postprocessing with strcat(s," ") is a nice idea. Is there a function to split the number to the power of 10 factors? Eg. 2725977 becomes [2 , 725 , 977] Then it would be really easy. :-) Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From richard.llom at gmail.com Fri Nov 17 17:16:48 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 17 Nov 2017 09:16:48 -0700 (MST) Subject: [Scilab-users] Shift indices In-Reply-To: References: <1510150051523-0.post@n3.nabble.com> <2a3a7e05-5448-f8df-934e-6e81ca673173@free.fr> Message-ID: <1510935408023-0.post@n3.nabble.com> Thank you all for the replies! This is my solution now: // ======== Wrap around at June 1st ======== ix1 = find(log_date==datenum(log_data(1,3),06,01)) ix2 = [ix1+1:size(log_data,1),1:ix1]; dat2 = log_data(ix2,6); (which is much easier to read :-) -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From skiba.g at gmail.com Fri Nov 17 17:35:42 2017 From: skiba.g at gmail.com (Grzegorz Skiba) Date: Fri, 17 Nov 2017 17:35:42 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> Message-ID: Dear Simon, it seems that there is still some problem with ATOMS, after uploading new version of MicroDAQ toolbox isn't isn't visible in Module manage in Scilab - the uploaded 1.2 version and previous versions are not available. The 1.2v can be accessed via web: https://atoms.scilab.org/toolboxes/microdaq/1.2.0 but it is not possible to install it from Scilab with atomsInstall("microdaq"); The toolbox should be available immediately or server needs to do some indexing etc and will be available later? Regards Grzegorz 2017-11-17 11:22 GMT+01:00 : > Hello, > > The login issue has been fixed. There were two problems with LDAP > configuration (due to migration), and session management. > > There is still a problem about email sending, probably due to a bad > configuration on the new server, we are working on it. > But it does not prevent toolbox or file (fileexchange) updates. > > Sorry for the delay. > > Simon Marchetto > > Le 2017-11-14 20:53, Samuel Gougeon a ?crit : > >> Hello, >> >> Le 26/09/2017 ? 22:49, Samuel Gougeon a ?crit : >> >> Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : >>> >>> Hello, >>>> >>>> Is anyone having trouble logging into their ATOMS account? I'm >>>> unable to log in or create a new account. >>>> >>> >>> Neither are we. Please have a look at >>> >>> http://mailinglists.scilab.org/Scilab-users-Cannot-access- >> module-at-atom-scilab-tt4036831.html >> >>> [1] >>> >> >> There are some slight changes on this side, despite it is still >> impossible to update existing modules and filesets and to create new >> ones: >> When login, we no longer get neither a blank page without actually >> being logged, nor -- more recently -- getting any red messages about >> internal errors (likely addressed to debuggers). >> >> But there is now a kind of status inversion: >> Let's logging. Then, we are directed back to the ATOMS portal with >> >> displayed on the top right corner, and still without any admin >> rights. The strange thing is that >> when we then click on "create an account" while we have already one >> and we just tried to logging, >> we get on the top right corner >> >> So, we have been actually acknowledged by the loggin process! >> Unfortunately, clicking on Preferences does not lead to the >> dedicated personal page. >> No actual page uses the user profile and the SESSION_ID. >> >> This stands also after having removed all old cookies, that could >> prevent a sane ATOMS session after the migration of the ATOMS server. >> >> Regards >> Samuel Gougeon >> >> >> >> Links: >> ------ >> [1] >> http://mailinglists.scilab.org/Scilab-users-Cannot-access- >> module-at-atom-scilab-tt4036831.html >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Fri Nov 17 17:41:55 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 17 Nov 2017 09:41:55 -0700 (MST) Subject: [Scilab-users] Trouble with reading whitespace separated csv Message-ID: <1510936915808-0.post@n3.nabble.com> Hello, I'm trying to read in a file with whitespace separated values, with [log_data, comments] = csvRead(log_file,ascii(32),'.','double'); However I'm constantly getting this error: Warning: Inconsistency found in the columns. At line 2, found 11 columns while the previous had 5. but with changing column numbers... Any clue whats going on? richard Data sample: 16800 23200 1 1 1 -4.2 1009 143 2.2 3 2.5 92 0 0 191 -292 2 16800 23200 1 1 2 -5.4 1009 178 1.8 1 2.5 96 0 0 189 -291 2 16800 23200 1 1 3 -6.1 1008 195 1.6 0 2.4 99 0 0 188 -289 2 16800 23200 1 1 4 -6.1 1008 182 1.6 0 2.4 99 0 0 182 -288 2 16800 23200 1 1 5 -5.9 1008 168 1.9 0 2.4 99 0 0 185 -286 2 16800 23200 1 1 6 -6.4 1007 146 1.8 0 2.4 99 0 0 182 -284 2 16800 23200 1 1 7 -4.7 1006 157 3.2 0 2.5 98 0 0 175 -282 2 16800 23200 1 1 8 -4.2 1006 156 3.5 3 2.6 95 0 0 196 -282 2 16800 23200 1 1 9 -3.9 1006 164 3.9 3 2.6 92 0 0 216 -281 2 16800 23200 1 1 10 -3.4 1005 151 4.0 5 2.6 89 1 28 230 -282 2 16800 23200 1 1 11 -3.1 1004 129 3.5 6 2.6 86 32 70 247 -285 2 16800 23200 1 1 12 -1.4 1004 148 5.2 4 2.6 80 146 54 245 -289 2 16800 23200 1 1 13 -0.8 1003 150 5.1 6 2.6 74 24 97 248 -294 2 ... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Nov 17 18:28:47 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 17 Nov 2017 17:28:47 +0000 Subject: [Scilab-users] Digit Grouping in msprintf? In-Reply-To: <1510935145548-0.post@n3.nabble.com> References: <1509634129870-0.post@n3.nabble.com> <1628121258.322996611.1509980629424.JavaMail.root@zimbra75-e12.priv.proxad.net> <1510935145548-0.post@n3.nabble.com> Message-ID: Hi, Try this: // START OF CODE n = 2725977; p = int(log10(n)); x=[]; for i=p:-3:0; x = [x int(n/10^i)]; n=modulo(n,10^i); end // END OF CODE Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Friday, November 17, 2017 5:12 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Digit Grouping in msprintf? Hi Samuel, I need the number in "kWh", but no digits after the comma. Postprocessing with strcat(s," ") is a nice idea. Is there a function to split the number to the power of 10 factors? Eg. 2725977 becomes [2 , 725 , 977] Then it would be really easy. :-) Thanks richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Fri Nov 17 19:02:34 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 17 Nov 2017 18:02:34 +0000 Subject: [Scilab-users] Trouble with reading whitespace separated csv In-Reply-To: <1510936915808-0.post@n3.nabble.com> References: <1510936915808-0.post@n3.nabble.com> Message-ID: Hi, fscanfMat reads your sample file with not problem: [log_data, comments] = fscanfMat(log_file) csvRead has several bugs reported in Scilab 5 series, your case may be one. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Friday, November 17, 2017 5:42 PM To: users at lists.scilab.org Subject: [Scilab-users] Trouble with reading whitespace separated csv Hello, I'm trying to read in a file with whitespace separated values, with [log_data, comments] = csvRead(log_file,ascii(32),'.','double'); However I'm constantly getting this error: Warning: Inconsistency found in the columns. At line 2, found 11 columns while the previous had 5. but with changing column numbers... Any clue whats going on? richard Data sample: 16800 23200 1 1 1 -4.2 1009 143 2.2 3 2.5 92 0 0 191 -292 2 16800 23200 1 1 2 -5.4 1009 178 1.8 1 2.5 96 0 0 189 -291 2 16800 23200 1 1 3 -6.1 1008 195 1.6 0 2.4 99 0 0 188 -289 2 16800 23200 1 1 4 -6.1 1008 182 1.6 0 2.4 99 0 0 182 -288 2 16800 23200 1 1 5 -5.9 1008 168 1.9 0 2.4 99 0 0 185 -286 2 16800 23200 1 1 6 -6.4 1007 146 1.8 0 2.4 99 0 0 182 -284 2 16800 23200 1 1 7 -4.7 1006 157 3.2 0 2.5 98 0 0 175 -282 2 16800 23200 1 1 8 -4.2 1006 156 3.5 3 2.6 95 0 0 196 -282 2 16800 23200 1 1 9 -3.9 1006 164 3.9 3 2.6 92 0 0 216 -281 2 16800 23200 1 1 10 -3.4 1005 151 4.0 5 2.6 89 1 28 230 -282 2 16800 23200 1 1 11 -3.1 1004 129 3.5 6 2.6 86 32 70 247 -285 2 16800 23200 1 1 12 -1.4 1004 148 5.2 4 2.6 80 146 54 245 -289 2 16800 23200 1 1 13 -0.8 1003 150 5.1 6 2.6 74 24 97 248 -294 2 ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Fri Nov 17 20:14:47 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 17 Nov 2017 19:14:47 +0000 Subject: [Scilab-users] Digit Grouping in msprintf? Message-ID: Corrected version: // START OF CODE n = 2725977; p = int(log10(n)/3)*3; x=[]; for i=p:-3:0; x = [x int(n/10^i)]; n=modulo(n,10^i); end // END OF CODE Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Friday, November 17, 2017 5:12 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Digit Grouping in msprintf? Hi Samuel, I need the number in "kWh", but no digits after the comma. Postprocessing with strcat(s," ") is a nice idea. Is there a function to split the number to the power of 10 factors? Eg. 2725977 becomes [2 , 725 , 977] Then it would be really easy. :-) Thanks richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Nov 17 22:00:49 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 17 Nov 2017 22:00:49 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> Message-ID: <2a6d19ec-cb47-ddfd-73e5-a8826c4f39aa@free.fr> Hello Simon, Thanks for your efforts to solve these long standing bugs. Unfortunately, tonigh, not being logged, * ATOMS o visiting once the portal is OK o visiting any module's page fails and displays: "LDAP : bind ?chou?" o after that, visiting again the ATOMS portal fails * FE o visiting the portal is OK o visiting any FS page is OK * loggin is NOK : white running page... and finally "LDAP : bind ?chou?" Regards Samuel Le 17/11/2017 ? 11:22, simon.marchetto at scilab-enterprises.com a ?crit : > Hello, > > The login issue has been fixed. There were two problems with LDAP > configuration (due to migration), and session management. > > There is still a problem about email sending, probably due to a bad > configuration on the new server, we are working on it. > But it does not prevent toolbox or file (fileexchange) updates. > > Sorry for the delay. > > Simon Marchetto -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Nov 17 22:20:04 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 17 Nov 2017 22:20:04 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: <2a6d19ec-cb47-ddfd-73e5-a8826c4f39aa@free.fr> References: <04dc9350-1369-755e-6fd4-cc7ca60fd3ea@free.fr> <64253f89-c22f-358b-47f2-9bc0e61bc07c@free.fr> <6392edd5998b556a10872b645b32ee76@scilab-enterprises.com> <2a6d19ec-cb47-ddfd-73e5-a8826c4f39aa@free.fr> Message-ID: Aaa, after several attempts and waiting, * the page of an ATOMS module gets displayed * any login attempt with my usual login displays the red message "No account exists for this email" I did not try to recreate an account at the same login email since it could lose all ATOMS and FE pointers formerly attached to this login. Samuel Le 17/11/2017 ? 22:00, Samuel Gougeon a ?crit : > Hello Simon, > > Thanks for your efforts to solve these long standing bugs. > Unfortunately, tonigh, not being logged, > > * ATOMS > o visiting once the portal is OK > o visiting any module's page fails and displays: "LDAP : bind > ?chou?" > o after that, visiting again the ATOMS portal fails > * FE > o visiting the portal is OK > o visiting any FS page is OK > > * loggin is NOK : white running page... and finally "LDAP : bind ?chou?" > > Regards > > Samuel > > Le 17/11/2017 ? 11:22, simon.marchetto at scilab-enterprises.com a ?crit : >> Hello, >> >> The login issue has been fixed. There were two problems with LDAP >> configuration (due to migration), and session management. >> >> There is still a problem about email sending, probably due to a bad >> configuration on the new server, we are working on it. >> But it does not prevent toolbox or file (fileexchange) updates. >> >> Sorry for the delay. >> >> Simon Marchetto > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 18 16:44:47 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Nov 2017 16:44:47 +0100 Subject: [Scilab-users] users@ no longer archived Message-ID: <2698e6ed-2400-8b87-64ac-0f70bdd23cdf@free.fr> @ ESI-Scilab group : This mailing list -- and maybe the other ones on @lists.scilab.org -- is no longer archived on http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html since 2017-11-14, so now for 4 days. Is it intentional? Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 18 17:07:10 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Nov 2017 17:07:10 +0100 Subject: [Scilab-users] Trouble with reading whitespace separated csv In-Reply-To: <1510936915808-0.post@n3.nabble.com> References: <1510936915808-0.post@n3.nabble.com> Message-ID: <1d5c9c5a-1b5b-25cd-c7a8-31c62c3005ad@free.fr> Hello Richard, Le 17/11/2017 ? 17:41, Richard llom a ?crit : > Hello, > I'm trying to read in a file with whitespace separated values, with > [log_data, comments] = csvRead(log_file,ascii(32),'.','double'); > However I'm constantly getting this error: > Warning: Inconsistency found in the columns. At line 2, found 11 columns > while the previous had 5. > but with changing column numbers... > > Any clue whats going on? Using space as a column separator is a very bad choice. For instance, in the sample that you have posted, the 3 consecutive following rows > 16800 23200 1 1 10 -3.4 1005 151 4.0 5 2.6 89 1 28 230 -282 2 > 16800 23200 1 1 11 -3.1 1004 129 3.5 6 2.6 86 32 70 247 -285 2 > 16800 23200 1 1 12 -1.4 1004 148 5.2 4 2.6 80 146 54 245 -289 2 are then read by csvRead() as (if "," were the separator instead) 16800,23200,,1,,1,10,,-3.4,1005,151,,4.0 5,,2.6,,89,,,,1,,,28,230,-282,,2 16800,23200,,1,,1,11,,-3.1,1004,129,,3.5 6,,2.6,,86,,,32,,,70,247,-285,,2 16800,23200,,1,,1,12,,-1.4,1004,148,,5.2 4,,2.6,,80,,146,,,54,245,-289,,2 with many empty columns and a shift, that yields an expected error. So, there is no bug here from csvRead(). As noted by Rafael, csvRead() does not fit to the job here. Since your data are only numerical, fscanfMat() should work instead, indeed. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sat Nov 18 17:25:27 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 18 Nov 2017 16:25:27 +0000 Subject: [Scilab-users] Trouble with reading whitespace separated csv In-Reply-To: <1d5c9c5a-1b5b-25cd-c7a8-31c62c3005ad@free.fr> References: <1510936915808-0.post@n3.nabble.com> <1d5c9c5a-1b5b-25cd-c7a8-31c62c3005ad@free.fr> Message-ID: Hi Samuel, Not a bug but maybe it could be enhanced for the conversion='double' case by treating consecutive spaces or tabs as a single separator? Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Saturday, November 18, 2017 5:07 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Trouble with reading whitespace separated csv Hello Richard, Le 17/11/2017 ? 17:41, Richard llom a ?crit : Hello, I'm trying to read in a file with whitespace separated values, with [log_data, comments] = csvRead(log_file,ascii(32),'.','double'); However I'm constantly getting this error: Warning: Inconsistency found in the columns. At line 2, found 11 columns while the previous had 5. but with changing column numbers... Any clue whats going on? Using space as a column separator is a very bad choice. For instance, in the sample that you have posted, the 3 consecutive following rows 16800 23200 1 1 10 -3.4 1005 151 4.0 5 2.6 89 1 28 230 -282 2 16800 23200 1 1 11 -3.1 1004 129 3.5 6 2.6 86 32 70 247 -285 2 16800 23200 1 1 12 -1.4 1004 148 5.2 4 2.6 80 146 54 245 -289 2 are then read by csvRead() as (if "," were the separator instead) 16800,23200,,1,,1,10,,-3.4,1005,151,,4.0 5,,2.6,,89,,,,1,,,28,230,-282,,2 16800,23200,,1,,1,11,,-3.1,1004,129,,3.5 6,,2.6,,86,,,32,,,70,247,-285,,2 16800,23200,,1,,1,12,,-1.4,1004,148,,5.2 4,,2.6,,80,,146,,,54,245,-289,,2 with many empty columns and a shift, that yields an expected error. So, there is no bug here from csvRead(). As noted by Rafael, csvRead() does not fit to the job here. Since your data are only numerical, fscanfMat() should work instead, indeed. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sat Nov 18 22:01:19 2017 From: herozigle at gmail.com (Hermes) Date: Sat, 18 Nov 2017 14:01:19 -0700 (MST) Subject: [Scilab-users] The numderivative function Message-ID: <1511038879500-0.post@n3.nabble.com> Hi; The numderivative function consumes a lot of time in the calculations. In the following script I show two options for my "odes" function In one of them I use the numderivative function; and the calculation is extended by 9 minutes. And in the other I use the Jacobian determinant of the function, for each variable, obtained in wxMaxima. And the calculation is a few, few, seconds. I am interested in using the function with numderivative, and very similar to how I have developed it, since it allows me to use it for systems of more equations. //Draghilev's Method clc; clear; function Sys=Q(x) Sys(1)=(x(1)-2)^2+(x(2)-2)^2+x(3)^2-9; Sys(2)=x(1)^6+x(2)^6+x(3)^6-12; Sys(3)=x(3); endfunction [j,v,info]=fsolve([2;-0.1;3],Q) ics=j; // N=100; smin=0.0; smax=0.046; h=0.001; *function [dydt]=odes(t,x) //Scilab gfd=numderivative(Q,x); [r,c]=size(gfd) ic=1:c for i=1:c dydt(i)=(-1)^i*det(gfd(1:$-1,find(ic~=i))); end endfunction * //from wxMaxima function dydt=odes(t,x) //dydt=zeros(x); dydt(1)=-12*(x(2)-2)*x(3)^5+12*x(2)^5*x(3) dydt(2)=12*(x(1)-2)*x(3)^5-12*x(1)^5*x(3) dydt(3)=-12*(x(1)-2)*x(2)^5+12*x(1)^5*(x(2)-2) endfunction step=smax/N; t=[smin:step:smax*N]; t0=0 atol=h/100000; LL= ode( ics,t0, t,atol,odes) clf; drawlater() param3d(LL(3,:)',LL(2,:)',LL(1,:)'); set(gce(),"mark_mode","on","mark_style",2,"mark_size_unit","point","mark_size",4,"line_mode","off") drawnow() Is it possible to decrease the calculation time if I manipulate the options of% ODEOPTIONS = [*, ..., *]? What parameters would I manipulate? Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Nov 18 22:38:02 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Nov 2017 22:38:02 +0100 Subject: [Scilab-users] The numderivative function In-Reply-To: <1511038879500-0.post@n3.nabble.com> References: <1511038879500-0.post@n3.nabble.com> Message-ID: <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> Le 18/11/2017 ? 22:01, Hermes a ?crit : > Hi; > The numderivative function consumes a lot of time in the calculations. > In the following script I show two options for my "odes" function > In one of them I use the numderivative function; and the calculation is > extended by 9 minutes. And in the other I use the Jacobian determinant of > the function, for each variable, obtained in wxMaxima. And the calculation > is a few, few, seconds. > I am interested in using the function with numderivative, and very similar > to how I have developed it, since it allows me to use it for systems of more > equations. Your script makes Scilab 6.0.0 crashing every time it is run => trials done only on 5.5.2 * I get *145 s* by default when numderivative() is called as usual from its library. Without numderivative(), i get *1.97 s*. * After exec(SCI+"/modules/optimization/macros/numderivative.sci",-1), this time decreases down to *45 s *only. This is unlikely proper to numderivative(). 5.5.2 looks to miss an optimization. For the time being, no way to test this on 6.0.0. * Your script calls numderivative() ~57000 times. * Profiling numderivative() and its dependencies shows that numderivative_evalf() spends a lot of time. * Replacing execstr(.., "errcatch") in numderivative_evalf() with try/catch, we get***38 s* * Then, mainly, vectorizing the function to derivate in order to accept x with N columns instead of only 1, and changing numderivative() in order to be able to work with this new vectorized profile, we get *29 s*. Improving numderivative() in order to be fully able to work with vectorized functions should be possible, but then * at first sight it will be less easy to keep it able to run with functions that are NOT vectorized (=> back-compatibility issue) * The jacobian would become an hypermatrix (OK) * The hessian would get up to 4 dimensions You may post a report on bugzilla in order to point numderivative slowness() (if it is not already reported)(Bugzilla is currently off, taking its week-end). Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 18 23:41:00 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Nov 2017 23:41:00 +0100 Subject: [Scilab-users] The numderivative function In-Reply-To: <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> References: <1511038879500-0.post@n3.nabble.com> <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> Message-ID: Le 18/11/2017 ? 22:38, Samuel Gougeon a ?crit : > Le 18/11/2017 ? 22:01, Hermes a ?crit : >> Hi; >> The numderivative function consumes a lot of time in the calculations. >> In the following script I show two options for my "odes" function >> In one of them I use the numderivative function; and the calculation is >> extended by 9 minutes. And in the other I use the Jacobian determinant of >> the function, for each variable, obtained in wxMaxima. And the calculation >> is a few, few, seconds. >> I am interested in using the function with numderivative, and very similar >> to how I have developed it, since it allows me to use it for systems of more >> equations. > > Your script makes Scilab 6.0.0 crashing every time it is run => trials > done only on 5.5.2 > > * I get *145 s* by default when numderivative() is called as usual > from its library. > Without numderivative(), i get *1.97 s*. > * After > exec(SCI+"/modules/optimization/macros/numderivative.sci",-1), > this time decreases down to *45 s *only. This is unlikely proper > to numderivative(). 5.5.2 looks to miss an optimization. For the > time being, no way to test this on 6.0.0. > * Your script calls numderivative() ~57000 times. > * Profiling numderivative() and its dependencies shows that > numderivative_evalf() spends a lot of time. > * Replacing execstr(.., "errcatch") in numderivative_evalf() with > try/catch, we get***38 s* > * Then, mainly, vectorizing the function to derivate in order to > accept x with N columns instead of only 1, and changing > numderivative() in order to be able to work with this new > vectorized profile, we get *29 s*. > > Improving numderivative() in order to be fully able to work with > vectorized functions should be possible, but then > > * at first sight it will be less easy to keep it able to run with > functions that are NOT vectorized (=> back-compatibility issue) > * The jacobian would become an hypermatrix (OK) > * The hessian would get up to 4 dimensions > This is assuming that the architecture of the current numderivative() implementation is kept. A complete refactoring would be possible. But used for ode(), IMO this would not save much of the time spent, since anyway ode() calls the function for a single point. Beside the lack of vectorization, the order is not free. For instance, order=3 needs to call numderivative() twice, for instance with order=2 then with order=1. This limitation is a bit strange. SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukejuniper at gmail.com Sun Nov 19 11:40:50 2017 From: lukejuniper at gmail.com (Luke Juniper) Date: Sun, 19 Nov 2017 21:40:50 +1100 Subject: [Scilab-users] Trouble implementing "generic_block3" Message-ID: Having trouble implementing "generic_block3" in Scilab/XCOS V.6.0.0. After submitting the simulation in XCOS, I get the error message "the block 1 has been called with input out of its domain". Relevant files attached. Any help appreciated. Regards, Luke. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.png Type: image/png Size: 6679 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.png Type: image/png Size: 15221 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: genericblock_test.zcos Type: application/octet-stream Size: 2844 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.sci Type: application/octet-stream Size: 48 bytes Desc: not available URL: From Paul.Bignier at esi-group.com Sun Nov 19 12:32:26 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Sun, 19 Nov 2017 11:32:26 +0000 Subject: [Scilab-users] Trouble implementing "generic_block3" In-Reply-To: References: Message-ID: Hi Luke, Could you please report this to the bugzilla? Uploading the files & giving us more context info such as your OS, Scilab version or your installed toolboxes. Thanks & kind regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Luke Juniper Sent: Sunday, November 19, 2017 11:40 AM To: users at lists.scilab.org Subject: [Scilab-users] Trouble implementing "generic_block3" Having trouble implementing "generic_block3" in Scilab/XCOS V.6.0.0. After submitting the simulation in XCOS, I get the error message "the block 1 has been called with input out of its domain". Relevant files attached. Any help appreciated. Regards, Luke. [cid:ii_ja6mq1890_15fd3db99dcdcd0b] [cid:ii_ja6mrrwa2_15fd3dcd62715ca8] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.png Type: image/png Size: 6679 bytes Desc: 1.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.png Type: image/png Size: 15221 bytes Desc: 2.png URL: From sgougeon at free.fr Sun Nov 19 14:21:18 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 19 Nov 2017 14:21:18 +0100 Subject: [Scilab-users] users@ no longer archived In-Reply-To: <2698e6ed-2400-8b87-64ac-0f70bdd23cdf@free.fr> References: <2698e6ed-2400-8b87-64ac-0f70bdd23cdf@free.fr> Message-ID: Le 18/11/2017 ? 16:44, Samuel Gougeon a ?crit : > > @ ESI-Scilab group : > > This mailing list -- and maybe the other ones on @lists.scilab.org -- > is no longer archived on > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > > since 2017-11-14, so now for 4 days. > Is it intentional? > Apparently it wasn't, since archives are now fully restored. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Sun Nov 19 16:44:55 2017 From: herozigle at gmail.com (Hermes) Date: Sun, 19 Nov 2017 08:44:55 -0700 (MST) Subject: [Scilab-users] The numderivative function In-Reply-To: References: <1511038879500-0.post@n3.nabble.com> <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> Message-ID: <1511106295399-0.post@n3.nabble.com> Hi samuel, Such good news! to be able to see completely:"Scilab users - Mailing Lists Archives" My questions to your answer. Thanks for them: How can I reproduce this: "Then, mainly, vectorizing the function to derive in order to accept x with N columns instead of only 1, and changing numderivative () in order to be able to work with this new vectorized profile, we get 29 s." You can guide me with your answer, if possible with an example: "Improving numderivative () in order to be fully able to work with vectorized functions should be possible, but then: ...." regards I would very much like to be able to master numderivative. You could guide me to a website where I can read and study the vectorization in Scilab. I still do not feel comfortable with it. Hermes -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sun Nov 19 17:12:22 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 19 Nov 2017 17:12:22 +0100 Subject: [Scilab-users] The numderivative function In-Reply-To: <1511106295399-0.post@n3.nabble.com> References: <1511038879500-0.post@n3.nabble.com> <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> <1511106295399-0.post@n3.nabble.com> Message-ID: Hello Hermes, As stated in my first answer, the only actually valuable thing to do to shorten the execution time is exec(SCI+"/modules/optimization/macros/numderivative.sci",-1) before the first call to numderivative() (through ode(), in your case). This will decrease the execution time by a factor of 2,33 (*105s*/45s, not 145/45. I made a mistake in my first answer). But this is not compatible with putting some "clear" instructions everywhere, as matlabers do. Any "clear" clears the redefinition done with exec() and so cancels the gain in speed. So if you are a "clear" addict, you should put it /before/ the exec(). Otherwise, each call to numderivative() will use it from it library and take 105s (in all) instead of 45s. I never ever used "clear" () in my Scilab work for 20 years. I don't need it in Scilab, if it does not apply to some explicitly named variables. Except the execstr() => try/catch, other modifications = partial vectorization are somewhat some hacks, and the gain is poor, and back-compatibility is of concern. This is why i did not attach them to my mail. It is possible to improve a lot the speed of numderivative() in the case of calling it for a whole set of points instead of only a single point as currently done. But this would need to completely overhaul and likely rewrite the code. But this will not be a big gain when calling it through ode(), because ode() calls the function with a scalar argument. With a complete fine profiling, there is likely some room for internal optimization of the existing code, but for a marginal gain (IMO less than a factor ~1.4 in speed). With 5.5.2, you can use add_profiling() and showprofile() to analyze the code efficiency, as i did. This will show you the parts of the code that take most of the execution time, so where to put your efforts to optimize it. Regards Samuel Le 19/11/2017 ? 16:44, Hermes a ?crit : > Hi samuel, > Such good news! to be able to see completely:"Scilab users - Mailing Lists > Archives" > > My questions to your answer. Thanks for them: > How can I reproduce this: > "Then, mainly, vectorizing the function to derive in order to accept x with > N columns instead of only 1, and changing numderivative () in order to be > able to work with this new vectorized profile, we get 29 s." > > You can guide me with your answer, if possible with an example: > "Improving numderivative () in order to be fully able to work with > vectorized functions should be possible, but then: ...." > regards > > I would very much like to be able to master numderivative. You could guide > me to a website where I can read and study the vectorization in Scilab. I > still do not feel comfortable with it. > Hermes > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Mon Nov 20 10:32:34 2017 From: richard.llom at gmail.com (Richard llom) Date: Mon, 20 Nov 2017 02:32:34 -0700 (MST) Subject: [Scilab-users] Trouble with reading whitespace separated csv In-Reply-To: References: <1510936915808-0.post@n3.nabble.com> <1d5c9c5a-1b5b-25cd-c7a8-31c62c3005ad@free.fr> Message-ID: <1511170354465-0.post@n3.nabble.com> Hi all, thanks for the replies, fscanfMat() does work fine. I suspected something like this with the changing spaces between the values, but had hoped csvread would concentrate multiple separators - but then again in an csv with several ',' one would indeed expect it to treat these as indvidual columns, so I think the behavior is fine. Regarding the file format, it is external, so not a choice I have... best regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Mon Nov 20 10:50:52 2017 From: herozigle at gmail.com (Hermes) Date: Mon, 20 Nov 2017 02:50:52 -0700 (MST) Subject: [Scilab-users] The numderivative function In-Reply-To: References: <1511038879500-0.post@n3.nabble.com> <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> <1511106295399-0.post@n3.nabble.com> Message-ID: <1511171452882-0.post@n3.nabble.com> Hi, When I execute the command: exec(SCI+"/modules/optimization/macros/numderivative.sci",-1); I get the following Scilab alert: exec('C:\Draghilev''sMethod_4.sce', -1) at line 14 of executed file C:\Draghilev'sMethod_4.sce at line -15 of executed file C:\Draghilev'sMethod_4C.sce exec: Cannot open file C:\PROGRA~1\SCILAB~1.0\modules\optimization\macros\numderivative.sci. the command is inserted in the script before calling the fumciont ode. it is right? Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Paul.Bignier at esi-group.com Mon Nov 20 10:58:21 2017 From: Paul.Bignier at esi-group.com (Paul Bignier) Date: Mon, 20 Nov 2017 09:58:21 +0000 Subject: [Scilab-users] The numderivative function In-Reply-To: <1511171452882-0.post@n3.nabble.com> References: <1511038879500-0.post@n3.nabble.com> <6b82b1da-59d7-9097-0c42-c4838605eaec@free.fr> <1511106295399-0.post@n3.nabble.com> , <1511171452882-0.post@n3.nabble.com> Message-ID: Hello Hermes, If you're using Scilab 6.0.0 the function numderivative is in the differential_equations module so you should use: exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1); If you want your script to be compatible with both versions you can add: v = getversion("scilab"); if v(1)<6 then exec(SCI+"\modules\optimization\macros\numderivative.sci", -1); else exec(SCI+"\modules\differential_equations\macros\numderivative.sci", -1); end Best regards, Paul Paul BIGNIER Development engineer ----------------------------------------------------------- ESI Group - Scilab 99 rue des Solets - 94513 Rungis, France Phone: +33.1.41.73.58.77 https://scilab.io https://esi-group.com ________________________________ From: users on behalf of Hermes Sent: Monday, November 20, 2017 10:50 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] The numderivative function Hi, When I execute the command: exec(SCI+"/modules/optimization/macros/numderivative.sci",-1); I get the following Scilab alert: exec('C:\Draghilev''sMethod_4.sce', -1) at line 14 of executed file C:\Draghilev'sMethod_4.sce at line -15 of executed file C:\Draghilev'sMethod_4C.sce exec: Cannot open file C:\PROGRA~1\SCILAB~1.0\modules\optimization\macros\numderivative.sci. the command is inserted in the script before calling the fumciont ode. it is right? Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Nov 21 16:38:42 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 21 Nov 2017 08:38:42 -0700 (MST) Subject: [Scilab-users] fortran example call_scilab api Message-ID: <1511278722216-0.post@n3.nabble.com> Hi, W7x64 scilab 6 + IntelVisualFortran I tried to build the project provided in scilab\modules\call_scilab\examples\call_scilab\fortran but compilation failed on : include 'stack.h' which is unknown with the usual path. May you explain which file was originally aimed to include ? Thanks, David -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amonmayr at laas.fr Tue Nov 21 17:29:46 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 21 Nov 2017 17:29:46 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBmb3J0cmFuIGV4YW1wbGUg?= =?utf-8?q?call=5Fscilab_api?= In-Reply-To: <1511278722216-0.post@n3.nabble.com> Message-ID: <7787-5a145480-1-4a08de00@94713166> Hello David, Did you try with scilab 5.5.2 on the same machine? There might be a bug in the example with scilab 6.0 as contrary to 5.5.2 we do not interact with the stack. Antoine Le Mardi, Novembre 21, 2017 16:38 CET, David Ch?ze a ?crit: > Hi, > > W7x64 scilab 6 + IntelVisualFortran > > I tried to build the project provided in > scilab\modules\call_scilab\examples\call_scilab\fortran but compilation > failed on : > include 'stack.h' > > which is unknown with the usual path. > > May you explain which file was originally aimed to include ? > > Thanks, > David > > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From richard.llom at gmail.com Tue Nov 21 17:41:40 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 21 Nov 2017 09:41:40 -0700 (MST) Subject: [Scilab-users] surf and %nan Message-ID: <1511282500272-0.post@n3.nabble.com> Hi all, I have a big matrix, which I want to surf plot. However there are actually only values for a non-rectangular shape and i want to blank out those other values (which are -999 by default). [a,b]=find(M==-999); M(a,b) = %nan; surf(M); However this gives me a weird all-black surf plot, with a Z up to -1000 ?? Am I'm missing something? cheers richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Tue Nov 21 18:19:51 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 17:19:51 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511282500272-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> Message-ID: %nan are not plotted in Scilab 5.5.2. Either some data point approaches -1000 or condition M==-999 fails to grab all non-valid entries. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Tuesday, November 21, 2017 5:42 PM To: users at lists.scilab.org Subject: [Scilab-users] surf and %nan Hi all, I have a big matrix, which I want to surf plot. However there are actually only values for a non-rectangular shape and i want to blank out those other values (which are -999 by default). [a,b]=find(M==-999); M(a,b) = %nan; surf(M); However this gives me a weird all-black surf plot, with a Z up to -1000 ?? Am I'm missing something? cheers richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From david.cheze at cea.fr Tue Nov 21 18:25:15 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 21 Nov 2017 10:25:15 -0700 (MST) Subject: [Scilab-users] ?==?utf-8?q? fortran example call_scilab api In-Reply-To: <7787-5a145480-1-4a08de00@94713166> References: <1511278722216-0.post@n3.nabble.com> <7787-5a145480-1-4a08de00@94713166> Message-ID: <1511285115976-0.post@n3.nabble.com> Hi Antoine, thanks for your comment. I've just tried on the same machine with scilab 5.5.1 (already installed), the compilation works fine but link failed: Error 1 error LNK2019: unresolved external symbol _inisci_ referenced in function _MAIN__ callsci.obj Error 2 error LNK2019: unresolved external symbol _scirun_ referenced in function _MAIN__ callsci.obj Error 3 error LNK2019: unresolved external symbol _matz_ referenced in function _MAIN__ callsci.obj calling convention issue with the underscore ? Do you where in core module directory I can find the header for the functions inisci, scirun and matz? In any case I would like also to call scilab 6 from fortran, under windows, if you have any other example visual studio project, any suggestion appreciated ! :) David -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Nov 21 18:49:33 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 21 Nov 2017 18:49:33 +0100 (CET) Subject: [Scilab-users] surf and %nan In-Reply-To: <1511282500272-0.post@n3.nabble.com> Message-ID: <872776304.407025204.1511286573493.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Richard, >----- Mail original ----- >Envoy?: Mardi 21 Novembre 2017 17:41:40 > >Hi all, >I have a big matrix, which I want to surf plot. However there are actually >only values for a non-rectangular shape and i want to blank out those other >values (which are -999 by default). > >[a,b]=find(M==-999); >M(a,b) = %nan; The syntax is: M(M==-999) = %nan; or M(find(M==-999)) = %nan; Then surf(M); should be OK. HTH Samuel From jrafaelbguerra at hotmail.com Tue Nov 21 20:01:40 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 19:01:40 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <872776304.407025204.1511286573493.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1511282500272-0.post@n3.nabble.com> <872776304.407025204.1511286573493.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: It is not the most compact form but I think there is no issue with original syntax proposed: [a,b]=find(M==-999); M(a,b) = %nan; -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Tuesday, November 21, 2017 6:50 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] surf and %nan Hello Richard, >----- Mail original ----- >Envoy?: Mardi 21 Novembre 2017 17:41:40 > >Hi all, >I have a big matrix, which I want to surf plot. However there are actually >only values for a non-rectangular shape and i want to blank out those other >values (which are -999 by default). > >[a,b]=find(M==-999); >M(a,b) = %nan; The syntax is: M(M==-999) = %nan; or M(find(M==-999)) = %nan; Then surf(M); should be OK. HTH Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Nov 21 20:40:38 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 21 Nov 2017 20:40:38 +0100 (CET) Subject: [Scilab-users] surf and %nan In-Reply-To: Message-ID: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> >It is not the most compact form but I think there is no issue with original syntax proposed: >[a,b]=find(M==-999); >M(a,b) = %nan; In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the vector of selected COLUMNS, no matter about the fact that a and b have here the same length and then could be -- erroneously -- considered as respective elementwise indices. This is why linearized indices must be used, as returned by i = find(..). --> m = int8(grand(5,5,"uin",0,9)) m = 2 1 5 0 9 2 9 5 9 9 4 5 0 4 3 5 8 6 7 9 4 3 9 6 6 --> m([2 3 5],[1 2 4]) ans = 2 9 9 4 5 4 4 3 6 --> m([2 3 5]',[1 2 4]') ans = 2 9 9 4 5 4 4 3 6 BR From jrafaelbguerra at hotmail.com Tue Nov 21 21:06:26 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 20:06:26 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: For the task requested the same M results are obtained with either syntax: x=1:100; y=1:200; M= x.*.y'; M(10,11:99)=-999; M(13,13)=-999; M2 = M; [a,b]=find(M==-999); M(a,b) = %nan; M2(M2==-999)= %nan; -->max(M2-M) ans = 0. -->min(M2-M) ans = 0. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Tuesday, November 21, 2017 8:41 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] surf and %nan >It is not the most compact form but I think there is no issue with original syntax proposed: >[a,b]=find(M==-999); >M(a,b) = %nan; In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the vector of selected COLUMNS, no matter about the fact that a and b have here the same length and then could be -- erroneously -- considered as respective elementwise indices. This is why linearized indices must be used, as returned by i = find(..). --> m = int8(grand(5,5,"uin",0,9)) m = 2 1 5 0 9 2 9 5 9 9 4 5 0 4 3 5 8 6 7 9 4 3 9 6 6 --> m([2 3 5],[1 2 4]) ans = 2 9 9 4 5 4 4 3 6 --> m([2 3 5]',[1 2 4]') ans = 2 9 9 4 5 4 4 3 6 BR -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Nov 21 21:34:31 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 20:34:31 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Thanks Samuel for highlighting this non trivial point. I take it back as the better test here below indicates that the two syntaxes are not equivalent: x=1:100; y=1:200; M= x.*.y'; M(10,11:99)=-999; M(13,13)=-999; M2 = M; [a,b]=find(M==-999); M(a,b) = %nan; M2(M2==-999)= %nan; M(isnan(M))=%pi; M2(isnan(M2))=%pi; -->max(M2-M) ans = 1283.8584 -->min(M2-M) ans = 0. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Tuesday, November 21, 2017 8:41 PM To: Users mailing list for Scilab > Subject: Re: [Scilab-users] surf and %nan >It is not the most compact form but I think there is no issue with original syntax proposed: >[a,b]=find(M==-999); >M(a,b) = %nan; In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the vector of selected COLUMNS, no matter about the fact that a and b have here the same length and then could be -- erroneously -- considered as respective elementwise indices. This is why linearized indices must be used, as returned by i = find(..). --> m = int8(grand(5,5,"uin",0,9)) m = 2 1 5 0 9 2 9 5 9 9 4 5 0 4 3 5 8 6 7 9 4 3 9 6 6 --> m([2 3 5],[1 2 4]) ans = 2 9 9 4 5 4 4 3 6 --> m([2 3 5]',[1 2 4]') ans = 2 9 9 4 5 4 4 3 6 BR -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Nov 21 21:59:44 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 20:59:44 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: The original syntax can be fixed by feeding the a,b indices found as a 2xN matrix [a;b] into M: x=1:100; y=1:200; M= x.*.y'; M(10,11:99)=-999; M(13,13)=-999; M2 = M; [a,b]=find(M==-999); M([a;b]]) = %nan; // proper away of feeding indices into M M2(M2==-999)= %nan; M(isnan(M))=%pi; M2(isnan(M2))=%pi; -->max(M2-M) ans = 0. -->min(M2-M) ans = 0. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Tuesday, November 21, 2017 8:41 PM To: Users mailing list for Scilab > Subject: Re: [Scilab-users] surf and %nan >It is not the most compact form but I think there is no issue with original syntax proposed: >[a,b]=find(M==-999); >M(a,b) = %nan; In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the vector of selected COLUMNS, no matter about the fact that a and b have here the same length and then could be -- erroneously -- considered as respective elementwise indices. This is why linearized indices must be used, as returned by i = find(..). --> m = int8(grand(5,5,"uin",0,9)) m = 2 1 5 0 9 2 9 5 9 9 4 5 0 4 3 5 8 6 7 9 4 3 9 6 6 --> m([2 3 5],[1 2 4]) ans = 2 9 9 4 5 4 4 3 6 --> m([2 3 5]',[1 2 4]') ans = 2 9 9 4 5 4 4 3 6 BR -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Nov 21 22:02:18 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 21 Nov 2017 21:02:18 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1880469089.407416004.1511293238865.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: (now without a typo) The original syntax can be fixed by feeding the a,b indices found as a 2xN matrix [a;b] into M: x=1:100; y=1:200; M= x.*.y'; M(10,11:99)=-999; M(13,13)=-999; M2 = M; [a,b]=find(M==-999); M([a;b]) = %nan; // proper away of feeding indices into M M2(M2==-999)= %nan; M(isnan(M))=%pi; M2(isnan(M2))=%pi; -->max(M2-M) ans = 0. -->min(M2-M) ans = 0. Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Wed Nov 22 09:33:16 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 22 Nov 2017 01:33:16 -0700 (MST) Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> Message-ID: <1511339596129-0.post@n3.nabble.com> Hey Rafael & Samuel, thanks for the replies. However I'm really having a hard time to process this data. This is the raw data in question: ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_diffuse/grids_germany_monthly_radiation_diffuse_201601.zip My minimal script: asc_list = listfiles('*.asc'); asc_idx = 1; asc_file = asc_list(asc_idx); [asc_data, comments] = fscanfMat(asc_file); [a,b] = find(asc_data==-999); asc_data(a,b) = %nan; surf(asc_data); Right now it even fails at processing the -999 to nans... It's like I'm hitting bugs in scilabs? regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Wed Nov 22 10:22:00 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 22 Nov 2017 09:22:00 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511339596129-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> Message-ID: Hi Richard, Scilab 5.5.2: had to use stacksize('max'), data loaded but surf would not display 866 x 654 matrix Scilab 6: it did not work fine with one of the following syntaxes: asc_data(asc_data==-999) = %nan surf(asc_data); or with: ix = find(asc_data==-999) asc_data(ix) = %nan surf(asc_data); Note that as shown by Samuel and in the test I produced yesterday, the syntax in your original code produces wrong results: [a,b] = find(asc_data==-999); asc_data(a,b) = %nan; To use the indices a,b this should be modified as: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; However this last syntax seemed to work on yesterday's test on a much smaller matrix but it is not working on your big one... Not sure if this is a bug or problem with the syntax, needs further investigation. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Wednesday, November 22, 2017 9:33 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Hey Rafael & Samuel, thanks for the replies. However I'm really having a hard time to process this data. This is the raw data in question: ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_diffuse/grids_germany_monthly_radiation_diffuse_201601.zip My minimal script: asc_list = listfiles('*.asc'); asc_idx = 1; asc_file = asc_list(asc_idx); [asc_data, comments] = fscanfMat(asc_file); [a,b] = find(asc_data==-999); asc_data(a,b) = %nan; surf(asc_data); Right now it even fails at processing the -999 to nans... It's like I'm hitting bugs in scilabs? regards richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Wed Nov 22 10:55:19 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 22 Nov 2017 02:55:19 -0700 (MST) Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> Message-ID: <1511344519236-0.post@n3.nabble.com> Ok, I corrected the syntax and it works now with regard to the nans: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; The black color btw, seems to be from the edge color, if I do surf(asc_data,'edgecol','white'); it is all white. How can I turn the egdecolor completely off? preferably via suh = get('hdl'); suh.edgecolor = 0; (which doesn't work) regards richard BTW: I'm usinge Win10 and scilab 6 here at work. At home I could test on linux and scilab, however I kind of doubt it is an OS problem. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Wed Nov 22 11:10:19 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 22 Nov 2017 10:10:19 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> Message-ID: (sorry for the typo - corrected below. Interesting that the last syntax worked for you on your big matrix, it failed for me on Win 7, Scilab 6.0.0) Hi Richard, Scilab 5.5.2: had to use stacksize('max'), data loaded but surf would not display 866 x 654 matrix Scilab 6: it did work fine with one of the following syntaxes: asc_data(asc_data==-999) = %nan surf(asc_data); or with: ix = find(asc_data==-999) asc_data(ix) = %nan surf(asc_data); Note that as shown by Samuel and in the test I produced yesterday, the syntax in your original code produces wrong results: [a,b] = find(asc_data==-999); asc_data(a,b) = %nan; To use the indices a,b this should be modified as: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; However this last syntax seemed to work on yesterday's test on a much smaller matrix but it is not working on your big one... Not sure if this is a bug or problem with the syntax, needs further investigation. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Wednesday, November 22, 2017 9:33 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Hey Rafael & Samuel, thanks for the replies. However I'm really having a hard time to process this data. This is the raw data in question: ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_diffuse/grids_germany_monthly_radiation_diffuse_201601.zip My minimal script: asc_list = listfiles('*.asc'); asc_idx = 1; asc_file = asc_list(asc_idx); [asc_data, comments] = fscanfMat(asc_file); [a,b] = find(asc_data==-999); asc_data(a,b) = %nan; surf(asc_data); Right now it even fails at processing the -999 to nans... It's like I'm hitting bugs in scilabs? regards richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Nov 22 16:39:53 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 22 Nov 2017 15:39:53 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511344519236-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> Message-ID: Try this: surf(asc_data); f=gcf(); f.color_map=hotcolormap(64); h=get("hdl") h.color_mode= -2; //color according to z h.color_flag= 2; //remove the facets boundary [cid:image001.png at 01D363B0.84358410] Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Wednesday, November 22, 2017 10:55 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Ok, I corrected the syntax and it works now with regard to the nans: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; The black color btw, seems to be from the edge color, if I do surf(asc_data,'edgecol','white'); it is all white. How can I turn the egdecolor completely off? preferably via suh = get('hdl'); suh.edgecolor = 0; (which doesn't work) regards richard BTW: I'm usinge Win10 and scilab 6 here at work. At home I could test on linux and scilab, however I kind of doubt it is an OS problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 28522 bytes Desc: image001.png URL: From richard.llom at gmail.com Thu Nov 23 14:28:10 2017 From: richard.llom at gmail.com (Richard llom) Date: Thu, 23 Nov 2017 06:28:10 -0700 (MST) Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> Message-ID: <1511443690493-0.post@n3.nabble.com> Ah, thank you, this looks good! With my syntax: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; I was occasionally still seeing -999 values in the plot (although they weren't in asc_data), I suspect some memory issues maybe... However with asc_data(asc_data==-999) = %nan it is working on every pass. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Thu Nov 23 15:45:10 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 23 Nov 2017 14:45:10 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511443690493-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> <1511443690493-0.post@n3.nabble.com> Message-ID: Not sure if this should be considered a bug in Scilab 6.0 but it looks odd enough. If you have time, it might be worth reporting it -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Thursday, November 23, 2017 2:28 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Ah, thank you, this looks good! With my syntax: [a,b] = find(asc_data==-999); asc_data([a;b]) = %nan; I was occasionally still seeing -999 values in the plot (although they weren't in asc_data), I suspect some memory issues maybe... However with asc_data(asc_data==-999) = %nan it is working on every pass. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From richard.llom at gmail.com Thu Nov 23 16:21:26 2017 From: richard.llom at gmail.com (Richard llom) Date: Thu, 23 Nov 2017 08:21:26 -0700 (MST) Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> <1511443690493-0.post@n3.nabble.com> Message-ID: <1511450486484-0.post@n3.nabble.com> Actually, I still have a hard time to properly display germany. a = 1:size(asc_data,1); b = 1:size(asc_data,2); grayplot(a,b,asc_data) neither grayplot(b,a,asc_data') puts it in the right direction...? Reference: https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Deutschland_topo.jpg/800px-Deutschland_topo.jpg Regarding the bug I will do some further investigations first. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Thu Nov 23 17:23:33 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 23 Nov 2017 16:23:33 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511450486484-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> <1511443690493-0.post@n3.nabble.com> <1511450486484-0.post@n3.nabble.com> Message-ID: This should fix some of Germany's problems: [a,b] = size(asc_data); x = 1:a; y = 1:b; grayplot(x,y,asc_data) a=gca(); a.rotation_angles=[0 0]; f=gcf(); f.color_map=hotcolormap(64); [cid:image003.jpg at 01D3647F.C8497D80] From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Thursday, November 23, 2017 4:21 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Actually, I still have a hard time to properly display germany. a = 1:size(asc_data,1); b = 1:size(asc_data,2); grayplot(a,b,asc_data) neither grayplot(b,a,asc_data') puts it in the right direction...? Reference: https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Deutschland_topo.jpg/800px-Deutschland_topo.jpg Regarding the bug I will do some further investigations first. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 16927 bytes Desc: image003.jpg URL: From richard.llom at gmail.com Fri Nov 24 11:14:50 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 24 Nov 2017 03:14:50 -0700 (MST) Subject: [Scilab-users] surf and %nan In-Reply-To: References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> <1511443690493-0.post@n3.nabble.com> <1511450486484-0.post@n3.nabble.com> Message-ID: <1511518490029-0.post@n3.nabble.com> Thanks Rafael! Never would have guessed this one (a.rotation_angles=[0 0];)! -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From richard.llom at gmail.com Fri Nov 24 11:51:26 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 24 Nov 2017 03:51:26 -0700 (MST) Subject: [Scilab-users] datatips and grayplot Message-ID: <1511520686995-0.post@n3.nabble.com> In my map / grayplot (see other thread), I would like to insert a datatip. However from what I read in the help, grayplot doesn't seem to be supported at all ... :-( https://help.scilab.org/docs/6.0.0/en_US/datatips.html Any clues, is there an alternative way? regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From richard.llom at gmail.com Fri Nov 24 12:19:26 2017 From: richard.llom at gmail.com (Richard llom) Date: Fri, 24 Nov 2017 04:19:26 -0700 (MST) Subject: [Scilab-users] datatips and grayplot In-Reply-To: <1511520686995-0.post@n3.nabble.com> References: <1511520686995-0.post@n3.nabble.com> Message-ID: <1511522366238-0.post@n3.nabble.com> Nvm, figured this one out. I will just plot a single point on the spot and then use datatips on this one... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Fri Nov 24 12:27:29 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 24 Nov 2017 11:27:29 +0000 Subject: [Scilab-users] surf and %nan In-Reply-To: <1511518490029-0.post@n3.nabble.com> References: <1511282500272-0.post@n3.nabble.com> <1511339596129-0.post@n3.nabble.com> <1511344519236-0.post@n3.nabble.com> <1511443690493-0.post@n3.nabble.com> <1511450486484-0.post@n3.nabble.com> <1511518490029-0.post@n3.nabble.com> Message-ID: Richard, It is simpler to properly define the x and y axes and to transpose the input data matrix: [a,b] = size(asc_data); y = a:-1:1; x = 1:b; asc_data = asc_data'; grayplot(x,y,asc_data) f=gcf(); f.color_map=hotcolormap(64); [cid:image001.jpg at 01D3651F.96434960] Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Richard llom Sent: Friday, November 24, 2017 11:15 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] surf and %nan Thanks Rafael! Never would have guessed this one (a.rotation_angles=[0 0];)! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 11590 bytes Desc: image001.jpg URL: From sgougeon at free.fr Sun Nov 26 17:22:51 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 26 Nov 2017 17:22:51 +0100 Subject: [Scilab-users] Atoms login In-Reply-To: References: Message-ID: Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit : > Hello, > > Is anyone having trouble logging into their ATOMS account? I'm unable > to log in or create a new account. At last, after a 5-months-long interruption, the ATOMS server has reopened this week! The login works with the former accounts (no need to create new ones for authors already having one). The pages to administrate modules are accessible. This is certainly the best piece of news of the month, on the Scilab side. So, now that some major bugs have also been fixed last summer on the ATOMS GUI side, publishing and updating should be easier on both server and GUI sides, at least for external modules not requiring to be compiled by the server. Thanks! Samuel From shorne at energetiq.com Sun Nov 26 18:48:57 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Sun, 26 Nov 2017 12:48:57 -0500 Subject: [Scilab-users] Atoms login In-Reply-To: Message-ID: Rr Sent from IBM Verse Samuel Gougeon --- Re: [Scilab-users] Atoms login --- From:"Samuel Gougeon" To:"Users mailing list for Scilab" Date:Sun, Nov 26, 2017 11:21 AMSubject:Re: [Scilab-users] Atoms login Le 25/09/2017 ? 23:07, Shamika Mohanan a ?crit :> Hello,>> Is anyone having trouble logging into their ATOMS account? I'm unable > to log in or create a new account.At last, after a 5-months-long interruption, the ATOMS server has reopened this week! The login works with the former accounts (no need to create new ones for authors already having one). The pages to administrate modules are accessible.This is certainly the best piece of news of the month, on the Scilab side.So, now that some major bugs have also been fixed last summer on the ATOMS GUIside, publishing and updating should be easier on both server and GUI sides,at least for external modules not requiring to be compiled by the server.Thanks!Samuel_______________________________________________users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Mon Nov 27 11:19:55 2017 From: richard.llom at gmail.com (Richard llom) Date: Mon, 27 Nov 2017 03:19:55 -0700 (MST) Subject: [Scilab-users] datatips and grayplot In-Reply-To: <1511522366238-0.post@n3.nabble.com> References: <1511520686995-0.post@n3.nabble.com> <1511522366238-0.post@n3.nabble.com> Message-ID: <1511777995107-0.post@n3.nabble.com> Still, kind of 'meh'. Because this way I cannot access the z-value... Is there a way to align the text in the box (instead of centered)? regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Nov 27 13:50:01 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 27 Nov 2017 13:50:01 +0100 (CET) Subject: [Scilab-users] datatips and grayplot In-Reply-To: <1511777995107-0.post@n3.nabble.com> Message-ID: <1494968148.437890283.1511787001029.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Richard, >Still, kind of 'meh'. Because this way I cannot access the z-value... You may use param3d() to plot a fake 3D polyline to support and "overlay" datatips. Then the datatip will include Z by default. If you are running 6.0: you may also try to use the new .display_components datatip field https://help.scilab.org/docs/6.0.0/en_US/datatip_properties.html Never tried Z whether gca().view=="2d". >Is there a way to align the text in the box (instead of centered)? AFAIRemember, it used to be possible with the former datatip implementation up to 5.3 (or 5.4?). But this feature has disappeared, as still a bunch of other graphic features, since 5.4. Indeed, this compulsory centering is rather boring, to say few. Samuel From herozigle at gmail.com Tue Nov 28 11:12:47 2017 From: herozigle at gmail.com (Hermes) Date: Tue, 28 Nov 2017 03:12:47 -0700 (MST) Subject: [Scilab-users] find a zero of a system of nonlinear functions Message-ID: <1511863967885-0.post@n3.nabble.com> fsolve I find a zero of a system of nonlinear functions: y = 3 - 10 * x + 2 * x ^ 2 + 3 * x ^ 3 in the range x = -3: 0.01: 3 but fsolve returns as a solution a vector (in the scrip yr) of the same size as x. I have varied the precision tolerance h to several values 1.d-3 to% eps. but I always get that infinity of solutions. the only solution that I found is shown in the script. Is it possible to improve this? funcprot(0); function y = poly_cubic(x) y = 3 - 10*x + 2*x^2 + 3*x^3; endfunction x=-3:0.01:3; clf() plot(x,poly_cubic); disp("-2.3027756 0.3333333 1.3027756 ", "Roots to y = 3 - 10*x + 2*x^2 + 3*x^3") h=%eps; yr=fsolve(x,poly_cubic,h) RR=strtod(unique(string(yr))); RR=gsort(RR,'g','i');//sort the elements of the array RR in the increasing order. disp(RR,"Roots values f(x)") plot(RR,poly_cubic,"ro") -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From richard.llom at gmail.com Tue Nov 28 11:23:38 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 28 Nov 2017 03:23:38 -0700 (MST) Subject: [Scilab-users] datatips and grayplot In-Reply-To: <1494968148.437890283.1511787001029.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1511520686995-0.post@n3.nabble.com> <1511522366238-0.post@n3.nabble.com> <1511777995107-0.post@n3.nabble.com> <1494968148.437890283.1511787001029.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1511864618917-0.post@n3.nabble.com> Hi Samuel, I figured I had to customize the datatip text anyway, so the missing z-value didn't really matter in this case... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From denis.crete at thalesgroup.com Tue Nov 28 11:31:13 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 28 Nov 2017 11:31:13 +0100 Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <1511863967885-0.post@n3.nabble.com> References: <1511863967885-0.post@n3.nabble.com> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> Hello The first argument in fsolve is not the range of the variable in which the solution is looked for. Instead it is a guessed value: // Start of code function y = poly_cubic(x) y = 3 - 10*x + 2*x^2 + 3*x^3; endfunction yr=fsolve(1.3,poly_cubic,%eps) // yr = 1.3027756 yr=fsolve(-2,poly_cubic,%eps) // yr = - 2.3027756 yr=fsolve(0,poly_cubic,%eps) // yr = 0.3333333 // End of code By the way, for polynoms, it is more straightforward to do : p=[3 2 -10 3]; roots(p) // ans = - 2.3027756 1.3027756 0.3333333 HTH Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Hermes Envoy??: mardi 28 novembre 2017 11:13 ??: users at lists.scilab.org Objet?: [Scilab-users] find a zero of a system of nonlinear functions fsolve I find a zero of a system of nonlinear functions: y = 3 - 10 * x + 2 * x ^ 2 + 3 * x ^ 3 in the range x = -3: 0.01: 3 but fsolve returns as a solution a vector (in the scrip yr) of the same size as x. I have varied the precision tolerance h to several values 1.d-3 to% eps. but I always get that infinity of solutions. the only solution that I found is shown in the script. Is it possible to improve this? funcprot(0); function y = poly_cubic(x) y = 3 - 10*x + 2*x^2 + 3*x^3; endfunction x=-3:0.01:3; clf() plot(x,poly_cubic); disp("-2.3027756 0.3333333 1.3027756 ", "Roots to y = 3 - 10*x + 2*x^2 + 3*x^3") h=%eps; yr=fsolve(x,poly_cubic,h) RR=strtod(unique(string(yr))); RR=gsort(RR,'g','i');//sort the elements of the array RR in the increasing order. disp(RR,"Roots values f(x)") plot(RR,poly_cubic,"ro") -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From herozigle at gmail.com Tue Nov 28 11:58:34 2017 From: herozigle at gmail.com (Hermes) Date: Tue, 28 Nov 2017 03:58:34 -0700 (MST) Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> References: <1511863967885-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> Message-ID: <1511866714447-0.post@n3.nabble.com> I have tried to reproduce what can be read in this document, https://ljk.imag.fr/membres/Bernard.Ycart/mel/ds/ds.pdf , on page 36. I find it interesting to introduce a range as an initial value. I use otras funciones y obtuve los resultados esperados. function y=f(x) y=exp(-x.^2)*cos(4*x); endfunction function y = B(x) y = besselj(40,x+cos(x)); endfunction I would have liked to replace this script with the fsolve function: function root=brute_force_root_finder(F, a, b, n) x = linspace(a, b, n); n=size(x,"*")-1; y = feval(x,F); root = []; for i=1:n-1 if y(i)*y(i+1) < 0 then root($+i) = x(i) - (x(i+1) - x(i))/(y(i+1) - y(i))*y(i);//root = x[i] - (x[i+1] - x[i])/(y[i+1] - y[i])*y[i] end end endfunction Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From denis.crete at thalesgroup.com Tue Nov 28 12:30:36 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 28 Nov 2017 12:30:36 +0100 Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <1511866714447-0.post@n3.nabble.com> References: <1511863967885-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> <1511866714447-0.post@n3.nabble.com> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D65B776A@THSONEA01CMS04P.one.grp> Hello, I am not convinced that in the quoted document the first argument is a range: the values returned by the function fsolve are generally not lying in the intended "range"; if you try: fsolve([0.4,0.45,0.5],f) ans = - 1. 6. 228. If I understand correctly, the first argument is considered as a vector, i.e. that the function f takes a vector as argument and returns a vector of the same dimension, with elements sin(2*%pi*xi). In any case, it is quite strange to give 0.5 as initial value for this search of root, as at this particular point f=1 and its slope is zero !!! It explains why very strange values are returned for the roots. HTH Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Hermes Envoy??: mardi 28 novembre 2017 11:59 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] find a zero of a system of nonlinear functions I have tried to reproduce what can be read in this document, https://ljk.imag.fr/membres/Bernard.Ycart/mel/ds/ds.pdf , on page 36. I find it interesting to introduce a range as an initial value. I use otras funciones y obtuve los resultados esperados. function y=f(x) y=exp(-x.^2)*cos(4*x); endfunction function y = B(x) y = besselj(40,x+cos(x)); endfunction I would have liked to replace this script with the fsolve function: function root=brute_force_root_finder(F, a, b, n) x = linspace(a, b, n); n=size(x,"*")-1; y = feval(x,F); root = []; for i=1:n-1 if y(i)*y(i+1) < 0 then root($+i) = x(i) - (x(i+1) - x(i))/(y(i+1) - y(i))*y(i);//root = x[i] - (x[i+1] - x[i])/(y[i+1] - y[i])*y[i] end end endfunction Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From herozigle at gmail.com Tue Nov 28 13:03:47 2017 From: herozigle at gmail.com (Hermes) Date: Tue, 28 Nov 2017 05:03:47 -0700 (MST) Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D65B776A@THSONEA01CMS04P.one.grp> References: <1511863967885-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> <1511866714447-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B776A@THSONEA01CMS04P.one.grp> Message-ID: <1511870627240-0.post@n3.nabble.com> -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Tue Nov 28 13:26:37 2017 From: herozigle at gmail.com (Hermes) Date: Tue, 28 Nov 2017 05:26:37 -0700 (MST) Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <1511863967885-0.post@n3.nabble.com> References: <1511863967885-0.post@n3.nabble.com> Message-ID: <1511871997668-0.post@n3.nabble.com> The problem that I present is that at times Scilab stops. And they show the next alert: Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From denis.crete at thalesgroup.com Tue Nov 28 14:15:21 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 28 Nov 2017 14:15:21 +0100 Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <1511871997668-0.post@n3.nabble.com> References: <1511863967885-0.post@n3.nabble.com> <1511871997668-0.post@n3.nabble.com> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D65B7A6B@THSONEA01CMS04P.one.grp> This is a strong indication that Scilab is trying to solve a problem in the 401-dimension space (as opposed to solving 401 equations in 1D) when you give the vector 0:0.01:4 as first argument, as I suspected in my previous message. In addition, I stress the point that looking at the result returned by fsolve, the roots are not contained in the so-called "range" that you think you define in the first argument of fsolve: either fsolve has a bug, or the first argument you give is NOT considered as a range, whatever expression you use. Best regards Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Hermes Envoy??: mardi 28 novembre 2017 13:27 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] find a zero of a system of nonlinear functions The problem that I present is that at times Scilab stops. And they show the next alert: Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Nov 28 15:12:13 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 28 Nov 2017 15:12:13 +0100 Subject: [Scilab-users] find a zero of a system of nonlinear functions In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D65B776A@THSONEA01CMS04P.one.grp> References: <1511863967885-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7597@THSONEA01CMS04P.one.grp> <1511866714447-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B776A@THSONEA01CMS04P.one.grp> Message-ID: Le 28/11/2017 ? 12:30, CRETE Denis a ?crit : > Hello, > I am not convinced that in the quoted document the first argument is a range: > the values returned by the function fsolve are generally not lying in the intended "range"; > if you try: > fsolve([0.4,0.45,0.5],f) > ans = > - 1. 6. 228. > If I understand correctly, the first argument is considered as a vector, i.e. that the function f takes a vector as argument and returns a vector of the same dimension, with elements sin(2*%pi*xi). You are all right, Denis. But this feature could actually be used to parallelize computations of several roots, provided that the function is well vectorized. But it's not the case: there is a mistake: Le 28/11/2017 ? 11:58, Hermes a ?crit : > .../... > function y=f(x) > y=exp(-x.^2)*cos(4*x); > endfunction .* cos() should be used instead of *cos() Le 28/11/2017 ? 11:12, Hermes a ?crit : > .../... > function y = poly_cubic(x) > y = 3 - 10*x + 2*x^2 + 3*x^3; > endfunction This one is definitely not vectorized. .^should be used instead of ^. HTH Samuel From richard.llom at gmail.com Tue Nov 28 15:30:45 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 28 Nov 2017 07:30:45 -0700 (MST) Subject: [Scilab-users] Find the error Message-ID: <1511879445755-0.post@n3.nabble.com> Hello, when trying to read in this file: ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip with: M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') I'm getting an error message. I suppose there is something wrong in that file, but what and where exactly? Not directly a Scilab problem (except for the fact that the 'fscanfMat' error message could be more verbose), but maybe someone here has an idea how to find the error... Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From grocer.toolbox at gmail.com Tue Nov 28 15:44:35 2017 From: grocer.toolbox at gmail.com (=?utf-8?Q?=C3=89ric_Dubois?=) Date: Tue, 28 Nov 2017 15:44:35 +0100 Subject: [Scilab-users] Find the error In-Reply-To: <1511879445755-0.post@n3.nabble.com> References: <1511879445755-0.post@n3.nabble.com> Message-ID: Hello Maybe you could unzip the files before trying to read it? ?ric Envoy? de mon iPhone > Le 28 nov. 2017 ? 15:30, Richard llom a ?crit : > > Hello, > when trying to read in this file: > ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip > with: > M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') > > I'm getting an error message. I suppose there is something wrong in that > file, but what and where exactly? > > Not directly a Scilab problem (except for the fact that the 'fscanfMat' > error message could be more verbose), but maybe someone here has an idea how > to find the error... > > Thanks > richard > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Nov 28 16:01:37 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 28 Nov 2017 16:01:37 +0100 Subject: [Scilab-users] Find the error In-Reply-To: <1511879445755-0.post@n3.nabble.com> References: <1511879445755-0.post@n3.nabble.com> Message-ID: Le 28/11/2017 ? 15:30, Richard llom a ?crit : > Hello, > when trying to read in this file: > ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip I don't get any file in this zipped archive. 0 k. From denis.crete at thalesgroup.com Tue Nov 28 16:06:29 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 28 Nov 2017 16:06:29 +0100 Subject: [Scilab-users] Find the error In-Reply-To: References: <1511879445755-0.post@n3.nabble.com> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174D65B7F3E@THSONEA01CMS04P.one.grp> When the header is stripped off, there is no error: M=fscanfMat('grids_germany_monthly_radiation_direct_201706.asc'); -->size(M) ans = 866. 654. -->max(M) ans = 136.16 -->min(M(M>-999)) ans = 59. Denis -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de ?ric Dubois Envoy??: mardi 28 novembre 2017 15:45 ??: Users mailing list for Scilab Objet?: Re: [Scilab-users] Find the error Hello Maybe you could unzip the files before trying to read it? ?ric Envoy? de mon iPhone > Le 28 nov. 2017 ? 15:30, Richard llom a ?crit : > > Hello, > when trying to read in this file: > ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/gr > ids_germany_monthly_radiation_direct_201706.zip > with: > M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') > > I'm getting an error message. I suppose there is something wrong in > that file, but what and where exactly? > > Not directly a Scilab problem (except for the fact that the 'fscanfMat' > error message could be more verbose), but maybe someone here has an > idea how to find the error... > > Thanks > richard > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f26 > 02246.html _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From richard.llom at gmail.com Tue Nov 28 17:05:40 2017 From: richard.llom at gmail.com (Richard llom) Date: Tue, 28 Nov 2017 09:05:40 -0700 (MST) Subject: [Scilab-users] Find the error In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D65B7F3E@THSONEA01CMS04P.one.grp> References: <1511879445755-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7F3E@THSONEA01CMS04P.one.grp> Message-ID: <1511885140519-0.post@n3.nabble.com> Hey all, @Denis Very strange. For me it doesn't change if I strip the header of or not, I get both times an error... @Samuel For me it unpacks a ~3 MB big file. @Eric yes, I'm unzipping them ... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From j-lan at online.no Tue Nov 28 17:53:59 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Tue, 28 Nov 2017 17:53:59 +0100 Subject: [Scilab-users] Find the error In-Reply-To: <1511879445755-0.post@n3.nabble.com> References: <1511879445755-0.post@n3.nabble.com> Message-ID: <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> On 28.11.2017 15:30, Richard llom wrote: > Hello, > when trying to read in this file: > ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip > with: > M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') > > I'm getting an error message. I suppose there is something wrong in that > file, but what and where exactly? > > Not directly a Scilab problem (except for the fact that the 'fscanfMat' > error message could be more verbose), but maybe someone here has an idea how > to find the error... > > Thanks > richard > This is what I get when using csvRead. It seems to be OK up to row? 558(after the header) - I renamed the file t.txt. mmm=csvRead("t.txt"," ",[],[],[],[],,28); Warning: Inconsistency found in the columns. At line 559, found 1307 columns while the previous had 654. csvRead: can not read file t.txt: Error in the column structure Jan From j-lan at online.no Tue Nov 28 18:38:38 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Tue, 28 Nov 2017 18:38:38 +0100 Subject: [Scilab-users] Find the error -line length In-Reply-To: <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> References: <1511879445755-0.post@n3.nabble.com> <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> Message-ID: <50b84963-dbf4-e7d8-5a03-aa479b61ca91@online.no> On 28.11.2017 17:53, Jan ?ge Langeland wrote: > > > On 28.11.2017 15:30, Richard llom wrote: >> Hello, >> when trying to read in this file: >> ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip >> >> with: >> M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') >> >> I'm getting an error message. I suppose there is something wrong in that >> file, but what and where exactly? >> >> Not directly a Scilab problem (except for the fact that the 'fscanfMat' >> error message could be more verbose), but maybe someone here has an >> idea how >> to find the error... >> >> Thanks >> richard >> > This is what I get when using csvRead. It seems to be OK up to row? > 558(after the header) - I renamed the file t.txt. > > mmm=csvRead("t.txt"," ",[],[],[],[],,28); > Warning: Inconsistency found in the columns. At line 559, found 1307 > columns while the previous had 654. > > csvRead: can not read file t.txt: Error in the column structure > > Jan It has to do with the line length , try to replace -999 with -9 Jan From sgougeon at free.fr Tue Nov 28 18:52:26 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 28 Nov 2017 18:52:26 +0100 Subject: [Scilab-users] Find the error In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174D65B7F3E@THSONEA01CMS04P.one.grp> References: <1511879445755-0.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174D65B7F3E@THSONEA01CMS04P.one.grp> Message-ID: Le 28/11/2017 ? 16:06, CRETE Denis a ?crit : > When the header is stripped off, there is no error: > M=fscanfMat('grids_germany_monthly_radiation_direct_201706.asc'); I confirm. After using another web browser to download the file, and after removing the header, fscanfMat() works like a charm. Samuel From jrafaelbguerra at hotmail.com Tue Nov 28 18:58:44 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 28 Nov 2017 17:58:44 +0000 Subject: [Scilab-users] Find the error -line length In-Reply-To: <50b84963-dbf4-e7d8-5a03-aa479b61ca91@online.no> References: <1511879445755-0.post@n3.nabble.com> <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> <50b84963-dbf4-e7d8-5a03-aa479b61ca91@online.no> Message-ID: In Win7 Scilab 6.0.0 it only worked with Jan's recommendation (replacing -999 to -9), with or without header. The original file seems to have numeric data lines with total number of characters varying from 3270 to 4172 per row. There must be a limitation somewhere, in Windows or Scilab 6.0.0 ? [cid:image001.jpg at 01D3687A.E8881E90] Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Jan ?ge Langeland Sent: Tuesday, November 28, 2017 6:39 PM To: Users mailing list for Scilab ; Richard llom Subject: Re: [Scilab-users] Find the error -line length On 28.11.2017 17:53, Jan ?ge Langeland wrote: > > > On 28.11.2017 15:30, Richard llom wrote: >> Hello, >> when trying to read in this file: >> ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip >> >> with: >> M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc') >> >> I'm getting an error message. I suppose there is something wrong in that >> file, but what and where exactly? >> >> Not directly a Scilab problem (except for the fact that the 'fscanfMat' >> error message could be more verbose), but maybe someone here has an >> idea how >> to find the error... >> >> Thanks >> richard >> > This is what I get when using csvRead. It seems to be OK up to row > 558(after the header) - I renamed the file t.txt. > > mmm=csvRead("t.txt"," ",[],[],[],[],,28); > Warning: Inconsistency found in the columns. At line 559, found 1307 > columns while the previous had 654. > > csvRead: can not read file t.txt: Error in the column structure > > Jan It has to do with the line length , try to replace -999 with -9 Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 10634 bytes Desc: image001.jpg URL: From j-lan at online.no Wed Nov 29 09:44:59 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 29 Nov 2017 09:44:59 +0100 Subject: [Scilab-users] Find the error -line length In-Reply-To: References: <1511879445755-0.post@n3.nabble.com> <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> <50b84963-dbf4-e7d8-5a03-aa479b61ca91@online.no> Message-ID: On 28.11.2017 18:58, Rafael Guerra wrote: > > In Win7 Scilab 6.0.0 it only worked with Jan's recommendation > (replacing -999 to -9), with or without header. > > The original file seems to have numeric data lines with total number > of characters varying from 3270 to 4172 per row. > > There must be a limitation somewhere, in Windows or Scilab 6.0.0 ? > > > Regards, > > Rafael > > Actually, just making? sure the first data line the longest seems to work too, for instance by adding spaces to it. Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.llom at gmail.com Wed Nov 29 11:15:04 2017 From: richard.llom at gmail.com (Richard llom) Date: Wed, 29 Nov 2017 03:15:04 -0700 (MST) Subject: [Scilab-users] Find the error -line length In-Reply-To: References: <1511879445755-0.post@n3.nabble.com> <39fdcbbf-9b45-bec2-e8ec-95276bffe224@online.no> <50b84963-dbf4-e7d8-5a03-aa479b61ca91@online.no> Message-ID: <1511950504683-0.post@n3.nabble.com> On 29.11.17 9:44, JLan wrote: > On 28.11.2017 18:58, Rafael Guerra wrote: >> >> In Win7 Scilab 6.0.0 it only worked with Jan's recommendation >> (replacing -999 to -9), with or without header. >> >> The original file seems to have numeric data lines with total number >> of characters varying from 3270 to 4172 per row. >> >> There must be a limitation somewhere, in Windows or Scilab 6.0.0 ? >> > Actually, just making? sure the first data line the longest seems to > work too, for instance by adding spaces to it. > Same for me with or w/o header doesn't matter. However either replacing -999 by -99 or adding 859 Spaces to the first line, makes it readable for me.... Win 10-64bit, Scilab 6.0 regards richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From kblaaz at gmail.com Wed Nov 29 21:39:20 2017 From: kblaaz at gmail.com (Blaise) Date: Wed, 29 Nov 2017 13:39:20 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem Message-ID: <1511987960186-0.post@n3.nabble.com> Hello guys, Recently I tried to create a GUI in scilab using guibuilder. I could save and run the GUI, but the problem occured when I was going to open the GUI via guibuilder to make some changes. I got a message: operation -: Warning adding a matrix with the empty matrix will give an empty matrix result. operation +: Warning adding a matrix with the empty matrix will give an empty matrix result. What I found until now is (unfortunately) a not working solution on this site (comment lines): https://atoms.scilab.org/toolboxes/guibuilder. My OS is Windows 10 Home (x64). My scilab version is 6.0.0 (x64). So far I have tried to solve this problem in the following ways: 1. Install guibuilder with tools -> atoms manager. 2. Console -> atomsUpdate('guibuilder'). 3. Console -> atomsInstall(["guibuilder" "4.1"]). 4. Delete the scilab\contrib\archieves folder and install guibuilder again. 5. Download guibuilder-4.1-bin.zip file and manually place it in scilab\contrib\archieves. 6. Install the x32 version and try the above ways. Every method i tried to install the guibuilder says that version 4.1 was installed, but when I launch the builder it shows 4.0.1. I would be really grateful for your help. Cheers -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Nov 30 00:01:08 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 30 Nov 2017 00:01:08 +0100 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1511987960186-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> Message-ID: <8a709d9d-e7b2-209e-e278-b0bfa5a86ec2@free.fr> Hello Blaise, Le 29/11/2017 ? 21:39, Blaise a ?crit : > Hello guys, > > Recently I tried to create a GUI in scilab using guibuilder. I could save > and run the GUI, but the problem occured when I was going to open the GUI > via guibuilder to make some changes. I got a message: > > operation -: Warning adding a matrix with the empty matrix will give an > empty matrix result. > operation +: Warning adding a matrix with the empty matrix will give an > empty matrix result. Yes, this is reported here: https://atoms.scilab.org/toolboxes/guibuilder#comment2836 You may reply to this ATOMS comment to stress the authors about this issue. You can also enter --> warning stop before using the module. This will yield an error message (instead of a simple warning) indicating the script and the line number where the issue is located. Then, you can edit and fix the right script yourself, if the authors do not do it quickly. HTH Samuel Gougeon From Pablo_F_7 at hotmail.com Thu Nov 30 15:44:53 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Thu, 30 Nov 2017 14:44:53 +0000 Subject: [Scilab-users] Some errors and a question. Message-ID: Hi: First of all, i cannot run scilab 6.0 in Ubuntu 17.10, gives GTKLookAndFeel error that was adressed in the past, but not resolved. Second, in my Ubuntu 16.04 PC, scilab 6.0 gives seg fault when trying to use bode function. And last, is there a way to simulate a trasnfer function with delay using csim? i'm using pade aproximation by hand right now... Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From kblaaz at gmail.com Thu Nov 30 15:58:03 2017 From: kblaaz at gmail.com (Blaise) Date: Thu, 30 Nov 2017 07:58:03 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <8a709d9d-e7b2-209e-e278-b0bfa5a86ec2@free.fr> References: <1511987960186-0.post@n3.nabble.com> <8a709d9d-e7b2-209e-e278-b0bfa5a86ec2@free.fr> Message-ID: <1512053883352-0.post@n3.nabble.com> Hello Samuel, thank you for your reply. Due to an register issue I couldn't comment on ATOMS site, so I will try later. Following your advice I've tried to enter /warning stop/ in the console window, but nothing changed. The warning message still appears, and the error message doesn't, so I can't find the faulty script. Searching on my own I found in macros a open_existing_gui.bin file, but everything seems fine here. Am I doing something wrong with /warning stop/? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Thu Nov 30 17:13:34 2017 From: herozigle at gmail.com (Hermes) Date: Thu, 30 Nov 2017 09:13:34 -0700 (MST) Subject: [Scilab-users] numderivative Heart function In-Reply-To: References: <1506930115440-0.post@n3.nabble.com> Message-ID: <1512058414789-0.post@n3.nabble.com> Hi Rafael, This is how I have reproduced your guidelines: *======== funcprot(0); function val = H(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; function m=g(x1,x2) m=[2*x1-(x1.*(1.25*x2-sqrt(abs(x1))))/abs(x1).^(3/2),2.5*(1.25*x2-sqrt(abs(x1)))]; endfunction function val = HH(z) x1=z(1); x2=z(2); val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; function z=dH(x) z=numderivative(HH,x) endfunction //test xx=[0.2 -0.5]; disp(H(xx(1),xx(2))); disp(g(xx(1),xx(2))); disp(dH(xx)); x = -1:0.01:1; g1=g(x,2*x) contour2d(x, 2*x', g, [0 0]); replot([-1.415,-1,1.415,1.415]); //expected values //x1 -0.5566931 y1 1.2614695 //x2 0.5566931 y2 1.2614695 //x3 0. y3 0.8 //x4 0. y4 -0.8 //plot([x1 x2],[y1 y2],'gd'); //plot([x3 x4],[y3 y4],'rx'); ======== * but in spite of the fact that the help for abs can be read: "absolute value, magnitude Syntax t = abs (x) Arguments x real or complex vector or matrix " I receive the following alert: "Function not defined for given argument type (s), check arguments or define function% function_abs for overloading." should I define the function mabs = sqrt (x1 ^ 2 + x2 ^ 2); And using only the function g in contour2d (x, 2 * x ', g, [0 0]) I also receive the following alert: ---> in builtin contour2d (C: \ PROGRA ~ 1 \ SCILAB ~ 1.0 \ modules \ graphics \ macros \ contour2d.sci line 12) at line 33 of executed file C: \ Users \ hermesr \ Documents \ Scilab Xcos \ FORUMs \ Heart and numderivative2.sce g: Wrong size for output argument # 1: A Scalar expected. Any help, correction or markings -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Nov 30 18:03:18 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 30 Nov 2017 18:03:18 +0100 (CET) Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1512058414789-0.post@n3.nabble.com> Message-ID: <1880819980.456814036.1512061398479.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello Hermes, ----- Mail original ----- >.../... >function m=g(x1,x2) > m=[2*x1-(x1.*(1.25*x2-sqrt(abs(x1))))/abs(x1).^(3/2),2.5*(1.25*x2-sqrt(abs(x1)))]; .. or ./abs(x1) // instead? >.../... >I receive the following alert: > "Function not defined for given argument type (s), check arguments or >define function% function_abs for overloading." > >should I define the function mabs = sqrt (x1 ^ 2 + x2 ^ 2); > >And using only the function g in contour2d (x, 2 * x ', g, [0 0]) I also >receive the following alert: >---> in builtin contour2d (C: \ PROGRA ~ 1 \ SCILAB ~ 1.0 \ modules \ >graphics \ macros \ contour2d.sci line 12) >at line 33 of executed file C: \ Users \ hermesr \ Documents \ Scilab Xcos \ >FORUMs \ Heart and numderivative2.sce > >g: Wrong size for output argument # 1: A Scalar expected. I also get with 6.0.0+: --> contour2d(x, 2*x', g, [0 0]); in builtin contour2d ( SCI\modules\graphics\macros\contour2d.sci line 12 ) g: Wrong size for output argument #1: A Scalar expected. ??l: An error occured in '?????' subroutine. Samuel From jrafaelbguerra at hotmail.com Thu Nov 30 19:23:32 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 30 Nov 2017 18:23:32 +0000 Subject: [Scilab-users] numderivative Heart function In-Reply-To: <1512058414789-0.post@n3.nabble.com> References: <1506930115440-0.post@n3.nabble.com> <1512058414789-0.post@n3.nabble.com> Message-ID: Hi Hermes, I do not recall your problem and it would help some explanation. To plot the contours of a gradient with contour2d, you have to make it a scalar (otherwise look at champ, etc.). Check out the edited code below. Note that your gradient does not reach 0 and so a contour |g|=5 is plotted. // START OF CODE clear; clf; funcprot(0); function val=H(x1, x2) val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; function [gx, gy]=g(x1, x2) gx= 2*x1-(x1.*(1.25*x2-sqrt(abs(x1))))./abs(x1).^(3/2); gy = 2.5*(1.25*x2-sqrt(abs(x1))); endfunction function val=HH(z) x1=z(1); x2=z(2); val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; endfunction; function z=dH(x) z=numderivative(HH,x) endfunction //test x0=[0.2 -0.5]; disp(H(x0(1),x0(2))); [gx,gy]=g(x0(1),x0(2)) disp(gx,gy); disp(dH(x0)); x = linspace(-1,1,1002); y = 2*x'; xx = x.*.ones(x'); yy = y.*.ones(y'); [gx,gy] = g(xx,yy); g1= abs(gx + %i*gy); contour2d(x, y, g1, [5 5]); replot([-1.415,-1,1.415,1.415]); // END OF CODE [cid:image003.jpg at 01D36A10.B2E54FF0] Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 5386 bytes Desc: image003.jpg URL: From c.yilmaz.1 at campus.tu-berlin.de Thu Nov 30 20:35:41 2017 From: c.yilmaz.1 at campus.tu-berlin.de (rentboi) Date: Thu, 30 Nov 2017 12:35:41 -0700 (MST) Subject: [Scilab-users] Can't Find the Error Message-ID: <1512070541640-0.post@n3.nabble.com> Hey everyone I kept on trying to find out what the error is in the code below, but can't seem to find it. Even weirder is that among my colleagues I am the only one who gets a different output than the solution with the same code. temp=csvRead("the path to the file/meas0001.csv", ascii(9), '.','string',[',' ' ']); // to read the csv data temp(1,:)=[]; // to remove the first line temp($,:)=[]; // to remove the last line The output I get : ! 24-NOV-2017 13:22:27 9499019 ! ! ! ! 2.3171840E+02 Vac ! ! ! ! 2.3181050E+02 Vac ! ! ! ! 2.3202420E+02 Vac ! ! ! ! 2.3206130E+02 Vac ! ! ! ! 2.3207920E+02 Vac ! ! ! ! 2.3202870E+02 Vac ! ! ! ! 2.3194700E+02 Vac ! ! ! ! 2.3195150E+02 Vac ! ! ! ! 2.3192480E+02 Vac ! ! 24-NOV-2017 13:55:22 ! The "supposed to be like this" output is with only the same numbers, but without the "Vac", the dates and the times in the first and last row and the exclamation marks. I'd be flattered, if someone could help me out. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Nov 30 20:45:55 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 30 Nov 2017 20:45:55 +0100 Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: <1511987960186-0.post@n3.nabble.com> References: <1511987960186-0.post@n3.nabble.com> Message-ID: Le 29/11/2017 ? 21:39, Blaise a ?crit : > Hello guys, > > Recently I tried to create a GUI in scilab using guibuilder. I could save > and run the GUI, but the problem occured when I was going to open the GUI > via guibuilder to make some changes. I got a message: > > operation -: Warning adding a matrix with the empty matrix will give an > empty matrix result. > operation +: Warning adding a matrix with the empty matrix will give an > empty matrix result. I have installed this module with Scilab 6.0.0+ for Window_x64 without any issue, including the call to --> guibuilder with no warning. So, these warnings and the final error occur when opening the actual GUI that you have created. It is hard to reproduce and help debugging without the actual GUI's file. > What I found until now is (unfortunately) a not working solution on this > site (comment lines): https://atoms.scilab.org/toolboxes/guibuilder. > > My OS is Windows 10 Home (x64). My scilab version is 6.0.0 (x64). > > So far I have tried to solve this problem in the following ways: > 1. Install guibuilder with tools -> atoms manager. > 2. Console -> atomsUpdate('guibuilder'). > 3. Console -> atomsInstall(["guibuilder" "4.1"]). > 4. Delete the scilab\contrib\archieves folder and install guibuilder again. > 5. Download guibuilder-4.1-bin.zip file and manually place it in > scilab\contrib\archieves. > 6. Install the x32 version and try the above ways. > > Every method i tried to install the guibuilder says that version 4.1 was > installed, but when I launch the builder it shows 4.0.1. I get as well this "4.0.1" in the title of the GUI. I think authors have just forgotten to update it, but the version is actually the 4.1 one. I would not take care about this. Samuel From kblaaz at gmail.com Thu Nov 30 22:07:51 2017 From: kblaaz at gmail.com (Blaise) Date: Thu, 30 Nov 2017 14:07:51 -0700 (MST) Subject: [Scilab-users] guibuilder 4.1/4.0.1 reload problem In-Reply-To: References: <1511987960186-0.post@n3.nabble.com> Message-ID: <1512076071869-0.post@n3.nabble.com> The warning occurs no matter what gui file i try to open. I can create a new gui, I can save it, I can run it, but I cannot open it to add changes. > It is hard to reproduce and help debugging without the actual GUI's file. This is an example of a gui file I created with my guibuilder: https://drive.google.com/open?id=1c8OoHmNSgC8-lNkBkkITUnC99EPj44hV There should be only a button called "Test" which displays in the console a message 'test'. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From ludovic.wagner67 at gmail.com Thu Nov 30 22:25:11 2017 From: ludovic.wagner67 at gmail.com (Ludovic Wagner) Date: Thu, 30 Nov 2017 22:25:11 +0100 Subject: [Scilab-users] Mailing unsubscribing Message-ID: <1600ed1aed8.2726.a3e7f5607a7eae77fe9a5019498f73b5@gmail.com> Would it be possible to unsubscribe me from the mailing list? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: