From arctica1963 at gmail.com Wed Jan 6 11:54:49 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 6 Jan 2016 10:54:49 +0000 Subject: [Scilab-users] Scilab conversion of Matlab code - query Message-ID: Hello, A basic query, but I cannot seem to get the Scilab code to run as it should and plot the data. Not sure where it is falling over. Attached the code with the original Matlab commands at the front for reference. Oddly, the straight Matlab code will run and make the plot after first startingSc ilab, but will not if attempted again. Is there a more elegant way of reading in a range of Te values? Thanks for any pointers Lester -------------- next part -------------- A non-text attachment was scrubbed... Name: flex1a.sce Type: application/octet-stream Size: 1921 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Flex1a_plot_Matlab.jpeg Type: image/jpeg Size: 38509 bytes Desc: not available URL: From j-lan at online.no Wed Jan 6 13:29:58 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 6 Jan 2016 13:29:58 +0100 Subject: [Scilab-users] Scilab conversion of Matlab code - query In-Reply-To: References: Message-ID: <568D08C6.9080201@online.no> The original code seems to run with the small change(note the ' ): flex(:,1) = dist'; J? On 06.01.2016 11:54, Lester Anderson wrote: > Hello, > > A basic query, but I cannot seem to get the Scilab code to run as it > should and plot the data. Not sure where it is falling over. Attached > the code with the original Matlab commands at the front for reference. > > Oddly, the straight Matlab code will run and make the plot after first > startingSc ilab, but will not if attempted again. > > Is there a more elegant way of reading in a range of Te values? > > Thanks for any pointers > > Lester > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Thu Jan 7 00:32:44 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 06 Jan 2016 15:32:44 -0800 Subject: [Scilab-users] Scilab conversion of Matlab code - query In-Reply-To: References: Message-ID: <1452123164.2598.57.camel@Servo> On Wed, 2016-01-06 at 10:54 +0000, Lester Anderson wrote: > Hello, > > A basic query, but I cannot seem to get the Scilab code to run as it > should and plot the data. Not sure where it is falling over. Attached > the code with the original Matlab commands at the front for reference. > > Oddly, the straight Matlab code will run and make the plot after first > startingSc ilab, but will not if attempted again. > > Is there a more elegant way of reading in a range of Te values? > > Thanks for any pointers Run it and look at the error messages, then fix them one by one. It's barfing a lot on matrix multiplies where you're doing invalid operations. Scilab is strict that if you multiply two matrices they have to be m x n and n x q (or whatever). I'm not sure what Matlab's rules are for the equivalent. Yes, Scilab would let you read Te in from a file -- at it's simplest you can use fscanfMat, if your file is the right format. -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From noguchi at kje.biglobe.ne.jp Sat Jan 9 08:40:43 2016 From: noguchi at kje.biglobe.ne.jp (Y. Noguchi) Date: Sat, 09 Jan 2016 16:40:43 +0900 (JST) Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <457ace8a-50f4-4408-ae3f-742dd660f631@bvec34483> Message-ID: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> Dear Scilab Users May I ask your help? I got followin error message when I run my ZCOS model: "CVode: AT =1.00122 and h=5.59384e-1, thev error test failed repeatedly or with |h|=hmin. I am Using Sclab 5.5.0 on my Windows 7 PC. I attached my ZCOS Model for your review and it is too difficult for me to understand this error message. Thanks for your help. Y. Noguchi -------------- next part -------------- A non-text attachment was scrubbed... Name: PITAU_r0.zcos Type: application/zip Size: 8886 bytes Desc: not available URL: From yashbhalgat95 at gmail.com Sat Jan 9 12:37:50 2016 From: yashbhalgat95 at gmail.com (Yash Bhalgat) Date: Sat, 9 Jan 2016 17:07:50 +0530 Subject: [Scilab-users] GSOC 2016: Projects and Mentors Message-ID: Hi, My name is Yash Bhalgat and I am in my 3rd year at IIT Bombay. I am currently working on development of the Scilab Image Processing toolbox (IPT) for quite a time. And I am eager to participate in the GSOC this year. It would be great if I can extend my work here into GSOC-2016! So, I wanted to know if Scilab is participating in GSOC, this year too. And if yes, can I please know the contacts of the mentors (and the projects), so that I can get in touch with them at the earliest? Please reply at the earliest... Thanks, *Yash Bhalgat, * *3rd year, **Electrical Engg,* *IIT Bombay* *Alt. email: yashbhalgat at iitb.ac.in * *Resume: yashbhalgat.github.io/resume.pdf * *Github: github.com/yashbhalgat * -------------- next part -------------- An HTML attachment was scrubbed... URL: From animeshbaranawal at gmail.com Sun Jan 10 16:52:53 2016 From: animeshbaranawal at gmail.com (animeshbaranawal) Date: Sun, 10 Jan 2016 08:52:53 -0700 (MST) Subject: [Scilab-users] Accessing the nth output of a function Message-ID: <1452441173961-4033257.post@n3.nabble.com> I have a function which has variable output arguments (using varargout). Now, I want to access the nth output argument of the function. It is assured that the function generates more than n output arguments. Is there a method in scilab to do this? Animesh -- View this message in context: http://mailinglists.scilab.org/Accessing-the-nth-output-of-a-function-tp4033257.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Mon Jan 11 00:05:15 2016 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Mon, 11 Jan 2016 00:05:15 +0100 Subject: [Scilab-users] Accessing the nth output of a function In-Reply-To: <1452441173961-4033257.post@n3.nabble.com> References: <1452441173961-4033257.post@n3.nabble.com> Message-ID: <5692E3AB.2030505@online.no> It may not solve your problem, but in Scilab 6 you can at least access the nth element of the first output argument. --> function c=a(b) > c(1)=b > c(2)=b^2 > c(3)= b^3 > endfunction --> a(2)(2) ans = 4. Another solution could be like it is done in size(), where an extra input argument can be used to point at the correct output argument: d = 1. 2. 3. 4. 5. 6. --> size(d) ans = 2. 3. --> size(d,1) ans = 2. --> size(d,2) ans = 3. J? On 10.01.2016 16:52, animeshbaranawal wrote: > I have a function which has variable output arguments (using varargout). Now, > I want to access the nth output argument of the function. It is assured that > the function generates more than n output arguments. > > Is there a method in scilab to do this? > > Animesh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Mon Jan 11 04:38:52 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Sun, 10 Jan 2016 20:38:52 -0700 (MST) Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> References: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> Message-ID: <1452483532602-4033259.post@n3.nabble.com> Dear Scilab Users, PITAU_r1.zcos After that I updated my Scilab to 5.5.2 and do the same. I got following error message: "CVcode at t-202, mxsteps taken before reaching tout." Could you please advise me how I can fix this issue. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVode-tp4033255p4033259.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Jan 11 09:03:56 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 11 Jan 2016 09:03:56 +0100 Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <1452483532602-4033259.post@n3.nabble.com> References: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> <1452483532602-4033259.post@n3.nabble.com> Message-ID: <1452499436.2843.6.camel@scilab-enterprises.com> Hello, This message means that there is an algebraic loop detected by the solver on the continuous states (eg. a value that must change but does not) and might be fix by either : ?1) finding and fixing them on the diagram (by? ?2) reducing solver tolerances on the simulation setup Regards, -- Cl?ment Le dimanche 10 janvier 2016 ? 20:38 -0700, noguchi a ?crit?: > Dear Scilab Users, PITAU_r1.zcos > ?? > > After that I updated my Scilab to 5.5.2 and do the same. I got following > error message:? > > "CVcode at t-202, mxsteps taken before reaching tout."? > > Could you please advise me how I can fix this issue.? > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVo > de-tp4033255p4033259.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Mon Jan 11 09:13:36 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 11 Jan 2016 09:13:36 +0100 Subject: [Scilab-users] GSOC 2016: Projects and Mentors In-Reply-To: References: Message-ID: <1452500016.2843.15.camel@scilab-enterprises.com> Hello Yash, Thanks for your interest for Scilab and yes we will try to be a mentoring organisation this year again. Note that we use the Gsoc ML to communicate with students and mentors so please get in touch in that channel. And also follow the guidelines,?https://wiki.scilab.org/GSoC_project_proposal?; we basically require that each students fix a bug to validate their skills so if you are motivated you can start it right now. -- Cl?ment Le samedi 09 janvier 2016 ? 17:07 +0530, Yash Bhalgat a ?crit?: > Hi, > > My name is Yash Bhalgat and I am in my 3rd year at IIT Bombay. I am currently working on > development of the?Scilab?Image Processing toolbox (IPT) for quite a time. And I am eager to > participate in the GSOC this year. It would be great if I can extend my work here into GSOC-2016! > > So, I wanted to know if Scilab is participating in GSOC, this year too. And if yes, can I please > know the contacts of the mentors (and the projects), so that I can get in touch with them at the > earliest? > > Please reply at the earliest... > > Thanks, > Yash Bhalgat,? > 3rd year,?Electrical Engg, > IIT Bombay > Alt. email:?yashbhalgat at iitb.ac.in > Resume: yashbhalgat.github.io/resume.pdf > Github:?github.com/yashbhalgat > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From noguchi at kje.biglobe.ne.jp Mon Jan 11 11:30:10 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Mon, 11 Jan 2016 03:30:10 -0700 (MST) Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <1452499436.2843.6.camel@scilab-enterprises.com> References: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> <1452483532602-4033259.post@n3.nabble.com> <1452499436.2843.6.camel@scilab-enterprises.com> Message-ID: <1452508210818-4033262.post@n3.nabble.com> Thank you for your feedback. I reduced solver tolerance from Simulation, Parameter settings as per attached file. I changed 1.0E-6 ==> 1.0E-12 However, I still get same error message. May I ask your further help to solve this problem? SCilab_Sim_Setting.jpg -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVode-tp4033255p4033262.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Jan 11 09:26:39 2016 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 11 Jan 2016 08:26:39 +0000 Subject: [Scilab-users] Accessing the nth output of a function In-Reply-To: <1452441173961-4033257.post@n3.nabble.com> References: <1452441173961-4033257.post@n3.nabble.com> Message-ID: Hello, > De la part de animeshbaranawal > Envoy? : dimanche 10 janvier 2016 16:53 > > I have a function which has variable output arguments (using varargout). > Now, I want to access the nth output argument of the function > [...] > Is there a method in scilab to do this? Reading the help page https://help.scilab.org/docs/5.5.2/en_US/varargout.html It seems that vararg should *not* the only parameter. Then varargout is considered as a whole list in a single variable. E.g. function [n, varargout] = foo() varargout = list(1, 2, 3, 4); n = argn(1); endfunction [N, L] = foo() Disp(L) Hope this helps 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 j-lan at online.no Mon Jan 11 14:03:04 2016 From: j-lan at online.no (=?UTF-8?Q?Jan-=c3=85ge_Langeland?=) Date: Mon, 11 Jan 2016 14:03:04 +0100 Subject: [Scilab-users] Accessing the nth output of a function In-Reply-To: References: <1452441173961-4033257.post@n3.nabble.com> Message-ID: <5693A808.8010401@online.no> On 11.01.2016 09:26, Dang Ngoc Chan, Christophe wrote: > function [n, varargout] = foo() > varargout = list(1, 2, 3, 4); > n = argn(1); > endfunction > > [N, L] = foo() > > Disp(L) It looks like in this case output arguments are not variable but limited to 2 (one single element and one list), so varargout works like any other variable. In Scilab 6.0 it would make sense to swap the output arguments: function [varargout, n] = foo() varargout = list(1, 2, 3, 4); n = argn(1); endfunction as this would allow using the elements directly in an expression like this: LL=foo()(3)^foo()(2) Or just put everything in the list and forget about varargout: function [al] = fal(varargin) al = list( 1, 2, 3, 4, [argn(1),argn(2)]); endfunction inarguments=fal(7,8,9)($)(2) J? From arctica1963 at gmail.com Mon Jan 11 17:31:39 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 11 Jan 2016 16:31:39 +0000 Subject: [Scilab-users] Font size adjustment of legend Message-ID: Hello, I am having issues getting the font size to change for just the legend. I have managed to alter the size for the axis and title. Also, should both legend and legends work for the same task? I tried to use legends and set the opt=4 (lower right position) and font_size=4, but it did not seem to work. Any pointers would be good (a basic query). The image shows the plot so far and clearly there is room to make the legend bigger. Lester -------------- next part -------------- A non-text attachment was scrubbed... Name: flexure_plot.PNG Type: image/png Size: 33277 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: flex1b.sce Type: application/octet-stream Size: 1152 bytes Desc: not available URL: From Serge.Steer at inria.fr Mon Jan 11 18:24:42 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 11 Jan 2016 18:24:42 +0100 Subject: [Scilab-users] Font size adjustment of legend In-Reply-To: References: Message-ID: <5693E55A.4050409@inria.fr> Here is an example clf; plot2d() L=legend(["a","b","c"]); L.font_size=5; Serge Steer Le 11/01/2016 17:31, Lester Anderson a ?crit : > Hello, > > I am having issues getting the font size to change for just the > legend. I have managed to alter the size for the axis and title. Also, > should both legend and legends work for the same task? I tried to use > legends and set the opt=4 (lower right position) and font_size=4, but > it did not seem to work. > > Any pointers would be good (a basic query). The image shows the plot > so far and clearly there is room to make the legend bigger. > > Lester > > > _______________________________________________ > 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 Mon Jan 11 22:24:00 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 11 Jan 2016 22:24:00 +0100 Subject: [Scilab-users] Font size adjustment of legend In-Reply-To: References: Message-ID: <56941D70.8040301@free.fr> Hello, Le 11/01/2016 17:31, Lester Anderson a ?crit : > Hello, > > I am having issues getting the font size to change for just the > legend. I have managed to alter the size for the axis and title. Also, > should both legend and legends work for the same task? You may expect and vote for http://bugzilla.scilab.org/5371 > I tried to use > legends and set the opt=4 (lower right position) and font_size=4, but > it did not seem to work. The legends of your example look to be LaTeXed ones, between "$...$". In that case, AFAIK, the LaTeX fonts sizes are not set accordingly w.r.t. Scilab attributes. You must use LaTeX instructions tuning LaTeX fonts, such as \scalebox{scale}{...}, or \DeclareMathSizes{textSize}{mathTextSize}{scriptSize}{subscriptSize} with sizes expressed in pt, etc For instance, try "$\scalebox{1.2}{T_e\,=\,0\km}$" HTH Samuel Gougeon From arctica1963 at gmail.com Mon Jan 11 23:53:24 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 11 Jan 2016 22:53:24 +0000 Subject: [Scilab-users] Font size adjustment of legend In-Reply-To: <56941D70.8040301@free.fr> References: <56941D70.8040301@free.fr> Message-ID: Hello, Thanks for the pointers. The LaTex formatting you suggested Samuel did not work, but the following change suggested by Serge did: L=legend(['$T_e\ = 5\ km$', '$T_e\ = 10\ km$', '$T_e\ = 25\ km$'],4); L.font_size=4 xlabel('$Distance\ (km)$','fontsize',5.5) ylabel('$Flexure\ (m)$','fontsize',5.5) title('$Flexure\ for\ a\ Broken\ Plate\ Model$','fontsize',5.5) As before the legend is set at bottom right and the font_size will now change it up or down. It is a bit confusing having different methods of doing this in Scilab, but the code does what it should. It does seem that the formatting is not consistent between axis labels and legends. Thanks On 11 January 2016 at 21:24, Samuel Gougeon wrote: > Hello, > > Le 11/01/2016 17:31, Lester Anderson a ?crit : >> >> Hello, >> >> I am having issues getting the font size to change for just the >> legend. I have managed to alter the size for the axis and title. Also, >> should both legend and legends work for the same task? > > You may expect and vote for http://bugzilla.scilab.org/5371 >> >> I tried to use >> legends and set the opt=4 (lower right position) and font_size=4, but >> it did not seem to work. > > The legends of your example look to be LaTeXed ones, between "$...$". > In that case, AFAIK, the LaTeX fonts sizes are not set accordingly w.r.t. > Scilab attributes. > You must use LaTeX instructions tuning LaTeX fonts, such as > \scalebox{scale}{...}, or > \DeclareMathSizes{textSize}{mathTextSize}{scriptSize}{subscriptSize} with > sizes expressed in pt, etc > > For instance, try "$\scalebox{1.2}{T_e\,=\,0\km}$" > > HTH > Samuel Gougeon > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Tue Jan 12 12:53:14 2016 From: antoine.monmayrant at laas.fr (antoine.monmayrant at laas.fr) Date: Tue, 12 Jan 2016 12:53:14 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* Message-ID: <5694E92A.7070702@laas.fr> Hi everyone, This message is not a rant (but it could). I am truly looking for an image processing toolbox that works with current versions of Scilab and a decently modern OS. I tried every toolbox I've found but without success: SIVP: requires an outdated version of libtiff that I don't know how to install on my system. IPD: does not seem to work properly: ReadImage fails: -->IMG=ReadImage('~/Downloads/test.png'); !--error 4 Undefined variable: Dimensions at line 72 of function ReadImage called by : IMG=ReadImage('~/Downloads/test.png'); SIP: not updated since 2011 and out of the atoms package Others: broken in the atoms package or depending on one of the above package. What are you guys using to load into scilab jpg/png/bmp images? Cheers, Antoine From sgougeon at free.fr Tue Jan 12 13:43:30 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 12 Jan 2016 13:43:30 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: <5694E92A.7070702@laas.fr> References: <5694E92A.7070702@laas.fr> Message-ID: <5694F4F2.9030205@free.fr> Hello, Le 12/01/2016 12:53, antoine.monmayrant at laas.fr a ?crit : > Hi everyone, > > This message is not a rant (but it could). > I am truly looking for an image processing toolbox that works with > current versions of Scilab and a decently modern OS. > I tried every toolbox I've found but without success: > > SIVP: requires an outdated version of libtiff that I don't know how to > install on my system. > > IPD: does not seem to work properly: ReadImage fails: Works for me with Scilab 5.5.2 / win7_x64 : > -->dir *.png > ans = > > foo.png Google_logo.png ico.png scilab.png > > -->atomsLoad IPD > > Start IPD - Image Processing Design > Load macros > Load dependencies > Load gateways > Load help > Load demos > > ans = > > !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! > > -->i = ReadImage("Google_logo.png"); > > -->size(i) > ans = > > 95. 275. 3. Do you get an error whatever is the image you try to load? You may report the error you get @ http://forge.scilab.org/index.php/p/IPD/issues/ + posting the image triggering it. Cheers Samuel From paul.bignier at scilab-enterprises.com Tue Jan 12 17:24:11 2016 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Tue, 12 Jan 2016 17:24:11 +0100 Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <1452508210818-4033262.post@n3.nabble.com> References: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> <1452483532602-4033259.post@n3.nabble.com> <1452499436.2843.6.camel@scilab-enterprises.com> <1452508210818-4033262.post@n3.nabble.com> Message-ID: <569528AB.6060100@scilab-enterprises.com> Hello Noguchi, Try loosening the tolerances instead of tightening them. With 1e-2, the simulation goes much further because the solver disregards the results a lot more. Hope this helps, Regards, Paul On 01/11/2016 11:30 AM, noguchi wrote: > Thank you for your feedback. > > I reduced solver tolerance from Simulation, Parameter settings as per > attached file. > I changed 1.0E-6 ==> 1.0E-12 > > However, I still get same error message. > > May I ask your further help to solve this problem? > > SCilab_Sim_Setting.jpg > > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVode-tp4033255p4033262.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com From p.muehlmann at gmail.com Tue Jan 12 20:11:23 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Tue, 12 Jan 2016 20:11:23 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: <5694F4F2.9030205@free.fr> References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> Message-ID: Hello, I've been using IPD and SIVP a lot with Scilab 5.5.1 and 5.4.1...on WinXP 32 bit and Win7 64 bit. Both times with IPD 8.3.2-0 IPD would be my favourite. Anybody uses IPD with Scilab 6? Best regards, Philipp 2016-01-12 13:43 GMT+01:00 Samuel Gougeon : > Hello, > > Le 12/01/2016 12:53, antoine.monmayrant at laas.fr a ?crit : > >> Hi everyone, >> >> This message is not a rant (but it could). >> I am truly looking for an image processing toolbox that works with >> current versions of Scilab and a decently modern OS. >> I tried every toolbox I've found but without success: >> >> SIVP: requires an outdated version of libtiff that I don't know how to >> install on my system. >> >> IPD: does not seem to work properly: ReadImage fails: >> > > Works for me with Scilab 5.5.2 / win7_x64 : > > -->dir *.png >> ans = >> >> foo.png Google_logo.png ico.png scilab.png >> >> -->atomsLoad IPD >> >> Start IPD - Image Processing Design >> Load macros >> Load dependencies >> Load gateways >> Load help >> Load demos >> >> ans = >> >> !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! >> >> -->i = ReadImage("Google_logo.png"); >> >> -->size(i) >> ans = >> >> 95. 275. 3. >> > > Do you get an error whatever is the image you try to load? > You may report the error you get @ > http://forge.scilab.org/index.php/p/IPD/issues/ + posting the image > triggering it. > > Cheers > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Wed Jan 13 05:32:03 2016 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 12 Jan 2016 21:32:03 -0700 (MST) Subject: [Scilab-users] Scilab Error Message: CVode In-Reply-To: <569528AB.6060100@scilab-enterprises.com> References: <26cabc7f-c438-4784-8d29-9dd476695635@bvec34483> <1452483532602-4033259.post@n3.nabble.com> <1452499436.2843.6.camel@scilab-enterprises.com> <1452508210818-4033262.post@n3.nabble.com> <569528AB.6060100@scilab-enterprises.com> Message-ID: <1452659523339-4033273.post@n3.nabble.com> Helllo, Paul, Thank you for your advise. It works. It is difficult for me to reach this solution by looking at the error message. Is it difficult for you to modify the error message so that begineer of Scilab can understand? Thanks. Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-Error-Message-CVode-tp4033255p4033273.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From david.cheze at cea.fr Wed Jan 13 08:34:02 2016 From: david.cheze at cea.fr (CHEZE David 227480) Date: Wed, 13 Jan 2016 07:34:02 +0000 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> Message-ID: Same conclusion for me and also question reagrding scilab 6 David De : users [mailto:users-bounces at lists.scilab.org] De la part de Philipp M?hlmann Envoy? : mardi 12 janvier 2016 20:11 ? : Users mailing list for Scilab Objet : Re: [Scilab-users] An Image processing toolbox that *works* Hello, I've been using IPD and SIVP a lot with Scilab 5.5.1 and 5.4.1...on WinXP 32 bit and Win7 64 bit. Both times with IPD 8.3.2-0 IPD would be my favourite. Anybody uses IPD with Scilab 6? Best regards, Philipp 2016-01-12 13:43 GMT+01:00 Samuel Gougeon >: Hello, Le 12/01/2016 12:53, antoine.monmayrant at laas.fr a ?crit : Hi everyone, This message is not a rant (but it could). I am truly looking for an image processing toolbox that works with current versions of Scilab and a decently modern OS. I tried every toolbox I've found but without success: SIVP: requires an outdated version of libtiff that I don't know how to install on my system. IPD: does not seem to work properly: ReadImage fails: Works for me with Scilab 5.5.2 / win7_x64 : -->dir *.png ans = foo.png Google_logo.png ico.png scilab.png -->atomsLoad IPD Start IPD - Image Processing Design Load macros Load dependencies Load gateways Load help Load demos ans = !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! -->i = ReadImage("Google_logo.png"); -->size(i) ans = 95. 275. 3. Do you get an error whatever is the image you try to load? You may report the error you get @ http://forge.scilab.org/index.php/p/IPD/issues/ + posting the image triggering it. Cheers Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Wed Jan 13 09:30:31 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Wed, 13 Jan 2016 09:30:31 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: <5694F4F2.9030205@free.fr> References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> Message-ID: <56960B27.8070409@laas.fr> Le 01/12/2016 01:43 PM, Samuel Gougeon a ?crit : > Hello, > > Le 12/01/2016 12:53, antoine.monmayrant at laas.fr a ?crit : >> Hi everyone, >> >> This message is not a rant (but it could). >> I am truly looking for an image processing toolbox that works with >> current versions of Scilab and a decently modern OS. >> I tried every toolbox I've found but without success: >> >> SIVP: requires an outdated version of libtiff that I don't know how >> to install on my system. >> >> IPD: does not seem to work properly: ReadImage fails: > > Works for me with Scilab 5.5.2 / win7_x64 : > >> -->dir *.png >> ans = >> >> foo.png Google_logo.png ico.png scilab.png >> >> -->atomsLoad IPD >> >> Start IPD - Image Processing Design >> Load macros >> Load dependencies >> Load gateways >> Load help >> Load demos >> >> ans = >> >> !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! >> >> -->i = ReadImage("Google_logo.png"); >> >> -->size(i) >> ans = >> >> 95. 275. 3. > > Do you get an error whatever is the image you try to load? Yes, it also fails running the example in the help page for ReadImage: -->RGB = ReadImage(IPD_PATH + 'demos\teaset.png'); !--error 4 Undefined variable: Dimensions at line 72 of function ReadImage called by : RGB = ReadImage(IPD_PATH + 'demos\teaset.png'); --> -->figure(); ShowColorImage(RGB, 'Result'); !--error 4 Undefined variable: RGB There is something wrong with ReadImageFile. Running ReadImageFile example from the help page fails: - Dimensions is undefined - PixelList contains the filename of the image to open: -->PixelList == IPD_PATH + 'demos\teaset.png' ans = T So, yes, there problem is not related to that particular image. Antoine > You may report the error you get @ > http://forge.scilab.org/index.php/p/IPD/issues/ + posting the image > triggering it. Done: http://forge.scilab.org/index.php/p/IPD/issues/1603/ > > Cheers > Samuel > _______________________________________________ > 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 amonmayr at laas.fr Wed Jan 13 09:34:28 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Wed, 13 Jan 2016 09:34:28 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> Message-ID: <56960C14.40803@laas.fr> Le 01/12/2016 08:11 PM, Philipp M?hlmann a ?crit : > Hello, > > I've been using IPD and SIVP a lot with Scilab 5.5.1 and 5.4.1...on > WinXP 32 bit and Win7 64 bit. > > Both times with IPD 8.3.2-0 > > IPD would be my favourite. > > > Anybody uses IPD with Scilab 6? > > Best regards, > Philipp Well, the thing is that it does not work on my computers. I think this might be due to the fact that IPD expect a specific version of OpenCV and does not install it properly (at least on my computer). I haven't seen simple explanation on how to install (and where to install) the right version and I installed the version that correspond to my OS. Why can't we get self-contained image processing tooloboxes under Scilab? (real question not a rant) Are the dependencies too difficult to include in the atoms package? Antoine > > > > > 2016-01-12 13:43 GMT+01:00 Samuel Gougeon >: > > Hello, > > Le 12/01/2016 12:53, antoine.monmayrant at laas.fr > a ?crit : > > Hi everyone, > > This message is not a rant (but it could). > I am truly looking for an image processing toolbox that works > with current versions of Scilab and a decently modern OS. > I tried every toolbox I've found but without success: > > SIVP: requires an outdated version of libtiff that I don't > know how to install on my system. > > IPD: does not seem to work properly: ReadImage fails: > > > Works for me with Scilab 5.5.2 / win7_x64 : > > -->dir *.png > ans = > > foo.png Google_logo.png ico.png scilab.png > > -->atomsLoad IPD > > Start IPD - Image Processing Design > Load macros > Load dependencies > Load gateways > Load help > Load demos > > ans = > > !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! > > -->i = ReadImage("Google_logo.png"); > > -->size(i) > ans = > > 95. 275. 3. > > > Do you get an error whatever is the image you try to load? > You may report the error you get @ > http://forge.scilab.org/index.php/p/IPD/issues/ + posting the > image triggering it. > > Cheers > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > There we have the salad. > > > _______________________________________________ > 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Wed Jan 13 09:38:16 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Wed, 13 Jan 2016 09:38:16 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> Message-ID: <56960CF8.8070109@laas.fr> Le 01/13/2016 08:34 AM, CHEZE David 227480 a ?crit : > > Same conclusion for me and also question reagrding scilab 6 > Well, I use both scilab 5.5.X and 6.0.X but: //scilab 6.0.X --> atomsInstall('IPD') atomsInstallList: The package IPD is not available Antoine > David > > *De :*users [mailto:users-bounces at lists.scilab.org] *De la part de* > Philipp M?hlmann > *Envoy? :* mardi 12 janvier 2016 20:11 > *? :* Users mailing list for Scilab > *Objet :* Re: [Scilab-users] An Image processing toolbox that *works* > > Hello, > > I've been using IPD and SIVP a lot with Scilab 5.5.1 and 5.4.1...on > WinXP 32 bit and Win7 64 bit. > > Both times with IPD 8.3.2-0 > > > IPD would be my favourite. > > Anybody uses IPD with Scilab 6? > > Best regards, > > Philipp > > > > 2016-01-12 13:43 GMT+01:00 Samuel Gougeon >: > > Hello, > > Le 12/01/2016 12:53, antoine.monmayrant at laas.fr > a ?crit : > > Hi everyone, > > This message is not a rant (but it could). > I am truly looking for an image processing toolbox that works > with current versions of Scilab and a decently modern OS. > I tried every toolbox I've found but without success: > > SIVP: requires an outdated version of libtiff that I don't > know how to install on my system. > > IPD: does not seem to work properly: ReadImage fails: > > > Works for me with Scilab 5.5.2 / win7_x64 : > > -->dir *.png > ans = > > foo.png Google_logo.png ico.png scilab.png > > -->atomsLoad IPD > > Start IPD - Image Processing Design > Load macros > Load dependencies > Load gateways > Load help > Load demos > > ans = > > !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! > > -->i = ReadImage("Google_logo.png"); > > -->size(i) > ans = > > 95. 275. 3. > > > Do you get an error whatever is the image you try to load? > You may report the error you get @ > http://forge.scilab.org/index.php/p/IPD/issues/ > + posting the > image triggering it. > > Cheers > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > > There we have the salad. > > > > _______________________________________________ > 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Wed Jan 13 09:51:41 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 13 Jan 2016 08:51:41 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) Message-ID: Hello, I currently have v5.4.1 of Scilab, and have to install modules manually. I am trying to install apifun (as quite a few modules use it), but get this error -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') !--error 21 Invalid index. at line 170 of function atomsInstall called by : atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') Checked the code for atomsInstall: eb_ki.Callback = "updateedit_ki"; Line 170 Any ideas how to resolve this? Will have to follow the same procedure for v5.5.2 when I update. Thanks Lester From p.muehlmann at gmail.com Wed Jan 13 11:20:06 2016 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Wed, 13 Jan 2016 11:20:06 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: <56960CF8.8070109@laas.fr> References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> <56960CF8.8070109@laas.fr> Message-ID: mh, I never additionally installed OpenCV to be able to use IPD...it just worked "out of the box". 2016-01-13 9:38 GMT+01:00 : > Le 01/13/2016 08:34 AM, CHEZE David 227480 a ?crit : > > Same conclusion for me and also question reagrding scilab 6 > > Well, I use both scilab 5.5.X and 6.0.X but: > > //scilab 6.0.X > --> atomsInstall('IPD') > atomsInstallList: The package IPD is not available > > Antoine > > > > > > > David > > > > *De :* users [mailto:users-bounces at lists.scilab.org > ] *De la part de* Philipp M?hlmann > *Envoy? :* mardi 12 janvier 2016 20:11 > *? :* Users mailing list for Scilab > > *Objet :* Re: [Scilab-users] An Image processing toolbox that *works* > > > > Hello, > > I've been using IPD and SIVP a lot with Scilab 5.5.1 and 5.4.1...on WinXP > 32 bit and Win7 64 bit. > > Both times with IPD 8.3.2-0 > > > IPD would be my favourite. > > > > > > Anybody uses IPD with Scilab 6? > > Best regards, > > Philipp > > > > > > 2016-01-12 13:43 GMT+01:00 Samuel Gougeon : > > Hello, > > Le 12/01/2016 12:53, antoine.monmayrant at laas.fr a ?crit : > > Hi everyone, > > This message is not a rant (but it could). > I am truly looking for an image processing toolbox that works with current > versions of Scilab and a decently modern OS. > I tried every toolbox I've found but without success: > > SIVP: requires an outdated version of libtiff that I don't know how to > install on my system. > > IPD: does not seem to work properly: ReadImage fails: > > > Works for me with Scilab 5.5.2 / win7_x64 : > > -->dir *.png > ans = > > foo.png Google_logo.png ico.png scilab.png > > -->atomsLoad IPD > > Start IPD - Image Processing Design > Load macros > Load dependencies > Load gateways > Load help > Load demos > > ans = > > !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! > > -->i = ReadImage("Google_logo.png"); > > -->size(i) > ans = > > 95. 275. 3. > > > Do you get an error whatever is the image you try to load? > You may report the error you get @ > http://forge.scilab.org/index.php/p/IPD/issues/ + posting the image > triggering it. > > Cheers > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > > There we have the salad. > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://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 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Thu Jan 14 09:27:50 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 14 Jan 2016 09:27:50 +0100 Subject: [Scilab-users] An Image processing toolbox that *works* In-Reply-To: References: <5694E92A.7070702@laas.fr> <5694F4F2.9030205@free.fr> <56960CF8.8070109@laas.fr> Message-ID: <56975C06.2030803@laas.fr> Hi everyone, An update on the situation: 1) bug reported for IPD. 2) workaround for my workflow. 1) See: http://forge.scilab.org/index.php/p/IPD/issues/1603/ Are the devs of IPD reading this mailing list (I know Allan used to read it)? I can give them a hand troubleshooting what's going on if they want. 2) I gave up on proper image processing in Scilab (ie with lots of bells and whistles) and decided to support one image format (PPM as it's a very simple format). So now, I convert all the images I need to process to PPM (using convert from ImageMagick) and load them in Scilab with the function below. (hacked in an hour, so it's far from perfect, feedback is welcome) function img=read_ppm_file(ppm_file) //function to read ppm file P6 (binary RGB 8bit/channel) // // Typical file header: // // 1 P6 // 2 389 308 // 3 255 // // Magic number P6 // white space (here CR or LF) // Width whitespace Height // White space (here CR/LF) // Maximum value (here 255 mean 1 byte per pixel per channel) // White space // Height=H Width=W => H rows from top to bottom of W pixels, each pixel a rgb triplet, each channel on one byte if MaxVal<=255. //So starting from the end we should have 3*H*W bytes to read. //getting file size in byte [x, ierr] = fileinfo(ppm_file); file_size=x(1); //reading the header fd=mopen(ppm_file,'r'); txt = mgetl(fd,3);// TODO : no exactly what's in the format specification mclose(fd) magickN=txt(1); maxval=eval(txt(3)); if magickN~="P6" then warning("Cannot handle PPM files other than P6 (binary RGB file)"); elseif maxval > 255 then warning("Cannot handle PPM files with channels encoded on more than 1 byte"); else //good to go P6 PPM file encoded with 1 byte per channel //getting W & H tok=tokens(txt(2)); W=eval(tok(1));//width of the image H=eval(tok(2));//height of the image //Now we need to read 3*H*W bytes from the end of the file bytoread=3*H*W; startpos=file_size-bytoread; fd=mopen(ppm_file,'rb'); mseek(startpos,fd); dat=mgeti(bytoread,'uc',fd);//raw data mclose(fd); end //separating the channels // TODO : can we get something more elegant than transpose & reverse of 1st dim ? r=matrix(dat(1:3:$),W,H).'; g=matrix(dat(2:3:$),W,H).'; b=matrix(dat(3:3:$),W,H).'; r=r($:-1:1,:); g=g($:-1:1,:); b=b($:-1:1,:); // building the hypermatrix from the channels // TODO : more elegant way to fill the image? img=uint8(hypermat([H,W,3])); img(:,:,1)=r; img(:,:,2)=g; img(:,:,3)=b; endfunction I hope someone might find it useful, Antoine Le 01/13/2016 11:20 AM, Philipp M?hlmann a ?crit : > mh, I never additionally installed OpenCV to be able to use IPD...it > just worked "out of the box". > > 2016-01-13 9:38 GMT+01:00 >: > > Le 01/13/2016 08:34 AM, CHEZE David 227480 a ?crit : >> >> Same conclusion for me and also question reagrding scilab 6 >> > Well, I use both scilab 5.5.X and 6.0.X but: > > //scilab 6.0.X > --> atomsInstall('IPD') > atomsInstallList: The package IPD is not available > > Antoine > > >> David >> >> *De :*users [mailto:users-bounces at lists.scilab.org] *De la part >> de* Philipp M?hlmann >> *Envoy? :* mardi 12 janvier 2016 20:11 >> *? :* Users mailing list for Scilab >> >> *Objet :* Re: [Scilab-users] An Image processing toolbox that *works* >> >> Hello, >> >> I've been using IPD and SIVP a lot with Scilab 5.5.1 and >> 5.4.1...on WinXP 32 bit and Win7 64 bit. >> >> Both times with IPD 8.3.2-0 >> >> >> IPD would be my favourite. >> >> Anybody uses IPD with Scilab 6? >> >> Best regards, >> >> Philipp >> >> >> >> 2016-01-12 13:43 GMT+01:00 Samuel Gougeon > >: >> >> Hello, >> >> Le 12/01/2016 12:53, antoine.monmayrant at laas.fr >> a ?crit : >> >> Hi everyone, >> >> This message is not a rant (but it could). >> I am truly looking for an image processing toolbox that >> works with current versions of Scilab and a decently >> modern OS. >> I tried every toolbox I've found but without success: >> >> SIVP: requires an outdated version of libtiff that I >> don't know how to install on my system. >> >> IPD: does not seem to work properly: ReadImage fails: >> >> >> Works for me with Scilab 5.5.2 / win7_x64 : >> >> -->dir *.png >> ans = >> >> foo.png Google_logo.png ico.png scilab.png >> >> -->atomsLoad IPD >> >> Start IPD - Image Processing Design >> Load macros >> Load dependencies >> Load gateways >> Load help >> Load demos >> >> ans = >> >> !IPD 8.3.2-0 allusers SCI\contrib\IPD\8.3.2-0 ! >> >> -->i = ReadImage("Google_logo.png"); >> >> -->size(i) >> ans = >> >> 95. 275. 3. >> >> >> Do you get an error whatever is the image you try to load? >> You may report the error you get @ >> http://forge.scilab.org/index.php/p/IPD/issues/ >> + posting the image triggering it. >> >> Cheers >> Samuel >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> -- >> >> There we have the salad. >> >> >> >> _______________________________________________ >> 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 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > There we have the salad. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabrizio.parisini at gmail.com Thu Jan 14 10:14:20 2016 From: fabrizio.parisini at gmail.com (fparis) Date: Thu, 14 Jan 2016 02:14:20 -0700 (MST) Subject: [Scilab-users] Scilab and EPANET Message-ID: <1452762860978-4033281.post@n3.nabble.com> Hello, I'm trying to integrate EPANET and Scilab (as already the user Choux did in 2013) but I got this result: -->link("D:\Fabrizio\Development\EPANETProject\epanet2\src\epanet2.dll","ENopen","c") gemeinsame Bibliothek geladen. Verkettung durchgef?hrt. ENopen ist kein Eingangspunkt. !--error 235 link: Problem mit einer der Eingangspunkte. -->c_link('ENopen') ans = F Scilab gives me a "False" answer, whereas it should be T "True": I can't understand why! On the internet there is almost no information about what "ENopen ist kein Eingangspunkt (ENopen is not an entry point)" means. Any advice? Thanks, Fabrizio PS: all the files of the EPANET Toolkit are in the same directory of my epanet2.dll file. -- View this message in context: http://mailinglists.scilab.org/Scilab-and-EPANET-tp4033281.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Fri Jan 15 07:37:27 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 06:37:27 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: Message-ID: Just installed v5.5.2 and get the same issue when trying to install a module manually, error 21 at line 170 of atomsInstall Scilab is installed in Program Files on Windows, and so I am guessing that it might be a permissions issue for a work machine? On 13 January 2016 at 08:51, Lester Anderson wrote: > Hello, > > I currently have v5.4.1 of Scilab, and have to install modules manually. > > I am trying to install apifun (as quite a few modules use it), but get > this error > > -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') > !--error 21 > Invalid index. > at line 170 of function atomsInstall called by : > atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') > > Checked the code for atomsInstall: > > eb_ki.Callback = "updateedit_ki"; Line 170 > > Any ideas how to resolve this? Will have to follow the same procedure > for v5.5.2 when I update. > > Thanks > Lester From arctica1963 at gmail.com Fri Jan 15 11:29:48 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 10:29:48 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: Message-ID: I assume that the following error from atomsGui is due to no direct port access to the Internet? The webpage links from Scilab work fine. Somewhat at a loss as to how to proceed. Do I need to get the IT guys to open a port/proxy access ? Works fine when I do things from home. Cheers On 15 January 2016 at 06:37, Lester Anderson wrote: > Just installed v5.5.2 and get the same issue when trying to install a > module manually, error 21 at line 170 of atomsInstall > > Scilab is installed in Program Files on Windows, and so I am guessing > that it might be a permissions issue for a work machine? > > On 13 January 2016 at 08:51, Lester Anderson wrote: >> Hello, >> >> I currently have v5.4.1 of Scilab, and have to install modules manually. >> >> I am trying to install apifun (as quite a few modules use it), but get >> this error >> >> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >> !--error 21 >> Invalid index. >> at line 170 of function atomsInstall called by : >> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >> >> Checked the code for atomsInstall: >> >> eb_ki.Callback = "updateedit_ki"; Line 170 >> >> Any ideas how to resolve this? Will have to follow the same procedure >> for v5.5.2 when I update. >> >> Thanks >> Lester -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab_AtomsGui.PNG Type: image/png Size: 9731 bytes Desc: not available URL: From lavitha89 at gmail.com Fri Jan 15 11:42:25 2016 From: lavitha89 at gmail.com (Lavitha Pereira) Date: Fri, 15 Jan 2016 16:12:25 +0530 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: Message-ID: Hi Lester, If you are under proxy, follow the below instructions. Configure the network proxy atomsSetConfig("Verbose","True")atomsSetConfig("useProxy","True")atomsSetConfig("proxyHost","myProxyHost")atomsSetConfig("proxyPort","myProxyPort")atomsSetConfig("proxyUser","myUserName")atomsSetConfig("proxyPassword","myPassword") Read the more documentation below: https://wiki.scilab.org/ATOMS Reagrds, Lavita Pereira On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson wrote: > I assume that the following error from atomsGui is due to no direct > port access to the Internet? The webpage links from Scilab work fine. > > Somewhat at a loss as to how to proceed. Do I need to get the IT guys > to open a port/proxy access ? > > Works fine when I do things from home. > > Cheers > > On 15 January 2016 at 06:37, Lester Anderson > wrote: > > Just installed v5.5.2 and get the same issue when trying to install a > > module manually, error 21 at line 170 of atomsInstall > > > > Scilab is installed in Program Files on Windows, and so I am guessing > > that it might be a permissions issue for a work machine? > > > > On 13 January 2016 at 08:51, Lester Anderson > wrote: > >> Hello, > >> > >> I currently have v5.4.1 of Scilab, and have to install modules manually. > >> > >> I am trying to install apifun (as quite a few modules use it), but get > >> this error > >> > >> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') > >> !--error 21 > >> Invalid index. > >> at line 170 of function atomsInstall called by : > >> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') > >> > >> Checked the code for atomsInstall: > >> > >> eb_ki.Callback = "updateedit_ki"; Line 170 > >> > >> Any ideas how to resolve this? Will have to follow the same procedure > >> for v5.5.2 when I update. > >> > >> Thanks > >> Lester > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Thanks & Regards, Lavitha M. Pereira -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Jan 15 12:40:23 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 15 Jan 2016 12:40:23 +0100 Subject: [Scilab-users] Font size adjustment of legend In-Reply-To: References: <56941D70.8040301@free.fr> Message-ID: <5698DAA7.90103@free.fr> Hello, Sorry for the misleading info: actually, font_size tunes as well the size of LaTeX outputs. My mistake. SG:>>For instance, try "$\scalebox{1.2}{T_e\,=\,0\km}$" A space was missing in the content, yielding an error (not due to \scalebox{}). It should be "$\scalebox{1.2}{T_e\,=\,0\ km}$". Then, scaling LaTeX output in this way also works. Regards Samuel Gougeon Le 11/01/2016 23:53, Lester Anderson a ?crit : > Hello, > > Thanks for the pointers. The LaTex formatting you suggested Samuel did > not work, but the following change suggested by Serge did: > > L=legend(['$T_e\ = 5\ km$', '$T_e\ = 10\ km$', '$T_e\ = 25\ km$'],4); > L.font_size=4 > xlabel('$Distance\ (km)$','fontsize',5.5) > ylabel('$Flexure\ (m)$','fontsize',5.5) > title('$Flexure\ for\ a\ Broken\ Plate\ Model$','fontsize',5.5) > > As before the legend is set at bottom right and the font_size will now > change it up or down. > > It is a bit confusing having different methods of doing this in > Scilab, but the code does what it should. It does seem that the > formatting is not consistent between axis labels and legends. > > Thanks > From arctica1963 at gmail.com Fri Jan 15 13:45:09 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 12:45:09 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: Message-ID: Hello, Tried setting the proxy with the settings our IT guy gave in the Scilab preferences and it still failed, basically thinking it could not access the Internet (which is incorrect)! Trying the manual install again (downloaded a toolbox zip file) it looks like it still needs access! -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') ! ! ! ! !gzip: C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: not! ! in gzip format ! WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') has failed. Scanning repository http://atoms.scilab.org/5.5 ... Skipped !--error 10000 All ATOMS repositories scan failed. at line 198 of function atomsDESCRIPTIONget called by : at line 227 of function atomsInstall called by : atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') and ... -->atomsInstall('apifun_0.4.2-3.bin.zip') !--error 21 Invalid index. at line 170 of function atomsInstall called by : atomsInstall('apifun_0.4.2-3.bin.zip') Confused to say the least the errors vary between the different archives. I thought that atomsInstall could be used to install a module downloaded without having access to the Internet. On 15 January 2016 at 10:42, Lavitha Pereira wrote: > Hi Lester, > > If you are under proxy, follow the below instructions. > > Configure the network proxy > > > atomsSetConfig("Verbose","True") > atomsSetConfig("useProxy","True") > atomsSetConfig("proxyHost","myProxyHost") > atomsSetConfig("proxyPort","myProxyPort") > atomsSetConfig("proxyUser","myUserName") > atomsSetConfig("proxyPassword","myPassword") > > > Read the more documentation below: > https://wiki.scilab.org/ATOMS > > Reagrds, > > Lavita Pereira > > > > On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson > wrote: >> >> I assume that the following error from atomsGui is due to no direct >> port access to the Internet? The webpage links from Scilab work fine. >> >> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >> to open a port/proxy access ? >> >> Works fine when I do things from home. >> >> Cheers >> >> On 15 January 2016 at 06:37, Lester Anderson >> wrote: >> > Just installed v5.5.2 and get the same issue when trying to install a >> > module manually, error 21 at line 170 of atomsInstall >> > >> > Scilab is installed in Program Files on Windows, and so I am guessing >> > that it might be a permissions issue for a work machine? >> > >> > On 13 January 2016 at 08:51, Lester Anderson >> > wrote: >> >> Hello, >> >> >> >> I currently have v5.4.1 of Scilab, and have to install modules >> >> manually. >> >> >> >> I am trying to install apifun (as quite a few modules use it), but get >> >> this error >> >> >> >> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >> >> !--error 21 >> >> Invalid index. >> >> at line 170 of function atomsInstall called by : >> >> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >> >> >> >> Checked the code for atomsInstall: >> >> >> >> eb_ki.Callback = "updateedit_ki"; Line 170 >> >> >> >> Any ideas how to resolve this? Will have to follow the same procedure >> >> for v5.5.2 when I update. >> >> >> >> Thanks >> >> Lester >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > -- > Thanks & Regards, > Lavitha M. Pereira From amonmayr at laas.fr Fri Jan 15 14:13:00 2016 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Fri, 15 Jan 2016 14:13:00 +0100 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: Message-ID: <5698F05C.9010900@laas.fr> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : > Hello, > > Tried setting the proxy with the settings our IT guy gave in the > Scilab preferences and it still failed, basically thinking it could > not access the Internet (which is incorrect)! > > Trying the manual install again (downloaded a toolbox zip file) it > looks like it still needs access! > > -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') > > ! > ! > ! > ! > !gzip: C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: not! > ! in gzip format > ! > WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file > ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') > has failed. > Scanning repository http://atoms.scilab.org/5.5 ... Skipped > > !--error 10000 > All ATOMS repositories scan failed. > at line 198 of function atomsDESCRIPTIONget called by : > at line 227 of function atomsInstall called by : > atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') > > and ... > > -->atomsInstall('apifun_0.4.2-3.bin.zip') > !--error 21 > Invalid index. > at line 170 of function atomsInstall called by : > atomsInstall('apifun_0.4.2-3.bin.zip') > > Confused to say the least the errors vary between the different archives. > > I thought that atomsInstall could be used to install a module > downloaded without having access to the Internet. Well, there is something weird in the way the atoms system is working. Whenever you install a package, it first fetches the list of all available packages (which takes a while). I just ran a test by I didn't find a way to turn it off. It's particularly annoying because it re-fetched everything even if the list was updated seconds ago during a previous install. When you install sequentially 5 local packages, it's really infuriating! There's room for improvement: - By default, turn off fetching when installing a local package, - Cache locally the list and avoid refetching if there is no change or if it was updated XX minutes ago. - Speed-up the process of updating the list: on my computer it takes 3 minutes! Antoine > > > > > On 15 January 2016 at 10:42, Lavitha Pereira wrote: >> Hi Lester, >> >> If you are under proxy, follow the below instructions. >> >> Configure the network proxy >> >> >> atomsSetConfig("Verbose","True") >> atomsSetConfig("useProxy","True") >> atomsSetConfig("proxyHost","myProxyHost") >> atomsSetConfig("proxyPort","myProxyPort") >> atomsSetConfig("proxyUser","myUserName") >> atomsSetConfig("proxyPassword","myPassword") >> >> >> Read the more documentation below: >> https://wiki.scilab.org/ATOMS >> >> Reagrds, >> >> Lavita Pereira >> >> >> >> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >> wrote: >>> I assume that the following error from atomsGui is due to no direct >>> port access to the Internet? The webpage links from Scilab work fine. >>> >>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>> to open a port/proxy access ? >>> >>> Works fine when I do things from home. >>> >>> Cheers >>> >>> On 15 January 2016 at 06:37, Lester Anderson >>> wrote: >>>> Just installed v5.5.2 and get the same issue when trying to install a >>>> module manually, error 21 at line 170 of atomsInstall >>>> >>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>> that it might be a permissions issue for a work machine? >>>> >>>> On 13 January 2016 at 08:51, Lester Anderson >>>> wrote: >>>>> Hello, >>>>> >>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>> manually. >>>>> >>>>> I am trying to install apifun (as quite a few modules use it), but get >>>>> this error >>>>> >>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>> !--error 21 >>>>> Invalid index. >>>>> at line 170 of function atomsInstall called by : >>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>> >>>>> Checked the code for atomsInstall: >>>>> >>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>> >>>>> Any ideas how to resolve this? Will have to follow the same procedure >>>>> for v5.5.2 when I update. >>>>> >>>>> Thanks >>>>> Lester >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> >> -- >> Thanks & Regards, >> Lavitha M. Pereira > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From arctica1963 at gmail.com Fri Jan 15 14:25:31 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 13:25:31 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: <5698F05C.9010900@laas.fr> References: <5698F05C.9010900@laas.fr> Message-ID: Hello Antoine, How does one get a "cached" version of the repository list and where is it placed? -->atomsRepositoryList() ans = !http://atoms.scilab.org/5.5 official ! -->atomsVersion() ans = 5.5 Is there an option to disable fetching when installing locally, presumably after one has cached module list. Thanks On 15 January 2016 at 13:13, wrote: > Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >> >> Hello, >> >> Tried setting the proxy with the settings our IT guy gave in the >> Scilab preferences and it still failed, basically thinking it could >> not access the Internet (which is incorrect)! >> >> Trying the manual install again (downloaded a toolbox zip file) it >> looks like it still needs access! >> >> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >> >> ! >> ! >> ! >> ! >> !gzip: >> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: not! >> ! in gzip format >> ! >> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >> has failed. >> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >> >> !--error 10000 >> All ATOMS repositories scan failed. >> at line 198 of function atomsDESCRIPTIONget called by : >> at line 227 of function atomsInstall called by : >> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >> >> and ... >> >> -->atomsInstall('apifun_0.4.2-3.bin.zip') >> !--error 21 >> Invalid index. >> at line 170 of function atomsInstall called by : >> atomsInstall('apifun_0.4.2-3.bin.zip') >> >> Confused to say the least the errors vary between the different archives. >> >> I thought that atomsInstall could be used to install a module >> downloaded without having access to the Internet. > > > Well, there is something weird in the way the atoms system is working. > Whenever you install a package, it first fetches the list of all available > packages (which takes a while). > I just ran a test by > I didn't find a way to turn it off. > It's particularly annoying because it re-fetched everything even if the list > was updated seconds ago during a previous install. > When you install sequentially 5 local packages, it's really infuriating! > There's room for improvement: > > - By default, turn off fetching when installing a local package, > - Cache locally the list and avoid refetching if there is no change or if it > was updated XX minutes ago. > - Speed-up the process of updating the list: on my computer it takes 3 > minutes! > > Antoine > > >> >> >> >> >> On 15 January 2016 at 10:42, Lavitha Pereira wrote: >>> >>> Hi Lester, >>> >>> If you are under proxy, follow the below instructions. >>> >>> Configure the network proxy >>> >>> >>> atomsSetConfig("Verbose","True") >>> atomsSetConfig("useProxy","True") >>> atomsSetConfig("proxyHost","myProxyHost") >>> atomsSetConfig("proxyPort","myProxyPort") >>> atomsSetConfig("proxyUser","myUserName") >>> atomsSetConfig("proxyPassword","myPassword") >>> >>> >>> Read the more documentation below: >>> https://wiki.scilab.org/ATOMS >>> >>> Reagrds, >>> >>> Lavita Pereira >>> >>> >>> >>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>> wrote: >>>> >>>> I assume that the following error from atomsGui is due to no direct >>>> port access to the Internet? The webpage links from Scilab work fine. >>>> >>>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>>> to open a port/proxy access ? >>>> >>>> Works fine when I do things from home. >>>> >>>> Cheers >>>> >>>> On 15 January 2016 at 06:37, Lester Anderson >>>> wrote: >>>>> >>>>> Just installed v5.5.2 and get the same issue when trying to install a >>>>> module manually, error 21 at line 170 of atomsInstall >>>>> >>>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>>> that it might be a permissions issue for a work machine? >>>>> >>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>> wrote: >>>>>> >>>>>> Hello, >>>>>> >>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>> manually. >>>>>> >>>>>> I am trying to install apifun (as quite a few modules use it), but get >>>>>> this error >>>>>> >>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>> !--error 21 >>>>>> Invalid index. >>>>>> at line 170 of function atomsInstall called by : >>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>> >>>>>> Checked the code for atomsInstall: >>>>>> >>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>> >>>>>> Any ideas how to resolve this? Will have to follow the same procedure >>>>>> for v5.5.2 when I update. >>>>>> >>>>>> Thanks >>>>>> Lester >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>> >>> >>> -- >>> Thanks & Regards, >>> Lavitha M. Pereira >> >> _______________________________________________ >> 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 antoine.monmayrant at laas.fr Fri Jan 15 14:31:25 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 15 Jan 2016 14:31:25 +0100 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: <5698F05C.9010900@laas.fr> Message-ID: <5698F4AD.7010502@laas.fr> Hi, Sorry, my last message was a bit misleading. I have absolutely no idea on how you can improve your situation and solve your problem. When I said "there's room for improvement", it was a message for the developers of the atoms system, not a list of things you should try to solve your problem. Sorry again, Antoine Le 01/15/2016 02:25 PM, Lester Anderson a ?crit : > Hello Antoine, > > How does one get a "cached" version of the repository list and where > is it placed? > > -->atomsRepositoryList() > ans = > > !http://atoms.scilab.org/5.5 official ! > > -->atomsVersion() > ans = > > 5.5 > > Is there an option to disable fetching when installing locally, > presumably after one has cached module list. > > Thanks > > On 15 January 2016 at 13:13, wrote: >> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>> Hello, >>> >>> Tried setting the proxy with the settings our IT guy gave in the >>> Scilab preferences and it still failed, basically thinking it could >>> not access the Internet (which is incorrect)! >>> >>> Trying the manual install again (downloaded a toolbox zip file) it >>> looks like it still needs access! >>> >>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>> >>> ! >>> ! >>> ! >>> ! >>> !gzip: >>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: not! >>> ! in gzip format >>> ! >>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>> has failed. >>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>> >>> !--error 10000 >>> All ATOMS repositories scan failed. >>> at line 198 of function atomsDESCRIPTIONget called by : >>> at line 227 of function atomsInstall called by : >>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>> >>> and ... >>> >>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>> !--error 21 >>> Invalid index. >>> at line 170 of function atomsInstall called by : >>> atomsInstall('apifun_0.4.2-3.bin.zip') >>> >>> Confused to say the least the errors vary between the different archives. >>> >>> I thought that atomsInstall could be used to install a module >>> downloaded without having access to the Internet. >> >> Well, there is something weird in the way the atoms system is working. >> Whenever you install a package, it first fetches the list of all available >> packages (which takes a while). >> I just ran a test by >> I didn't find a way to turn it off. >> It's particularly annoying because it re-fetched everything even if the list >> was updated seconds ago during a previous install. >> When you install sequentially 5 local packages, it's really infuriating! >> There's room for improvement: >> >> - By default, turn off fetching when installing a local package, >> - Cache locally the list and avoid refetching if there is no change or if it >> was updated XX minutes ago. >> - Speed-up the process of updating the list: on my computer it takes 3 >> minutes! >> >> Antoine >> >> >>> >>> >>> >>> On 15 January 2016 at 10:42, Lavitha Pereira wrote: >>>> Hi Lester, >>>> >>>> If you are under proxy, follow the below instructions. >>>> >>>> Configure the network proxy >>>> >>>> >>>> atomsSetConfig("Verbose","True") >>>> atomsSetConfig("useProxy","True") >>>> atomsSetConfig("proxyHost","myProxyHost") >>>> atomsSetConfig("proxyPort","myProxyPort") >>>> atomsSetConfig("proxyUser","myUserName") >>>> atomsSetConfig("proxyPassword","myPassword") >>>> >>>> >>>> Read the more documentation below: >>>> https://wiki.scilab.org/ATOMS >>>> >>>> Reagrds, >>>> >>>> Lavita Pereira >>>> >>>> >>>> >>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>> wrote: >>>>> I assume that the following error from atomsGui is due to no direct >>>>> port access to the Internet? The webpage links from Scilab work fine. >>>>> >>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>>>> to open a port/proxy access ? >>>>> >>>>> Works fine when I do things from home. >>>>> >>>>> Cheers >>>>> >>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>> wrote: >>>>>> Just installed v5.5.2 and get the same issue when trying to install a >>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>> >>>>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>>>> that it might be a permissions issue for a work machine? >>>>>> >>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>> wrote: >>>>>>> Hello, >>>>>>> >>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>> manually. >>>>>>> >>>>>>> I am trying to install apifun (as quite a few modules use it), but get >>>>>>> this error >>>>>>> >>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>> !--error 21 >>>>>>> Invalid index. >>>>>>> at line 170 of function atomsInstall called by : >>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>> >>>>>>> Checked the code for atomsInstall: >>>>>>> >>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>> >>>>>>> Any ideas how to resolve this? Will have to follow the same procedure >>>>>>> for v5.5.2 when I update. >>>>>>> >>>>>>> Thanks >>>>>>> Lester >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Lavitha M. Pereira >>> _______________________________________________ >>> 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 -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 stephane.mottelet at utc.fr Fri Jan 15 14:29:34 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 15 Jan 2016 14:29:34 +0100 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: <5698F05C.9010900@laas.fr> Message-ID: <5698F43E.50900@utc.fr> Le 15/01/2016 14:25, Lester Anderson a ?crit : > Hello Antoine, > > How does one get a "cached" version of the repository list and where > is it placed? > > -->atomsRepositoryList() > ans = > > !http://atoms.scilab.org/5.5 official ! > > -->atomsVersion() > ans = > > 5.5 > > Is there an option to disable fetching when installing locally, > presumably after one has cached module list. maybe atomsSetConfig offLine True S. > > Thanks > > On 15 January 2016 at 13:13, wrote: >> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>> Hello, >>> >>> Tried setting the proxy with the settings our IT guy gave in the >>> Scilab preferences and it still failed, basically thinking it could >>> not access the Internet (which is incorrect)! >>> >>> Trying the manual install again (downloaded a toolbox zip file) it >>> looks like it still needs access! >>> >>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>> >>> ! >>> ! >>> ! >>> ! >>> !gzip: >>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: not! >>> ! in gzip format >>> ! >>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>> has failed. >>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>> >>> !--error 10000 >>> All ATOMS repositories scan failed. >>> at line 198 of function atomsDESCRIPTIONget called by : >>> at line 227 of function atomsInstall called by : >>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>> >>> and ... >>> >>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>> !--error 21 >>> Invalid index. >>> at line 170 of function atomsInstall called by : >>> atomsInstall('apifun_0.4.2-3.bin.zip') >>> >>> Confused to say the least the errors vary between the different archives. >>> >>> I thought that atomsInstall could be used to install a module >>> downloaded without having access to the Internet. >> >> Well, there is something weird in the way the atoms system is working. >> Whenever you install a package, it first fetches the list of all available >> packages (which takes a while). >> I just ran a test by >> I didn't find a way to turn it off. >> It's particularly annoying because it re-fetched everything even if the list >> was updated seconds ago during a previous install. >> When you install sequentially 5 local packages, it's really infuriating! >> There's room for improvement: >> >> - By default, turn off fetching when installing a local package, >> - Cache locally the list and avoid refetching if there is no change or if it >> was updated XX minutes ago. >> - Speed-up the process of updating the list: on my computer it takes 3 >> minutes! >> >> Antoine >> >> >>> >>> >>> >>> On 15 January 2016 at 10:42, Lavitha Pereira wrote: >>>> Hi Lester, >>>> >>>> If you are under proxy, follow the below instructions. >>>> >>>> Configure the network proxy >>>> >>>> >>>> atomsSetConfig("Verbose","True") >>>> atomsSetConfig("useProxy","True") >>>> atomsSetConfig("proxyHost","myProxyHost") >>>> atomsSetConfig("proxyPort","myProxyPort") >>>> atomsSetConfig("proxyUser","myUserName") >>>> atomsSetConfig("proxyPassword","myPassword") >>>> >>>> >>>> Read the more documentation below: >>>> https://wiki.scilab.org/ATOMS >>>> >>>> Reagrds, >>>> >>>> Lavita Pereira >>>> >>>> >>>> >>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>> wrote: >>>>> I assume that the following error from atomsGui is due to no direct >>>>> port access to the Internet? The webpage links from Scilab work fine. >>>>> >>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>>>> to open a port/proxy access ? >>>>> >>>>> Works fine when I do things from home. >>>>> >>>>> Cheers >>>>> >>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>> wrote: >>>>>> Just installed v5.5.2 and get the same issue when trying to install a >>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>> >>>>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>>>> that it might be a permissions issue for a work machine? >>>>>> >>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>> wrote: >>>>>>> Hello, >>>>>>> >>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>> manually. >>>>>>> >>>>>>> I am trying to install apifun (as quite a few modules use it), but get >>>>>>> this error >>>>>>> >>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>> !--error 21 >>>>>>> Invalid index. >>>>>>> at line 170 of function atomsInstall called by : >>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>> >>>>>>> Checked the code for atomsInstall: >>>>>>> >>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>> >>>>>>> Any ideas how to resolve this? Will have to follow the same procedure >>>>>>> for v5.5.2 when I update. >>>>>>> >>>>>>> Thanks >>>>>>> Lester >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Lavitha M. Pereira >>> _______________________________________________ >>> 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From arctica1963 at gmail.com Fri Jan 15 15:16:46 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 14:16:46 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: <5698F43E.50900@utc.fr> References: <5698F05C.9010900@laas.fr> <5698F43E.50900@utc.fr> Message-ID: tried atomsSetConfig('Offline','True') with no change in result As you say Antoine, room for improvement in terms of installing offline for sure. On 15 January 2016 at 13:29, St?phane Mottelet wrote: > Le 15/01/2016 14:25, Lester Anderson a ?crit : >> >> Hello Antoine, >> >> How does one get a "cached" version of the repository list and where >> is it placed? >> >> -->atomsRepositoryList() >> ans = >> >> !http://atoms.scilab.org/5.5 official ! >> >> -->atomsVersion() >> ans = >> >> 5.5 >> >> Is there an option to disable fetching when installing locally, >> presumably after one has cached module list. > > > maybe > > atomsSetConfig offLine True > > S. > > >> >> Thanks >> >> On 15 January 2016 at 13:13, wrote: >>> >>> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>>> >>>> Hello, >>>> >>>> Tried setting the proxy with the settings our IT guy gave in the >>>> Scilab preferences and it still failed, basically thinking it could >>>> not access the Internet (which is incorrect)! >>>> >>>> Trying the manual install again (downloaded a toolbox zip file) it >>>> looks like it still needs access! >>>> >>>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>> >>>> ! >>>> ! >>>> ! >>>> ! >>>> !gzip: >>>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: >>>> not! >>>> ! in gzip format >>>> ! >>>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>>> has failed. >>>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>>> >>>> !--error 10000 >>>> All ATOMS repositories scan failed. >>>> at line 198 of function atomsDESCRIPTIONget called by : >>>> at line 227 of function atomsInstall called by : >>>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>> >>>> and ... >>>> >>>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>>> !--error 21 >>>> Invalid index. >>>> at line 170 of function atomsInstall called by : >>>> atomsInstall('apifun_0.4.2-3.bin.zip') >>>> >>>> Confused to say the least the errors vary between the different >>>> archives. >>>> >>>> I thought that atomsInstall could be used to install a module >>>> downloaded without having access to the Internet. >>> >>> >>> Well, there is something weird in the way the atoms system is working. >>> Whenever you install a package, it first fetches the list of all >>> available >>> packages (which takes a while). >>> I just ran a test by >>> I didn't find a way to turn it off. >>> It's particularly annoying because it re-fetched everything even if the >>> list >>> was updated seconds ago during a previous install. >>> When you install sequentially 5 local packages, it's really infuriating! >>> There's room for improvement: >>> >>> - By default, turn off fetching when installing a local package, >>> - Cache locally the list and avoid refetching if there is no change or if >>> it >>> was updated XX minutes ago. >>> - Speed-up the process of updating the list: on my computer it takes 3 >>> minutes! >>> >>> Antoine >>> >>> >>>> >>>> >>>> >>>> On 15 January 2016 at 10:42, Lavitha Pereira >>>> wrote: >>>>> >>>>> Hi Lester, >>>>> >>>>> If you are under proxy, follow the below instructions. >>>>> >>>>> Configure the network proxy >>>>> >>>>> >>>>> atomsSetConfig("Verbose","True") >>>>> atomsSetConfig("useProxy","True") >>>>> atomsSetConfig("proxyHost","myProxyHost") >>>>> atomsSetConfig("proxyPort","myProxyPort") >>>>> atomsSetConfig("proxyUser","myUserName") >>>>> atomsSetConfig("proxyPassword","myPassword") >>>>> >>>>> >>>>> Read the more documentation below: >>>>> https://wiki.scilab.org/ATOMS >>>>> >>>>> Reagrds, >>>>> >>>>> Lavita Pereira >>>>> >>>>> >>>>> >>>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>>> >>>>> wrote: >>>>>> >>>>>> I assume that the following error from atomsGui is due to no direct >>>>>> port access to the Internet? The webpage links from Scilab work fine. >>>>>> >>>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>>>>> to open a port/proxy access ? >>>>>> >>>>>> Works fine when I do things from home. >>>>>> >>>>>> Cheers >>>>>> >>>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>>> wrote: >>>>>>> >>>>>>> Just installed v5.5.2 and get the same issue when trying to install a >>>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>>> >>>>>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>>>>> that it might be a permissions issue for a work machine? >>>>>>> >>>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>>> wrote: >>>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>>> manually. >>>>>>>> >>>>>>>> I am trying to install apifun (as quite a few modules use it), but >>>>>>>> get >>>>>>>> this error >>>>>>>> >>>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>> !--error 21 >>>>>>>> Invalid index. >>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>> >>>>>>>> Checked the code for atomsInstall: >>>>>>>> >>>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>>> >>>>>>>> Any ideas how to resolve this? Will have to follow the same >>>>>>>> procedure >>>>>>>> for v5.5.2 when I update. >>>>>>>> >>>>>>>> Thanks >>>>>>>> Lester >>>>>> >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>> >>>>> >>>>> -- >>>>> Thanks & Regards, >>>>> Lavitha M. Pereira >>>> >>>> _______________________________________________ >>>> 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 >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > -- > D?partement de G?nie Informatique > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > Universit? de Technologie de Compi?gne - CS 60319 > 60203 Compi?gne cedex > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Fri Jan 15 15:26:46 2016 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 15 Jan 2016 15:26:46 +0100 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: References: <5698F05C.9010900@laas.fr> <5698F43E.50900@utc.fr> Message-ID: <569901A6.7030503@laas.fr> Le 01/15/2016 03:16 PM, Lester Anderson a ?crit : > tried atomsSetConfig('Offline','True') with no change in result That's weird because I found the relevant bit in atomsInstall: // edit atomsInstall //lines 221->229 // Force update the system information // ========================================================================= if from_localarchive then if (atomsGetConfig("offLine") == "True" | atomsGetConfig("offline") == "True") then warning(msprintf(gettext("Option offline of ATOMS configuration is set to True. atomsSystemUpdate did not check the latest modules availables."))); else atomsDESCRIPTIONget(%T); end end OK, I got it: wrong capitalization: Offline->offline atomsSetConfig('offline','True') does the trick! Antoine > > As you say Antoine, room for improvement in terms of installing > offline for sure. > > On 15 January 2016 at 13:29, St?phane Mottelet wrote: >> Le 15/01/2016 14:25, Lester Anderson a ?crit : >>> Hello Antoine, >>> >>> How does one get a "cached" version of the repository list and where >>> is it placed? >>> >>> -->atomsRepositoryList() >>> ans = >>> >>> !http://atoms.scilab.org/5.5 official ! >>> >>> -->atomsVersion() >>> ans = >>> >>> 5.5 >>> >>> Is there an option to disable fetching when installing locally, >>> presumably after one has cached module list. >> >> maybe >> >> atomsSetConfig offLine True >> >> S. >> >> >>> Thanks >>> >>> On 15 January 2016 at 13:13, wrote: >>>> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>>>> Hello, >>>>> >>>>> Tried setting the proxy with the settings our IT guy gave in the >>>>> Scilab preferences and it still failed, basically thinking it could >>>>> not access the Internet (which is incorrect)! >>>>> >>>>> Trying the manual install again (downloaded a toolbox zip file) it >>>>> looks like it still needs access! >>>>> >>>>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>> >>>>> ! >>>>> ! >>>>> ! >>>>> ! >>>>> !gzip: >>>>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: >>>>> not! >>>>> ! in gzip format >>>>> ! >>>>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>>>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>>>> has failed. >>>>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>>>> >>>>> !--error 10000 >>>>> All ATOMS repositories scan failed. >>>>> at line 198 of function atomsDESCRIPTIONget called by : >>>>> at line 227 of function atomsInstall called by : >>>>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>> >>>>> and ... >>>>> >>>>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>>>> !--error 21 >>>>> Invalid index. >>>>> at line 170 of function atomsInstall called by : >>>>> atomsInstall('apifun_0.4.2-3.bin.zip') >>>>> >>>>> Confused to say the least the errors vary between the different >>>>> archives. >>>>> >>>>> I thought that atomsInstall could be used to install a module >>>>> downloaded without having access to the Internet. >>>> >>>> Well, there is something weird in the way the atoms system is working. >>>> Whenever you install a package, it first fetches the list of all >>>> available >>>> packages (which takes a while). >>>> I just ran a test by >>>> I didn't find a way to turn it off. >>>> It's particularly annoying because it re-fetched everything even if the >>>> list >>>> was updated seconds ago during a previous install. >>>> When you install sequentially 5 local packages, it's really infuriating! >>>> There's room for improvement: >>>> >>>> - By default, turn off fetching when installing a local package, >>>> - Cache locally the list and avoid refetching if there is no change or if >>>> it >>>> was updated XX minutes ago. >>>> - Speed-up the process of updating the list: on my computer it takes 3 >>>> minutes! >>>> >>>> Antoine >>>> >>>> >>>>> >>>>> >>>>> On 15 January 2016 at 10:42, Lavitha Pereira >>>>> wrote: >>>>>> Hi Lester, >>>>>> >>>>>> If you are under proxy, follow the below instructions. >>>>>> >>>>>> Configure the network proxy >>>>>> >>>>>> >>>>>> atomsSetConfig("Verbose","True") >>>>>> atomsSetConfig("useProxy","True") >>>>>> atomsSetConfig("proxyHost","myProxyHost") >>>>>> atomsSetConfig("proxyPort","myProxyPort") >>>>>> atomsSetConfig("proxyUser","myUserName") >>>>>> atomsSetConfig("proxyPassword","myPassword") >>>>>> >>>>>> >>>>>> Read the more documentation below: >>>>>> https://wiki.scilab.org/ATOMS >>>>>> >>>>>> Reagrds, >>>>>> >>>>>> Lavita Pereira >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>>>> >>>>>> wrote: >>>>>>> I assume that the following error from atomsGui is due to no direct >>>>>>> port access to the Internet? The webpage links from Scilab work fine. >>>>>>> >>>>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT guys >>>>>>> to open a port/proxy access ? >>>>>>> >>>>>>> Works fine when I do things from home. >>>>>>> >>>>>>> Cheers >>>>>>> >>>>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>>>> wrote: >>>>>>>> Just installed v5.5.2 and get the same issue when trying to install a >>>>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>>>> >>>>>>>> Scilab is installed in Program Files on Windows, and so I am guessing >>>>>>>> that it might be a permissions issue for a work machine? >>>>>>>> >>>>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>>>> wrote: >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>>>> manually. >>>>>>>>> >>>>>>>>> I am trying to install apifun (as quite a few modules use it), but >>>>>>>>> get >>>>>>>>> this error >>>>>>>>> >>>>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>> !--error 21 >>>>>>>>> Invalid index. >>>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>> >>>>>>>>> Checked the code for atomsInstall: >>>>>>>>> >>>>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>>>> >>>>>>>>> Any ideas how to resolve this? Will have to follow the same >>>>>>>>> procedure >>>>>>>>> for v5.5.2 when I update. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> Lester >>>>>>> _______________________________________________ >>>>>>> users mailing list >>>>>>> users at lists.scilab.org >>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>> >>>>>> -- >>>>>> Thanks & Regards, >>>>>> Lavitha M. Pereira >>>>> _______________________________________________ >>>>> 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 >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> -- >> D?partement de G?nie Informatique >> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >> Universit? de Technologie de Compi?gne - CS 60319 >> 60203 Compi?gne cedex >> >> >> _______________________________________________ >> 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 > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 arctica1963 at gmail.com Fri Jan 15 15:51:09 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 14:51:09 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: <569901A6.7030503@laas.fr> References: <5698F05C.9010900@laas.fr> <5698F43E.50900@utc.fr> <569901A6.7030503@laas.fr> Message-ID: Still not working. On 15 January 2016 at 14:26, Antoine Monmayrant wrote: > Le 01/15/2016 03:16 PM, Lester Anderson a ?crit : >> >> tried atomsSetConfig('Offline','True') with no change in result > > > That's weird because I found the relevant bit in atomsInstall: > // edit atomsInstall > //lines 221->229 > // Force update the system information > // > ========================================================================= > if from_localarchive then > if (atomsGetConfig("offLine") == "True" | atomsGetConfig("offline") > == "True") then > warning(msprintf(gettext("Option offline of ATOMS configuration > is set to True. atomsSystemUpdate did not check the latest modules > availables."))); > else > atomsDESCRIPTIONget(%T); > end > end > > > OK, I got it: wrong capitalization: Offline->offline > > atomsSetConfig('offline','True') > > does the trick! > > Antoine > >> >> As you say Antoine, room for improvement in terms of installing >> offline for sure. >> >> On 15 January 2016 at 13:29, St?phane Mottelet >> wrote: >>> >>> Le 15/01/2016 14:25, Lester Anderson a ?crit : >>>> >>>> Hello Antoine, >>>> >>>> How does one get a "cached" version of the repository list and where >>>> is it placed? >>>> >>>> -->atomsRepositoryList() >>>> ans = >>>> >>>> !http://atoms.scilab.org/5.5 official ! >>>> >>>> -->atomsVersion() >>>> ans = >>>> >>>> 5.5 >>>> >>>> Is there an option to disable fetching when installing locally, >>>> presumably after one has cached module list. >>> >>> >>> maybe >>> >>> atomsSetConfig offLine True >>> >>> S. >>> >>> >>>> Thanks >>>> >>>> On 15 January 2016 at 13:13, wrote: >>>>> >>>>> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>>>>> >>>>>> Hello, >>>>>> >>>>>> Tried setting the proxy with the settings our IT guy gave in the >>>>>> Scilab preferences and it still failed, basically thinking it could >>>>>> not access the Internet (which is incorrect)! >>>>>> >>>>>> Trying the manual install again (downloaded a toolbox zip file) it >>>>>> looks like it still needs access! >>>>>> >>>>>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>> >>>>>> ! >>>>>> ! >>>>>> ! >>>>>> ! >>>>>> !gzip: >>>>>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: >>>>>> not! >>>>>> ! in gzip format >>>>>> ! >>>>>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>>>>> >>>>>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>>>>> has failed. >>>>>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>>>>> >>>>>> !--error 10000 >>>>>> All ATOMS repositories scan failed. >>>>>> at line 198 of function atomsDESCRIPTIONget called by : >>>>>> at line 227 of function atomsInstall called by : >>>>>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>> >>>>>> and ... >>>>>> >>>>>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>> !--error 21 >>>>>> Invalid index. >>>>>> at line 170 of function atomsInstall called by : >>>>>> atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>> >>>>>> Confused to say the least the errors vary between the different >>>>>> archives. >>>>>> >>>>>> I thought that atomsInstall could be used to install a module >>>>>> downloaded without having access to the Internet. >>>>> >>>>> >>>>> Well, there is something weird in the way the atoms system is working. >>>>> Whenever you install a package, it first fetches the list of all >>>>> available >>>>> packages (which takes a while). >>>>> I just ran a test by >>>>> I didn't find a way to turn it off. >>>>> It's particularly annoying because it re-fetched everything even if the >>>>> list >>>>> was updated seconds ago during a previous install. >>>>> When you install sequentially 5 local packages, it's really >>>>> infuriating! >>>>> There's room for improvement: >>>>> >>>>> - By default, turn off fetching when installing a local package, >>>>> - Cache locally the list and avoid refetching if there is no change or >>>>> if >>>>> it >>>>> was updated XX minutes ago. >>>>> - Speed-up the process of updating the list: on my computer it takes 3 >>>>> minutes! >>>>> >>>>> Antoine >>>>> >>>>> >>>>>> >>>>>> >>>>>> On 15 January 2016 at 10:42, Lavitha Pereira >>>>>> wrote: >>>>>>> >>>>>>> Hi Lester, >>>>>>> >>>>>>> If you are under proxy, follow the below instructions. >>>>>>> >>>>>>> Configure the network proxy >>>>>>> >>>>>>> >>>>>>> atomsSetConfig("Verbose","True") >>>>>>> atomsSetConfig("useProxy","True") >>>>>>> atomsSetConfig("proxyHost","myProxyHost") >>>>>>> atomsSetConfig("proxyPort","myProxyPort") >>>>>>> atomsSetConfig("proxyUser","myUserName") >>>>>>> atomsSetConfig("proxyPassword","myPassword") >>>>>>> >>>>>>> >>>>>>> Read the more documentation below: >>>>>>> https://wiki.scilab.org/ATOMS >>>>>>> >>>>>>> Reagrds, >>>>>>> >>>>>>> Lavita Pereira >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>>>>> >>>>>>> wrote: >>>>>>>> >>>>>>>> I assume that the following error from atomsGui is due to no direct >>>>>>>> port access to the Internet? The webpage links from Scilab work >>>>>>>> fine. >>>>>>>> >>>>>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT >>>>>>>> guys >>>>>>>> to open a port/proxy access ? >>>>>>>> >>>>>>>> Works fine when I do things from home. >>>>>>>> >>>>>>>> Cheers >>>>>>>> >>>>>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Just installed v5.5.2 and get the same issue when trying to install >>>>>>>>> a >>>>>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>>>>> >>>>>>>>> Scilab is installed in Program Files on Windows, and so I am >>>>>>>>> guessing >>>>>>>>> that it might be a permissions issue for a work machine? >>>>>>>>> >>>>>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>>>>> >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>>>>> manually. >>>>>>>>>> >>>>>>>>>> I am trying to install apifun (as quite a few modules use it), but >>>>>>>>>> get >>>>>>>>>> this error >>>>>>>>>> >>>>>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>> !--error 21 >>>>>>>>>> Invalid index. >>>>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>> >>>>>>>>>> Checked the code for atomsInstall: >>>>>>>>>> >>>>>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>>>>> >>>>>>>>>> Any ideas how to resolve this? Will have to follow the same >>>>>>>>>> procedure >>>>>>>>>> for v5.5.2 when I update. >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> Lester >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> users mailing list >>>>>>>> users at lists.scilab.org >>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>> >>>>>>> -- >>>>>>> Thanks & Regards, >>>>>>> Lavitha M. Pereira >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >>> >>> -- >>> D?partement de G?nie Informatique >>> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >>> Universit? de Technologie de Compi?gne - CS 60319 >>> 60203 Compi?gne cedex >>> >>> >>> _______________________________________________ >>> 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 >> > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > 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 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From arctica1963 at gmail.com Fri Jan 15 16:26:00 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 15:26:00 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: <5699093F.9070700@laas.fr> References: <5698F05C.9010900@laas.fr> <5698F43E.50900@utc.fr> <569901A6.7030503@laas.fr> <5699093F.9070700@laas.fr> Message-ID: Hi Antoine, Yes all is set fine: -->atomsSetConfig('offline','True') WARNING: Option offline of ATOMS configuration is set to True. atomsSystemUpdate did not check the latest modules availables. ans = 1. -->atomsGetConfig('offline') ans = True Retested: -->atomsInstall('apifun_0.4.2-3.bin.zip') !--error 21 Invalid index. at line 170 of function atomsInstall called by : atomsInstall('apifun_0.4.2-3.bin.zip') I am running the zip files in the same directory just to be sure. No joy. On 15 January 2016 at 14:59, Antoine Monmayrant wrote: > Le 01/15/2016 03:51 PM, Lester Anderson a ?crit : >> >> Still not working. > > What's happening? > Is is still trying to connect to the internet? > Did you have the following message when setting the 'offline' to 'True' : > WARNING: Option offline of ATOMS configuration is set to True. > atomsSystemUpdate did not check the latest modules availables. ? > Another verification: > what do you have when typing "atomsGetConfig("offline")" ? Is it "True" ? > > Last resort: > edit atomsInstall > change the file/function names to "MyatomsInstall" > comment out the lines 221->229 > save > F5 > MyatomsInstall('mylocalpackageIcannotinstall.zip'); > > > Antoine > >> >> On 15 January 2016 at 14:26, Antoine Monmayrant >> wrote: >>> >>> Le 01/15/2016 03:16 PM, Lester Anderson a ?crit : >>>> >>>> tried atomsSetConfig('Offline','True') with no change in result >>> >>> >>> That's weird because I found the relevant bit in atomsInstall: >>> // edit atomsInstall >>> //lines 221->229 >>> // Force update the system information >>> // >>> ========================================================================= >>> if from_localarchive then >>> if (atomsGetConfig("offLine") == "True" | >>> atomsGetConfig("offline") >>> == "True") then >>> warning(msprintf(gettext("Option offline of ATOMS >>> configuration >>> is set to True. atomsSystemUpdate did not check the latest modules >>> availables."))); >>> else >>> atomsDESCRIPTIONget(%T); >>> end >>> end >>> >>> >>> OK, I got it: wrong capitalization: Offline->offline >>> >>> atomsSetConfig('offline','True') >>> >>> does the trick! >>> >>> Antoine >>> >>>> As you say Antoine, room for improvement in terms of installing >>>> offline for sure. >>>> >>>> On 15 January 2016 at 13:29, St?phane Mottelet >>>> >>>> wrote: >>>>> >>>>> Le 15/01/2016 14:25, Lester Anderson a ?crit : >>>>>> >>>>>> Hello Antoine, >>>>>> >>>>>> How does one get a "cached" version of the repository list and where >>>>>> is it placed? >>>>>> >>>>>> -->atomsRepositoryList() >>>>>> ans = >>>>>> >>>>>> !http://atoms.scilab.org/5.5 official ! >>>>>> >>>>>> -->atomsVersion() >>>>>> ans = >>>>>> >>>>>> 5.5 >>>>>> >>>>>> Is there an option to disable fetching when installing locally, >>>>>> presumably after one has cached module list. >>>>> >>>>> >>>>> maybe >>>>> >>>>> atomsSetConfig offLine True >>>>> >>>>> S. >>>>> >>>>> >>>>>> Thanks >>>>>> >>>>>> On 15 January 2016 at 13:13, wrote: >>>>>>> >>>>>>> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> Tried setting the proxy with the settings our IT guy gave in the >>>>>>>> Scilab preferences and it still failed, basically thinking it could >>>>>>>> not access the Internet (which is incorrect)! >>>>>>>> >>>>>>>> Trying the manual install again (downloaded a toolbox zip file) it >>>>>>>> looks like it still needs access! >>>>>>>> >>>>>>>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>>>> >>>>>>>> ! >>>>>>>> ! >>>>>>>> ! >>>>>>>> ! >>>>>>>> !gzip: >>>>>>>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: >>>>>>>> not! >>>>>>>> ! in gzip format >>>>>>>> ! >>>>>>>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>>>>>>> >>>>>>>> >>>>>>>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>>>>>>> has failed. >>>>>>>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>>>>>>> >>>>>>>> !--error 10000 >>>>>>>> All ATOMS repositories scan failed. >>>>>>>> at line 198 of function atomsDESCRIPTIONget called by : >>>>>>>> at line 227 of function atomsInstall called by : >>>>>>>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>>>> >>>>>>>> and ... >>>>>>>> >>>>>>>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>>>> !--error 21 >>>>>>>> Invalid index. >>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>> atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>>>> >>>>>>>> Confused to say the least the errors vary between the different >>>>>>>> archives. >>>>>>>> >>>>>>>> I thought that atomsInstall could be used to install a module >>>>>>>> downloaded without having access to the Internet. >>>>>>> >>>>>>> >>>>>>> Well, there is something weird in the way the atoms system is >>>>>>> working. >>>>>>> Whenever you install a package, it first fetches the list of all >>>>>>> available >>>>>>> packages (which takes a while). >>>>>>> I just ran a test by >>>>>>> I didn't find a way to turn it off. >>>>>>> It's particularly annoying because it re-fetched everything even if >>>>>>> the >>>>>>> list >>>>>>> was updated seconds ago during a previous install. >>>>>>> When you install sequentially 5 local packages, it's really >>>>>>> infuriating! >>>>>>> There's room for improvement: >>>>>>> >>>>>>> - By default, turn off fetching when installing a local package, >>>>>>> - Cache locally the list and avoid refetching if there is no change >>>>>>> or >>>>>>> if >>>>>>> it >>>>>>> was updated XX minutes ago. >>>>>>> - Speed-up the process of updating the list: on my computer it takes >>>>>>> 3 >>>>>>> minutes! >>>>>>> >>>>>>> Antoine >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> On 15 January 2016 at 10:42, Lavitha Pereira >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hi Lester, >>>>>>>>> >>>>>>>>> If you are under proxy, follow the below instructions. >>>>>>>>> >>>>>>>>> Configure the network proxy >>>>>>>>> >>>>>>>>> >>>>>>>>> atomsSetConfig("Verbose","True") >>>>>>>>> atomsSetConfig("useProxy","True") >>>>>>>>> atomsSetConfig("proxyHost","myProxyHost") >>>>>>>>> atomsSetConfig("proxyPort","myProxyPort") >>>>>>>>> atomsSetConfig("proxyUser","myUserName") >>>>>>>>> atomsSetConfig("proxyPassword","myPassword") >>>>>>>>> >>>>>>>>> >>>>>>>>> Read the more documentation below: >>>>>>>>> https://wiki.scilab.org/ATOMS >>>>>>>>> >>>>>>>>> Reagrds, >>>>>>>>> >>>>>>>>> Lavita Pereira >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>>>>>>> >>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> I assume that the following error from atomsGui is due to no >>>>>>>>>> direct >>>>>>>>>> port access to the Internet? The webpage links from Scilab work >>>>>>>>>> fine. >>>>>>>>>> >>>>>>>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT >>>>>>>>>> guys >>>>>>>>>> to open a port/proxy access ? >>>>>>>>>> >>>>>>>>>> Works fine when I do things from home. >>>>>>>>>> >>>>>>>>>> Cheers >>>>>>>>>> >>>>>>>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>>>>>>> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Just installed v5.5.2 and get the same issue when trying to >>>>>>>>>>> install >>>>>>>>>>> a >>>>>>>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>>>>>>> >>>>>>>>>>> Scilab is installed in Program Files on Windows, and so I am >>>>>>>>>>> guessing >>>>>>>>>>> that it might be a permissions issue for a work machine? >>>>>>>>>>> >>>>>>>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>>>>>>> >>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>> Hello, >>>>>>>>>>>> >>>>>>>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>>>>>>> manually. >>>>>>>>>>>> >>>>>>>>>>>> I am trying to install apifun (as quite a few modules use it), >>>>>>>>>>>> but >>>>>>>>>>>> get >>>>>>>>>>>> this error >>>>>>>>>>>> >>>>>>>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>>>> !--error 21 >>>>>>>>>>>> Invalid index. >>>>>>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>>>> >>>>>>>>>>>> Checked the code for atomsInstall: >>>>>>>>>>>> >>>>>>>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>>>>>>> >>>>>>>>>>>> Any ideas how to resolve this? Will have to follow the same >>>>>>>>>>>> procedure >>>>>>>>>>>> for v5.5.2 when I update. >>>>>>>>>>>> >>>>>>>>>>>> Thanks >>>>>>>>>>>> Lester >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> users mailing list >>>>>>>>>> users at lists.scilab.org >>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks & Regards, >>>>>>>>> Lavitha M. Pereira >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>> >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> -- >>>>> D?partement de G?nie Informatique >>>>> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >>>>> Universit? de Technologie de Compi?gne - CS 60319 >>>>> 60203 Compi?gne cedex >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> -- >>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> >>> 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 >>> >>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> >>> _______________________________________________ >>> 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 arctica1963 at gmail.com Fri Jan 15 16:59:16 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Fri, 15 Jan 2016 15:59:16 +0000 Subject: [Scilab-users] Problem installing modules manually (atomsInstall) In-Reply-To: <569914F3.3090909@laas.fr> References: <5698F05C.9010900@laas.fr> <5698F43E.50900@utc.fr> <569901A6.7030503@laas.fr> <5699093F.9070700@laas.fr> <569914F3.3090909@laas.fr> Message-ID: Yep that worked! Have managed to install apifun 0.4.1 and sciNetCDF The only difference with the atomsGui route seems to be that it automatically sets the version for the Scilab 5.5.xx and also made a new toolbar button (toolboxes). But apifun tests worked. Thanks for the guidance; got there in the end :) I will also let our IT guys know. On 15 January 2016 at 15:49, Antoine Monmayrant wrote: > Le 01/15/2016 04:26 PM, Lester Anderson a ?crit : >> >> Hi Antoine, >> >> Yes all is set fine: >> >> -->atomsSetConfig('offline','True') >> WARNING: Option offline of ATOMS configuration is set to True. >> atomsSystemUpdate did not check the latest modules availables. >> ans = >> >> 1. >> >> -->atomsGetConfig('offline') >> ans = >> >> True >> >> Retested: >> >> -->atomsInstall('apifun_0.4.2-3.bin.zip') >> !--error 21 >> Invalid index. >> at line 170 of function atomsInstall called by : >> atomsInstall('apifun_0.4.2-3.bin.zip') >> >> I am running the zip files in the same directory just to be sure. No joy. > > > Try this version: http://atoms.scilab.org/toolboxes/apifun/0.4.1 > It should work on 5.4 to 5.5 > > > Antoine > >> >> On 15 January 2016 at 14:59, Antoine Monmayrant >> wrote: >>> >>> Le 01/15/2016 03:51 PM, Lester Anderson a ?crit : >>>> >>>> Still not working. >>> >>> What's happening? >>> Is is still trying to connect to the internet? >>> Did you have the following message when setting the 'offline' to 'True' : >>> WARNING: Option offline of ATOMS configuration is set to True. >>> atomsSystemUpdate did not check the latest modules availables. ? >>> Another verification: >>> what do you have when typing "atomsGetConfig("offline")" ? Is it "True" ? >>> >>> Last resort: >>> edit atomsInstall >>> change the file/function names to "MyatomsInstall" >>> comment out the lines 221->229 >>> save >>> F5 >>> MyatomsInstall('mylocalpackageIcannotinstall.zip'); >>> >>> >>> Antoine >>> >>>> On 15 January 2016 at 14:26, Antoine Monmayrant >>>> wrote: >>>>> >>>>> Le 01/15/2016 03:16 PM, Lester Anderson a ?crit : >>>>>> >>>>>> tried atomsSetConfig('Offline','True') with no change in result >>>>> >>>>> >>>>> That's weird because I found the relevant bit in atomsInstall: >>>>> // edit atomsInstall >>>>> //lines 221->229 >>>>> // Force update the system information >>>>> // >>>>> >>>>> ========================================================================= >>>>> if from_localarchive then >>>>> if (atomsGetConfig("offLine") == "True" | >>>>> atomsGetConfig("offline") >>>>> == "True") then >>>>> warning(msprintf(gettext("Option offline of ATOMS >>>>> configuration >>>>> is set to True. atomsSystemUpdate did not check the latest modules >>>>> availables."))); >>>>> else >>>>> atomsDESCRIPTIONget(%T); >>>>> end >>>>> end >>>>> >>>>> >>>>> OK, I got it: wrong capitalization: Offline->offline >>>>> >>>>> atomsSetConfig('offline','True') >>>>> >>>>> does the trick! >>>>> >>>>> Antoine >>>>> >>>>>> As you say Antoine, room for improvement in terms of installing >>>>>> offline for sure. >>>>>> >>>>>> On 15 January 2016 at 13:29, St?phane Mottelet >>>>>> >>>>>> wrote: >>>>>>> >>>>>>> Le 15/01/2016 14:25, Lester Anderson a ?crit : >>>>>>>> >>>>>>>> Hello Antoine, >>>>>>>> >>>>>>>> How does one get a "cached" version of the repository list and where >>>>>>>> is it placed? >>>>>>>> >>>>>>>> -->atomsRepositoryList() >>>>>>>> ans = >>>>>>>> >>>>>>>> !http://atoms.scilab.org/5.5 official ! >>>>>>>> >>>>>>>> -->atomsVersion() >>>>>>>> ans = >>>>>>>> >>>>>>>> 5.5 >>>>>>>> >>>>>>>> Is there an option to disable fetching when installing locally, >>>>>>>> presumably after one has cached module list. >>>>>>> >>>>>>> >>>>>>> maybe >>>>>>> >>>>>>> atomsSetConfig offLine True >>>>>>> >>>>>>> S. >>>>>>> >>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> On 15 January 2016 at 13:13, wrote: >>>>>>>>> >>>>>>>>> Le 01/15/2016 01:45 PM, Lester Anderson a ?crit : >>>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> Tried setting the proxy with the settings our IT guy gave in the >>>>>>>>>> Scilab preferences and it still failed, basically thinking it >>>>>>>>>> could >>>>>>>>>> not access the Internet (which is incorrect)! >>>>>>>>>> >>>>>>>>>> Trying the manual install again (downloaded a toolbox zip file) it >>>>>>>>>> looks like it still needs access! >>>>>>>>>> >>>>>>>>>> -->atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>>>>>> >>>>>>>>>> ! >>>>>>>>>> ! >>>>>>>>>> ! >>>>>>>>>> ! >>>>>>>>>> !gzip: >>>>>>>>>> >>>>>>>>>> C:\Users\xxxxxxx\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz: >>>>>>>>>> not! >>>>>>>>>> ! in gzip format >>>>>>>>>> ! >>>>>>>>>> WARNING: atomsDESCRIPTIONget: Extraction of the DESCRIPTION file >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ('C:\Users\landerso\AppData\Local\Temp\SCI_TM~1\ATOMS~1\1_TOOLBOXES.gz') >>>>>>>>>> has failed. >>>>>>>>>> Scanning repository http://atoms.scilab.org/5.5 ... Skipped >>>>>>>>>> >>>>>>>>>> !--error 10000 >>>>>>>>>> All ATOMS repositories scan failed. >>>>>>>>>> at line 198 of function atomsDESCRIPTIONget called by : >>>>>>>>>> at line 227 of function atomsInstall called by : >>>>>>>>>> atomsInstall('scinetcdf_1.1.bin.x64.windows.zip') >>>>>>>>>> >>>>>>>>>> and ... >>>>>>>>>> >>>>>>>>>> -->atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>>>>>> !--error 21 >>>>>>>>>> Invalid index. >>>>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>>>> atomsInstall('apifun_0.4.2-3.bin.zip') >>>>>>>>>> >>>>>>>>>> Confused to say the least the errors vary between the different >>>>>>>>>> archives. >>>>>>>>>> >>>>>>>>>> I thought that atomsInstall could be used to install a module >>>>>>>>>> downloaded without having access to the Internet. >>>>>>>>> >>>>>>>>> >>>>>>>>> Well, there is something weird in the way the atoms system is >>>>>>>>> working. >>>>>>>>> Whenever you install a package, it first fetches the list of all >>>>>>>>> available >>>>>>>>> packages (which takes a while). >>>>>>>>> I just ran a test by >>>>>>>>> I didn't find a way to turn it off. >>>>>>>>> It's particularly annoying because it re-fetched everything even if >>>>>>>>> the >>>>>>>>> list >>>>>>>>> was updated seconds ago during a previous install. >>>>>>>>> When you install sequentially 5 local packages, it's really >>>>>>>>> infuriating! >>>>>>>>> There's room for improvement: >>>>>>>>> >>>>>>>>> - By default, turn off fetching when installing a local package, >>>>>>>>> - Cache locally the list and avoid refetching if there is no change >>>>>>>>> or >>>>>>>>> if >>>>>>>>> it >>>>>>>>> was updated XX minutes ago. >>>>>>>>> - Speed-up the process of updating the list: on my computer it >>>>>>>>> takes >>>>>>>>> 3 >>>>>>>>> minutes! >>>>>>>>> >>>>>>>>> Antoine >>>>>>>>> >>>>>>>>> >>>>>>>>>> On 15 January 2016 at 10:42, Lavitha Pereira >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Hi Lester, >>>>>>>>>>> >>>>>>>>>>> If you are under proxy, follow the below instructions. >>>>>>>>>>> >>>>>>>>>>> Configure the network proxy >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> atomsSetConfig("Verbose","True") >>>>>>>>>>> atomsSetConfig("useProxy","True") >>>>>>>>>>> atomsSetConfig("proxyHost","myProxyHost") >>>>>>>>>>> atomsSetConfig("proxyPort","myProxyPort") >>>>>>>>>>> atomsSetConfig("proxyUser","myUserName") >>>>>>>>>>> atomsSetConfig("proxyPassword","myPassword") >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Read the more documentation below: >>>>>>>>>>> https://wiki.scilab.org/ATOMS >>>>>>>>>>> >>>>>>>>>>> Reagrds, >>>>>>>>>>> >>>>>>>>>>> Lavita Pereira >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Fri, Jan 15, 2016 at 3:59 PM, Lester Anderson >>>>>>>>>>> >>>>>>>>>>> wrote: >>>>>>>>>>>> >>>>>>>>>>>> I assume that the following error from atomsGui is due to no >>>>>>>>>>>> direct >>>>>>>>>>>> port access to the Internet? The webpage links from Scilab work >>>>>>>>>>>> fine. >>>>>>>>>>>> >>>>>>>>>>>> Somewhat at a loss as to how to proceed. Do I need to get the IT >>>>>>>>>>>> guys >>>>>>>>>>>> to open a port/proxy access ? >>>>>>>>>>>> >>>>>>>>>>>> Works fine when I do things from home. >>>>>>>>>>>> >>>>>>>>>>>> Cheers >>>>>>>>>>>> >>>>>>>>>>>> On 15 January 2016 at 06:37, Lester Anderson >>>>>>>>>>>> >>>>>>>>>>>> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>> Just installed v5.5.2 and get the same issue when trying to >>>>>>>>>>>>> install >>>>>>>>>>>>> a >>>>>>>>>>>>> module manually, error 21 at line 170 of atomsInstall >>>>>>>>>>>>> >>>>>>>>>>>>> Scilab is installed in Program Files on Windows, and so I am >>>>>>>>>>>>> guessing >>>>>>>>>>>>> that it might be a permissions issue for a work machine? >>>>>>>>>>>>> >>>>>>>>>>>>> On 13 January 2016 at 08:51, Lester Anderson >>>>>>>>>>>>> >>>>>>>>>>>>> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>> Hello, >>>>>>>>>>>>>> >>>>>>>>>>>>>> I currently have v5.4.1 of Scilab, and have to install modules >>>>>>>>>>>>>> manually. >>>>>>>>>>>>>> >>>>>>>>>>>>>> I am trying to install apifun (as quite a few modules use it), >>>>>>>>>>>>>> but >>>>>>>>>>>>>> get >>>>>>>>>>>>>> this error >>>>>>>>>>>>>> >>>>>>>>>>>>>> -->atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>>>>>> !--error 21 >>>>>>>>>>>>>> Invalid index. >>>>>>>>>>>>>> at line 170 of function atomsInstall called by : >>>>>>>>>>>>>> atomsInstall('c:\ss20-work\scilab\apifun_0.4.2-3.bin.zip') >>>>>>>>>>>>>> >>>>>>>>>>>>>> Checked the code for atomsInstall: >>>>>>>>>>>>>> >>>>>>>>>>>>>> eb_ki.Callback = "updateedit_ki"; Line 170 >>>>>>>>>>>>>> >>>>>>>>>>>>>> Any ideas how to resolve this? Will have to follow the same >>>>>>>>>>>>>> procedure >>>>>>>>>>>>>> for v5.5.2 when I update. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>> Lester >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> users mailing list >>>>>>>>>>>> users at lists.scilab.org >>>>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Thanks & Regards, >>>>>>>>>>> Lavitha M. Pereira >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> 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 >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> users mailing list >>>>>>>> users at lists.scilab.org >>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> D?partement de G?nie Informatique >>>>>>> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >>>>>>> Universit? de Technologie de Compi?gne - CS 60319 >>>>>>> 60203 Compi?gne cedex >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> -- >>>>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>> >>>>> 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 >>>>> >>>>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > 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 anna.parravicini at cnao.it Mon Jan 18 09:00:31 2016 From: anna.parravicini at cnao.it (anna78) Date: Mon, 18 Jan 2016 01:00:31 -0700 (MST) Subject: [Scilab-users] plot versus date Message-ID: <1453104031731-4033297.post@n3.nabble.com> Hi all, I'm beginner of SCILAB. I have the file here after reported, made of 5 columns. I would like to plot column 4 versus column 1, column 1 being a date in the yymmdd format. Is there any way to make SCILAB understand the x-axis is a date in yymmdd format? thanks! anna meas_date[yymmdd], particle(0=p,1=c), energy_mm, pu_avg_mm, pu_std_mm 150628 0 74 0.70 0.05 150711 0 74 0.68 0.06 150725 0 74 0.71 0.05 150802 0 74 0.65 0.06 150829 0 74 0.63 0.08 150905 0 74 0.67 0.06 150927 0 74 0.74 0.10 151018 0 74 0.77 0.13 151101 0 74 -5.37 0.06 151101 0 74 -5.48 0.06 151106 0 74 -5.82 0.09 151115 0 74 -5.09 0.07 151121 0 74 -6.00 0.06 151128 0 74 -5.56 0.06 151208 0 74 -5.72 0.05 151219 0 74 0.64 0.06 160105 0 74 0.59 0.07 -- View this message in context: http://mailinglists.scilab.org/plot-versus-date-tp4033297.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Jean-Yves.Baudais at insa-rennes.fr Mon Jan 18 09:15:10 2016 From: Jean-Yves.Baudais at insa-rennes.fr (jbaudais@insa-rennes.fr) Date: Mon, 18 Jan 2016 09:15:10 +0100 Subject: [Scilab-users] plot versus date In-Reply-To: <1453104031731-4033297.post@n3.nabble.com> References: <1453104031731-4033297.post@n3.nabble.com> Message-ID: <569C9F0E.2060500@insa-rennes.fr> Hi, Le 18/01/2016 09:00, anna78 a ?crit : > Hi all, > I'm beginner of SCILAB. > > I have the file here after reported, made of 5 columns. > I would like to plot column 4 versus column 1, column 1 being a date in the > yymmdd format. > Is there any way to make SCILAB understand the x-axis is a date in yymmdd > format? I think, first you need to split yymmdd in a vector [yy,mm,dd] > yy=floor(meas_date/10000); > mm=floor(meas_date/100)-100*yy; > dd=meas_date-100*mm-10000*yy; and convert this vector with datenum([yy,mm,dd]) Jean-Yves From arctica1963 at gmail.com Mon Jan 18 11:11:40 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 18 Jan 2016 10:11:40 +0000 Subject: [Scilab-users] Loop query - Scilab 5.5.2 Message-ID: Hello, I am trying to create a loop to plot three curves from an input variable (Te): clear() rho_m = 3330; rho_fill = 2400; g = 9.81; Pb = -1.5e12; v = 0.25; E = 1e11; x=linspace(0,200,41); for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); end scf(1) clf(1) set(gca(),"auto_clear","off") set(gca(),"grid",[0,0]) plot(x,flex) The data plots correctly but only the first value (Te= 5000). Any poniters on what is missing would be great. Cheers Lester From sgougeon at free.fr Mon Jan 18 11:38:00 2016 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 18 Jan 2016 11:38:00 +0100 (CET) Subject: [Scilab-users] Loop query - Scilab 5.5.2 In-Reply-To: Message-ID: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 The syntax is start:step:end, not start:end:step https://help.scilab.org/docs/5.5.2/en_US/colon.html Samuel Gougeon From arctica1963 at gmail.com Mon Jan 18 11:50:13 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 18 Jan 2016 10:50:13 +0000 Subject: [Scilab-users] Loop query - Scilab 5.5.2 In-Reply-To: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Thanks for that pointer. The plot works but only does Te=25 in this case for Te = 5000:10000:25000 // start: step: end D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); end plot(x,flex) Can't get it to loop and plot the other values On 18 January 2016 at 10:38, wrote: > Hello, > > >>for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 > > The syntax is start:step:end, not start:end:step > > https://help.scilab.org/docs/5.5.2/en_US/colon.html > > Samuel Gougeon > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Serge.Steer at inria.fr Mon Jan 18 14:43:07 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 18 Jan 2016 14:43:07 +0100 Subject: [Scilab-users] plot versus date In-Reply-To: <569C9F0E.2060500@insa-rennes.fr> References: <1453104031731-4033297.post@n3.nabble.com> <569C9F0E.2060500@insa-rennes.fr> Message-ID: <569CEBEB.7060008@inria.fr> Le 18/01/2016 09:15, jbaudais at insa-rennes.fr a ?crit : > Hi, > > Le 18/01/2016 09:00, anna78 a ?crit : >> Hi all, >> I'm beginner of SCILAB. >> >> I have the file here after reported, made of 5 columns. >> I would like to plot column 4 versus column 1, column 1 being a date >> in the >> yymmdd format. >> Is there any way to make SCILAB understand the x-axis is a date in >> yymmdd >> format? > > > I think, first you need to split yymmdd in a vector [yy,mm,dd] > > yy=floor(meas_date/10000); > > mm=floor(meas_date/100)-100*yy; > > dd=meas_date-100*mm-10000*yy; > and convert this vector with datenum([yy,mm,dd]) > and see also the x_ticks property in the axes_properties help page. > Jean-Yves > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Serge.Steer at inria.fr Mon Jan 18 14:48:54 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 18 Jan 2016 14:48:54 +0100 Subject: [Scilab-users] Loop query - Scilab 5.5.2 In-Reply-To: References: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <569CED46.7080509@inria.fr> The plot instruction should be inside de loop k=0; st=["r","g","b"]; for Te = 5000:10000:25000 // start: step: end k=k+1 D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex = [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; plot(x,flex,st(k)) end or you may build a three column array . in the script below I assume x is a column vector flex=[]; for Te = 5000:10000:25000 // start: step: end D = E*Te .^3/(12*(1-v^2)); lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; lamda_k = lamda*1000; flex = [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; end plot(x,flex) Le 18/01/2016 11:50, Lester Anderson a ?crit : > Thanks for that pointer. > > The plot works but only does Te=25 in this case > > for Te = 5000:10000:25000 // start: step: end > D = E*Te .^3/(12*(1-v^2)); > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > lamda_k = lamda*1000; > flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); > end > plot(x,flex) > > Can't get it to loop and plot the other values > > > On 18 January 2016 at 10:38, wrote: >> Hello, >> >> >>> for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 >> The syntax is start:step:end, not start:end:step >> >> https://help.scilab.org/docs/5.5.2/en_US/colon.html >> >> Samuel Gougeon >> _______________________________________________ >> 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 arctica1963 at gmail.com Mon Jan 18 15:53:18 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 18 Jan 2016 14:53:18 +0000 Subject: [Scilab-users] Loop query - Scilab 5.5.2 In-Reply-To: <569CED46.7080509@inria.fr> References: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> <569CED46.7080509@inria.fr> Message-ID: Thanks for the solution(s). Had to change the flex line to get it working in 5.5.2: flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); Otherwise it gave an error of undefined variable (flex). The three column array did not work; looking it to that one. checked x=linspace(0,200,41); is a row vector //test dist=linspace(0,200,41); x(:,1)=dist' // convert to column vector) On 18 January 2016 at 13:48, Serge Steer wrote: > The plot instruction should be inside de loop > > k=0; > st=["r","g","b"]; > for Te = 5000:10000:25000 // start: step: end > k=k+1 > D = E*Te .^3/(12*(1-v^2)); > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > lamda_k = lamda*1000; > flex = > [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; > plot(x,flex,st(k)) > end > > > > or you may build a three column array . in the script below I assume x is a > column vector > > flex=[]; > for Te = 5000:10000:25000 // start: step: end > D = E*Te .^3/(12*(1-v^2)); > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > lamda_k = lamda*1000; > flex = > [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; > end > plot(x,flex) > > > > Le 18/01/2016 11:50, Lester Anderson a ?crit : >> >> Thanks for that pointer. >> >> The plot works but only does Te=25 in this case >> >> for Te = 5000:10000:25000 // start: step: end >> D = E*Te .^3/(12*(1-v^2)); >> lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; >> lamda_k = lamda*1000; >> flex = >> 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); >> end >> plot(x,flex) >> >> Can't get it to loop and plot the other values >> >> >> On 18 January 2016 at 10:38, wrote: >>> >>> Hello, >>> >>> >>>> for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 >>> >>> The syntax is start:step:end, not start:end:step >>> >>> https://help.scilab.org/docs/5.5.2/en_US/colon.html >>> >>> Samuel Gougeon >>> _______________________________________________ >>> 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 >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From tim at wescottdesign.com Mon Jan 18 21:51:21 2016 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 18 Jan 2016 12:51:21 -0800 Subject: [Scilab-users] Loop query - Scilab 5.5.2 In-Reply-To: <569CED46.7080509@inria.fr> References: <124938965.501286073.1453113480907.JavaMail.root@zimbra75-e12.priv.proxad.net> <569CED46.7080509@inria.fr> Message-ID: <1453150281.2613.127.camel@Servo> Or you can build a three column array as a matrix. Here's my example, but I don't see where 'x' is defined. Te = (5000:10000:25000)'; D = E * Te .^ 3 / (12 * (1 - v^2)); lambda = ((rho_m - rho_fill) * g ./ (4 * D)) .^ 0.25; lambda_k = lambda * 1000; flex = (2 * Pb * lamda / ((rho_m-rho_fill)*g)) .* .. exp(-lamda_k .* x) .* cos(lamda_k .* x); On Mon, 2016-01-18 at 14:48 +0100, Serge Steer wrote: > The plot instruction should be inside de loop > > k=0; > st=["r","g","b"]; > for Te = 5000:10000:25000 // start: step: end > k=k+1 > D = E*Te .^3/(12*(1-v^2)); > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > lamda_k = lamda*1000; > flex = [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; > plot(x,flex,st(k)) > end > > > > or you may build a three column array . in the script below I assume x > is a column vector > > flex=[]; > for Te = 5000:10000:25000 // start: step: end > D = E*Te .^3/(12*(1-v^2)); > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > lamda_k = lamda*1000; > flex = [flex,2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x)]; > end > plot(x,flex) > > > Le 18/01/2016 11:50, Lester Anderson a ?crit : > > Thanks for that pointer. > > > > The plot works but only does Te=25 in this case > > > > for Te = 5000:10000:25000 // start: step: end > > D = E*Te .^3/(12*(1-v^2)); > > lamda = ((rho_m-rho_fill)*g ./(4*D)).^0.25; > > lamda_k = lamda*1000; > > flex = 2*Pb*lamda/((rho_m-rho_fill)*g)*exp(-lamda_k*x).*cos(lamda_k*x); > > end > > plot(x,flex) > > > > Can't get it to loop and plot the other values > > > > > > On 18 January 2016 at 10:38, wrote: > >> Hello, > >> > >> > >>> for Te = 5000:25000:10000 // start:end:step to make 5000, 15000, 25000 > >> The syntax is start:step:end, not start:end:step > >> > >> https://help.scilab.org/docs/5.5.2/en_US/colon.html > >> > >> Samuel Gougeon > >> _______________________________________________ > >> 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 > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From anna.parravicini at cnao.it Tue Jan 19 08:29:36 2016 From: anna.parravicini at cnao.it (anna78) Date: Tue, 19 Jan 2016 00:29:36 -0700 (MST) Subject: [Scilab-users] R: plot versus date Message-ID: Thank you. And a question more: is there any way to 90? -rotate the x-axis ticks label? Da: jbaudais [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+s994242n4033298h74 at n3.nabble.com] Inviato: luned? 18 gennaio 2016 9.26 A: Parravicini Anna Oggetto: Re: plot versus date Hi, Le 18/01/2016 09:00, anna78 a ?crit : > Hi all, > I'm beginner of SCILAB. > > I have the file here after reported, made of 5 columns. > I would like to plot column 4 versus column 1, column 1 being a date in the > yymmdd format. > Is there any way to make SCILAB understand the x-axis is a date in yymmdd > format? I think, first you need to split yymmdd in a vector [yy,mm,dd] > yy=floor(meas_date/10000); > mm=floor(meas_date/100)-100*yy; > dd=meas_date-100*mm-10000*yy; and convert this vector with datenum([yy,mm,dd]) Jean-Yves _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users ________________________________ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/plot-versus-date-tp4033297p4033298.html To unsubscribe from plot versus date, click here. NAML -- View this message in context: http://mailinglists.scilab.org/R-plot-versus-date-tp4033306.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Yves.Baudais at insa-rennes.fr Tue Jan 19 11:25:13 2016 From: Jean-Yves.Baudais at insa-rennes.fr (jbaudais@insa-rennes.fr) Date: Tue, 19 Jan 2016 11:25:13 +0100 Subject: [Scilab-users] R: plot versus date In-Reply-To: References: Message-ID: <569E0F09.1010801@insa-rennes.fr> Hi, Le 19/01/2016 08:29, anna78 a ?crit : > Thank you. > And a question more: is there any way to 90? -rotate the x-axis ticks label? 90-rotation exists for the label but I don't see any rotate for the ticks. I don't know if it's possible with Scilab. Jean-Yves From j-lan at online.no Tue Jan 19 15:08:32 2016 From: j-lan at online.no (=?UTF-8?Q?Jan-=c3=85ge_Langeland?=) Date: Tue, 19 Jan 2016 15:08:32 +0100 Subject: [Scilab-users] R: plot versus date In-Reply-To: <569E0F09.1010801@insa-rennes.fr> References: <569E0F09.1010801@insa-rennes.fr> Message-ID: <569E4360.9000003@online.no> On 19.01.2016 11:25, jbaudais at insa-rennes.fr wrote: > Hi, > > Le 19/01/2016 08:29, anna78 a ?crit : >> Thank you. >> And a question more: is there any way to 90? -rotate the x-axis ticks >> label? > > > 90-rotation exists for the label but I don't see any rotate for the > ticks. I don't know if it's possible with Scilab. > > Jean-Yves > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > It is possible to rotate the whole plot by using for instance: z(1,length(x))=0 param3d(x,y1,z,180,0) param3d(x,y2,z,180,0) It may then be possible to cut&paste to get what you want. J? From sgougeon at free.fr Tue Jan 19 17:16:35 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 19 Jan 2016 17:16:35 +0100 Subject: [Scilab-users] R: plot versus date In-Reply-To: References: Message-ID: <569E6163.1060407@free.fr> Hello, Le 19/01/2016 08:29, anna78 a ?crit : > > Thank you. > > And a question more: is there any way to 90? -rotate the x-axis ticks > label? > You may use LaTeXed labels, rotated with \rotatebox{90}{..}, as in: plot(1:200) ax = gca(); L = ax.x_ticks.labels; ax.x_ticks.labels = "$\rotatebox{90}{"+L+"}$"; The angle in ? is anticlockwise. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cjbaehaf.png Type: image/png Size: 5290 bytes Desc: not available URL: From cfuttrup at gmail.com Wed Jan 20 20:33:06 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 20 Jan 2016 20:33:06 +0100 Subject: [Scilab-users] How to plot3D with log axis Message-ID: <569FE0F2.7050207@gmail.com> Hi there I have a bunch of data which I'm trying to plot in a 3D plot. Background - it's impedance measurements of a loudspeaker, measured at different input voltages. I have: voltage = [0.1 0.4 0.7 1.0]; f = a vector of frequencies (from 1.4 Hz to 20000 Hz ... I have a total of 27000 data points in this vector) m = a matrix of magnitude values, dimension matches frequency f and voltage. The frequency axis should be plotted on a logarithmic plot. Otherwise I get the strangest looking plot (basically just a dashed line with the axes - no graphs). I solved this by plotting: plot3d(voltage,log10(f),m',alpha=35,theta=45,flag=[2,2,3]); When I plot a 2D plot, I can simply write something like a.log_flags = "nln"; ... But what should I do in a 3D plot ??? Best regards, Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jan 20 20:47:27 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 20 Jan 2016 20:47:27 +0100 Subject: [Scilab-users] How to plot3D with log axis In-Reply-To: <569FE0F2.7050207@gmail.com> References: <569FE0F2.7050207@gmail.com> Message-ID: <569FE44F.2040504@free.fr> Hello, Le 20/01/2016 20:33, Claus Futtrup a ?crit : > Hi there > > I have a bunch of data which I'm trying to plot in a 3D plot. > Background - it's impedance measurements of a loudspeaker, measured at > different input voltages. I have: > > voltage = [0.1 0.4 0.7 1.0]; > f = a vector of frequencies (from 1.4 Hz to 20000 Hz ... I have a > total of 27000 data points in this vector) > m = a matrix of magnitude values, dimension matches frequency f and > voltage. > > The frequency axis should be plotted on a logarithmic plot. Otherwise > I get the strangest looking plot (basically just a dashed line with > the axes - no graphs). > > I solved this by plotting: > plot3d(voltage,log10(f),m',alpha=35,theta=45,flag=[2,2,3]); > When I plot a 2D plot, I can simply write something like > a.log_flags = "nln"; > ... But what should I do in a 3D plot ??? ??? The same. each character of "nln" means "*n*ormal" or "*l*ogarithmic", the first char for x, the second for y, the third for z. So, unless i did not catch what you mean, just assign to a.log_flags the n|l modes that you want. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Jan 21 20:23:27 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 21 Jan 2016 20:23:27 +0100 Subject: [Scilab-users] How to plot3D with log axis In-Reply-To: <569FE44F.2040504@free.fr> References: <569FE0F2.7050207@gmail.com> <569FE44F.2040504@free.fr> Message-ID: <56A1302F.50902@gmail.com> Hi Samuel, et al. >>a.log_flags = "nln"; >>... But what should I do in a 3D plot ??? >??? The same. each character of "nln" means "*n*ormal" or "*l*ogarithmic" That's my big ??? as well. Why didn't it work for plot3D ??? Samuel - I'm willing to send my script to you + a handful of datafiles ... then you can check for yourself. Best regards, Claus On 20-01-2016 20:47, Samuel Gougeon wrote: > Hello, > > Le 20/01/2016 20:33, Claus Futtrup a ?crit : >> Hi there >> >> I have a bunch of data which I'm trying to plot in a 3D plot. >> Background - it's impedance measurements of a loudspeaker, measured >> at different input voltages. I have: >> >> voltage = [0.1 0.4 0.7 1.0]; >> f = a vector of frequencies (from 1.4 Hz to 20000 Hz ... I have a >> total of 27000 data points in this vector) >> m = a matrix of magnitude values, dimension matches frequency f and >> voltage. >> >> The frequency axis should be plotted on a logarithmic plot. Otherwise >> I get the strangest looking plot (basically just a dashed line with >> the axes - no graphs). >> >> I solved this by plotting: >> plot3d(voltage,log10(f),m',alpha=35,theta=45,flag=[2,2,3]); >> When I plot a 2D plot, I can simply write something like >> a.log_flags = "nln"; >> ... But what should I do in a 3D plot ??? > ??? The same. each character of "nln" means "*n*ormal" or > "*l*ogarithmic", the first char for x, the second for y, the third for z. > So, unless i did not catch what you mean, just assign to a.log_flags > the n|l modes that you want. > > HTH > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From end48war at yahoo.fr Fri Jan 22 11:26:44 2016 From: end48war at yahoo.fr (ENd48) Date: Fri, 22 Jan 2016 03:26:44 -0700 (MST) Subject: [Scilab-users] Xcos: Error when running a compiled superblock Message-ID: <1453458404259-4033315.post@n3.nabble.com> Good morning, I'm trying to compile a superblock but I've got problem running the simulation afterwards. Here is what I do: * I create a very simple diagram (constant value fed into the two ports of a sum block then a AFFICH_m block with an event clock) * I convert the sum block into a superblock * At this stage the diagram works just well * I then compile the superblock (right click -> compile) * The compilation works and the diagram is still working * Now if I close Scilab and reopen it, I run the "loader.sce" file that has been generated during the compilation (I get a "Link done" message) * If I try to run the diagram, I got an error message like this one: o=Untitled__111506_c('set',o) !--error 4 Undefined variable: Untitled__111506_c do_eval: Error while calling block Untitled__111506_c [uid='-16a0de62:15268d37 216:-7fb8']: invalid parameter (ier=4.000000, %scicos_prob=%F). Does anybody know about such an error? What could be the solution to this problem? Thanks in advance for your help. Regards, Benoit -- View this message in context: http://mailinglists.scilab.org/Xcos-Error-when-running-a-compiled-superblock-tp4033315.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ed at mo-ed.com Sat Jan 23 06:47:37 2016 From: ed at mo-ed.com (eddydde) Date: Fri, 22 Jan 2016 22:47:37 -0700 (MST) Subject: [Scilab-users] mlist parameters to a function call Message-ID: <1453528057375-4033316.post@n3.nabble.com> probably a newby question, but I can't get this right: see example below, parameters for the function seem to get disordered Any help would be welcome! Ed a1=4.6543 a2=1435.264 a3=-64.848 b=[4.6543,1435.264,-64.848] c=[4.6543,1435.264,-64.848; 1,2,3] d.name='ed' d.aa=c disp(10^(a1-a2/(373.15+a3))) function y=pv(T,x) t=x(1)-x(2)/(T+x(3)) y=10^t disp(y) return y endfunction pv(373.15,[a1,a2,a3]) pv(373.15,b) pv(373.15,c(1,:)) pv(373.15,c) pv(373.15,d.aa(1,:)) xa=[273:10:373] pv(xa(11),b) pv(xa,[a1,a2,a3]) pv(xa,d.aa(1,:)) -- View this message in context: http://mailinglists.scilab.org/mlist-parameters-to-a-function-call-tp4033316.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Sat Jan 23 07:51:20 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Sat, 23 Jan 2016 07:51:20 +0100 Subject: [Scilab-users] mlist parameters to a function call In-Reply-To: <1453528057375-4033316.post@n3.nabble.com> References: <1453528057375-4033316.post@n3.nabble.com> Message-ID: <56A322E8.4010402@inria.fr> Le 23/01/2016 06:47, eddydde a ?crit : > probably a newby question, but I can't get this right: > > see example below, parameters for the function seem to get disordered > > > Any help would be welcome! the instruction "return y" must be removed! Serge > > Ed > > a1=4.6543 > a2=1435.264 > a3=-64.848 > b=[4.6543,1435.264,-64.848] > c=[4.6543,1435.264,-64.848; > 1,2,3] > d.name='ed' > d.aa=c > disp(10^(a1-a2/(373.15+a3))) > > function y=pv(T,x) > t=x(1)-x(2)/(T+x(3)) > y=10^t > disp(y) > return y > endfunction > > pv(373.15,[a1,a2,a3]) > pv(373.15,b) > pv(373.15,c(1,:)) > pv(373.15,c) > pv(373.15,d.aa(1,:)) > xa=[273:10:373] > pv(xa(11),b) > pv(xa,[a1,a2,a3]) > pv(xa,d.aa(1,:)) > > > > > -- > View this message in context: http://mailinglists.scilab.org/mlist-parameters-to-a-function-call-tp4033316.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From ed at mo-ed.com Sat Jan 23 10:34:22 2016 From: ed at mo-ed.com (eddydde) Date: Sat, 23 Jan 2016 02:34:22 -0700 (MST) Subject: [Scilab-users] mlist parameters to a function call In-Reply-To: <56A322E8.4010402@inria.fr> References: <1453528057375-4033316.post@n3.nabble.com> <56A322E8.4010402@inria.fr> Message-ID: <1453541662920-4033318.post@n3.nabble.com> that's not the solution to my problem: the last two function calls in which i use xa(1x11) as first argument and three parameters (a1.a2,a3 or d.aa(1,:)) ! here i get an 11x1 result with the wrong(?) three parameters Ed. -- View this message in context: http://mailinglists.scilab.org/mlist-parameters-to-a-function-call-tp4033316p4033318.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Jan 23 11:37:03 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Jan 2016 11:37:03 +0100 Subject: [Scilab-users] mlist parameters to a function call In-Reply-To: <1453541662920-4033318.post@n3.nabble.com> References: <1453528057375-4033316.post@n3.nabble.com> <56A322E8.4010402@inria.fr> <1453541662920-4033318.post@n3.nabble.com> Message-ID: <56A357CF.1020608@free.fr> Le 23/01/2016 10:34, eddydde a ?crit : > that's not the solution to my problem: > > the last two function calls in which i use xa(1x11) as first argument and > three parameters (a1.a2,a3 or d.aa(1,:)) ! > > here i get an 11x1 result with the wrong(?) three parameters When xa is a vector, T is a vector in the function, and then the line t=x(1)-x(2)/(T+x(3)) performs a matricial division. If you want to perform a element-wise division, the syntax is t = x(1) - x(2) ./ (T+x(3)) // with ./ instead of / Regards Samuel Gougeon From fujimoto2005 at gmail.com Sat Jan 23 13:25:51 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 23 Jan 2016 05:25:51 -0700 (MST) Subject: [Scilab-users] Conditional random variable Message-ID: <1453551951971-4033320.post@n3.nabble.com> Is there any function generating random variable X with a standard normal density conditional on a range (a,b] where 0 Let X be a m?n matrix and f(i) is a column index for the ith row. I want to get a m?1 vector y where y(i)=X(i,f(i)) for 1<=i<=m. Is there any method to get y other than the following code? for i=1:m y(i)=X(i,f(i)); end Best regards -- View this message in context: http://mailinglists.scilab.org/extracting-elements-of-a-matrix-tp4033321.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Sat Jan 23 17:56:34 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Sat, 23 Jan 2016 17:56:34 +0100 Subject: [Scilab-users] Conditional random variable In-Reply-To: <1453551951971-4033320.post@n3.nabble.com> References: <1453551951971-4033320.post@n3.nabble.com> Message-ID: <56A3B0C2.9050903@utc.fr> Hello, You will find the Matlab code for the "trandn" function there : http://www.mathworks.com/matlabcentral/fileexchange/53180-truncated-normal-generator/content/trandn.m hth S. Le 23/01/2016 13:25, fujimoto2005 a ?crit : > Is there any function generating random variable X with a standard normal > density conditional on a range (a,b] where 0 I mean X has a distribution function (N(x)-N(a))/(N(b)-N(a)) where a and N() is a standard normal distribution function. > The standard method using inverse function of normal distribution function > and uniform distribution on range (a,b) is very time consuming. > I would like to know a more fast method. > > Best regards > > > > > -- > View this message in context: http://mailinglists.scilab.org/Conditional-random-variable-tp4033320.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Sat Jan 23 17:58:16 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Sat, 23 Jan 2016 17:58:16 +0100 Subject: [Scilab-users] Conditional random variable In-Reply-To: <1453551951971-4033320.post@n3.nabble.com> References: <1453551951971-4033320.post@n3.nabble.com> Message-ID: <56A3B128.1020208@utc.fr> You also have this distribution (and many more) in the atoms package https://forge.scilab.org/index.php/p/distfun/ S. Le 23/01/2016 13:25, fujimoto2005 a ?crit : > Is there any function generating random variable X with a standard normal > density conditional on a range (a,b] where 0 I mean X has a distribution function (N(x)-N(a))/(N(b)-N(a)) where a and N() is a standard normal distribution function. > The standard method using inverse function of normal distribution function > and uniform distribution on range (a,b) is very time consuming. > I would like to know a more fast method. > > Best regards > > > > > -- > View this message in context: http://mailinglists.scilab.org/Conditional-random-variable-tp4033320.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Sat Jan 23 22:17:45 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Jan 2016 22:17:45 +0100 Subject: [Scilab-users] extracting elements of a matrix In-Reply-To: <1453567432064-4033321.post@n3.nabble.com> References: <1453567432064-4033321.post@n3.nabble.com> Message-ID: <56A3EDF9.9090400@free.fr> Le 23/01/2016 17:43, fujimoto2005 a ?crit : > Let X be a m?n matrix and f(i) is a column index for the ith row. > I want to get a m?1 vector y where y(i)=X(i,f(i)) for 1<=i<=m. > Is there any method to get y other than the following code? > for i=1:m > y(i)=X(i,f(i)); > end Yes: y = X((f-1)*m+i) Regards Samuel Gougeon From sgougeon at free.fr Sat Jan 23 22:24:04 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Jan 2016 22:24:04 +0100 Subject: [Scilab-users] extracting elements of a matrix In-Reply-To: <56A3EDF9.9090400@free.fr> References: <1453567432064-4033321.post@n3.nabble.com> <56A3EDF9.9090400@free.fr> Message-ID: <56A3EF74.9000406@free.fr> Le 23/01/2016 22:17, Samuel Gougeon a ?crit : > Le 23/01/2016 17:43, fujimoto2005 a ?crit : >> Let X be a m?n matrix and f(i) is a column index for the ith row. >> I want to get a m?1 vector y where y(i)=X(i,f(i)) for 1<=i<=m. >> Is there any method to get y other than the following code? >> for i=1:m >> y(i)=X(i,f(i)); >> end > Yes: > y = X((f-1)*m+i) with i = 1:m. So: y = X((f-1)*m + 1:m) Example: --> m = 7; n = 5; --> // X = grand(m, n,"uin", 0, 9) X = [ 2. 5. 9. 9. 0. 2. 8. 0. 3. 1. 4. 3. 9. 9. 2. 5. 5. 4. 6. 9. 4. 5. 7. 6. 9. 1. 0. 6. 6. 8. 9. 6. 9. 3. 6. ] -->i = 1:m i = 1. 2. 3. 4. 5. 6. 7. -->// f = grand(1, m,"uin", 1, n) f = [ 1. 4. 4. 3. 4. 5. 2. ] -->X((f-1)*7+i) ans = 2. 3. 9. 4. 6. 8. 6. SG From fujimoto2005 at gmail.com Sat Jan 23 23:56:18 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 23 Jan 2016 15:56:18 -0700 (MST) Subject: [Scilab-users] extracting elements of a matrix In-Reply-To: <1453567432064-4033321.post@n3.nabble.com> References: <1453567432064-4033321.post@n3.nabble.com> Message-ID: <1453589778602-4033326.post@n3.nabble.com> Hi,Samuel This is exactly what I want get. Thanks a lot for your help. Best regards -- View this message in context: http://mailinglists.scilab.org/extracting-elements-of-a-matrix-tp4033321p4033326.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ed at mo-ed.com Sun Jan 24 06:28:36 2016 From: ed at mo-ed.com (eddydde) Date: Sat, 23 Jan 2016 22:28:36 -0700 (MST) Subject: [Scilab-users] mlist parameters to a function call In-Reply-To: <56A357CF.1020608@free.fr> References: <1453528057375-4033316.post@n3.nabble.com> <56A322E8.4010402@inria.fr> <1453541662920-4033318.post@n3.nabble.com> <56A357CF.1020608@free.fr> Message-ID: <1453613316668-4033327.post@n3.nabble.com> Thanks, works fine now. Seen it in one of the manuals, but didnt realize it applies to functions as well! Ed. -- View this message in context: http://mailinglists.scilab.org/mlist-parameters-to-a-function-call-tp4033316p4033327.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Sun Jan 24 17:35:28 2016 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 24 Jan 2016 17:35:28 +0100 Subject: [Scilab-users] LINALG toolbox Message-ID: <56A4FD50.9060409@gmail.com> Hi there The 'linalg' ATOMS toolbox is nice. Is there any chance that the toolbox will be expanded with more BLAS/LAPACK functions? Personally I'd like to see an implementation of DSYSV. I found this Scilab related attempt at it: Fortran: http://forge.scilab.org/index.php/p/scilab2c/source/tree/1449/trunk/scilab2c/src/fortran/lapack/dsysv.f Best regards, Claus From fujimoto2005 at gmail.com Mon Jan 25 10:06:00 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 25 Jan 2016 02:06:00 -0700 (MST) Subject: [Scilab-users] optim Message-ID: <1453712760467-4033329.post@n3.nabble.com> I'm useing scilab 6.0. I want to use 'optim' function . But it fail to work in my code with an error message 'costfunction: Wrong number of input argument(s): 3 expected.' The following code is the simple code for the demonstration of the problem. Though para1 and para2 don't influence on value of f, I introduce them to keep the structure of arguments. I can't see the cause of error. Please teach me the cause and how to fix it. Best regards ****** function f=costfunction(x,ind,para1,para2) f=x(1)^2+x(2)^2; endfunction x0=[100,100]; para1=[1,2]; para2=[2,3]; costf=list(costfunction,para1,para2) [fopt,xopt]=optim(costf,x0) ****** -- View this message in context: http://mailinglists.scilab.org/optim-tp4033329.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Mon Jan 25 10:14:34 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 25 Jan 2016 10:14:34 +0100 Subject: [Scilab-users] optim In-Reply-To: <1453712760467-4033329.post@n3.nabble.com> References: <1453712760467-4033329.post@n3.nabble.com> Message-ID: <56A5E77A.90501@utc.fr> Hello, your costfunction has to provide f and its gradient : function [f, g, ind]=costfunction(x, ind, para1, para2) f=x(1)^2+x(2)^2; g=2*x; endfunction x0=[100,100]'; para1=[1,2]'; para2=[2,3]'; costf=list(costfunction,para1,para2) [fopt,xopt]=optim(costf,x0) S. Le 25/01/2016 10:06, fujimoto2005 a ?crit : > I'm useing scilab 6.0. > I want to use 'optim' function . > But it fail to work in my code with an error message 'costfunction: Wrong > number of input argument(s): 3 expected.' > The following code is the simple code for the demonstration of the problem. > Though para1 and para2 don't influence on value of f, I introduce them to > keep the structure of arguments. > I can't see the cause of error. > Please teach me the cause and how to fix it. > > Best regards > > ****** > function f=costfunction(x,ind,para1,para2) > f=x(1)^2+x(2)^2; > endfunction > > x0=[100,100]; > para1=[1,2]; > para2=[2,3]; > costf=list(costfunction,para1,para2) > [fopt,xopt]=optim(costf,x0) > > ****** > > > > > -- > View this message in context: http://mailinglists.scilab.org/optim-tp4033329.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Jan 25 10:17:34 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 25 Jan 2016 10:17:34 +0100 Subject: [Scilab-users] optim In-Reply-To: <1453712760467-4033329.post@n3.nabble.com> References: <1453712760467-4033329.post@n3.nabble.com> Message-ID: <56A5E82E.6030600@utc.fr> btw the error message is incorrect as you had an incorrect number of *output* arguments (Scilab 6.0 bug ?) S. Le 25/01/2016 10:06, fujimoto2005 a ?crit : > I'm useing scilab 6.0. > I want to use 'optim' function . > But it fail to work in my code with an error message 'costfunction: Wrong > number of input argument(s): 3 expected.' > The following code is the simple code for the demonstration of the problem. > Though para1 and para2 don't influence on value of f, I introduce them to > keep the structure of arguments. > I can't see the cause of error. > Please teach me the cause and how to fix it. > > Best regards > > ****** > function f=costfunction(x,ind,para1,para2) > f=x(1)^2+x(2)^2; > endfunction > > x0=[100,100]; > para1=[1,2]; > para2=[2,3]; > costf=list(costfunction,para1,para2) > [fopt,xopt]=optim(costf,x0) > > ****** > > > > > -- > View this message in context: http://mailinglists.scilab.org/optim-tp4033329.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From fujimoto2005 at gmail.com Mon Jan 25 10:50:21 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 25 Jan 2016 02:50:21 -0700 (MST) Subject: [Scilab-users] optim In-Reply-To: <56A5E82E.6030600@utc.fr> References: <1453712760467-4033329.post@n3.nabble.com> <56A5E82E.6030600@utc.fr> Message-ID: <1453715421303-4033332.post@n3.nabble.com> Hi,mottelet Thanks a lot for your solution. Actually I don't need the gradient . In that case may I provide only f? Or is g indispensable? In 'Description' of 'optim' help page, there is a explanation 'If ind=2, costf must provide f.' https://help.scilab.org/docs/5.3.3/en_US/optim.html It seem to mean when I input ind=2 optim can work without the gradient by user. If so, how do I input ind=2? Best regards. -- View this message in context: http://mailinglists.scilab.org/optim-tp4033329p4033332.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Mon Jan 25 15:20:24 2016 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 25 Jan 2016 14:20:24 +0000 Subject: [Scilab-users] Scilab warning (5.5.2) vector ^ scalar Message-ID: Hello, I have a quick query realted to the change from 5.4.1 to 5.5.2 (and 6), related to a vector^scalar operation. The basic code runs and plots the curves as needed but generates warnings on running: clear() clc() functions_library = lib('C:\geophys\Lester\SCILAB_work\Functions'); //Finds the external function //Flexural response function //Universal constants g = 9.81; //Gravitational acceleration v = 0.25; //Poisson's ratio E = 1e11; //Elastic modulus G = 6.67e-11; //Gravitational constant a = 3.28e-5; //Volumetric coefficient of thermal expansion ! at line 15 of function flexresponsefn called by : responsefn(Te(i),Xint,npts,rho_m,rho_c); //This version calls an e line 30 of exec file called by : re\flexural_response_function.sce', -1 Warning: Syntax "vector ^ scalar" is obsolete. It will be removed in Scilab 6.0. Use "vector .^ scalar" instead. ! at line 119 of function flexresponsefn called by : responsefn(Te(i),Xint,npts,rho_m,rho_c); //This version calls an e line 30 of exec file called by : re\flexural_response_function.sce', -1 Warning: Syntax "vector ^ scalar" is obsolete. It will be removed in Scilab 6.0. Use "vector .^ scalar" instead. kappa = 0.8e-6; //Thermal conductivity npts=512; //Define parameters Te = 0:2000:30000; //Elastic thickness [km] rho_sed = 2400; rho_w = 1030; rho_m = 3330; rho_c = 2800; rho_infill = rho_c; k=linspace(1,npts,(npts)); XKint = 1e-6; Xint = 2*%pi/(XKint*(npts-1)); wavek=XKint*k*1000; D = E*Te .^3/(12*(1-v .^2)); //Flexural rigidity for i=1:length(Te) phik(i,:) = flexresponsefn(Te(i),Xint,npts,rho_m,rho_c); //This version calls an external function end scf(0) clf(0) xlabel("Log Wavenumber k km-1"); ylabel("Flexural Response Function Phi(k)"); set(gca(),"auto_clear","off") set(gca(),"grid",[0,0]) a=gca(); a.x_location="bottom"; a.axes_reverse=["off","off","off"]; xset("colormap",[jetcolormap(16)]); plot2d1("oln",wavek,phik'); legends("Te = "+ string(0:2:30),1:16,"ll"); External function defined as: function phik = flexresponsefn(Te,Xint,npts,rho1,rho2) //Flexural response function //Isostasy and Flexure of the Lithosphere (Watts, 2000) //Universal constants g = 9.81; //Gravitational acceleration v = 0.25; //Poisson's ratio E = 1e11; //Elastic modulus //Assumptions/calculations XKint = 2*%pi/((npts-1).*Xint); k=linspace(1,npts,(npts)); D = E*Te .^3/(12*(1-v .^2)); //Flexural rigidity phik = (D.*((k-1)*XKint) .^4 /(g*(rho1-rho2))+1) .^-1; //Flexural response function endfunction Now, I have changed the powers in the external function and the main code but it still throws up warnings, I cannot see where it is falling over especially when the warnings reference line numbers beyond those of the function! Thanks From clement.david at scilab-enterprises.com Tue Jan 26 10:59:12 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 26 Jan 2016 10:59:12 +0100 Subject: [Scilab-users] Xcos: Error when running a compiled superblock In-Reply-To: <1453458404259-4033315.post@n3.nabble.com> References: <1453458404259-4033315.post@n3.nabble.com> Message-ID: <1453802352.3014.4.camel@scilab-enterprises.com> Hello?Benoit, During code generation, scilab will generate both the C file of the superblock and the equivalent block interface function (a scilab macro). To re-use it later, you have to link the library (to load the simulation function) and the execute the interface function file (to load the block). To generalize your approach I strongly suggest you to ship both the Xcos schema and the C, macro files as an external module (aka toolbox). This way you will only need to build the block once on your side and distribute the module to your users. Regards, -- Cl?ment Le vendredi 22 janvier 2016 ? 03:26 -0700, ENd48 a ?crit?: > Good morning, > > I'm trying to compile a superblock but I've got problem running the > simulation afterwards. > Here is what I do: > ?* I create a very simple diagram (constant value fed into the two ports of > a sum block then a AFFICH_m block with an event clock) > ?* I convert the sum block into a superblock > ?* At this stage the diagram works just well > ?* I then compile the superblock (right click -> compile) > ?* The compilation works and the diagram is still working > ?* Now if I close Scilab and reopen it, I run the "loader.sce" file that has > been generated during the compilation (I get a "Link done" message) > ?* If I try to run the diagram, I got an error message like this one: > ??????????o=Untitled__111506_c('set',o) > ????????????????????????????????????????!--error 4? > ??????????Undefined variable: Untitled__111506_c > ? > ? > ??????????do_eval: Error while calling block Untitled__111506_c > [uid='-16a0de62:15268d37? > ???????????????216:-7fb8']: invalid parameter (ier=4.000000, > %scicos_prob=%F).??????????? > > Does anybody know about such an error? What could be the solution to this > problem? > > Thanks in advance for your help. > > Regards, > Benoit > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-Error-when-running-a-compiled-su > perblock-tp4033315.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Wed Jan 27 00:50:24 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Jan 2016 00:50:24 +0100 Subject: [Scilab-users] I need your help In-Reply-To: <1564244150.841312.1450520264933.JavaMail.yahoo@mail.yahoo.com> References: <56752D0A.40708@free.fr> <1564244150.841312.1450520264933.JavaMail.yahoo@mail.yahoo.com> Message-ID: <56A80640.9000302@free.fr> Le 19/12/2015 11:17, kumaden ikpambese a ?crit : > Yes. I also wish to predict .i.e ypred and errors associated with the > ypred and the y-experimental > thanks. > > > On Saturday, December 19, 2015 11:10 AM, Samuel Gougeon > wrote: > > Le 19/12/2015 10:40, kumaden ikpambese a ?crit : >> Please, can you assist me perform multiple regression using reglin >> function for following varibles; >> Input variables; >> x_1 = [5.82 5.20 4.80 2.81 2.64]; >> _x _2 = [8.18 6.8 6.2 6.19 7.36]; >> _x _3 = [40 36 32 32 28]; and >> x_4 = [1.5 1.2 0.87 0.75 0.63]. >> ouput >> y = [1.5 1.2 0.87 0.75 0.63] >> Thanks. > Do you mean that you are searching for the best {a,b,c,d} such that y > ~ a.x1 + b.x2 +c.x3 + d.x4 ? Just do --> [ x1.' x2.' x3.' x4.'] \ y.' ans = - 1.976D-16 1.308D-16 0. 1. Which means: y = x4 // that is triviously observable on data. The fitting error is null, since the match between y and x4 is perfect. S. Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Jan 27 01:19:52 2016 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 27 Jan 2016 01:19:52 +0100 Subject: [Scilab-users] Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector) In-Reply-To: <1443452444.3942.41.camel@scilab-enterprises.com> References: <1443434473.3942.29.camel@scilab-enterprises.com> <56092C2D.4070509@laas.fr> <56094500.10907@laas.fr> <1443452444.3942.41.camel@scilab-enterprises.com> Message-ID: <56A80D28.6070407@free.fr> Hello, Le 28/09/2015 17:00, Cl?ment David a ?crit : > Hello Antoine, > > Le lundi 28 septembre 2015 ? 15:47 +0200, Antoine Monmayrant a ?crit : >> Should this be turned into a bug report or a SEP? >> What would make more sense? > Well, this started as a bug report but closed as worksforme as it works > on my machine. For me this behavior change should not be on a SEP as we > are on a major release but should be clearly state in the documentation > (history part). SEP -- Scilab Enhancement Proposals, that are not applicable to minor releases that exclude new features -- have never been optional or disgarded from major releases to be restricted only to secondary releases. See SEP_001_SEP_definition.odt Regards S. Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Wed Jan 27 15:15:41 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 27 Jan 2016 07:15:41 -0700 (MST) Subject: [Scilab-users] optim In-Reply-To: <1453715421303-4033332.post@n3.nabble.com> References: <1453712760467-4033329.post@n3.nabble.com> <56A5E82E.6030600@utc.fr> <1453715421303-4033332.post@n3.nabble.com> Message-ID: <1453904141953-4033339.post@n3.nabble.com> Hi,mottelet Now I understand I don't need to provide the value of 'Ind '. As explained in the help page, 'the ind input argument is a message sent from the solver to the cost function ' . Also I understand I have to provide the gradient explicitly even if I don't need its value. Unless an user does't provide the gradient explicitly, the solver must estimate it numerically even if there is an analytical form of the gradient. In general numerical estimation is time-consuming compared with the the analytical form. So solver asks a user to provide the gradient explicitly to avoid time-consuming estimation. Best regards -- View this message in context: http://mailinglists.scilab.org/optim-tp4033329p4033339.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Wed Jan 27 15:24:05 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 27 Jan 2016 07:24:05 -0700 (MST) Subject: [Scilab-users] 'fsolver' Message-ID: <1453904645984-4033340.post@n3.nabble.com> if f(x)=0 has multiple solutions and I want to get the smallest solution, is there any way to get a such solution by 'fsolver'? In my actual problem, 'fsolver' give the largest solution. Best regards -- View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Wed Jan 27 15:59:47 2016 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 27 Jan 2016 14:59:47 +0000 Subject: [Scilab-users] 'fsolver' In-Reply-To: <1453904645984-4033340.post@n3.nabble.com> References: <1453904645984-4033340.post@n3.nabble.com> Message-ID: Hello, > De : fujimoto2005 > Envoy? : mercredi 27 janvier 2016 15:24 > > if f(x)=0 has multiple solutions and I want to get the smallest solution, is there any way to get a such solution by 'fsolver'? > In my actual problem, 'fsolver' give the largest solution. I'm afraid the solution you get depends on the initial guest. The help page says it uses the Powell hybrid method; I don't know it, but the Wikipedia page for the Powell method tells it finds a *local* minimum https://en.wikipedia.org/wiki/Powell%27s_method So you probably have to seed with several initial guests (randomly or systematically) and select the smallest one (unless you have another method to get closer to the final solution). HTH -- 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 Christophe.Dang at sidel.com Wed Jan 27 16:00:37 2016 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 27 Jan 2016 15:00:37 +0000 Subject: [Scilab-users] 'fsolver' References: <1453904645984-4033340.post@n3.nabble.com> Message-ID: Of course, read "guess" instead of "guest" (-: -- Christophe Dang Ngoc Chan Mechanical calculation engineer -----Message d'origine----- De : Dang Ngoc Chan, Christophe Envoy? : mercredi 27 janvier 2016 16:00 ? : 'Users mailing list for Scilab' Objet : RE: [Scilab-users] 'fsolver' Hello, > De : fujimoto2005 > Envoy? : mercredi 27 janvier 2016 15:24 > > if f(x)=0 has multiple solutions and I want to get the smallest solution, is there any way to get a such solution by 'fsolver'? > In my actual problem, 'fsolver' give the largest solution. I'm afraid the solution you get depends on the initial guest. The help page says it uses the Powell hybrid method; I don't know it, but the Wikipedia page for the Powell method tells it finds a *local* minimum https://en.wikipedia.org/wiki/Powell%27s_method So you probably have to seed with several initial guests (randomly or systematically) and select the smallest one (unless you have another method to get closer to the final solution). HTH -- 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 fujimoto2005 at gmail.com Wed Jan 27 16:42:02 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 27 Jan 2016 08:42:02 -0700 (MST) Subject: [Scilab-users] 'fsolver' In-Reply-To: References: <1453904645984-4033340.post@n3.nabble.com> Message-ID: <1453909322156-4033343.post@n3.nabble.com> Hi, Christophe I give a very small value as an initial point because it is known as the character of my actual problem that this small value is necessarily smaller than the smallest solution. But 'fsolver' gives the largest solution which is most apart from the initial point. Best regards. -- View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033343.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Wed Jan 27 16:44:05 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 27 Jan 2016 16:44:05 +0100 Subject: [Scilab-users] 'fsolver' In-Reply-To: <1453904645984-4033340.post@n3.nabble.com> References: <1453904645984-4033340.post@n3.nabble.com> Message-ID: <56A8E5C5.7060905@utc.fr> Le 27/01/2016 15:24, fujimoto2005 a ?crit : > if f(x)=0 has multiple solutions and I want to get the smallest solution, is > there any way to get a such solution by 'fsolver'? > In my actual problem, 'fsolver' give the largest solution. is the solution set countable or not ? I mean, is the problem under-determined (not enough equations) or is there just a finite or countable number of solutions ? S. > > Best regards > > > > -- > View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From fujimoto2005 at gmail.com Wed Jan 27 16:54:35 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 27 Jan 2016 08:54:35 -0700 (MST) Subject: [Scilab-users] 'fsolver' In-Reply-To: <56A8E5C5.7060905@utc.fr> References: <1453904645984-4033340.post@n3.nabble.com> <56A8E5C5.7060905@utc.fr> Message-ID: <1453910075986-4033345.post@n3.nabble.com> The feature of my f(x) defined for x>0 is as follows. f(x)<0 for x0 for x1=x2 'fsolver' gives some x such as x>x2 as a solution. I want to get x1 as a solution. -- View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033345.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Wed Jan 27 17:17:57 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 27 Jan 2016 17:17:57 +0100 Subject: [Scilab-users] 'fsolver' In-Reply-To: <1453910075986-4033345.post@n3.nabble.com> References: <1453904645984-4033340.post@n3.nabble.com> <56A8E5C5.7060905@utc.fr> <1453910075986-4033345.post@n3.nabble.com> Message-ID: <56A8EDB5.2010309@utc.fr> Le 27/01/2016 16:54, fujimoto2005 a ?crit : > The feature of my f(x) defined for x>0 is as follows. > f(x)<0 for x f(x1)=0 > f(x) >0 for x1 f(x)=0 for x>=x2 > > 'fsolver' gives some x such as x>x2 as a solution. > I want to get x1 as a solution. > > > > > -- > View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033345.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users A quick and dirty way of finding the minimum norm solution is to use lsqrsolve and to penalize the residual with the squared norm of the solution, like in this example (find one of the two closest to zero solution of cos(x)=0) : function res=f1(x) res=cos(x) endfunction function res=f2(x, m) res=[f1(x) %eps^(1/4)*x] endfunction format(20) [x1,v,info]=fsolve(0,f1) disp(x1) [x2,v,info]=lsqrsolve(0,f2,2) [x1,v,info]=fsolve(x2,f1) disp(x1) But the main problem is the tuning of the penalization parameter. But when it works well, you can then start from x2, hoping that you are in the basin of attraction of your solution. S. -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Jan 27 17:20:44 2016 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 27 Jan 2016 17:20:44 +0100 Subject: [Scilab-users] 'fsolver' In-Reply-To: <1453910075986-4033345.post@n3.nabble.com> References: <1453904645984-4033340.post@n3.nabble.com> <56A8E5C5.7060905@utc.fr> <1453910075986-4033345.post@n3.nabble.com> Message-ID: <56A8EE5C.7030200@inria.fr> May be you can use optim instead of fsolve using f(x)^2+alpha*norm(x)^2 as cost function with alpha small enough If you cannot compute the gradient of the cost function you can use the numderivative function to estimate it. Serge Le 27/01/2016 16:54, fujimoto2005 a ?crit : > The feature of my f(x) defined for x>0 is as follows. > f(x)<0 for x f(x1)=0 > f(x) >0 for x1 f(x)=0 for x>=x2 > > 'fsolver' gives some x such as x>x2 as a solution. > I want to get x1 as a solution. > > > > > -- > View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033345.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From david.cheze at cea.fr Thu Jan 28 11:06:44 2016 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 28 Jan 2016 03:06:44 -0700 (MST) Subject: [Scilab-users] support on scilab 6 new debug feature Message-ID: <1453975604556-4033348.post@n3.nabble.com> Hi all, I'm looking after documentation in any format regarding the new debug feature introduced in scilab 6. Especially trying to debug a module under development, I'm sure they are some tricks to avoid traps I'm presently falling in... Thanks for any link to put me on track ! David -- View this message in context: http://mailinglists.scilab.org/support-on-scilab-6-new-debug-feature-tp4033348.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Thu Jan 28 16:14:17 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 28 Jan 2016 16:14:17 +0100 Subject: [Scilab-users] support on scilab 6 new debug feature In-Reply-To: <1453975604556-4033348.post@n3.nabble.com> References: <1453975604556-4033348.post@n3.nabble.com> Message-ID: <1453994057.2891.4.camel@scilab-enterprises.com> Hi David, The nightly build help is not available on help.scilab.org but we can either type `help debug` on a nightly build or read the raw XML on the source tree [1]. Note that this debug feature has no integration on SciNotes yet. [1]:?http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/core/help/en_US/debugging/ debug.xml;h=e3add1ee53bd1fc5a7192569d313a4046e607fc5;hb=HEAD -- Cl?ment Le jeudi 28 janvier 2016 ? 03:06 -0700, David Ch?ze a ?crit?: > Hi all, > > I'm looking after documentation in any format regarding the new debug > feature introduced in scilab 6. Especially trying to debug a module under > development, I'm sure they are some tricks to avoid traps I'm presently > falling in... > > Thanks for any link to put me on track ! > > David > > > > -- > View this message in context: http://mailinglists.scilab.org/support-on-scilab-6-new-debug-feature > -tp4033348.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From fujimoto2005 at gmail.com Fri Jan 29 08:38:43 2016 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 29 Jan 2016 00:38:43 -0700 (MST) Subject: [Scilab-users] 'fsolver' In-Reply-To: <56A8EE5C.7030200@inria.fr> References: <1453904645984-4033340.post@n3.nabble.com> <56A8E5C5.7060905@utc.fr> <1453910075986-4033345.post@n3.nabble.com> <56A8EE5C.7030200@inria.fr> Message-ID: <1454053123925-4033350.post@n3.nabble.com> Hi, motterlet and Steer Thanks a lot your helps. Unfortunately 'lsqrsolve' did't give the smallest initial point for my function. The local minimum of f^2+a*x^2 is attained at x s.t. f(x)=-a*x. So if a is small such x is a neighborhood of x s.t. f(x)=0. But it is not necessarily of x which is the smallest one. Probably my function is not well-behaved as like cos(x) so that it fail. Now I get an awkward method. I find the first x(i) s.t. f(x(i))>0 and f(x(i-1))<0 where x(i)=x0+i*dx and x0 is some constant which is smaller than smallest solution of f(x)=0. Then I modify f(x) to new function fnew(x) as f(x)=f(x(i-1))+[f(x(i))-f(x(i-1))]/[x(i)-x(i-1)]*[x-x(i)] for x>=x(i) and fnew(x)=f(x) for x<=x(i). Using fsolv(x(i-1),fnew) gives the smallest solution of f(x)=0. With your helps I could get a practical solution. Thanks again. Best regards. -- View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033350.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From anna.parravicini at cnao.it Fri Jan 29 09:15:22 2016 From: anna.parravicini at cnao.it (anna78) Date: Fri, 29 Jan 2016 01:15:22 -0700 (MST) Subject: [Scilab-users] stop running, with no error Message-ID: <1454055322173-4033351.post@n3.nabble.com> Hi all, I have a very obscure bug in my script... I have a script long about 300 lines. The first half of lines is made by a for-loop; the secondo half are easy istructions, followed by data saving and plot. If I run the script, it executs correctly the for-loop (I ask the script to plot loop index and it arrives at 20, as it shall do), then it stops with no message error. If I copy all the remaining lines in the scilab console, it works correctly and reaches the end of the script with no errors, but if I run the script it stops at the end of the for-loop. Any idea? Is there a limit in the script lines number? I copy here after the "critical" lines, in case you can see any mistake in the syntax... but I really cannot understand. thanks in advance, Anna " ... execstr("output_"+pu_name+"=zeros(jpath,6);"); execstr("output_"+pu_name+"=onePUvsCalendar(jstart,jend,path_anal_list,cycle_anal,pu_name);"); disp(string(puindex)) // This is plot correctly up the expected last value end// end-for loop disp('test???'); // this is not display; it stops before t=string(round(now())); S=size(output_S6009PUH); N=S(1); chdir(path_out); outputname="all_"+particle+'_'+energy_mm+"mm_"+string(jstart)+"ms"+string(jend)+"ms_vs_calendar_output_v1_'+t+'.txt'; ... " -- View this message in context: http://mailinglists.scilab.org/stop-running-with-no-error-tp4033351.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Fri Jan 29 09:20:47 2016 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 29 Jan 2016 09:20:47 +0100 Subject: [Scilab-users] 'fsolver' In-Reply-To: <1454053123925-4033350.post@n3.nabble.com> References: <1453904645984-4033340.post@n3.nabble.com> <56A8E5C5.7060905@utc.fr> <1453910075986-4033345.post@n3.nabble.com> <56A8EE5C.7030200@inria.fr> <1454053123925-4033350.post@n3.nabble.com> Message-ID: <56AB20DF.9020100@utc.fr> Hello, Can you give us the actual definition of the function f(x) (i suppose you are trying to find x such that f(x)=0 ) ? S. Le 29/01/2016 08:38, fujimoto2005 a ?crit : > Hi, motterlet and Steer > > Thanks a lot your helps. > > Unfortunately 'lsqrsolve' did't give the smallest initial point for my > function. > The local minimum of f^2+a*x^2 is attained at x s.t. f(x)=-a*x. > So if a is small such x is a neighborhood of x s.t. f(x)=0. > But it is not necessarily of x which is the smallest one. > Probably my function is not well-behaved as like cos(x) so that it fail. > > Now I get an awkward method. > I find the first x(i) s.t. f(x(i))>0 and f(x(i-1))<0 where x(i)=x0+i*dx and > x0 is some constant which is smaller than smallest solution of f(x)=0. > Then I modify f(x) to new function fnew(x) as > f(x)=f(x(i-1))+[f(x(i))-f(x(i-1))]/[x(i)-x(i-1)]*[x-x(i)] for x>=x(i) and > fnew(x)=f(x) for x<=x(i). > Using fsolv(x(i-1),fnew) gives the smallest solution of f(x)=0. > With your helps I could get a practical solution. > Thanks again. > > Best regards. > > > > > -- > View this message in context: http://mailinglists.scilab.org/fsolver-tp4033340p4033350.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From david.cheze at cea.fr Fri Jan 29 09:46:36 2016 From: david.cheze at cea.fr (CHEZE David 227480) Date: Fri, 29 Jan 2016 08:46:36 +0000 Subject: [Scilab-users] support on scilab 6 new debug feature In-Reply-To: <1453994057.2891.4.camel@scilab-enterprises.com> References: <1453975604556-4033348.post@n3.nabble.com> <1453994057.2891.4.camel@scilab-enterprises.com> Message-ID: Hi Clement, I'm running the scilab6 alpha 2 on WIN7-64bits and I actually read help page about debug. Currently I'm updating a module that runs well with scilab5.5.1 to Scilab 6 and I've an issue: that's the context for using new debug instead of former "pause". Then I start : debug break myfunctioninmymodule exec demoofmymodule.sce and it fails, complaining about expecting end of line etc... To be able to debug I have to put the debug command in my demos script and then execute the script. Then it works. Break> n ... But it's not what I would have expect and understand by reading the help page (what is very useful in the newx debug feature is that you should not have to modify the code itself). That's why I was looking about debugging Scilab modules for examples, maybe I've done something wrong. Thank you for feedback, David -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de Cl?ment David Envoy??: jeudi 28 janvier 2016 16:14 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] support on scilab 6 new debug feature Hi David, The nightly build help is not available on help.scilab.org but we can either type `help debug` on a nightly build or read the raw XML on the source tree [1]. Note that this debug feature has no integration on SciNotes yet. [1]:?http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/core/help/en_US/debugging/ debug.xml;h=e3add1ee53bd1fc5a7192569d313a4046e607fc5;hb=HEAD -- Cl?ment Le jeudi 28 janvier 2016 ? 03:06 -0700, David Ch?ze a ?crit?: > Hi all, > > I'm looking after documentation in any format regarding the new debug > feature introduced in scilab 6. Especially trying to debug a module > under development, I'm sure they are some tricks to avoid traps I'm > presently falling in... > > Thanks for any link to put me on track ! > > David > > > > -- > View this message in context: > http://mailinglists.scilab.org/support-on-scilab-6-new-debug-feature > -tp4033348.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > 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 clement.david at scilab-enterprises.com Fri Jan 29 10:36:08 2016 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 29 Jan 2016 10:36:08 +0100 Subject: [Scilab-users] support on scilab 6 new debug feature In-Reply-To: References: <1453975604556-4033348.post@n3.nabble.com> <1453994057.2891.4.camel@scilab-enterprises.com> Message-ID: <1454060168.3093.3.camel@scilab-enterprises.com> Hi David, Well it seems that `debug/exec` is not working the expected way (in fact it does not execute a file but an expression). Please open a bug to clarify and improve the current behavior. Thanks, -- Cl?ment Le vendredi 29 janvier 2016 ? 08:46 +0000, CHEZE David 227480 a ?crit?: > Hi Clement, > > I'm running the scilab6??alpha 2 on WIN7-64bits and I actually read help page about debug. > Currently I'm updating a module that runs well with scilab5.5.1 to Scilab 6 and I've an issue: > that's the context for using new debug instead of former "pause". > Then I start : > debug > break myfunctioninmymodule > exec demoofmymodule.sce > > and it fails, complaining about expecting end of line etc... > ? > To be able to debug I have to put the debug command in my demos script and then execute the > script. > Then it works. > Break> n > ... > > > ?But it's not what I would have expect and understand by reading the help page (what is very > useful in the newx debug feature is??that you should not have to modify the code itself). That's > why I was looking about debugging Scilab modules for examples, maybe I've done something wrong. > > Thank you for feedback, > > David > > -----Message d'origine----- > De?: users [mailto:users-bounces at lists.scilab.org] De la part de Cl?ment David > Envoy??: jeudi 28 janvier 2016 16:14 > ??: users at lists.scilab.org > Objet?: Re: [Scilab-users] support on scilab 6 new debug feature > > Hi David, > > The nightly build help is not available on help.scilab.org but we can either type `help debug` on > a nightly build or read the raw XML on the source tree [1]. > > Note that this debug feature has no integration on SciNotes yet. > > [1]:?http://gitweb.scilab.org/?p=scilab.git;a=blob_plain;f=scilab/modules/core/help/en_US/debuggin > g/ > debug.xml;h=e3add1ee53bd1fc5a7192569d313a4046e607fc5;hb=HEAD > > -- > Cl?ment > > Le jeudi 28 janvier 2016 ? 03:06 -0700, David Ch?ze a ?crit?: > > Hi all, > > > > I'm looking after documentation in any format regarding the new debug? > > feature introduced in scilab 6. Especially trying to debug a module? > > under development, I'm sure they are some tricks to avoid traps I'm? > > presently falling in... > > > > Thanks for any link to put me on track ! > > > > David > > > > > > > > -- > > View this message in context:? > > http://mailinglists.scilab.org/support-on-scilab-6-new-debug-feature > > -tp4033348.html > > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > _______________________________________________ > > 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From j-lan at online.no Fri Jan 29 12:58:31 2016 From: j-lan at online.no (JLan) Date: Fri, 29 Jan 2016 04:58:31 -0700 (MST) Subject: [Scilab-users] stop running, with no error In-Reply-To: <1454055322173-4033351.post@n3.nabble.com> References: <1454055322173-4033351.post@n3.nabble.com> Message-ID: <1454068711632-4033355.post@n3.nabble.com> I suggest to put a debug disp line also at the top of the for loop, to check that it is not starting on a 21st round. If not remove one line at the time in the loop. Jan L -- View this message in context: http://mailinglists.scilab.org/stop-running-with-no-error-tp4033351p4033355.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From adhitya07 at gmail.com Sat Jan 30 07:22:26 2016 From: adhitya07 at gmail.com (Adhitya Kamakshidasan) Date: Sat, 30 Jan 2016 11:52:26 +0530 Subject: [Scilab-users] Document for xcos Message-ID: Hi, My name is Adhitya Kamakshidasan and I'm an Intern at FOSSEE, IIT Bombay. We are trying to develop a standalone version of Xcos, that is completely web-based. I would like to know if there is any documentation with respect to how Xcos has been written - Flowcharts, Main methods, PDF's, etc. Currently, I'm trying to reverse-engineer the code, by slowly move through the code, and remove the parts that are not related to Xcos. However, this is taking a lot of time. We would like your support in this regard. Thanks, Adhitya Kamakshidasan -------------- next part -------------- An HTML attachment was scrubbed... URL: