From n.strelkov at gmail.com Sat Apr 1 15:47:40 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 1 Apr 2017 16:47:40 +0300 Subject: [Scilab-users] Setting up C-compiler In-Reply-To: References: Message-ID: Dear Phililip! I do not know about MS compiler. I use GCC from mingw on my Windows 8.1 laptop. I installed version 0.9.3 from ATOMS : 1. installed gcc x64 from - http://atoms.scilab.org/toolboxes/mingw/0.9.3/files/gcc-4.6.3-64.exe 2. logged out 3. installed mingw toolbox in Scilab with atomsInstall('mingw'); 4. restarted Scilab 5. tested mingw toolbox with atomsTest('mingw'); Hope this helps. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-04-01 0:02 GMT+03:00 phillip mobley : > Hello everyone, > > I seem to be running into an interesting issue with my xcos code, I am > getting an error that it is unable to find a c compiler. > > I am running win 10 and scilab 5.5.2 > > I have installed visual studio 2015. I am not too sure if it will pick up > on this compiler. If not, I have downloaded the latest version of mingw and > installed the dynamic linker for sci-lab and the program is still having > issue with finding a compiler. > > I was wondering if anyone here may have ran into a similar issue or if I > could get some help in getting scilab to find a compatible compiler? > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sat Apr 1 15:53:13 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 1 Apr 2017 16:53:13 +0300 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: References: Message-ID: Anybody? Dear Tim, do you have any idea? -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov : > Dear all! > > I'm playing with simple digital filtering in Xcos 5.5.2. > I have two filters - low-pass and high-pass, connected in series. > > Xcos does not have convolution block. > So I write FIR transfer function > > manually from impulse response function. > I get impulse response functions from wfir function. > > Let's assume that we have two simple filters with impulse responses: > h1 = [0.3741957 0.3741957]; // it's low-pass filter from h1 = > wfir("lp",2,[.2 0],"re",[0 0]) > and > h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass filter h2 = > wfir("hp",3,[.1 0],"re",[0 0]) > > I convert them to DLR > SISOs and get: > H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + 0.3741957 ) / > (z^2); > H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( -0.1870979*z^2 + > 0.8*z - 0.1870979*z ) / (z^3); > and place their numerator and denominator to the corresponding DLR blocks. > Model is in attachment. It's an illustration, not real world example. > > I have a question. How I can automate the aforementioned process > programmatically? > I tried to create numerator and denominator with poly function and as > strings, but Xcos does not support these types in DLR settings. > > -- > > > > > *With best regards,Ph.D., assistant professor at MPEI > ,IEEE member,maintainer of > Mathieu functions toolbox for Scilab > ,Nikolay Strelkov.* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Sat Apr 1 16:23:49 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sat, 1 Apr 2017 22:23:49 +0800 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: References: Message-ID: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> Hi, If I understand correctly, you would like to create the filter in Scilab, and directly access from Xcos? if so, u could use the syslin object to do so. 1. Create the syslin obj h1 = wfir("lp",2,[.2 0],"re",[0 0]) h2 = wfir("hp",3,[.1 0],"re",[0 0]) num1 = poly(h1,'z','coeff') d = ones(1,size(h1,2)+1) d(1:$-1) = 0 den1 = poly(d,'z','coeff') H1 = syslin('d',num1,den1) num2 = poly(h2,'z','coeff') d = ones(1,size(h2,2)+1) d(1:$-1) = 0 den2 = poly(d,'z','coeff') H2 = syslin('d',num2,den2) 2. In Xcos use H1.num in the numerator block for LPF, H1.den in the denominator for the LPF, same for the HPF. Hope this helps. rgds, CL On 1/4/2017 9:53 PM, Nikolay Strelkov wrote: > Anybody? > Dear Tim, do you have any idea? > > -- > /With best regards, > Ph.D., //associate professor at MPEI > , > IEEE member, > maintainer of Mathieu functions toolbox for Scilab > , > Nikolay Strelkov./ > > 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov >: > > Dear all! > > I'm playing with simple digital filtering in Xcos 5.5.2. > I have two filters - low-pass and high-pass, connected in series. > > Xcos does not have convolution block. > So I write FIR transfer function > > manually from impulse response function. > I get impulse response functions from wfir function. > > Let's assume that we have two simple filters with impulse responses: > h1 = [0.3741957 0.3741957]; // it's low-pass filter from h1 = > wfir("lp",2,[.2 0],"re",[0 0]) > and > h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass filter > h2 = wfir("hp",3,[.1 0],"re",[0 0]) > > I convert them to DLR > SISOs and get: > H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + > 0.3741957 ) / (z^2); > H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( > -0.1870979*z^2 + 0.8*z - 0.1870979*z ) / (z^3); > and place their numerator and denominator to the corresponding DLR > blocks. > Model is in attachment. It's an illustration, not real world example. > > I have a question. How I can automate the aforementioned process > programmatically? > I tried to create numerator and denominator with poly function and > as strings, but Xcos does not support these types in DLR settings. > > -- > /With best regards, > Ph.D., assistant professor at MPEI > , > IEEE member, > maintainer of Mathieu functions toolbox for Scilab > , > Nikolay Strelkov./ > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Apr 1 18:18:51 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 1 Apr 2017 18:18:51 +0200 Subject: [Scilab-users] Setting compilers in Preferences: a good target for Scilab 6.1 Message-ID: Hello, Le 31/03/2017 ? 23:02, phillip mobley a ?crit : > Hello everyone, > > I seem to be running into an interesting issue with my xcos code, I am > getting an error that it is unable to find a c compiler. > > I am running win 10 and scilab 5.5.2 > > I have installed visual studio 2015. I am not too sure if it will pick > up on this compiler. If not, I have downloaded the latest version of > mingw and installed the dynamic linker for sci-lab and the program is > still having issue with finding a compiler. > > I was wondering if anyone here may have ran into a similar issue or if > I could get some help in getting scilab to find a compatible compiler? This most recent testimonial lengthens the already long list of similar posted issues. The Scilab Preferences system is available since Scilab 5.4.0, so for almost 5 years. It is somewhat hard to understand why compilers are not explicitly set in the Preferences, instead of using a labyrinthine system of internal macros hard to maintain to /try/ to detect installed compilers. This wish for simplifying and making Scilab more reliable and simple to use with compilers is reported @ http://bugzilla.scilab.org/12355 Implementing this in Preferences, and replacing calls to automatic detection with Preferences settings in Scilab macros, could be a priority for Scilab 6.1 Best regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sat Apr 1 18:22:31 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 1 Apr 2017 19:22:31 +0300 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> References: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> Message-ID: Dear Tan Chin Luh! Thank you very much. It works as expected! The problem is solved. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-04-01 17:23 GMT+03:00 Tan Chin Luh : > Hi, > > If I understand correctly, you would like to create the filter in Scilab, > and directly access from Xcos? > if so, u could use the syslin object to do so. > > 1. Create the syslin obj > h1 = wfir("lp",2,[.2 0],"re",[0 0]) > h2 = wfir("hp",3,[.1 0],"re",[0 0]) > num1 = poly(h1,'z','coeff') > d = ones(1,size(h1,2)+1) > d(1:$-1) = 0 > den1 = poly(d,'z','coeff') > H1 = syslin('d',num1,den1) > num2 = poly(h2,'z','coeff') > d = ones(1,size(h2,2)+1) > d(1:$-1) = 0 > den2 = poly(d,'z','coeff') > H2 = syslin('d',num2,den2) > > 2. In Xcos > use H1.num in the numerator block for LPF, H1.den in the denominator for > the LPF, same for the HPF. > > Hope this helps. > > rgds, > CL > > > On 1/4/2017 9:53 PM, Nikolay Strelkov wrote: > > Anybody? > Dear Tim, do you have any idea? > > -- > > *With best regards, Ph.D., * > > > *associate professor at MPEI , > IEEE member, maintainer of Mathieu functions toolbox for Scilab > , Nikolay Strelkov.* > > 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov : > >> Dear all! >> >> I'm playing with simple digital filtering in Xcos 5.5.2. >> I have two filters - low-pass and high-pass, connected in series. >> >> Xcos does not have convolution block. >> So I write FIR transfer function >> >> manually from impulse response function. >> I get impulse response functions from wfir function. >> >> Let's assume that we have two simple filters with impulse responses: >> h1 = [0.3741957 0.3741957]; // it's low-pass filter from h1 = >> wfir("lp",2,[.2 0],"re",[0 0]) >> and >> h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass filter h2 = >> wfir("hp",3,[.1 0],"re",[0 0]) >> >> I convert them to DLR >> SISOs and get: >> H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + 0.3741957 ) / >> (z^2); >> H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( -0.1870979*z^2 + >> 0.8*z - 0.1870979*z ) / (z^3); >> and place their numerator and denominator to the corresponding DLR blocks. >> Model is in attachment. It's an illustration, not real world example. >> >> I have a question. How I can automate the aforementioned process >> programmatically? >> I tried to create numerator and denominator with poly function and as >> strings, but Xcos does not support these types in DLR settings. >> >> -- >> >> >> >> >> *With best regards, Ph.D., assistant professor at MPEI >> , IEEE member, maintainer of >> Mathieu functions toolbox for Scilab >> , Nikolay Strelkov.* >> > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sat Apr 1 23:42:46 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sat, 01 Apr 2017 23:42:46 +0200 Subject: [Scilab-users] contour : z level use Message-ID: Hi In the following example, I'm trying to add a single contour line equals to z = 0, but I've another value: what am I doing wrong? Thanks for the help Nota bene : I'm under 5.5.2 Scilab release Paul ########################################## mode(0) X = linspace(0,1,10); Y = linspace(0,1,10); Z = rand(10,10) - rand(10,10); Z_min = min(Z); Z_max = max(Z); // plot3d scf(); xset("colormap",jetcolormap(64)); drawlater() ; xtitle("Z following (X,Y)"); colorbar(Z_min,Z_max); a=get("current_axes"); a.x_label; x_label=a.x_label; x_label.text=" X"; a.y_label; y_label=a.y_label; y_label.text=" Y"; a.z_label; z_label=a.z_label; z_label.text=" Z"; plot3d1(X,Y,Z,45,80); contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); drawnow() ; -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Apr 2 09:16:10 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 02 Apr 2017 09:16:10 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: References: Message-ID: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> Hi I've been thinking that Scilab uses the closest zlev than the one I'm specifying, based on the points I provided ... am I correct? I've to find a way to create the points I need with z=0 .... Paul Le 2017-04-01 23:42, paul.carrico at free.fr a ?crit : > Hi > > In the following example, I'm trying to add a single contour line > equals to z = 0, but I've another value: what am I doing wrong? > > Thanks for the help > > Nota bene : I'm under 5.5.2 Scilab release > > Paul > > ########################################## > > mode(0) > > X = linspace(0,1,10); > Y = linspace(0,1,10); > Z = rand(10,10) - rand(10,10); > > Z_min = min(Z); > Z_max = max(Z); > > // plot3d > > scf(); > xset("colormap",jetcolormap(64)); > drawlater() ; > xtitle("Z following (X,Y)"); > colorbar(Z_min,Z_max); > a=get("current_axes"); > a.x_label; x_label=a.x_label; x_label.text=" X"; > a.y_label; y_label=a.y_label; y_label.text=" Y"; > a.z_label; z_label=a.z_label; z_label.text=" Z"; > plot3d1(X,Y,Z,45,80); > contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); > drawnow() ; > _______________________________________________ > 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 Sun Apr 2 12:56:35 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 2 Apr 2017 12:56:35 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> References: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> Message-ID: Hello, > contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); You are setting an inappropriate mode in flag. Samuel Le 02/04/2017 ? 09:16, paul.carrico at free.fr a ?crit : > Hi > I've been thinking that Scilab uses the closest zlev than the one I'm > specifying, based on the points I provided ... am I correct? > I've to find a way to create the points I need with z=0 .... > Paul > Le 2017-04-01 23:42, paul.carrico at free.fr > a ?crit : >> Hi >> >> In the following example, I'm trying to add a single contour line >> equals to z = 0, but I've another value: what am I doing wrong? >> >> Thanks for the help >> >> Nota bene : I'm under 5.5.2 Scilab release >> >> Paul >> >> ########################################## >> >> mode(0) >> >> X = linspace(0,1,10); >> Y = linspace(0,1,10); >> Z = rand(10,10) - rand(10,10); >> >> Z_min = min(Z); >> Z_max = max(Z); >> >> // plot3d >> >> scf(); >> xset("colormap",jetcolormap(64)); >> drawlater() ; >> xtitle("Z following (X,Y)"); >> colorbar(Z_min,Z_max); >> a=get("current_axes"); >> a.x_label; x_label=a.x_label; x_label.text=" X"; >> a.y_label; y_label=a.y_label; y_label.text=" Y"; >> a.z_label; z_label=a.z_label; z_label.text=" Z"; >> plot3d1(X,Y,Z,45,80); >> contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); >> drawnow() ; >> _______________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at icloud.com Sun Apr 2 13:33:03 2017 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Sun, 2 Apr 2017 04:33:03 -0700 (MST) Subject: [Scilab-users] Fundamental problem with "histc" In-Reply-To: <1491049605793-4036096.post@n3.nabble.com> References: <1491049605793-4036096.post@n3.nabble.com> Message-ID: <1491132782903-4036106.post@n3.nabble.com> Found out myself: Scilab help pages say histc computes an histogram Description This function computes a histogram of the data vector using the classes x. When the number n of classes is provided instead of x, the classes are chosen equally spaced and x(1) = min(data) < x(2) = x(1) + dx < ... < x(n+1) = max(data) with dx = (x(n+1)-x(1))/n. The classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i >= 2. For me, this is the wrong definition, because it throws all zeros and ones into one bin. However, I am not suggesting a change in Scilab [but perhaps a warning against misunderstandings] and instead of histc(0:10, A, normalization=%f) ; I use now histc(-0.5:9.5, A, normalization=%f). That solves my problem. Heinz -- View this message in context: http://mailinglists.scilab.org/Fundamental-problem-with-histc-tp4036096p4036106.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Sun Apr 2 14:27:30 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 02 Apr 2017 14:27:30 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: References: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> Message-ID: Hi Samuel Even when using mode = 1 (as the other in fact) in the flag, the result remains identical _Nb_: I probably pasted the latest trial I did :-) Paul // flag=[mode,type,box] // mode : //string representation mode. //mode=0: the level curves are drawn on the surface defined by (x,y,z). //mode=1: the level curves are drawn on a 3D plot and on the plan defined by the equation z=zlev. //mode=2: the level curves are drawn on a 2D plot. //type : an integer (scaling). //type=0 : the plot is made using the current 3D scaling (set by a previous call to param3d, plot3d, contour or plot3d1). //type=1 : rescales automatically 3d boxes with extreme aspect ratios, the boundaries are specified by the value of the optional argument ebox. //type=2 : rescales automatically 3d boxes with extreme aspect ratios, the boundaries are computed using the given data. //type=3 : 3d isometric with box bounds given by optional ebox, similarily to type=1 //type=4 : 3d isometric bounds derived from the data, to similarily type=2 //type=5 : 3d expanded isometric bounds with box bounds given by optional ebox, similarily to type=1 //type=6 : 3d expanded isometric bounds derived from the data, similarily to type=2 //box : an integer (frame around the plot). //box=0 : nothing is drawn around the plot. //box=1 : unimplemented (like box=0). //box=2 : only the axes behind the surface are drawn. //box=3 : a box surrounding the surface is drawn and captions are added. //box=4 : a box surrounding the surface is drawn, captions and axes are added. //ebox : used when type in flag is 1. It specifies the boundaries of the plot as the vector [xmin,xmax,ymin,ymax,zmin,zmax]. //zlev : real number. Le 2017-04-02 12:56, Samuel Gougeon a ?crit : > Hello, > >> contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); > > You are setting an inappropriate mode in flag. > > Samuel > > Le 02/04/2017 ? 09:16, paul.carrico at free.fr a ?crit : > > Hi > > I've been thinking that Scilab uses the closest zlev than the one > I'm specifying, based on the points I provided ... am I correct? > > I've to find a way to create the points I need with z=0 .... > > Paul > > Le 2017-04-01 23:42, paul.carrico at free.fr a ?crit : > > Hi > > In the following example, I'm trying to add a single contour line > equals to z = 0, but I've another value: what am I doing wrong? > > Thanks for the help > > Nota bene : I'm under 5.5.2 Scilab release > > Paul > > ########################################## > > mode(0) > > X = linspace(0,1,10); > Y = linspace(0,1,10); > Z = rand(10,10) - rand(10,10); > > Z_min = min(Z); > Z_max = max(Z); > > // plot3d > > scf(); > xset("colormap",jetcolormap(64)); > drawlater() ; > xtitle("Z following (X,Y)"); > colorbar(Z_min,Z_max); > a=get("current_axes"); > a.x_label; x_label=a.x_label; x_label.text=" X"; > a.y_label; y_label=a.y_label; y_label.text=" Y"; > a.z_label; z_label=a.z_label; z_label.text=" Z"; > plot3d1(X,Y,Z,45,80); > contour(X,Y,Z,1,flag=[0 1 4],zlev=0.); > drawnow() ; > _______________________________________________ _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sun Apr 2 14:45:35 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 2 Apr 2017 05:45:35 -0700 (MST) Subject: [Scilab-users] contour : z level use In-Reply-To: References: Message-ID: <1491137135601-4036108.post@n3.nabble.com> Hi, Try code below, which does not uses zlev but nz = [0,0] instead. Attached picture is produced. // START OF CODE X = linspace(-3,3,100); Y = linspace(-3,3,100); Z = sin(X'*Y)-0.3; //+ X'*ones(X); clf() xset("colormap",jetcolormap(256)); Zc = 0; xtitle("Z=" +string(Zc) +" contour"); colorbar(min(Z),max(Z)); a=get("current_axes"); a.x_label.text=" X"; a.y_label.text=" Y"; a.z_label.text=" Z"; plot3d1(X,Y,Z,flag=[-1 2 4]); contour(X,Y,Z,[0 0],flag=[0 0 4]); // END OF CODE Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-users-contour-z-level-use-tp4036103p4036108.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sun Apr 2 14:49:50 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 2 Apr 2017 05:49:50 -0700 (MST) Subject: [Scilab-users] contour : z level use In-Reply-To: <1491137135601-4036108.post@n3.nabble.com> References: <1491137135601-4036108.post@n3.nabble.com> Message-ID: <1491137390825-4036109.post@n3.nabble.com> // NOTE: the previous contour code line should read: contour(X,Y,Z,[Zc Zc],flag=[0 0 4]); -- View this message in context: http://mailinglists.scilab.org/Scilab-users-contour-z-level-use-tp4036103p4036109.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Sun Apr 2 15:06:26 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 02 Apr 2017 15:06:26 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: <1491137390825-4036109.post@n3.nabble.com> References: <1491137135601-4036108.post@n3.nabble.com> <1491137390825-4036109.post@n3.nabble.com> Message-ID: <7c94603b5e1b26f6e6b2c6f0d0dfc208@free.fr> amazing ... once again many thanks Rafael (need time to have a look on the code and to catch how to modify some features) Thanks Paul Le 2017-04-02 14:49, Rafael Guerra a ?crit : > // NOTE: the previous contour code line should read: > contour(X,Y,Z,[Zc Zc],flag=[0 0 4]); > > -- > View this message in context: > http://mailinglists.scilab.org/Scilab-users-contour-z-level-use-tp4036103p4036109.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Sun Apr 2 14:56:57 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sun, 2 Apr 2017 20:56:57 +0800 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: References: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> Message-ID: you're welcome. anyway it should be a better way to construct the denominator, do let me know if you find a better way. :) rgds, CL On 2/4/2017 12:22 AM, Nikolay Strelkov wrote: > Dear Tan Chin Luh! > > Thank you very much. > It works as expected! > The problem is solved. > > -- > /With best regards, > Ph.D., //associate professor at MPEI > , > IEEE member, > maintainer of Mathieu functions toolbox for Scilab > , > Nikolay Strelkov./ > > 2017-04-01 17:23 GMT+03:00 Tan Chin Luh >: > > Hi, > > If I understand correctly, you would like to create the filter in > Scilab, and directly access from Xcos? > if so, u could use the syslin object to do so. > > 1. Create the syslin obj > h1 = wfir("lp",2,[.2 0],"re",[0 0]) > h2 = wfir("hp",3,[.1 0],"re",[0 0]) > num1 = poly(h1,'z','coeff') > d = ones(1,size(h1,2)+1) > d(1:$-1) = 0 > den1 = poly(d,'z','coeff') > H1 = syslin('d',num1,den1) > num2 = poly(h2,'z','coeff') > d = ones(1,size(h2,2)+1) > d(1:$-1) = 0 > den2 = poly(d,'z','coeff') > H2 = syslin('d',num2,den2) > > 2. In Xcos > use H1.num in the numerator block for LPF, H1.den in the > denominator for the LPF, same for the HPF. > > Hope this helps. > > rgds, > CL > > > On 1/4/2017 9:53 PM, Nikolay Strelkov wrote: >> Anybody? >> Dear Tim, do you have any idea? >> >> -- >> /With best regards, >> Ph.D., //associate professor at MPEI >> , >> IEEE member, >> maintainer of Mathieu functions toolbox for Scilab >> , >> Nikolay Strelkov./ >> >> 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov > >: >> >> Dear all! >> >> I'm playing with simple digital filtering in Xcos 5.5.2. >> I have two filters - low-pass and high-pass, connected in series. >> >> Xcos does not have convolution block. >> So I write FIR transfer function >> >> manually from impulse response function. >> I get impulse response functions from wfir function. >> >> Let's assume that we have two simple filters with impulse >> responses: >> h1 = [0.3741957 0.3741957]; // it's low-pass filter from >> h1 = wfir("lp",2,[.2 0],"re",[0 0]) >> and >> h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass >> filter h2 = wfir("hp",3,[.1 0],"re",[0 0]) >> >> I convert them to DLR >> SISOs and >> get: >> H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + >> 0.3741957 ) / (z^2); >> H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( >> -0.1870979*z^2 + 0.8*z - 0.1870979*z ) / (z^3); >> and place their numerator and denominator to the >> corresponding DLR blocks. >> Model is in attachment. It's an illustration, not real world >> example. >> >> I have a question. How I can automate the aforementioned >> process programmatically? >> I tried to create numerator and denominator with poly >> function and as strings, but Xcos does not support these >> types in DLR settings. >> >> -- >> /With best regards, >> Ph.D., assistant professor at MPEI >> , >> IEEE member, >> maintainer of Mathieu functions toolbox for Scilab >> , >> Nikolay Strelkov./ >> >> >> >> >> _______________________________________________ >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Apr 2 18:17:56 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 2 Apr 2017 18:17:56 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: References: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> Message-ID: <96baf2ac-9580-d129-039c-7641bb78a228@free.fr> Le 02/04/2017 ? 14:27, paul.carrico at free.fr a ?crit : > Hi Samuel > Even when using mode = 1 (as the other in fact) in the flag, the > result remains identical Indeed. I was misled by the zlev option. It is just the single level of the plane on which contours must be plotted (instead of ?) in addition to on the Z(x,y) surface. The help would deserve being clarified. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Apr 2 18:33:09 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 2 Apr 2017 18:33:09 +0200 Subject: [Scilab-users] contour : z level use In-Reply-To: <1491137390825-4036109.post@n3.nabble.com> References: <1491137135601-4036108.post@n3.nabble.com> <1491137390825-4036109.post@n3.nabble.com> Message-ID: <24a600f0-0710-03d1-27fc-dcf4e7b75968@free.fr> Le 02/04/2017 ? 14:49, Rafael Guerra a ?crit : > // NOTE: the previous contour code line should read: > contour(X,Y,Z,[Zc Zc],flag=[0 0 4]); Right. When Zc is not a strictly positive integer, it should be taken as a single Z level. But it is currently not the case. It is a bug : http://bugzilla.scilab.org/13467 Then, for plotting the only level z=0, specifying 1e-300 would be OK And for plotting the only level z=2, 2*(1+%eps) would do it. Doubling [Zc Zc] is another trick. contour() does not apply unique() on specified levels, and so processes the same level twice. Another improvement to implement. From jrafaelbguerra at hotmail.com Sun Apr 2 18:50:31 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 2 Apr 2017 09:50:31 -0700 (MST) Subject: [Scilab-users] contour : z level use In-Reply-To: <96baf2ac-9580-d129-039c-7641bb78a228@free.fr> References: <68d9e03ec2c483bff2ba2f1ad89bdb4e@free.fr> <96baf2ac-9580-d129-039c-7641bb78a228@free.fr> Message-ID: <1491151831998-4036114.post@n3.nabble.com> Several tests of contour's zlev parameter failed to produce contours at the request depth level. This looks like a bug too. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-contour-z-level-use-tp4036103p4036114.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lucianoandino.ar at gmail.com Sun Apr 2 21:52:52 2017 From: lucianoandino.ar at gmail.com (Luciano Andino) Date: Sun, 2 Apr 2017 22:52:52 +0300 Subject: [Scilab-users] simple plot function In-Reply-To: <8F232902ADB4E14EB16789FB7006FC845A02F7A7@TW-MBX-P01.cnesnet.ad.cnes.fr> References: <8F232902ADB4E14EB16789FB7006FC845A02F7A7@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: Thanks Pierre and Lamy. Now I have another question: I draw a simple function and in same pic, also draw differents points (this data in a vector) also I want to put a label for each point "1", "2".."12" how can I do it in scilab?, matlab's way doesn't work in my case thanks x=0:0.1:1 y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9)./(21*x+6))-3.0; plot(x,y) x=info // it's a vector of 12 elements w=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9)./(21*x+6))-3.0; plot(info,w,'o') 2017-03-27 15:17 GMT+03:00 Lamy Alain : > Hello, > > It?s just because a ?.? was missing. > > Alain > > x=0:0.05:1; > y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9) *./ *(21*x+6))-3.0; > plot(x,y) > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Luciano Andino Ing. en Sistemas de Informaci?n UTN FRSF BMSTU -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 25490 bytes Desc: not available URL: From oleksiy.bond at gmail.com Mon Apr 3 03:04:24 2017 From: oleksiy.bond at gmail.com (ol.bond) Date: Sun, 2 Apr 2017 18:04:24 -0700 (MST) Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: References: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> Message-ID: Hi, Another way to represent filter in Xcos is to use the Discrete State-Space (DLSS) block. The matrices can be obtained directly from the syslin representation of the system: [A1 B1 C1 D1] = abcd(H1); [A2 B2 C2 D2] = abcd(H2); (This transformation can also be set in Xcos context) Yours 2017-04-02 23:45 GMT+09:00 Tan Chin Luh-2 [via Scilab / Xcos - Mailing Lists Archives] : > you're welcome. > anyway it should be a better way to construct the denominator, do let me > know if you find a better way. :) > > rgds, > CL > > > > On 2/4/2017 12:22 AM, Nikolay Strelkov wrote: > > Dear Tan Chin Luh! > > Thank you very much. > It works as expected! > The problem is solved. > > -- > > *With best regards, Ph.D., * > > > *associate professor at MPEI , > IEEE member, maintainer of Mathieu functions toolbox for Scilab > , Nikolay Strelkov.* > > 2017-04-01 17:23 GMT+03:00 Tan Chin Luh <[hidden email] > >: > >> Hi, >> >> If I understand correctly, you would like to create the filter in Scilab, >> and directly access from Xcos? >> if so, u could use the syslin object to do so. >> >> 1. Create the syslin obj >> h1 = wfir("lp",2,[.2 0],"re",[0 0]) >> h2 = wfir("hp",3,[.1 0],"re",[0 0]) >> num1 = poly(h1,'z','coeff') >> d = ones(1,size(h1,2)+1) >> d(1:$-1) = 0 >> den1 = poly(d,'z','coeff') >> H1 = syslin('d',num1,den1) >> num2 = poly(h2,'z','coeff') >> d = ones(1,size(h2,2)+1) >> d(1:$-1) = 0 >> den2 = poly(d,'z','coeff') >> H2 = syslin('d',num2,den2) >> >> 2. In Xcos >> use H1.num in the numerator block for LPF, H1.den in the denominator for >> the LPF, same for the HPF. >> >> Hope this helps. >> >> rgds, >> CL >> >> >> On 1/4/2017 9:53 PM, Nikolay Strelkov wrote: >> >> Anybody? >> Dear Tim, do you have any idea? >> >> -- >> >> *With best regards, Ph.D., * >> >> >> *associate professor at MPEI , >> IEEE member, maintainer of Mathieu functions toolbox for Scilab >> , Nikolay Strelkov.* >> >> 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov <[hidden email] >> >: >> >>> Dear all! >>> >>> I'm playing with simple digital filtering in Xcos 5.5.2. >>> I have two filters - low-pass and high-pass, connected in series. >>> >>> Xcos does not have convolution block. >>> So I write FIR transfer function >>> >>> manually from impulse response function. >>> I get impulse response functions from wfir function. >>> >>> Let's assume that we have two simple filters with impulse responses: >>> h1 = [0.3741957 0.3741957]; // it's low-pass filter from h1 = >>> wfir("lp",2,[.2 0],"re",[0 0]) >>> and >>> h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass filter h2 = >>> wfir("hp",3,[.1 0],"re",[0 0]) >>> >>> I convert them to DLR >>> SISOs and get: >>> H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + 0.3741957 ) / >>> (z^2); >>> H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( -0.1870979*z^2 >>> + 0.8*z - 0.1870979*z ) / (z^3); >>> and place their numerator and denominator to the corresponding DLR >>> blocks. >>> Model is in attachment. It's an illustration, not real world example. >>> >>> I have a question. How I can automate the aforementioned process >>> programmatically? >>> I tried to create numerator and denominator with poly function and as >>> strings, but Xcos does not support these types in DLR settings. >>> >>> -- >>> >>> >>> >>> >>> *With best regards, Ph.D., assistant professor at MPEI >>> , IEEE member, maintainer of >>> Mathieu functions toolbox for Scilab >>> , Nikolay Strelkov.* >>> >> >> >> >> _______________________________________________ >> users mailing list[hidden email] http://lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ users mailing list [hidden >> email] >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list[hidden email] http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > 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/Scilab-users-Define- > numerator-and-denominator-of-transfer-function-as- > variables-in-Xcos-DLR-block-tp4035961p4036111.html > To start a new topic under Scilab users - Mailing Lists Archives, email > ml-node+s994242n2602246h53 at n3.nabble.com > To unsubscribe from Scilab users - Mailing Lists Archives, click here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Define-numerator-and-denominator-of-transfer-function-as-variables-in-Xcos-DLR-block-tp4035961p4036118.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Alain.Lamy at cnes.fr Mon Apr 3 11:15:00 2017 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Mon, 3 Apr 2017 09:15:00 +0000 Subject: [Scilab-users] simple plot function In-Reply-To: References: <8F232902ADB4E14EB16789FB7006FC845A02F7A7@TW-MBX-P01.cnesnet.ad.cnes.fr> Message-ID: <8F232902ADB4E14EB16789FB7006FC845A0301FA@TW-MBX-P01.cnesnet.ad.cnes.fr> You could use xstring or xnumb: x=0:0.1:1; y=exp((x.^4+x.^2-x+(5).^(0.5))/5)+sinh((x.^3+21*x+9)./(21*x+6))-3.0; scf(); plot(x,y); num = 1 : size(x, "*"); xnumb(x, y, num); // or: xstring(x, y, string(num)); // plus optionally: a = gca(); a.data_bounds = [-0.1, -0.1; 1.1, 0.75]; a.tight_limits = "on"; Alain -------------- next part -------------- An HTML attachment was scrubbed... URL: From v_mil at ukr.net Mon Apr 3 11:55:44 2017 From: v_mil at ukr.net (Viktor Mileikovskyi) Date: Mon, 03 Apr 2017 12:55:44 +0300 Subject: [Scilab-users] How to open figure properties? Message-ID: <1491211433.711295423.iswetfv1@frv32.fwdcdn.com> Hi! After upgrading to SciLab 6.0.0 there is a problem preventing easy final preparation of plottings for publications. It is impossible to open Figure properties window. -->? plot([1,2],[3,4]) --> //Now trying to open the "Figure properties" dialog using the menu of graphics window at line? 116 of function TK_send_handles_list ( /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci ????? 116 ) at line??? 99 of function ged????????????????? ( /opt/scilab/share/scilab/modules/graphics/macros/ged.sci ????? 110 ) Label not handled I file a bug 15102 https://bugzilla.scilab.org/show_bug.cgi?id=15102 but no activity. I know only one workaround - modifying the figure properties using console. It is very easy for automatic plotting preparation inside a macro but it throttles the manual preparation. With best regards. Viktor. -- E-Mail: v_mil at ukr.net E-Mail: mileikovskyi at gmail.com Skype: mileikovskyi Mob: +38-044-2284247 Mob: +38-094-8284247 -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Mon Apr 3 12:59:11 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Mon, 3 Apr 2017 13:59:11 +0300 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) In-Reply-To: References: <024b71bf-92ba-69f1-c3df-a676ebd99554@tritytech.com> Message-ID: Thank you, Oleksiy! I added initial state vectors to the context: IS1 = zeros(1,length(h1)); IS2 = zeros(1,length(h2)); Now It works as expected. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-04-03 4:04 GMT+03:00 ol.bond : > Hi, > > Another way to represent filter in Xcos is to use the Discrete State-Space > (DLSS) block. The matrices can be obtained directly from the > syslin representation of the system: > > [A1 B1 C1 D1] = abcd(H1); > [A2 B2 C2 D2] = abcd(H2); > > (This transformation can also be set in Xcos context) > > Yours > > 2017-04-02 23:45 GMT+09:00 Tan Chin Luh-2 [via Scilab / Xcos - Mailing > Lists Archives] <[hidden email] > >: > >> you're welcome. >> anyway it should be a better way to construct the denominator, do let me >> know if you find a better way. :) >> >> rgds, >> CL >> >> >> >> On 2/4/2017 12:22 AM, Nikolay Strelkov wrote: >> >> Dear Tan Chin Luh! >> >> Thank you very much. >> It works as expected! >> The problem is solved. >> >> -- >> >> *With best regards, Ph.D., * >> >> >> *associate professor at MPEI , >> IEEE member, maintainer of Mathieu functions toolbox for Scilab >> , Nikolay Strelkov.* >> >> 2017-04-01 17:23 GMT+03:00 Tan Chin Luh <[hidden email] >> >: >> >>> Hi, >>> >>> If I understand correctly, you would like to create the filter in >>> Scilab, and directly access from Xcos? >>> if so, u could use the syslin object to do so. >>> >>> 1. Create the syslin obj >>> h1 = wfir("lp",2,[.2 0],"re",[0 0]) >>> h2 = wfir("hp",3,[.1 0],"re",[0 0]) >>> num1 = poly(h1,'z','coeff') >>> d = ones(1,size(h1,2)+1) >>> d(1:$-1) = 0 >>> den1 = poly(d,'z','coeff') >>> H1 = syslin('d',num1,den1) >>> num2 = poly(h2,'z','coeff') >>> d = ones(1,size(h2,2)+1) >>> d(1:$-1) = 0 >>> den2 = poly(d,'z','coeff') >>> H2 = syslin('d',num2,den2) >>> >>> 2. In Xcos >>> use H1.num in the numerator block for LPF, H1.den in the denominator for >>> the LPF, same for the HPF. >>> >>> Hope this helps. >>> >>> rgds, >>> CL >>> >>> >>> On 1/4/2017 9:53 PM, Nikolay Strelkov wrote: >>> >>> Anybody? >>> Dear Tim, do you have any idea? >>> >>> -- >>> >>> *With best regards, Ph.D., * >>> >>> >>> *associate professor at MPEI >>> , IEEE member, maintainer of >>> Mathieu functions toolbox for Scilab >>> , Nikolay Strelkov.* >>> >>> 2017-03-23 14:27 GMT+03:00 Nikolay Strelkov <[hidden email] >>> >: >>> >>>> Dear all! >>>> >>>> I'm playing with simple digital filtering in Xcos 5.5.2. >>>> I have two filters - low-pass and high-pass, connected in series. >>>> >>>> Xcos does not have convolution block. >>>> So I write FIR transfer function >>>> >>>> manually from impulse response function. >>>> I get impulse response functions from wfir function. >>>> >>>> Let's assume that we have two simple filters with impulse responses: >>>> h1 = [0.3741957 0.3741957]; // it's low-pass filter from h1 = >>>> wfir("lp",2,[.2 0],"re",[0 0]) >>>> and >>>> h2 = [- 0.1870979 0.8 - 0.1870979]; // it's high-pass filter h2 = >>>> wfir("hp",3,[.1 0],"re",[0 0]) >>>> >>>> I convert them to DLR >>>> SISOs and get: >>>> H1(z) = 0.3741957*z^-1 + 0.3741957*z^-2 = ( 0.3741957*z + 0.3741957 ) / >>>> (z^2); >>>> H2(z) = -0.1870979*z^-1 + 0.8*z^-2 - 0.1870979*z^-3 = ( -0.1870979*z^2 >>>> + 0.8*z - 0.1870979*z ) / (z^3); >>>> and place their numerator and denominator to the corresponding DLR >>>> blocks. >>>> Model is in attachment. It's an illustration, not real world example. >>>> >>>> I have a question. How I can automate the aforementioned process >>>> programmatically? >>>> I tried to create numerator and denominator with poly function and as >>>> strings, but Xcos does not support these types in DLR settings. >>>> >>>> -- >>>> >>>> >>>> >>>> >>>> *With best regards, Ph.D., assistant professor at MPEI >>>> , IEEE member, maintainer of >>>> Mathieu functions toolbox for Scilab >>>> , Nikolay Strelkov.* >>>> >>> >>> >>> >>> _______________________________________________ >>> users mailing list[hidden email] http://lists.scilab.org/mailman/listinfo/users >>> >>> _______________________________________________ users mailing list [hidden >>> email] >>> http://lists.scilab.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list[hidden email] http://lists.scilab.org/mailman/listinfo/users >> >> >> _______________________________________________ >> 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/Scilab-users-Define-numerator >> -and-denominator-of-transfer-function-as-variables-in-Xcos- >> DLR-block-tp4035961p4036111.html >> To start a new topic under Scilab users - Mailing Lists Archives, email [hidden >> email] >> To unsubscribe from Scilab users - Mailing Lists Archives, click here. >> NAML >> >> > > > ------------------------------ > View this message in context: Re: Define numerator and denominator of > transfer function as variables in Xcos (DLR block) > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at icloud.com Mon Apr 3 15:52:48 2017 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Mon, 3 Apr 2017 06:52:48 -0700 (MST) Subject: [Scilab-users] How to open figure properties? In-Reply-To: <1491211433.711295423.iswetfv1@frv32.fwdcdn.com> References: <1491211433.711295423.iswetfv1@frv32.fwdcdn.com> Message-ID: <1491227568342-4036134.post@n3.nabble.com> What exactly is the problem? Everythings works for me as before-see attachment. Heinz -- View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-open-figure-properties-tp4036131p4036134.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From v_mil at ukr.net Mon Apr 3 16:05:30 2017 From: v_mil at ukr.net (Viktor Mileikovskyi) Date: Mon, 03 Apr 2017 17:05:30 +0300 Subject: [Scilab-users] How to open figure properties? In-Reply-To: <1491227568342-4036134.post@n3.nabble.com> References: <1491211433.711295423.iswetfv1@frv32.fwdcdn.com> <1491227568342-4036134.post@n3.nabble.com> Message-ID: <1491227720.446165459.lmic4ujz@frv32.fwdcdn.com> Can you open "Figure properties" dialog using the graphics windows menu? The additional tests are performed using the following OSes: - Windows (Windows 10 64 bit) - the "Figure properties" dialog is openned successfully; - Linux (Ubuntu 14.04 64 bit) - the "Figure properties" dialog can not be openned and the error below occurs. at line? 116 of function TK_send_handles_list ( /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci ????? 116 ) at line??? 99 of function ged????????????????? ( /opt/scilab/share/scilab/modules/graphics/macros/ged.sci ????? 110 ) Label not handled Therefore, the problem is related to LINUX 64BIT Version (maybe, also for 32 bit). With best regards. Viktor. 3 ?????? 2017, 16:53:27, ??? "Heinz Nabielek" < heinznabielek at icloud.com >: What exactly is the problem? Everythings works for me as before-see attachment. Heinz < http://mailinglists.scilab.org/file/n4036134/Screenshot_2017-04-03_15.png > -- View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-open-figure-properties-tp4036131p4036134.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 -- E-Mail: v_mil at ukr.net E-Mail: mileikovskyi at gmail.com Skype: mileikovskyi Mob: +38-044-2284247 Mob: +38-094-8284247 -------------- next part -------------- An HTML attachment was scrubbed... URL: From v_mil at ukr.net Mon Apr 3 17:02:47 2017 From: v_mil at ukr.net (Viktor Mileikovskyi) Date: Mon, 03 Apr 2017 18:02:47 +0300 Subject: [Scilab-users] How to open figure properties? BUGFIX PROPOSED In-Reply-To: <1491227720.446165459.lmic4ujz@frv32.fwdcdn.com> References: <1491211433.711295423.iswetfv1@frv32.fwdcdn.com> <1491227568342-4036134.post@n3.nabble.com> <1491227720.446165459.lmic4ujz@frv32.fwdcdn.com> Message-ID: <1491229855.490660539.h3kgzv1d@frv32.fwdcdn.com> I tried to investigate the problem. Running ged during the process of the dialog show cause including of the global variable ged_cur_fig_handle. It may contain the handle of the current figure. I stop the function and run handles = Get_handles_list(f) ?handles? = 37 by 1 matrix of handles: ========================== Figure?? Axes???? Compound Polyline Label??? Label??? Label??? Label??? uimenu?? uimenu?? ...? uimenu???? "Label" is absent in select statement of ged.sci (lines 35...117). Possible reason of the error - the function " TK_send_handles_list" is not fully developed in LINUX version. For me the following bugfix works: file: /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the following code is inserted after the line 113. It may be put inside the "select? hand.type" statement before any "case" word ??????? case "Label"????????????????????????????????? //MY BUGFIX ??????????? iLab = iLab+1;????????????????????????? //I ASUME THAT iLab IS THE LABLE COUNTER. ??????????????????????????????????????????????????????????????? //IF NOT, PLEASE REPLACE IT BY OTHER VARIABLE ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // AND INITIALIZE AT THE BEGINNING OF THE FUNCTION!!! ??????????? Labname= "Label("+string(iLab)+")"; ??????????? TCL_EvalStr("set "+SelObject+" "+Labname); 3 ?????? 2017, 17:06:32, ??? "Viktor Mileikovskyi" < v_mil at ukr.net >: Can you open "Figure properties" dialog using the graphics windows menu? The additional tests are performed using the following OSes: - Windows (Windows 10 64 bit) - the "Figure properties" dialog is openned successfully; - Linux (Ubuntu 14.04 64 bit) - the "Figure properties" dialog can not be openned and the error below occurs. at line? 116 of function TK_send_handles_list ( /opt/scilab/share/scilab/modules/tclsci/macros/TK_send_handles_list.sci ????? 116 ) at line??? 99 of function ged????????????????? ( /opt/scilab/share/scilab/modules/graphics/macros/ged.sci ????? 110 ) Label not handled Therefore, the problem is related to LINUX 64BIT Version (maybe, also for 32 bit). With best regards. Viktor. 3 ?????? 2017, 16:53:27, ??? "Heinz Nabielek" < heinznabielek at icloud.com >: What exactly is the problem? Everythings works for me as before-see attachment. Heinz < http://mailinglists.scilab.org/file/n4036134/Screenshot_2017-04-03_15.png > -- View this message in context: http://mailinglists.scilab.org/Scilab-users-How-to-open-figure-properties-tp4036131p4036134.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 -- E-Mail: v_mil at ukr.net E-Mail: mileikovskyi at gmail.com Skype: mileikovskyi Mob: +38-044-2284247 Mob: +38-094-8284247 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- E-Mail: v_mil at ukr.net E-Mail: mileikovskyi at gmail.com Skype: mileikovskyi Mob: +38-044-2284247 Mob: +38-094-8284247 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Apr 4 16:11:54 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 4 Apr 2017 07:11:54 -0700 (MST) Subject: [Scilab-users] non linear optim In-Reply-To: <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> References: <1490006900946-4035880.post@n3.nabble.com> <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> Message-ID: <1491315114107-4036141.post@n3.nabble.com> Hi all, I worked further on this issue and found that it's new (unwanted) behavior in scilab 6 since the script performs well when run under scilab 5.5.1 on the same machine WIN7_64bits. In scilab 6 it fails with the error message : User function 'costf' have not been setted. while in scilab 5.5.1: [fopt, xopt]=leastsq(iprint,evaloptiM1D,x0') ***** enters -qn code- (without bound cstr) dimension= 2, epsq= 0.2220446049250313E-15, verbosity level: imp= 2 max number of iterations allowed: iter= 100 max number of calls to costf allowed: nap= 100 ------------------------------------------------ iter num 1, nb calls= 1, f= 0.4607E+05 iter num 2, nb calls= 3, f= 0.2185E+05 iter num 3, nb calls= 6, f= 0.2138E+05 iter num 4, nb calls= 7, f= 0.2130E+05 iter num 5, nb calls= 8, f= 0.2128E+05 iter num 6, nb calls= 9, f= 0.2128E+05 iter num 7, nb calls= 10, f= 0.2128E+05 iter num 8, nb calls= 11, f= 0.2128E+05 iter num 9, nb calls= 12, f= 0.2128E+05 iter num 10, nb calls= 13, f= 0.2128E+05 iter num 11, nb calls= 14, f= 0.2128E+05 iter num 11, nb calls= 22, f= 0.2128E+05 ***** leaves -qn code-, gradient norm= 0.4410737793778105E-02 Fin de l'optimisation. xopt = 1.2213257 0.7702730 fopt = 21284.818 Then I guess it's not a limitation in the algorithm itself but rather something at the interface that has changed in scilab 6, also because the message is issued early in the execution , about 1 s after launching the script while the successful optimization requires at least 10-20s: probably there's only or not even one full iteration performed before it issues escape message in scilab 6 . I can't provide the detail of the function to optimize however I could provide you with more detailed log from execution. Regards, David -- View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880p4036141.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From michael.benguigui at activeeon.com Wed Apr 5 11:05:57 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Wed, 5 Apr 2017 11:05:57 +0200 Subject: [Scilab-users] Scilab 6 GUI crash Message-ID: Dear Scilab team, could you just tell me if you have a ------------------------------- Hi, to reproduce it: Create a sci file (test.sci) with the following instructions (*): jimport java.lang.ProcessBuilder; jimport java.util.ArrayList; cmd = ArrayList.new(); jinvoke(cmd,'add','echo') jinvoke(cmd,'add','''AAAA''') pb = ProcessBuilder.new(cmd); jinvoke(pb,'start') disp('BEFORE !! ...'); evstr('1+1;'); disp('...AFTER !!'); >From Scilab 6.0: exec test.sci It randomly makes the GUI crash. But it will not fail (according to my tests) when executing directly (*) in the Scilab 6 GUI, without .sci file. -- Michael Benguigui, Activeeon +33 6 304 37 37 0 https://fr.linkedin.com/in/micha%C3%ABl-benguigui-23a85921 skype: michael.benguigui at hotmail.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.benguigui at activeeon.com Wed Apr 5 11:07:33 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Wed, 5 Apr 2017 11:07:33 +0200 Subject: [Scilab-users] Sicilab 6 GUI crashs Message-ID: Dear Scilab team, Could you just tell me if you have a temporary work around concerning this issue..? Regards Michael ------------------------------- Hi, to reproduce it: Create a sci file (test.sci) with the following instructions (*): jimport java.lang.ProcessBuilder; jimport java.util.ArrayList; cmd = ArrayList.new(); jinvoke(cmd,'add','echo') jinvoke(cmd,'add','''AAAA''') pb = ProcessBuilder.new(cmd); jinvoke(pb,'start') disp('BEFORE !! ...'); evstr('1+1;'); disp('...AFTER !!'); >From Scilab 6.0: exec test.sci It randomly makes the GUI crash. But it will not fail (according to my tests) when executing directly (*) in the Scilab 6 GUI, without .sci file. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Wed Apr 5 18:31:15 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Thu, 6 Apr 2017 00:31:15 +0800 Subject: [Scilab-users] Image Processing and Computer Vision Toolbox Message-ID: <834c01c2-7121-c863-052a-aef3572cbb40@tritytech.com> Hi all, Just uploaded IPCV 1.1 (Image Processing and Computer Vision Toolbox for Scilab 6.0) to atoms portal, with some new features such as Feature Detection, Description and Matching. Feedback are welcome. Regards, Chin Luh From david.cheze at cea.fr Thu Apr 6 10:54:12 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 6 Apr 2017 01:54:12 -0700 (MST) Subject: [Scilab-users] least squares non linear optim failures In-Reply-To: <1491315114107-4036141.post@n3.nabble.com> References: <1490006900946-4035880.post@n3.nabble.com> <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> <1491315114107-4036141.post@n3.nabble.com> Message-ID: <1491468852558-4036145.post@n3.nabble.com> Hi Paul(s) and all, I looked forward to the specific failures I reported for Scilab 6 for leastsq, lsqrsolve, datafit and it looks like it is caused by fsolve call inside my cost function while scilab 5.5 managed it well. I reported a complete test case that shows the bug in bug report 15117 . the bug 15117 tilte mentions only lsqrsolve but it's showing also leastsq and datafit failures. Thanks for curing the patient ! David -- View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880p4036145.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From phillipmobley2 at gmail.com Thu Apr 6 15:11:08 2017 From: phillipmobley2 at gmail.com (phillip mobley) Date: Thu, 6 Apr 2017 09:11:08 -0400 Subject: [Scilab-users] Changing graph axis range in xcos Message-ID: Hello all, I was wondering if anyone knew how you can change the x-axis range before the simulation runs. What is happening is that for the cmscope, my x-axis range is only between 30 and 60. I am missing half of my data and I would like to see the full 0 to 60 range. I was wondering if anyone had any experience in this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Thu Apr 6 16:45:34 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Thu, 6 Apr 2017 14:45:34 +0000 Subject: [Scilab-users] Changing graph axis range in xcos In-Reply-To: References: Message-ID: <1491489927.2880.3.camel@esi-group.com> Hi Phillip, On the scope, there is a "Buffer size" parameter which will define the specified period to store on the data. Note that during a simulation you are producing a lot of values, be sure to define it accordingly to the period you want to observe. -- Cl?ment Le jeudi 06 avril 2017 ? 09:11 -0400, phillip mobley a ?crit?: > Hello all, > > I was wondering if anyone knew how you can change the x-axis range before the simulation runs. > > What is happening is that for the cmscope, my x-axis range is only between 30 and 60. I am missing > half of my data and I would like to see the full 0 to 60 range. I was wondering if anyone had any > experience in this? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From paul.bignier at scilab-enterprises.com Fri Apr 7 12:28:47 2017 From: paul.bignier at scilab-enterprises.com (paul.bignier at scilab-enterprises.com) Date: Fri, 07 Apr 2017 12:28:47 +0200 Subject: [Scilab-users] non linear optim In-Reply-To: <1491315114107-4036141.post@n3.nabble.com> References: <1490006900946-4035880.post@n3.nabble.com> <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> <1491315114107-4036141.post@n3.nabble.com> Message-ID: Hello David, As the documentation examples work, I can't do much of this info unless I get a reproducible use-case. Maybe you could send us a minimalistic failing example? Also, could you please fill a bug for this so we can fix it for Scilab 6.0.1? Thanks and regards, Paul On 2017-04-04 16:11, David Ch?ze wrote: > Hi all, > > I worked further on this issue and found that it's new (unwanted) > behavior > in scilab 6 since the script performs well when run under scilab 5.5.1 > on > the same machine WIN7_64bits. > In scilab 6 it fails with the error message : User function 'costf' > have not > been setted. > > while in scilab 5.5.1: > > [fopt, xopt]=leastsq(iprint,evaloptiM1D,x0') > > ***** enters -qn code- (without bound cstr) > dimension= 2, epsq= 0.2220446049250313E-15, verbosity level: > imp= > 2 > max number of iterations allowed: iter= 100 > max number of calls to costf allowed: nap= 100 > ------------------------------------------------ > iter num 1, nb calls= 1, f= 0.4607E+05 > iter num 2, nb calls= 3, f= 0.2185E+05 > iter num 3, nb calls= 6, f= 0.2138E+05 > iter num 4, nb calls= 7, f= 0.2130E+05 > iter num 5, nb calls= 8, f= 0.2128E+05 > iter num 6, nb calls= 9, f= 0.2128E+05 > iter num 7, nb calls= 10, f= 0.2128E+05 > iter num 8, nb calls= 11, f= 0.2128E+05 > iter num 9, nb calls= 12, f= 0.2128E+05 > iter num 10, nb calls= 13, f= 0.2128E+05 > iter num 11, nb calls= 14, f= 0.2128E+05 > iter num 11, nb calls= 22, f= 0.2128E+05 > ***** leaves -qn code-, gradient norm= 0.4410737793778105E-02 > Fin de l'optimisation. > > xopt = > > 1.2213257 0.7702730 > fopt = > > 21284.818 > > > Then I guess it's not a limitation in the algorithm itself but rather > something at the interface that has changed in scilab 6, also because > the > message is issued early in the execution , about 1 s after launching > the > script while the successful optimization requires at least 10-20s: > probably > there's only or not even one full iteration performed before it issues > escape message in scilab 6 . > I can't provide the detail of the function to optimize however I could > provide you with more detailed log from execution. > > Regards, > > David > > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/non-linear-optim-tp4035880p4036141.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 kopac.jakub at gmail.com Fri Apr 7 12:32:43 2017 From: kopac.jakub at gmail.com (kjubo) Date: Fri, 7 Apr 2017 03:32:43 -0700 (MST) Subject: [Scilab-users] Scilab 6.0.0 vs 5.2.2 - performance decrease Message-ID: <1491561163677-4036150.post@n3.nabble.com> Dear all, I observed a performance decrease with relatively simple code that use a for cycles. bench_1.sci Almost everybody is reporting massive speed up in for cycles, but in my case it is opposite. In 5.2.2 run time is 10 seconds, while in 6.0.0 is 18 seconds. Both Scilab versions are 64 bit, Win 7 64 bit. Can somebody confirm my results? Thanks in advance. BR J.K. -- View this message in context: http://mailinglists.scilab.org/Scilab-6-0-0-vs-5-2-2-performance-decrease-tp4036150.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lambdasoftware at yahoo.es Fri Apr 7 13:39:52 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Fri, 07 Apr 2017 08:39:52 -0300 Subject: [Scilab-users] Scilab 6.0.0 vs 5.2.2 - performance decrease In-Reply-To: <1491561163677-4036150.post@n3.nabble.com> References: <1491561163677-4036150.post@n3.nabble.com> Message-ID: <1491565192.7878.6.camel@yahoo.es> Hi, I ?confirm that Scilab 6.0.0 it's a bit slower than 5.5.2. It's the time spent in the benchmark. 5.5.2 ????7.151?? ????7.127?? ????7.123?? ????7.158?? ????7.169?? ????7.117? ????7.154?? ????7.209?? ????7.117?? ????7.107 6.0.0 ???8.97989 ???8.965782 ???8.998687 ???9.013485 ???9.241977 ???9.100208 ???9.057786 ???9.00625 ???8.963514 ???9.205469 ?? I have attached some information about my CPU in this message. -- Amanda Osvaldo On Fri, 2017-04-07 at 03:32 -0700, kjubo wrote: > Dear all, > > I observed a performance decrease with relatively simple code that use a for > cycles. > bench_1.sci > > Almost everybody is reporting massive speed up in for cycles, but in my case > it is opposite. > In 5.2.2 run time is 10 seconds, while in 6.0.0 is 18 seconds. > > Both Scilab versions are 64 bit, Win 7 64 bit. > > Can somebody confirm my results? > > Thanks in advance. > > BR > J.K. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-6-0-0-vs-5-2-2-performance-decrease-tp4036150.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-6.0.0.csv Type: text/csv Size: 7133 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-5.5.2.csv Type: text/csv Size: 6091 bytes Desc: not available URL: -------------- next part -------------- processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 2499.975 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4389.64 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 2499.975 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4390.54 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 2499.975 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4390.93 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 61 model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz stepping : 4 microcode : 0x24 cpu MHz : 2499.975 cache size : 3072 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 20 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt dtherm ida arat pln pts bugs : bogomips : 4390.60 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: From heinznabielek at icloud.com Fri Apr 7 15:51:25 2017 From: heinznabielek at icloud.com (Heinz Nabielek) Date: Fri, 7 Apr 2017 06:51:25 -0700 (MST) Subject: [Scilab-users] Scilab 6.0.0 vs 5.2.2 - performance decrease In-Reply-To: <1491565192.7878.6.camel@yahoo.es> References: <1491561163677-4036150.post@n3.nabble.com> <1491565192.7878.6.camel@yahoo.es> Message-ID: <1491573085868-4036152.post@n3.nabble.com> SciLab 6 is mightily slower.... Mac OS X 10.12.4 Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz 8 GB 1600 MHz DDR3 SciLab 5.5.2 -->disp(toc()) 4.211 SciLab 6.0.0 -->disp(toc()) 10.421212 SciLab 5.5.2 Mac OS X 10.7.5 2.4 GHz Intel Core 2 Duo 4 GB 667 MHz DDR2 SDRAM -->disp(toc()) 11.384 This was a mighty shock to me, but thanks for pointing it out. Heinz -- View this message in context: http://mailinglists.scilab.org/Scilab-6-0-0-vs-5-2-2-performance-decrease-tp4036150p4036152.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From josefernando.giraldo at gmail.com Fri Apr 7 21:26:27 2017 From: josefernando.giraldo at gmail.com (JFER Girj) Date: Fri, 7 Apr 2017 12:26:27 -0700 (MST) Subject: [Scilab-users] Bug with file exchange ? In-Reply-To: References: Message-ID: <1491593187577-4036153.post@n3.nabble.com> Hi everyone, This error persists. Unable to add files regards -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Bug-with-file-exchange-tp4035642p4036153.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From scilab.20.browseruk at xoxy.net Sat Apr 8 04:47:18 2017 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Fri, 7 Apr 2017 18:47:18 -0800 Subject: [Scilab-users] SciLab euivalent of Perl's map() function? In-Reply-To: <1491565192.7878.6.camel@yahoo.es> References: <1491561163677-4036150.post@n3.nabble.com> Message-ID: Hi, I want to do the equivalent of plot( xdata, xdata .^ 2, xdata .^ 3, xdata '^ 4, ... ); and benefit from the plot() color rotation, without having to repeat the equation. In Perl I might do (something like): plot( xdata, map xdata .^ $_, 2 .. 5 ); Something like that in SciLab? From sgougeon at free.fr Sat Apr 8 11:37:44 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 8 Apr 2017 11:37:44 +0200 Subject: [Scilab-users] SciLab euivalent of Perl's map() function? In-Reply-To: References: <1491561163677-4036150.post@n3.nabble.com> Message-ID: <388b09f4-8c9f-a7d6-106c-ae9dd643c54c@free.fr> Hello, Le 08/04/2017 ? 04:47, scilab.20.browseruk at xoxy.net a ?crit : > Hi, > > I want to do the equivalent of > > plot( xdata, xdata .^ 2, xdata .^ 3, xdata '^ 4, ... ); > > and benefit from the plot() color rotation, without having to repeat the equation. > > In Perl I might do (something like): > > plot( xdata, map xdata .^ $_, 2 .. 5 ); > > Something like that in SciLab? x = -2:0.1:2; pw = [1 2 3 4]; [X,P] = ndgrid(x, pw); clf plot(x, X.^P) xtitle("Power laws","x") legend(msprintf("$x^%d$\n",pw'),4) HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: eakmlkkelonhamja.png Type: image/png Size: 5700 bytes Desc: not available URL: From scilab.20.browseruk at xoxy.net Sat Apr 8 13:17:33 2017 From: scilab.20.browseruk at xoxy.net (scilab.20.browseruk at xoxy.net) Date: Sat, 8 Apr 2017 03:17:33 -0800 Subject: [Scilab-users] SciLab euivalent of Perl's map() function? (scilab: message 8 of 20) In-Reply-To: <388b09f4-8c9f-a7d6-106c-ae9dd643c54c@free.fr> References: <1491561163677-4036150.post@n3.nabble.com> Message-ID: Easy!? When you know how. Thanks Samuel. > -----Original Message----- > From: scilab.browseruk.bb30c473ec.sgougeon#free.fr at ob.0sg.net > Sent: Sat, 8 Apr 2017 11:37:44 +0200 > To: users at lists.scilab.org > Subject: Re: [Scilab-users] SciLab euivalent of Perl's map() function? > (scilab: message 8 of 20) > > Hello, > > Le 08/04/2017 ? 04:47, scilab.20.browseruk at xoxy.net a ?crit : >> Hi, >> >> I want to do the equivalent of >> >> plot( xdata, xdata .^ 2, xdata .^ 3, xdata '^ 4, ... ); >> >> and benefit from the plot() color rotation, without having to repeat the >> equation. >> >> In Perl I might do (something like): >> >> plot( xdata, map xdata .^ $_, 2 .. 5 ); >> >> Something like that in SciLab? > > x = -2:0.1:2; > pw = [1 2 3 4]; > [X,P] = ndgrid(x, pw); > clf > plot(x, X.^P) > > xtitle("Power laws","x") > legend(msprintf("$x^%d$\n",pw'),4) > > HTH > Samuel From j.s.strom at hslmg.de Sat Apr 8 23:24:52 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sat, 08 Apr 2017 23:24:52 +0200 Subject: [Scilab-users] Scilab 6, Exclamation mark in variable names Message-ID: <58E95524.8070108@hslmg.de> Hi, The character "!" in variable names is parsed as "unexpected token" and terminates execution. Will this be corrected to comply with the documentation saying "Names of variables and functions must begin with a letter or one of the following special characters '|%|', '|_|', '|#|', '|!|', '|$|', '|?|'. Next characters may be letters or digits or any special character in '|_|', '|#|', '|!|', '|$|', '|?|'."? Hundreds of my self defined functions use "!" as initial character to remind me that the name belongs to a function. Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Apr 8 23:38:12 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 8 Apr 2017 23:38:12 +0200 Subject: [Scilab-users] Scilab 6, Exclamation mark in variable names In-Reply-To: <58E95524.8070108@hslmg.de> References: <58E95524.8070108@hslmg.de> Message-ID: <2c68fdfd-33a2-ad83-2c47-4277021207cf@free.fr> Hello Jens, Le 08/04/2017 ? 23:24, Jens Simon Strom a ?crit : > Hi, > The character "!" in variable names is parsed as "unexpected token" > and terminates execution. Will this be corrected to comply with the > documentation saying "Names of variables and functions must begin with > a letter or one of the following special characters '|%|', '|_|', > '|#|', '|!|', '|$|', '|?|'. Next characters may be letters or digits > or any special character in '|_|', '|#|', '|!|', '|$|', '|?|'."? > > Hundreds of my self defined functions use "!" as initial character to > remind me that the name belongs to a function. Confirmed. This is a bug. Indeed, !a = 2 was accepted in Scilab 5.5.2. Could you please report it on bugzilla? Thanks Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sun Apr 9 19:27:17 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sun, 9 Apr 2017 20:27:17 +0300 Subject: [Scilab-users] Arduino ATOM on Scilab 5.5.2 under Ubuntu 16.04 LTS Message-ID: Dear Scilab users! Recently I have installed Ubuntu 16.04 LTS, it has Scilab 5.5.2 in repositories . I planned to use it with Arduino Uno board, so I tried to install arduino toolbox (ATOMS) with -->atomsInstall('arduino') atomsInstallList: The package arduino is not available. !--error 10000 at line 51 of function atomsError called by : at line 76 of function atomsInstallList called by : at line 233 of function atomsInstall called by : atomsInstall('arduino') so I can't install it. I can't understand why this toolbox is not available . It has huge free-software popularization and educational potential. Isn't it? Someone opened ticket on Forge to indicate this problem. But with no results. It seems that Scilab-forge is half-dead. I remember the last discussion about Arduino and Scilab 5.5.2, it solves the problem, but it is not newbie-friendly to download, extract and run ATOM-archive manually. Please compile this toolbox for Scilab 5.5.2 and make it available as ATOM on all platforms. Moreover it is not available for Scilab 6 as explained in the new ticket and on ATOMS site . -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From kandy_wolf at outlook.com Sun Apr 9 13:26:13 2017 From: kandy_wolf at outlook.com (gnu) Date: Sun, 9 Apr 2017 04:26:13 -0700 (MST) Subject: [Scilab-users] Get some error Message-ID: <1491737173088-4036157.post@n3.nabble.com> hello? When i run the Modelica demos (Demos->Xcos->Electrical systems),there is an error: c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update. Could you please tell me how to solve this problem? -- View this message in context: http://mailinglists.scilab.org/Get-some-error-tp4036157.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kandy_wolf at outlook.com Sun Apr 9 13:39:22 2017 From: kandy_wolf at outlook.com (gnu) Date: Sun, 9 Apr 2017 04:39:22 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <565C0498.3040403@scilab-enterprises.com> References: <1446616554965-4033072.post@n3.nabble.com> <1448693893115-4033129.post@n3.nabble.com> <565C0498.3040403@scilab-enterprises.com> Message-ID: <1491737962439-4036158.post@n3.nabble.com> Dear Paul , What should I do if I can't run the Modelica demos (Demos->Xcos->Electrical systems)? Thanks gnu -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4036158.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Mon Apr 10 09:53:22 2017 From: paul.bignier at scilab-enterprises.com (paul.bignier at scilab-enterprises.com) Date: Mon, 10 Apr 2017 09:53:22 +0200 Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1491737962439-4036158.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> <1448693893115-4033129.post@n3.nabble.com> <565C0498.3040403@scilab-enterprises.com> <1491737962439-4036158.post@n3.nabble.com> Message-ID: <0f332b685632b3f3e192a783093f1e33@scilab-enterprises.com> Hello Gnu, To run Xcos demos containing Modelica (/Coselica) blocks, you need a C compiler, as your message title suggests. Please refer to the compilers page (https://help.scilab.org/docs/6.0.0/en_US/supported_compilers.html) for that. Alternatively, you may try with Scilab 5.5.2 and even report a bug (http://bugzilla.scilab.org) should you encounter unexpected behavior. Hope this helps, regards, Paul On 2017-04-09 13:39, gnu wrote: > Dear Paul , > > What should I do if I can't run the Modelica demos > (Demos->Xcos->Electrical > systems)? > > Thanks gnu > > > > -- > View this message in context: > http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4036158.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 esi-group.com Mon Apr 10 11:14:02 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Mon, 10 Apr 2017 09:14:02 +0000 Subject: [Scilab-users] Get some error In-Reply-To: <1491737173088-4036157.post@n3.nabble.com> References: <1491737173088-4036157.post@n3.nabble.com> Message-ID: <1491815640.2116.4.camel@esi-group.com> Hello Kandy, Are you using the Scilab 6.0.0 version or another one ? Could give more information about your system : which OS ? hardware ? Thanks, PS: I suggest you to open a bug on bugzilla.scilab.org to ease communication on that issue. Users ML is more usage oriented. -- Cl?ment Le dimanche 09 avril 2017 ? 04:26 -0700, gnu a ?crit?: > ?hello? > > When i run the Modelica demos (Demos->Xcos->Electrical systems),there is an > error: > > c_pass1: build the modelica meta-block failed > > ?xcos_simulate: Error during block parameters update. > > Could you please tell me how to solve this problem? > > > > -- > View this message in context: http://mailinglists.scilab.org/Get-some-error-tp4036157.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 kandy_wolf at outlook.com Mon Apr 10 12:04:12 2017 From: kandy_wolf at outlook.com (gnu) Date: Mon, 10 Apr 2017 03:04:12 -0700 (MST) Subject: [Scilab-users] Get some error In-Reply-To: <1491815640.2116.4.camel@esi-group.com> References: <1491737173088-4036157.post@n3.nabble.com> <1491815640.2116.4.camel@esi-group.com> Message-ID: <1491818652662-4036168.post@n3.nabble.com> Dear Cl?ment , I'm using scilab 6.0.0,my operating system is win10. I have try version 5.5.2 before ,I got the same problem. Thanks Kandy -- View this message in context: http://mailinglists.scilab.org/Get-some-error-tp4036157p4036168.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From n.strelkov at gmail.com Mon Apr 10 12:32:26 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Mon, 10 Apr 2017 13:32:26 +0300 Subject: [Scilab-users] Get some error In-Reply-To: <1491818652662-4036168.post@n3.nabble.com> References: <1491737173088-4036157.post@n3.nabble.com> <1491815640.2116.4.camel@esi-group.com> <1491818652662-4036168.post@n3.nabble.com> Message-ID: Dear gnu! What compiler do you use? It is known that MinGW GCC works normally. You can install MinGW compiler from Scilab ATOMS (see its Description). -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-04-10 13:04 GMT+03:00 gnu : > Dear Cl?ment , > > I'm using scilab 6.0.0,my operating system is win10. > > I have try version 5.5.2 before ,I got the same problem. > > Thanks > > Kandy > > > > -- > View this message in context: http://mailinglists.scilab. > org/Get-some-error-tp4036157p4036168.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilarialr at tiscali.it Mon Apr 10 12:14:47 2017 From: ilarialr at tiscali.it (Ilaria La Rocca) Date: Mon, 10 Apr 2017 12:14:47 +0200 Subject: [Scilab-users] Scicos-OpenModelica Message-ID: <0c19cba4a0bff5f2e74d9857681000c5@tiscali.it> Hi, I have a modelica model of a simple RL circuit. This is the code: model circuitoscicos Modelica.Electrical.Analog.Basic.Ground ground1 annotation( Placement(visible = true, transformation(origin = {-28, -38}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Inductor inductor1(L = 0.1) annotation( Placement(visible = true, transformation(origin = {8, 32}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Basic.Resistor resistor1(R = 1) annotation( Placement(visible = true, transformation(origin = {-30, 32}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); Modelica.Electrical.Analog.Sources.ConstantVoltage constantVoltage1(V = 220) annotation( Placement(visible = true, transformation(origin = {-58, 2}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); equation connect(ground1.p, constantVoltage1.n) annotation( Line(points = {{-28, -28}, {-58, -28}, {-58, -8}, {-58, -8}}, color = {0, 0, 255})); connect(inductor1.n, ground1.p) annotation( Line(points = {{18, 32}, {20, 32}, {20, -28}, {-28, -28}, {-28, -28}}, color = {0, 0, 255})); connect(resistor1.n, inductor1.p) annotation( Line(points = {{-20, 32}, {-2, 32}, {-2, 32}, {-2, 32}}, color = {0, 0, 255})); connect(constantVoltage1.p, resistor1.p) annotation( Line(points = {{-58, 12}, {-58, 32}, {-40, 32}}, color = {0, 0, 255})); annotation( uses(Modelica(version = "3.2.2"))); end circuitoscicos; I would like to know if it's possible to use this kind of code in Scicos using Modelica generic block. Thanks in advance. Con Open 4 Giga a 9 euro/4 sett navighi veloce, chiami e invii SMS dal tuo smartphone verso tutti i fissi e mobili in Italia. Passa a Tiscali Mobile! http://casa.tiscali.it/mobile/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Apr 10 13:58:14 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 10 Apr 2017 13:58:14 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab release frequency ? In-Reply-To: <1490105889.31706.16.camel@esi-group.com> References: <1490105889.31706.16.camel@esi-group.com> Message-ID: Hello, I am redirecting this discussion on users@ because it shall mainly interest most of users, while, after 2 weeks, palpably not developers: http://mailinglists.scilab.org/Scilab-release-frequency-tt4035908.html On 21/03/2017 ? 15:18, Cl?ment David wrote on dev@: > After some private discussion by direct mail, Samuel pointed that I have to open the discussion to ask for your needs / advises for the release frequency ; thanks Samuel for that. Please find also attached a Scilab version timeline for reference. > > To clarify the discussion, I will use the convention major.minor.revision (6.0.0 == 6 major, 0 minor, 0 revision) where : > * a revision only contains bug fixes and should be script compatible but might deprecate functions > * a minor version remove deprecated functions > * a major version is a Scilab partial rewrite > > IMHO an expected (with no strict application) period should be : > * 6-9 months ?revision? cycle > * 18-24 months ?minor? cycle (2 to 3 revisions) > * much more for a ?major? > > Do you have an opinion on the Scilab release period ? Which period will simplify your developments ? In private, Cl?ment's rationale is, mainly and AFAIU, that preparing the publication of each release takes some time: There is a list of things to do, like formating the release notes, publishing new online help pages, updating download pages in several languages, etc. Then, this time is not used for developments. I was asking about the intentions of the Scilab team about the future release frequency, because i thought -- and still think -- that roughtly 2 years between 2 consecutive minor releases is incredibly long at the usual Information Technologies timescale. Keeping such a slow rate would mean that we would have to wait up to 2 years between the inclusion of a new feature in Scilab, and its distribution in an official Scilab release! So to wait even longer between the implementation of any new feature, and its actual availability in Scilab. Even for the "smallest" features, as soon as they are new. Obviously, we can't ignore that each publication needs or deserves some specific tasks that take time, and that this time should be minimized. Moreover, we may note that contrarily to many free and open softwares, nighly built releases are available online for Scilab, mostly at every moment. From time to time, there are some short dead periods in these daily releases in which the most recently included features are available. These binary releases can be installed and used out of the box like every "official" release, without uninstalling the current "official" release from our computer. Actually, installing a new Scilab version never requires uninstalling other (even multiple) versions of Scilab on the same computer. Everyone can have as many Scilab versions installed on the same computer as wished, whitout any problem. It takes less than 5 mn to install a new Scilab. And add some additional 5-15 mn to reset our Preferences, install few ATOMS modules for it, etc. This is very great and useful and safe. So, after our last email, i came to the following conclusion: In my opinion, publishing revision 6.n.X releases is useless. For the future, we could expect * The publication only of official minor versions: 6.X This should allow publishing them at a faster rate, at least once per year, never less. * Keeping Nightly built (daily) releases for the current 6.X+ branch, in which bugs are fixed "on-the-fly", the documentation is improved, and all other safe daily modifications are included and available on download the day after. * Keeping Nightly built (daily) releases of the master preparing the 6.(X+1) release, in which new features or modifications that could make Scilab unstable are progressively included. Hence, the publication process would take less time ; new features would become available in the year instead of in a 2-year period ; and Scilab's safety will be unchanged. Hope reading other contributions and thoughts, Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Mon Apr 10 14:13:53 2017 From: lists at kybdr.de (Dirk Reusch) Date: Mon, 10 Apr 2017 14:13:53 +0200 Subject: [Scilab-users] Cell insertion operation using {...} is buggy?! Message-ID: <20170410141353.4c1e6917@lemon> Hello, Using precompiled Scilab 6.0.0 Linux 64bit, I experienced the following: ---------------------------------------------------------------- Startup execution: loading initial environment --> b{1}=2 // Ok b = [1x1 constant] --> a=2 // Ok a = 2. --> a{1}=2 // Not OK, should throw an error? a = 1.16D-316 ------------------------------------------------------------------ It seems, that the cell insertion operation via "{...}" when applied on an existing variable does strange things. Thanks for any advice and further insight, Dirk PS: Tested also with nightly build branch-6.0-1488991653 ... with the very same result! From kandy_wolf at outlook.com Mon Apr 10 14:51:29 2017 From: kandy_wolf at outlook.com (gnu) Date: Mon, 10 Apr 2017 05:51:29 -0700 (MST) Subject: [Scilab-users] Get some error In-Reply-To: References: <1491737173088-4036157.post@n3.nabble.com> <1491815640.2116.4.camel@esi-group.com> <1491818652662-4036168.post@n3.nabble.com> Message-ID: <1491828689652-4036174.post@n3.nabble.com> Dear nikolay, I try another compile and it runs very well now. thanks! -- View this message in context: http://mailinglists.scilab.org/Get-some-error-tp4036157p4036174.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kandy_wolf at outlook.com Mon Apr 10 14:57:03 2017 From: kandy_wolf at outlook.com (gnu) Date: Mon, 10 Apr 2017 05:57:03 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <0f332b685632b3f3e192a783093f1e33@scilab-enterprises.com> References: <1446616554965-4033072.post@n3.nabble.com> <1448693893115-4033129.post@n3.nabble.com> <565C0498.3040403@scilab-enterprises.com> <1491737962439-4036158.post@n3.nabble.com> <0f332b685632b3f3e192a783093f1e33@scilab-enterprises.com> Message-ID: <1491829023511-4036175.post@n3.nabble.com> Dear paul, It runs very well now , thank you very much! gnu -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4036175.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From lists at kybdr.de Mon Apr 10 15:33:28 2017 From: lists at kybdr.de (Dirk Reusch) Date: Mon, 10 Apr 2017 15:33:28 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab release frequency ? In-Reply-To: References: <1490105889.31706.16.camel@esi-group.com> Message-ID: <20170410153328.2e04c689@lemon> Hello, regarding future release cycles, I would really appreciate to see offical releases as needed and based primarily upon stability criteria. IMHO, for production use, especially after the big step from 5.x to 6.x, it is inevitable to have official 6.0.x bug fix releases asap, otherwise developers and users will stick to 5.5.x and get frustrated ... Nightly builds are fine, as a testing and development platform, but not really suited for end users ... Regarding the incorporation of new features, it is IMHO not that important to know, how many releases will be made per year. It is important to know, when will a new feature be available and useable. In summary, I would like to see official releases as needed, rather than following a rigid schedule. Best regards, Dirk PS: Why are Coverity Fixes not directly applied to the 6.0 branch? From cfuttrup at gmail.com Mon Apr 10 16:18:45 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 10 Apr 2017 16:18:45 +0200 Subject: [Scilab-users] [Scilab-Dev] Scilab release frequency ? In-Reply-To: References: <1490105889.31706.16.camel@esi-group.com> Message-ID: Hi, My thoughts on releases. I agree that releases have been incredibly slow, but haven't spent time bickering about it. Instead, I'm pleased when releases are finally here. I've wondered about the organization(s) behind Scilab. It seems we get a new release every time Scilab is reorganized in some way ... and that there's lots of political stuff going on. I hope that the Scilab 6 milestone means that Scilab (as in the software itself) is organized in a way suitable for the next many years. Hereby I imply that any 6.X release only has to reflect incremental (and preferably backwards compatible) improvements. Personally I consider "nightly builds" to be bleeding edge, for developers, and not something I can use for my development - just as I cannot distribute Scilab code and reference a nightly-build version of Scilab to whoever might be interested. >each publication needs or deserves some specific tasks that take time Yes, typically minimized by writing a developer-oriented "how-to" release (aka to-do list). IMHO regarding release frequency, the second-most important reason to release is so that the project appears alive and not dead. Best regards, Claus On 10-04-2017 13:58, Samuel Gougeon wrote: > Hello, > > I am redirecting this discussion on users@ because it shall mainly > interest most of users, while, after 2 weeks, palpably not developers: > > http://mailinglists.scilab.org/Scilab-release-frequency-tt4035908.html > > On 21/03/2017 ? 15:18, Cl?ment David wrote on dev@: >> After some private discussion by direct mail, Samuel pointed that I have to open the discussion to ask for your needs / advises for the release frequency ; thanks Samuel for that. Please find also attached a Scilab version timeline for reference. >> >> To clarify the discussion, I will use the convention major.minor.revision (6.0.0 == 6 major, 0 minor, 0 revision) where : >> * a revision only contains bug fixes and should be script compatible but might deprecate functions >> * a minor version remove deprecated functions >> * a major version is a Scilab partial rewrite >> >> IMHO an expected (with no strict application) period should be : >> * 6-9 months ?revision? cycle >> * 18-24 months ?minor? cycle (2 to 3 revisions) >> * much more for a ?major? >> >> Do you have an opinion on the Scilab release period ? Which period will simplify your developments ? > > In private, Cl?ment's rationale is, mainly and AFAIU, that preparing > the publication of each release takes some time: There is a list of > things to do, like formating the release notes, publishing new online > help pages, updating download pages in several languages, etc. Then, > this time is not used for developments. > > I was asking about the intentions of the Scilab team about the future > release frequency, because i thought -- and still think -- that > roughtly 2 years between 2 consecutive minor releases is incredibly > long at the usual Information Technologies timescale. > Keeping such a slow rate would mean that we would have to wait up to 2 > years between the inclusion of a new feature in Scilab, and its > distribution in an official Scilab release! So to wait even longer > between the implementation of any new feature, and its actual > availability in Scilab. Even for the "smallest" features, as soon as > they are new. > > Obviously, we can't ignore that each publication needs or deserves > some specific tasks that take time, and that this time should be > minimized. > Moreover, we may note that contrarily to many free and open softwares, > nighly built releases are available online for Scilab, mostly at every > moment. From time to time, there are some short dead periods in these > daily releases in which the most recently included features are > available. These binary releases can be installed and used out of the > box like every "official" release, without uninstalling the current > "official" release from our computer. Actually, installing a new > Scilab version never requires uninstalling other (even multiple) > versions of Scilab on the same computer. Everyone can have as many > Scilab versions installed on the same computer as wished, whitout any > problem. It takes less than 5 mn to install a new Scilab. And add some > additional 5-15 mn to reset our Preferences, install few ATOMS modules > for it, etc. > This is very great and useful and safe. > > So, after our last email, i came to the following conclusion: In my > opinion, publishing revision 6.n.X releases is useless. For the > future, we could expect > > * The publication only of official minor versions: 6.X > This should allow publishing them at a faster rate, at least once > per year, never less. > > * Keeping Nightly built (daily) releases for the current 6.X+ > branch, in which bugs are fixed "on-the-fly", the documentation is > improved, and all other safe daily modifications are included and > available on download the day after. > > * Keeping Nightly built (daily) releases of the master preparing the > 6.(X+1) release, in which new features or modifications that could > make Scilab unstable are progressively included. > > Hence, the publication process would take less time ; new features > would become available in the year instead of in a 2-year period ; and > Scilab's safety will be unchanged. > > Hope reading other contributions and thoughts, > > Best regards > 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 jrafaelbguerra at hotmail.com Tue Apr 11 08:58:37 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 10 Apr 2017 23:58:37 -0700 (MST) Subject: [Scilab-users] [Scilab-Dev] Scilab release frequency ? In-Reply-To: References: Message-ID: <1491893917179-4036178.post@n3.nabble.com> Wouldn't this question make more sense to be asked to the industrial partners of Scilab? For simple hobby users like us that freely enjoy Scilab's scientific computing power for testing code and ideas, shouldn't the answer to the question be correlated with the frequency of their donations? I am sorry if I do not understand much about free software, may be it updates itself freely too. -- View this message in context: http://mailinglists.scilab.org/Re-Scilab-Dev-Scilab-release-frequency-tp4036172p4036178.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From michael.benguigui at activeeon.com Tue Apr 11 09:17:48 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Tue, 11 Apr 2017 09:17:48 +0200 Subject: [Scilab-users] Sicilab 6 GUI crashs In-Reply-To: References: Message-ID: 2017-04-05 11:07 GMT+02:00 Michael Benguigui < michael.benguigui at activeeon.com>: > Dear Scilab team, > > Could you just tell me if you have a temporary work around concerning this issue..? > > > Regards > > Michael > > ------------------------------- > > Hi, to reproduce it: > Create a sci file (test.sci) with the following instructions (*): > > jimport java.lang.ProcessBuilder; > jimport java.util.ArrayList; > cmd = ArrayList.new(); > jinvoke(cmd,'add','echo') > jinvoke(cmd,'add','''AAAA''') > pb = ProcessBuilder.new(cmd); > jinvoke(pb,'start') > disp('BEFORE !! ...'); > evstr('1+1;'); > disp('...AFTER !!'); > > From Scilab 6.0: > > exec test.sci > > It randomly makes the GUI crash. But it will not fail (according to my tests) when executing directly (*) in the Scilab 6 GUI, without .sci file. > > -- Michael Benguigui, Activeeon +33 6 304 37 37 0 https://fr.linkedin.com/in/micha%C3%ABl-benguigui-23a85921 skype: michael.benguigui at hotmail.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Tue Apr 11 10:41:02 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 11 Apr 2017 08:41:02 +0000 Subject: [Scilab-users] Sicilab 6 GUI crashs In-Reply-To: References: Message-ID: <1491900060.2116.18.camel@esi-group.com> Hello Michael, Even if it can be frustrating, please keep the discussion on https://bugzilla.scilab.org/show_bug.cg i?id=14698 rather than spamming the users ML. This users ML is dedicated to community knowledge sharing and is not a way to contact us. AFAIK there is no workaround and it is not clearly identified as Samuel noted. Thanks, -- Cl?ment Le mardi 11 avril 2017 ? 09:17 +0200, Michael Benguigui a ?crit?: > > > 2017-04-05 11:07 GMT+02:00 Michael Benguigui : > > Dear Scilab team,? > > Could you just tell me if you have a temporary work around concerning this issue..? > > > > Regards > > Michael > > ------------------------------- > > Hi, to reproduce it: > > Create a sci file (test.sci) with the following instructions (*): > > > > jimport java.lang.ProcessBuilder; > > jimport java.util.ArrayList; > > cmd = ArrayList.new(); > > jinvoke(cmd,'add','echo') > > jinvoke(cmd,'add','''AAAA''') > > pb = ProcessBuilder.new(cmd); > > jinvoke(pb,'start') > > disp('BEFORE !! ...'); > > evstr('1+1;'); > > disp('...AFTER !!'); > > > > From Scilab 6.0: > > > > exec test.sci > > > > It randomly makes the GUI crash. But it will not fail (according to my tests) when executing > > directly (*) in the Scilab 6 GUI, without .sci file. > > > > > > --? > Michael Benguigui, Activeeon > +33 6 304 37 37 0 > https://fr.linkedin.com/in/micha%C3%ABl-benguigui-23a85921 > skype: michael.benguigui at hotmail.fr > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Tue Apr 11 13:58:43 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Apr 2017 13:58:43 +0200 Subject: [Scilab-users] =?utf-8?q?Use_of_optimized_ATLAS_binary_with_Scila?= =?utf-8?q?b_=28on_linux=29?= Message-ID: <848-58ecc500-1-2cde0300@69569739> Hi all, I wonder whether any of you has tried to use optimized ATLAS binary instead of the default one provided by Scilab (in the SCI/lib/thirdparty). I read that it can greatly increase Scilab speed for some linear algebra computations (see Programming in Scilab by Micha?l Baudin, p135, available here: http://forge.scilab.org/index.php/p/docprogscilab/downloads/). I tried to remove libblas from the SCI subfolders, but then it seems that Scilab fails to find the library installed on my machine. Any tips? Antoine From n.strelkov at gmail.com Tue Apr 11 14:22:54 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Tue, 11 Apr 2017 15:22:54 +0300 Subject: [Scilab-users] Use of optimized ATLAS binary with Scilab (on linux) In-Reply-To: <848-58ecc500-1-2cde0300@69569739> References: <848-58ecc500-1-2cde0300@69569739> Message-ID: Dear Antoine! On Ubuntu and Debian you can install Scilab from official repositories and then switch libblas or liblapack to ATLAS with update-alternatives (see https://wiki.debian.org/DebianScience/LinearAlgebraLibraries). Hope this helps. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,**Nikolay Strelkov.* 11 ???. 2017 ?. 14:59 ???????????? "Antoine Monmayrant" < antoine.monmayrant at laas.fr> ???????: > Hi all, > > I wonder whether any of you has tried to use optimized ATLAS binary > instead of the default one provided by Scilab (in the SCI/lib/thirdparty). > I read that it can greatly increase Scilab speed for some linear algebra > computations (see Programming in Scilab by Micha?l Baudin, p135, available > here: http://forge.scilab.org/index.php/p/docprogscilab/downloads/). > I tried to remove libblas from the SCI subfolders, but then it seems that > Scilab fails to find the library installed on my machine. > Any tips? > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Apr 11 14:34:39 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Apr 2017 14:34:39 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBVc2Ugb2Ygb3B0aW1pemVk?= =?utf-8?q?_ATLAS_binary_with_Scilab_=28on=3F=3D=3D=3Futf-8=3Fq=3F_linux?= =?utf-8?q?=29?= In-Reply-To: Message-ID: <840-58eccd80-11-7ef16b00@213181306> Hello Nikolay, Thanks for the tip. Saddly, the version in the repositories are too old for me. I assume that using update-alternatives on libblas & others will not change my problem of scilab not finding the installed libraries. There might be a LD_LIBRARY_PATH to set somewhere.... Thanks anyway, Antoine Le Mardi, Avril 11, 2017 14:22 CEST, Nikolay Strelkov a ?crit: > Dear Antoine! > > On Ubuntu and Debian you can install Scilab from official repositories and > then switch libblas or liblapack to ATLAS with > update-alternatives (see > https://wiki.debian.org/DebianScience/LinearAlgebraLibraries). > Hope this helps. > > -- > > *With best regards,Ph.D., * > > > *associate professor at MPEI > ,IEEE member,maintainer > of Mathieu functions toolbox for Scilab > ,**Nikolay Strelkov.* > > 11 ???. 2017 ?. 14:59 ???????????? "Antoine Monmayrant" < > antoine.monmayrant at laas.fr> ???????: > > > Hi all, > > > > I wonder whether any of you has tried to use optimized ATLAS binary > > instead of the default one provided by Scilab (in the SCI/lib/thirdparty). > > I read that it can greatly increase Scilab speed for some linear algebra > > computations (see Programming in Scilab by Micha?l Baudin, p135, available > > here: http://forge.scilab.org/index.php/p/docprogscilab/downloads/). > > I tried to remove libblas from the SCI subfolders, but then it seems that > > Scilab fails to find the library installed on my machine. > > Any tips? > > > > Antoine > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > From phillipmobley2 at gmail.com Tue Apr 11 21:10:04 2017 From: phillipmobley2 at gmail.com (phillip mobley) Date: Tue, 11 Apr 2017 15:10:04 -0400 Subject: [Scilab-users] Modelling dynamic systems with real world data Message-ID: Hello all, I have some data from a test that I preformed. I was looking to simulate this data under different conditions and I was wondering if there is a palette in xcos that would allow me to input data (maybe from an excel spreadsheet or copy paste) in order to use in the simulation? Is this possible with xcos? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Tue Apr 11 21:48:58 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 11 Apr 2017 12:48:58 -0700 Subject: [Scilab-users] Modelling dynamic systems with real world data In-Reply-To: References: Message-ID: <1491940138.2987.21.camel@wescottdesign.com> "Simulate the data"? Surely you mean you wish to simulate the system which was used in the measurement! You don't give much detail, but I suspect that what you want to do is to develop a model of the system that fits the experiment, and then use that model in your simulations. The general term for generating the model is called "system identification", but that covers a pretty broad swath. Can you share the test you did, the sort of data you collected, the sort of system you're trying to model, and how well you know the system itself? On Tue, 2017-04-11 at 15:10 -0400, phillip mobley wrote: > Hello all, > > I have some data from a test that I preformed. I was looking to > simulate this data under different conditions and I was wondering if > there is a palette in xcos that would allow me to input data (maybe > from an excel spreadsheet or copy paste) in order to use in the > simulation? > > Is this possible with xcos? > _______________________________________________ > 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 noguchi at kje.biglobe.ne.jp Wed Apr 12 07:05:47 2017 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Tue, 11 Apr 2017 22:05:47 -0700 (MST) Subject: [Scilab-users] Set default working directory at start In-Reply-To: References: Message-ID: <1491973547570-4036196.post@n3.nabble.com> Hello, I am using Scilab 5.5.2 64bit on my windows 7 PC. I am not sure how I can change the starting directory. May I ask how I can change the starting directory when we start Scilab? Thanks. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036196.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From W.Schulz at ove.at Wed Apr 12 08:28:29 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 12 Apr 2017 06:28:29 +0000 Subject: [Scilab-users] Set default working directory at start In-Reply-To: <1491973547570-4036196.post@n3.nabble.com> References: <1491973547570-4036196.post@n3.nabble.com> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> Menu Edit/Preferences > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von noguchi > Gesendet: Mittwoch, 12. April 2017 07:06 > An: users at lists.scilab.org > Betreff: Re: [Scilab-users] Set default working directory at start > > Hello, > > > I am using Scilab 5.5.2 64bit on my windows 7 PC. > > I am not sure how I can change the starting directory. > May I ask how I can change the starting directory when we start Scilab? > > > Thanks. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Set- > default-working-directory-at-start-tp4033145p4036196.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 cfuttrup at gmail.com Wed Apr 12 09:22:01 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 12 Apr 2017 09:22:01 +0200 Subject: [Scilab-users] Set default working directory at start In-Reply-To: <1491973547570-4036196.post@n3.nabble.com> References: <1491973547570-4036196.post@n3.nabble.com> Message-ID: <59a64f73-2790-764f-0e87-938f08ad8496@gmail.com> Hi Noguchi-san Response from Wolfgang Schulz is good. I just wish to elaborate, there are different settings for directories, like "home" and "SCIHOME" ... Please see for example: https://help.scilab.org/docs/6.0.0/en_US/home.html Best regards, Claus On 12-04-2017 07:05, noguchi wrote: > Hello, > > > I am using Scilab 5.5.2 64bit on my windows 7 PC. > > I am not sure how I can change the starting directory. > May I ask how I can change the starting directory when we start Scilab? > > > Thanks. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036196.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 noguchi at kje.biglobe.ne.jp Wed Apr 12 13:02:42 2017 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 12 Apr 2017 04:02:42 -0700 (MST) Subject: [Scilab-users] Set default working directory at start In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> References: <1491973547570-4036196.post@n3.nabble.com> <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> Message-ID: Thanks. However, I don't really understand what does "Menu Edit/Preferences " mean. >From the SCilab console, I know there is SCilab setting menu. We can change color, SCinotes and Xcos settings. However, I failed to find the place so thatI can change Home directry. Noguchi ----- ??????? ----- ???: "W.Schulz [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2017?4?12?(???) 15:44:15 ??: Re: Set default working directory at start Menu Edit/Preferences > -----Urspr?ngliche Nachricht----- > Von: users [mailto: [hidden email] ] Im Auftrag von noguchi > Gesendet: Mittwoch, 12. April 2017 07:06 > An: [hidden email] > Betreff: Re: [Scilab-users] Set default working directory at start > > Hello, > > > I am using Scilab 5.5.2 ?64bit on my windows 7 PC. > > I am not sure how I can change the starting directory. > May I ask how I can change the starting directory when we start Scilab? > > > Thanks. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Set- > default-working-directory-at-start-tp4033145p4036196.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > Nabble.com. > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users _______________________________________________ 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/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036197.html To unsubscribe from [Scilab-users] Set default working directory at start, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036199.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Wed Apr 12 13:06:53 2017 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 12 Apr 2017 04:06:53 -0700 (MST) Subject: [Scilab-users] Set default working directory at start In-Reply-To: <59a64f73-2790-764f-0e87-938f08ad8496@gmail.com> References: <1491973547570-4036196.post@n3.nabble.com> <59a64f73-2790-764f-0e87-938f08ad8496@gmail.com> Message-ID: Claus-san, My home and SCIHOME are as follows: home = C:\Users\Noguchi_Yoshikazu SCIHOME = C:\Users\NOGUCH~1\AppData\Roaming\Scilab\scilab-5.5.2 How I can change my SCIHOME Directry to my prefered Directory? I failed to find such menu in Scilab console. (Scilab 5.5.2) ----- ??????? ----- ???: "Claus Futtrup [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2017?4?12?(???) 16:23:22 ??: Re: Set default working directory at start Hi Noguchi-san Response from Wolfgang Schulz is good. I just wish to elaborate, there are different settings for directories, like "home" and "SCIHOME" ... Please see for example: https://help.scilab.org/docs/6.0.0/en_US/home.html Best regards, Claus On 12-04-2017 07:05, noguchi wrote: > Hello, > > > I am using Scilab 5.5.2 ?64bit on my windows 7 PC. > > I am not sure how I can change the starting directory. > May I ask how I can change the starting directory when we start Scilab? > > > Thanks. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036196.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > . > _______________________________________________ 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/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036198.html To unsubscribe from [Scilab-users] Set default working directory at start, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036200.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Apr 12 13:11:02 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 12 Apr 2017 13:11:02 +0200 Subject: [Scilab-users] Set default working directory at start In-Reply-To: References: <1491973547570-4036196.post@n3.nabble.com> <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> Message-ID: Le 12/04/2017 ? 13:02, noguchi a ?crit : > Thanks. > > However, I don't really understand what does "Menu Edit/Preferences " > mean. > > From the SCilab console, I know there is SCilab setting menu. We can > change color, SCinotes and Xcos settings. > However, I failed to find the place so thatI can change Home directry. "General" item => "Startup directory" frame From noguchi at kje.biglobe.ne.jp Wed Apr 12 15:40:22 2017 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 12 Apr 2017 06:40:22 -0700 (MST) Subject: [Scilab-users] Set default working directory at start In-Reply-To: References: <1491973547570-4036196.post@n3.nabble.com> <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> Message-ID: <55ccffa6-16f5-4a10-9933-a7974d4bc6fa@bvec34483> In my Scilab console, I don't have such "Startup directory" in "General" item. In general Item, I have following three items: 1. Confirmation Dialogue 2. Desktop Layout 3. Shortcut How I can find "Startup directory" in my Scilab 5.5.2 windows version with language = Japanease case? ----- ??????? ----- ???: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2017?4?12?(???) 20:13:04 ??: Re: Set default working directory at start Le 12/04/2017 ? 13:02, noguchi a ?crit : > Thanks. > > However, I don't really understand what does "Menu Edit/Preferences " > mean. > > From the SCilab console, I know there is SCilab setting menu. We can > change color, SCinotes and Xcos settings. > However, I failed to find the place so thatI can change Home directry. "General" item => "Startup directory" frame _______________________________________________ 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/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036201.html To unsubscribe from [Scilab-users] Set default working directory at start, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036202.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Wed Apr 12 15:42:12 2017 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Wed, 12 Apr 2017 06:42:12 -0700 (MST) Subject: [Scilab-users] Set default working directory at start In-Reply-To: References: <1491973547570-4036196.post@n3.nabble.com> <07A8AF089844A549B0F0CCC727AF31AA7543EDE9@OVEKBG.ove.at> Message-ID: <508b28ad-1de7-48d4-a03e-201cf2f4dcf3@bvec34483> Thanks. I finaly find the place I should set. Thanks a lot. ----- ??????? ----- ???: "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists Archives]" ??: "noguchi" ????: 2017?4?12?(???) 20:13:04 ??: Re: Set default working directory at start Le 12/04/2017 ? 13:02, noguchi a ?crit : > Thanks. > > However, I don't really understand what does "Menu Edit/Preferences " > mean. > > From the SCilab console, I know there is SCilab setting menu. We can > change color, SCinotes and Xcos settings. > However, I failed to find the place so thatI can change Home directry. "General" item => "Startup directory" frame _______________________________________________ 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/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036201.html To unsubscribe from [Scilab-users] Set default working directory at start, click here . NAML -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-default-working-directory-at-start-tp4033145p4036203.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.David at esi-group.com Wed Apr 12 16:34:24 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 12 Apr 2017 14:34:24 +0000 Subject: [Scilab-users] ?==?utf-8?q? Use of optimized ATLAS binary with Scilab (on?==?utf-8?q? linux) In-Reply-To: <840-58eccd80-11-7ef16b00@213181306> References: <840-58eccd80-11-7ef16b00@213181306> Message-ID: <1492007662.2794.9.camel@esi-group.com> Hello Antoine, Nikolay, The selection of a much performant BLAS / LAPACK implementation is very system-dependent and I don't want to maintain something not standard / widely deployed on Linux distributions. As a reference, the current Fedora status is to link against the library used at build-time [1]. Nicolay pointed on a similar link for Debian which use /etc/alternatives to let the user select a library. Currently, it is still possible to enforce a specific BLAS/LAPACK library using LD_PRELOAD (LD_PRELOAD=/usr/lib64/libopenblaso.so.0 bin/scilab for example). However it could not be enforced within Scilab stock version even it is known [2] that Atlas or OpenBLAS will slightly improve Scilab speed as it is highly system / user dependent choice. [1]: https://pagure.io/packaging-committee/issue/588 [2]: https://wiki.scilab.org/Linalg%20performances Thanks, -- Cl?ment Le mardi 11 avril 2017 ? 14:34 +0200, Antoine Monmayrant a ?crit?: > Hello Nikolay, > > Thanks for the tip. > Saddly, the version in the repositories are too old for me. > I assume that using update-alternatives on libblas & others will not change my problem of scilab > not finding the installed libraries. > There might be a LD_LIBRARY_PATH to set somewhere.... > > Thanks anyway, > > Antoine > > > Le Mardi, Avril 11, 2017 14:22 CEST, Nikolay Strelkov a ?crit:? > ? > > Dear Antoine! > > > > On Ubuntu and Debian you can install Scilab from official repositories and > > then switch libblas or liblapack to ATLAS with > > update-alternatives (see > > https://wiki.debian.org/DebianScience/LinearAlgebraLibraries). > > Hope this helps. > > > > -- > > > > *With best regards,Ph.D., * > > > > > > *associate professor at MPEI > > ,IEEE member,maintainer > > of Mathieu functions toolbox for Scilab > > ,**Nikolay Strelkov.* > > > > 11 ???. 2017 ?. 14:59 ???????????? "Antoine Monmayrant" < > > antoine.monmayrant at laas.fr> ???????: > > > > > Hi all, > > > > > > I wonder whether any of you has tried to use optimized ATLAS binary > > > instead of the default one provided by Scilab (in the SCI/lib/thirdparty). > > > I read that it can greatly increase Scilab speed for some linear algebra > > > computations (see Programming in Scilab by Micha?l Baudin, p135, available > > > here: http://forge.scilab.org/index.php/p/docprogscilab/downloads/). > > > I tried to remove libblas from the SCI subfolders, but then it seems that > > > Scilab fails to find the library installed on my machine. > > > Any tips? > > > > > > Antoine > > > > > > _______________________________________________ > > > 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 phillipmobley2 at gmail.com Wed Apr 12 16:49:13 2017 From: phillipmobley2 at gmail.com (phillip mobley) Date: Wed, 12 Apr 2017 10:49:13 -0400 Subject: [Scilab-users] Modelling dynamic systems with real world data In-Reply-To: <1491940138.2987.21.camel@wescottdesign.com> References: <1491940138.2987.21.camel@wescottdesign.com> Message-ID: Sure thing Tim, Thank you for pointing out those details. I will share as much as I can. I am simulating the behavior of a battery as it is discharging into a circuit. I recorded data from the battery (for example, the voltage and current and internal resistance) during testing. I currently have the data at different time steps inside of an excel file. I would like to test this battery under different circuit configurations. However, changing the circuit can be time consuming and expensive. I was thinking that I could use xcos ability to do circuit simulation to construct a basic model of the battery that I am using that utilizes the data that I gathered. This way I can simulation the battery under different circuit configurations very easily. So I was wondering if there was a way that I could import my data into xcos to construct a model for simulation. I actually created the system to simulate the battery. On Tue, Apr 11, 2017 at 3:48 PM, Tim Wescott wrote: > "Simulate the data"? > > Surely you mean you wish to simulate the system which was used in the > measurement! > > You don't give much detail, but I suspect that what you want to do is > to develop a model of the system that fits the experiment, and then use > that model in your simulations. > > The general term for generating the model is called "system > identification", but that covers a pretty broad swath. > > Can you share the test you did, the sort of data you collected, the > sort of system you're trying to model, and how well you know the system > itself? > > On Tue, 2017-04-11 at 15:10 -0400, phillip mobley wrote: > > Hello all, > > > > I have some data from a test that I preformed. I was looking to > > simulate this data under different conditions and I was wondering if > > there is a palette in xcos that would allow me to input data (maybe > > from an excel spreadsheet or copy paste) in order to use in the > > simulation? > > > > Is this possible with xcos? > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 Wed Apr 12 18:02:19 2017 From: tim at wescottdesign.com (tim at wescottdesign.com) Date: Wed, 12 Apr 2017 09:02:19 -0700 Subject: [Scilab-users] Modelling dynamic systems with real world data In-Reply-To: References: <1491940138.2987.21.camel@wescottdesign.com> Message-ID: <274895762cadb3a2e9bc7122b6afc2d8@wescottdesign.com> I strongly suspect that anything that would be useful would be specific to batteries, and would perhaps be best done in batch mode to generate a model that is then hand-tweaked and selected for use in xcos -- but I say that in part because over the years I've come to dislike graphical solvers. I think it's possible to build a subsystem out of blocks that can be "masked" so that you can enter parameters in the usual way -- if you could boil your battery model down so that it had a few parameters, you could translate your measured data into parameters once, then use parameterized blocks for the battery behavior. On 2017-04-12 07:49, phillip mobley wrote: > Sure thing Tim, > > Thank you for pointing out those details. I will share as much as I can. > > I am simulating the behavior of a battery as it is discharging into a circuit. I recorded data from the battery (for example, the voltage and current and internal resistance) during testing. I currently have the data at different time steps inside of an excel file. > > I would like to test this battery under different circuit configurations. However, changing the circuit can be time consuming and expensive. I was thinking that I could use xcos ability to do circuit simulation to construct a basic model of the battery that I am using that utilizes the data that I gathered. This way I can simulation the battery under different circuit configurations very easily. > > So I was wondering if there was a way that I could import my data into xcos to construct a model for simulation. > > I actually created the system to simulate the battery. > > On Tue, Apr 11, 2017 at 3:48 PM, Tim Wescott wrote: > >> "Simulate the data"? >> >> Surely you mean you wish to simulate the system which was used in the >> measurement! >> >> You don't give much detail, but I suspect that what you want to do is >> to develop a model of the system that fits the experiment, and then use >> that model in your simulations. >> >> The general term for generating the model is called "system >> identification", but that covers a pretty broad swath. >> >> Can you share the test you did, the sort of data you collected, the >> sort of system you're trying to model, and how well you know the system >> itself? >> >> On Tue, 2017-04-11 at 15:10 -0400, phillip mobley wrote: >>> Hello all, >>> >>> I have some data from a test that I preformed. I was looking to >>> simulate this data under different conditions and I was wondering if >>> there is a palette in xcos that would allow me to input data (maybe >>> from an excel spreadsheet or copy paste) in order to use in the >>> simulation? >>> >>> Is this possible with xcos? > _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users [1] >> -- >> >> Tim Wescott >> www.wescottdesign.com [2] >> Control & Communications systems, circuit & software design. >> Phone: 503.631.7815 [3] >> Cell: 503.349.8432 [4] >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users [1] Links: ------ [1] http://lists.scilab.org/mailman/listinfo/users [2] http://www.wescottdesign.com [3] tel:503.631.7815 [4] tel:503.349.8432 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Thu Apr 13 09:14:25 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 13 Apr 2017 00:14:25 -0700 (MST) Subject: [Scilab-users] reset local atoms gui Message-ID: <1492067665016-4036210.post@n3.nabble.com> Hello I installed a recent scilab 6.0 nightly builds (WIN7_64bits) which fixed an annoying bug for me and while reinstalling some atoms module within the atoms gui it crashes the gui and whole scilab when I pressed "previous" button. The module was properly installed and I can use it. I can install new atoms via the command line console when I know the name of the package but I can't start anymore the atoms GUI, it crashes scilab each time : how could I repair/re-initialize the atoms GUI only (or full atoms)? de/re -install all ? Thanks for your help David -- View this message in context: http://mailinglists.scilab.org/reset-local-atoms-gui-tp4036210.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Apr 13 11:32:07 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 13 Apr 2017 11:32:07 +0200 Subject: [Scilab-users] reset local atoms gui In-Reply-To: <1492067665016-4036210.post@n3.nabble.com> References: <1492067665016-4036210.post@n3.nabble.com> Message-ID: <2b4bc8cb-dd80-e2c3-8fb2-fdaf542cdc75@free.fr> Hello David, Le 13/04/2017 ? 09:14, David Ch?ze a ?crit : > Hello > > I installed a recent scilab 6.0 nightly builds (WIN7_64bits) which fixed an > annoying bug for me and while reinstalling some atoms module within the > atoms gui it crashes the gui and whole scilab when I pressed "previous" > button. The module was properly installed and I can use it. I can install > new atoms via the command line console when I know the name of the package > but I can't start anymore the atoms GUI, it crashes scilab each time : how > could I repair/re-initialize the atoms GUI only (or full atoms)? de/re > -install all ? Did you try more simply to copy the "former" SCI/.atoms and SCI/contrib directories to your new installation, and start your new Scilab? And the same for SCIHOME/.atoms and SCIHOME/contrib (SCIHOME changing with Scilab's version). This is most often enough to get back ATOMS modules as installed in your last version. HTH Samuel From mjmccann at ieee.org Thu Apr 13 18:15:01 2017 From: mjmccann at ieee.org (Michael J McCann) Date: Thu, 13 Apr 2017 16:15:01 +0000 Subject: [Scilab-users] Modelling dynamic systems with real world data In-Reply-To: <274895762cadb3a2e9bc7122b6afc2d8@wescottdesign.com> References: <1491940138.2987.21.camel@wescottdesign.com> <274895762cadb3a2e9bc7122b6afc2d8@wescottdesign.com> Message-ID: <67dcc301-4ea4-8ee3-506d-72642aee39b2@ieee.org> Hmm... batteries: Charge storage devices which have a largely constant voltage in the working range but which show big changes in apparent voltage when they reach full charge and when the charge drops very low. You don't get all the electrons back. I suspect a really good model would relate these effects to the electrochemical processes at work. Also because they are "batteries" and not individual cells, the aggregate behaviour will depend on the whole (in series) set. With a sort of diodes and resistors model for the charge and discharge routes (somewhat different characteristics), it is possible to make a fair model for a battery's functional operations but I'd be a bit concerned if it was to try to make predictions of behaviour under stress (e.g.very high discharge rates) or temperature changes (which in lead acid batteries reduce apparent capacity and ability to deliver current). There's an industry emerging for batteries with all the associated support equipment for creating backups for solar power etc. So it becomes a question of how deep you want to go into the physics. Mike. ===================== On 12/04/2017 16:02, tim at wescottdesign.com wrote: > > I strongly suspect that anything that would be useful would be > specific to batteries, and would perhaps be best done in batch mode to > generate a model that is then hand-tweaked and selected for use in > xcos -- but I say that in part because over the years I've come to > dislike graphical solvers. > > I think it's possible to build a subsystem out of blocks that can be > "masked" so that you can enter parameters in the usual way -- if you > could boil your battery model down so that it had a few parameters, > you could translate your measured data into parameters once, then use > parameterized blocks for the battery behavior. > > On 2017-04-12 07:49, phillip mobley wrote: > >> Sure thing Tim, >> Thank you for pointing out those details. I will share as much as I can. >> I am simulating the behavior of a battery as it is discharging into a >> circuit. I recorded data from the battery (for example, the voltage >> and current and internal resistance) during testing. I currently have >> the data at different time steps inside of an excel file. >> I would like to test this battery under different circuit >> configurations. However, changing the circuit can be time consuming >> and expensive. I was thinking that I could use xcos ability to do >> circuit simulation to construct a basic model of the battery that I >> am using that utilizes the data that I gathered. This way I can >> simulation the battery under different circuit configurations very >> easily. >> So I was wondering if there was a way that I could import my data >> into xcos to construct a model for simulation. >> I actually created the system to simulate the battery. >> >> On Tue, Apr 11, 2017 at 3:48 PM, Tim Wescott > > wrote: >> >> "Simulate the data"? >> >> Surely you mean you wish to simulate the system which was used in the >> measurement! >> >> You don't give much detail, but I suspect that what you want to do is >> to develop a model of the system that fits the experiment, and >> then use >> that model in your simulations. >> >> The general term for generating the model is called "system >> identification", but that covers a pretty broad swath. >> >> Can you share the test you did, the sort of data you collected, the >> sort of system you're trying to model, and how well you know the >> system >> itself? >> >> On Tue, 2017-04-11 at 15:10 -0400, phillip mobley wrote: >> > Hello all, >> > >> > I have some data from a test that I preformed. I was looking to >> > simulate this data under different conditions and I was >> wondering if >> > there is a palette in xcos that would allow me to input data (maybe >> > from an excel spreadsheet or copy paste) in order to use in the >> > simulation? >> > >> > Is this possible with xcos? >> > _______________________________________________ >> > 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 >> >> >> >> _______________________________________________ >> 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 -- Dr.M.J.McCann,MJMcCann-Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Thu Apr 13 19:20:06 2017 From: lists at kybdr.de (Dirk Reusch) Date: Thu, 13 Apr 2017 19:20:06 +0200 Subject: [Scilab-users] Modelling dynamic systems with real world data In-Reply-To: <67dcc301-4ea4-8ee3-506d-72642aee39b2@ieee.org> References: <1491940138.2987.21.camel@wescottdesign.com> <274895762cadb3a2e9bc7122b6afc2d8@wescottdesign.com> <67dcc301-4ea4-8ee3-506d-72642aee39b2@ieee.org> Message-ID: <20170413192006.6cccc8e2@lemon> Hello, This Modelica library might be inspiring: https://github.com/modelica/ElectricalEnergyStorage Regards, Dirk On Thu, 13 Apr 2017 16:15:01 +0000 Michael J McCann wrote: > Hmm... batteries: Charge storage devices which have a largely > constant voltage in the working range but which show big changes in > apparent voltage when they reach full charge and when the charge > drops very low. You don't get all the electrons back. I suspect a > really good model would relate these effects to the electrochemical > processes at work. Also because they are "batteries" and not > individual cells, the aggregate behaviour will depend on the whole > (in series) set. With a sort of diodes and resistors model for the > charge and discharge routes (somewhat different characteristics), it > is possible to make a fair model for a battery's functional > operations but I'd be a bit concerned if it was to try to make > predictions of behaviour under stress (e.g.very high discharge > rates) or temperature changes (which in lead acid batteries reduce > apparent capacity and ability to deliver current). There's an > industry emerging for batteries with all the associated support > equipment for creating backups for solar power etc. So it becomes a > question of how deep you want to go into the physics. > > Mike. > > ===================== > On 12/04/2017 16:02, tim at wescottdesign.com wrote: > > > > I strongly suspect that anything that would be useful would be > > specific to batteries, and would perhaps be best done in batch mode > > to generate a model that is then hand-tweaked and selected for use > > in xcos -- but I say that in part because over the years I've come > > to dislike graphical solvers. > > > > I think it's possible to build a subsystem out of blocks that can > > be "masked" so that you can enter parameters in the usual way -- if > > you could boil your battery model down so that it had a few > > parameters, you could translate your measured data into parameters > > once, then use parameterized blocks for the battery behavior. > > > > On 2017-04-12 07:49, phillip mobley wrote: > > > >> Sure thing Tim, > >> Thank you for pointing out those details. I will share as much as > >> I can. I am simulating the behavior of a battery as it is > >> discharging into a circuit. I recorded data from the battery (for > >> example, the voltage and current and internal resistance) during > >> testing. I currently have the data at different time steps inside > >> of an excel file. I would like to test this battery under > >> different circuit configurations. However, changing the circuit > >> can be time consuming and expensive. I was thinking that I could > >> use xcos ability to do circuit simulation to construct a basic > >> model of the battery that I am using that utilizes the data that I > >> gathered. This way I can simulation the battery under different > >> circuit configurations very easily. > >> So I was wondering if there was a way that I could import my data > >> into xcos to construct a model for simulation. > >> I actually created the system to simulate the battery. > >> > >> On Tue, Apr 11, 2017 at 3:48 PM, Tim Wescott > >> > wrote: > >> > >> "Simulate the data"? > >> > >> Surely you mean you wish to simulate the system which was used > >> in the measurement! > >> > >> You don't give much detail, but I suspect that what you want > >> to do is to develop a model of the system that fits the > >> experiment, and then use > >> that model in your simulations. > >> > >> The general term for generating the model is called "system > >> identification", but that covers a pretty broad swath. > >> > >> Can you share the test you did, the sort of data you > >> collected, the sort of system you're trying to model, and how well > >> you know the system > >> itself? > >> > >> On Tue, 2017-04-11 at 15:10 -0400, phillip mobley wrote: > >> > Hello all, > >> > > >> > I have some data from a test that I preformed. I was looking > >> > to simulate this data under different conditions and I was > >> wondering if > >> > there is a palette in xcos that would allow me to input data > >> > (maybe from an excel spreadsheet or copy paste) in order to > >> > use in the simulation? > >> > > >> > Is this possible with xcos? > >> > _______________________________________________ > >> > 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 > >> > >> > >> > >> _______________________________________________ > >> 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 sgougeon at free.fr Fri Apr 14 10:54:22 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 14 Apr 2017 10:54:22 +0200 Subject: [Scilab-users] reset local atoms gui In-Reply-To: <1492067665016-4036210.post@n3.nabble.com> References: <1492067665016-4036210.post@n3.nabble.com> Message-ID: <6465d062-8e61-e480-a93a-1e960c10c6ab@free.fr> Le 13/04/2017 ? 09:14, David Ch?ze a ?crit : > Hello > > I installed a recent scilab 6.0 nightly builds (WIN7_64bits) which fixed an > annoying bug for me and while reinstalling some atoms module within the > atoms gui it crashes the gui and whole scilab when I pressed "previous" > button. I confirm this behavior on the 6.0 branch: After restarting, the module is well autoloaded and usable, but each time that the ATOMS manager is called (toolbar icon or atomsGui()), Scilab immediately crashes. Samuel From paul.carrico at free.fr Tue Apr 18 15:03:40 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 18 Apr 2017 15:03:40 +0200 Subject: [Scilab-users] fsolve including linear interpolation Message-ID: <584968b3b8213b58dd0ce75fa598b207@free.fr> Hi All I'm wondering what is the way to solve the following study (but at the same time I'm not sure that the problem has been correctly posed) ... I'm a bit "disrupted" by theta scalar that depends itself on x value. The problem seems to be non linear and I tried (but I failed) in using fsolve. Any suggestion where I've to see to? Thanks for your time and help Paul ################################################# function y=calculus(x) theta = [ 1 100 200 300 1000 1200 1500 2000]'; theta_interp = interp1(theta(:,1),theta(:,2),x,'linear'); y = -theta_interp * 0.268 + 120 -x; //pause // if theta = 1 : y = 0 -> x = 120 - 0.268 = 119.73 // if theta = 100 : y = 0 -> x = 120 - 26.8 = 93.2 // if theta = 200 : x = 66.4 // if theta = 300 : x = 120 - 0.268 = 39.6 // can we say that y belongs to [39.6 , 119.73] ? endfunction [x,v,info] = fsolve(0,calculus) -------------- next part -------------- An HTML attachment was scrubbed... URL: From roger.cormier at ncf.ca Tue Apr 18 17:20:22 2017 From: roger.cormier at ncf.ca (roger.cormier at ncf.ca) Date: Tue, 18 Apr 2017 11:20:22 -0400 Subject: [Scilab-users] fsolve including linear interpolation In-Reply-To: <584968b3b8213b58dd0ce75fa598b207@free.fr> References: <584968b3b8213b58dd0ce75fa598b207@free.fr> Message-ID: <08F9CDEE-0882-4761-B6E2-2046263DF68C@ncf.ca> Paul: It appears that you're solving for y given theta and x, but y is a linear function of theta and x. I don't have a good knowledge of what you are trying to solve, but when I solve nonlinear problems I normally either have a form of first-order derivative (scalar or a Jacobian), or some form of branching/discontinuity from which I need to choose the "best" solution. For linear interpolation, I find that it's easier to simply write a function myself than try to figure out how to make a given built-in function works. I'm going fishing here: in your function, theta is 8x1 but your arguments for interpl are theta(:,1),theta(:,2), which presumes that theta is 8x2, so that could be a place to start looking at why fsolve is giving your grief. Regards, Roger. ______________________________________________ Dr. Roger Cormier, P.Eng. Home Tel. & Fax: 613-823-7299 Am mar. 18 avr. 2017 um 09:03 schrieb paul.carrico at free.fr: > Hi All > > I'm wondering what is the way to solve the following study (but at the same time I'm not sure that the problem has been correctly posed) ... I'm a bit "disrupted" by theta scalar that depends itself on x value. > > The problem seems to be non linear and I tried (but I failed) in using fsolve. > > Any suggestion where I've to see to? > > Thanks for your time and help > > Paul > > > > ################################################# > function y=calculus(x) > > > theta = [ 1 100 200 300 > > > 1000 1200 1500 2000]'; > > > > theta_interp = interp1(theta(:,1),theta(:,2),x,'linear'); > > > y = -theta_interp * 0.268 + 120 -x; //pause > > > > // if theta = 1 : y = 0 -> x = 120 - 0.268 = 119.73 > > > // if theta = 100 : y = 0 -> x = 120 - 26.8 = 93.2 > > > // if theta = 200 : x = 66.4 > > > // if theta = 300 : x = 120 - 0.268 = 39.6 > > > > // can we say that y belongs to [39.6 , 119.73] ? > > > > endfunction > > > > [x,v,info] = fsolve(0,calculus) > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From paul.carrico at free.fr Tue Apr 18 19:12:33 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 18 Apr 2017 19:12:33 +0200 Subject: [Scilab-users] fsolve including linear interpolation In-Reply-To: <08F9CDEE-0882-4761-B6E2-2046263DF68C@ncf.ca> References: <584968b3b8213b58dd0ce75fa598b207@free.fr> <08F9CDEE-0882-4761-B6E2-2046263DF68C@ncf.ca> Message-ID: <6fa22ebf4f491d68fef628fd7164fd4e@free.fr> the example I built is not relevant and it does not reflect the problem behind... sorry for the inconvenient Paul Le 2017-04-18 17:20, roger.cormier at ncf.ca a ?crit : > Paul: > > It appears that you're solving for y given theta and x, but y is a > linear function of theta and x. > > I don't have a good knowledge of what you are trying to solve, but > when I solve nonlinear problems I normally either have a form of > first-order derivative (scalar or a Jacobian), or some form of > branching/discontinuity from which I need to choose the "best" > solution. For linear interpolation, I find that it's easier to simply > write a function myself than try to figure out how to make a given > built-in function works. > > I'm going fishing here: in your function, theta is 8x1 but your > arguments for interpl are theta(:,1),theta(:,2), which presumes that > theta is 8x2, so that could be a place to start looking at why fsolve > is giving your grief. > > Regards, > > Roger. > > ______________________________________________ > Dr. Roger Cormier, P.Eng. > Home Tel. & Fax: 613-823-7299 > > Am mar. 18 avr. 2017 um 09:03 schrieb paul.carrico at free.fr: > >> Hi All >> >> I'm wondering what is the way to solve the following study (but at the same time I'm not sure that the problem has been correctly posed) ... I'm a bit "disrupted" by theta scalar that depends itself on x value. >> >> The problem seems to be non linear and I tried (but I failed) in using fsolve. >> >> Any suggestion where I've to see to? >> >> Thanks for your time and help >> >> Paul >> >> ################################################# >> function y=calculus(x) >> >> theta = [ 1 100 200 300 >> >> 1000 1200 1500 2000]'; >> >> theta_interp = interp1(theta(:,1),theta(:,2),x,'linear'); >> >> y = -theta_interp * 0.268 + 120 -x; //pause >> >> // if theta = 1 : y = 0 -> x = 120 - 0.268 = 119.73 >> >> // if theta = 100 : y = 0 -> x = 120 - 26.8 = 93.2 >> >> // if theta = 200 : x = 66.4 >> >> // if theta = 300 : x = 120 - 0.268 = 39.6 >> >> // can we say that y belongs to [39.6 , 119.73] ? >> >> endfunction >> >> [x,v,info] = fsolve(0,calculus) >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssinprem at celestica.com Wed Apr 19 12:06:19 2017 From: ssinprem at celestica.com (ssinprem) Date: Wed, 19 Apr 2017 03:06:19 -0700 (MST) Subject: [Scilab-users] Issue on Delete bonding key (Stack v2.1.0) Message-ID: <1492596379162-4036227.post@n3.nabble.com> I use function gecko_cmd_sm_delete_bonding(...); for specific remove bonding key on Bluetooth device this function use in 2 scenario. 1. Write remove bonding command to characteristic case QR_REMOVE_BONDING: if(data[1]==0){ gecko_cmd_sm_delete_bonding(data[2]); } 2. When bonding error with 0x0305 reason code case gecko_evt_sm_bonding_failed_id: switch(evt->data.evt_sm_bonding_failed.reason){ case 0x0305: //repairing with the same button (not remove key on Mobile) bondId = conGetBondingId(); if(bondId!=0xFF){ gecko_cmd_sm_delete_bonding(bondId); } In 1. scenario,it great work correctly. In 2., when i remove bonding key with id 1,the bonding id 0 will be removed. remove 1, 1 and 0 will be removed remove 2, 2 and 0 will be removed remove 0, only 0 will be removed Please suggestion for me. -- View this message in context: http://mailinglists.scilab.org/Issue-on-Delete-bonding-key-Stack-v2-1-0-tp4036227.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ekinakoglu at gmail.com Fri Apr 21 11:19:17 2017 From: ekinakoglu at gmail.com (Ekin Akoglu) Date: Fri, 21 Apr 2017 12:19:17 +0300 Subject: [Scilab-users] Scilab checkerboard plot (grayplot) Message-ID: Dear all, I am producing a checkerboard plot with Scilab and the plot seems erroneously colored. The matrix I plot is attached as well as the scripts to plot and the plot produced by Scilab. The problem is that the data at matrix(1,3) and matrix(1,4) are equal, however, on the plot produced by Scilab it is represented by different colors (plants vs det. feeders and plants vs carnivores on the plot). Let me remind you that the plot is transposed form of the matrix. I would appreciate any help on the matter. Kind regards, Ekin -------------- next part -------------- A non-text attachment was scrubbed... Name: matrix.csv Type: text/csv Size: 423 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myMTIplot.sce Type: application/x-scilab-sce Size: 809 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab_mti.png Type: image/png Size: 20160 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Fri Apr 21 13:25:49 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 21 Apr 2017 13:25:49 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBTY2lsYWIgY2hlY2tlcmJv?= =?utf-8?q?ard_plot_=28grayplot=29?= In-Reply-To: Message-ID: <27aa-58f9ec00-25-4ec15f00@79966436> Le Vendredi, Avril 21, 2017 11:19 CEST, Ekin Akoglu a ?crit: > Dear all, > > I am producing a checkerboard plot with Scilab and the plot seems > erroneously colored. The matrix I plot is attached as well as the > scripts to plot and the plot produced by Scilab. > > The problem is that the data at matrix(1,3) and matrix(1,4) are equal, > however, on the plot produced by Scilab it is represented by different > colors (plants vs det. feeders and plants vs carnivores on the plot). > Let me remind you that the plot is transposed form of the matrix. > > I would appreciate any help on the matter. > > Kind regards, > > Ekin > Hello, The default behavior for grayplot is to paint a given pixel (a given square) with the color corresponding to its four corners. See: "help data_mapping" You can either change the data_mapping after calling grayplot or use Matplot. However, you'll have to rescale your data so that it ranges from 1 to nc where nc is the number of colors in your color_map. See my modified function below. Does it solve your problem? Cheers, Antoine function myMTIplot(data) [nrows ncols] = size(data); data = [zeros(1,ncols); data; zeros(1,ncols)]; data = [zeros(1,nrows+2)' data zeros(1,nrows+2)']; [nrows ncols] = size(data); figure1 = scf(); a = newaxes(); colorbar(-1, 1); grayplot(1:nrows, 1:ncols, data); figure1.color_map = jetcolormap(32); a.y_label.text = "Impacted Group"; a.y_label.font_size = 4; a.x_label.text = "Impacting Group"; a.x_label.font_size = 4; a.title.text = "Relative MTI"; a.title.font_size = 5; a.font_size = 4; a.data_bounds = [1, 6, 1, 6]; a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); //new version without interpolation // we rescale the data so that is goes from 1 to 32 dat=(data-min(data))/(max(data)-min(data))*31+1; figure2 = scf(); a = newaxes(); colorbar(-1, 1); grayplot(1:nrows, 1:ncols, dat); e=gce();e.data_mapping="direct";//no interpolation figure2.color_map = jetcolormap(32); a.y_label.text = "Impacted Group"; a.y_label.font_size = 4; a.x_label.text = "Impacting Group"; a.x_label.font_size = 4; a.title.text = "Relative MTI"; a.title.font_size = 5; a.font_size = 4; a.data_bounds = [1, 6, 1, 6]; a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); endfunction From ekinakoglu at gmail.com Fri Apr 21 14:27:03 2017 From: ekinakoglu at gmail.com (Ekin Akoglu) Date: Fri, 21 Apr 2017 15:27:03 +0300 Subject: [Scilab-users] ?==?utf-8?q? Scilab checkerboard plot (grayplot) In-Reply-To: <27aa-58f9ec00-25-4ec15f00@79966436> References: <27aa-58f9ec00-25-4ec15f00@79966436> Message-ID: Dear Antoine, Thank you very much for the resolution. It solves my problem by producing a graphically consistent plot. However, data-wise, the colorbar does not match the plot unless I rescale it to (1,32). I want to be able to infer the approximate value of the data from the colors. However, thank you. Kind regards, Ekin On 21/04/17 14:25, Antoine Monmayrant wrote: > Le Vendredi, Avril 21, 2017 11:19 CEST, Ekin Akoglu a ?crit: > >> Dear all, >> >> I am producing a checkerboard plot with Scilab and the plot seems >> erroneously colored. The matrix I plot is attached as well as the >> scripts to plot and the plot produced by Scilab. >> >> The problem is that the data at matrix(1,3) and matrix(1,4) are equal, >> however, on the plot produced by Scilab it is represented by different >> colors (plants vs det. feeders and plants vs carnivores on the plot). >> Let me remind you that the plot is transposed form of the matrix. >> >> I would appreciate any help on the matter. >> >> Kind regards, >> >> Ekin >> > > Hello, > > The default behavior for grayplot is to paint a given pixel (a given square) with the color corresponding to its four corners. > See: "help data_mapping" > You can either change the data_mapping after calling grayplot or use Matplot. > However, you'll have to rescale your data so that it ranges from 1 to nc where nc is the number of colors in your color_map. > See my modified function below. > Does it solve your problem? > > Cheers, > > Antoine > > function myMTIplot(data) > > [nrows ncols] = size(data); > > data = [zeros(1,ncols); data; zeros(1,ncols)]; > data = [zeros(1,nrows+2)' data zeros(1,nrows+2)']; > > [nrows ncols] = size(data); > > figure1 = scf(); > a = newaxes(); > > colorbar(-1, 1); > grayplot(1:nrows, 1:ncols, data); > > figure1.color_map = jetcolormap(32); > > a.y_label.text = "Impacted Group"; > a.y_label.font_size = 4; > a.x_label.text = "Impacting Group"; > a.x_label.font_size = 4; > a.title.text = "Relative MTI"; > a.title.font_size = 5; > a.font_size = 4; > a.data_bounds = [1, 6, 1, 6]; > > a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > > //new version without interpolation > // we rescale the data so that is goes from 1 to 32 > dat=(data-min(data))/(max(data)-min(data))*31+1; > figure2 = scf(); > a = newaxes(); > > colorbar(-1, 1); > grayplot(1:nrows, 1:ncols, dat); > e=gce();e.data_mapping="direct";//no interpolation > > figure2.color_map = jetcolormap(32); > > a.y_label.text = "Impacted Group"; > a.y_label.font_size = 4; > a.x_label.text = "Impacting Group"; > a.x_label.font_size = 4; > a.title.text = "Relative MTI"; > a.title.font_size = 5; > a.font_size = 4; > a.data_bounds = [1, 6, 1, 6]; > > a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > > endfunction > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From fujimoto2005 at gmail.com Sat Apr 22 07:23:14 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 21 Apr 2017 22:23:14 -0700 (MST) Subject: [Scilab-users] Monotone preserving splin Message-ID: <1492838594106-4036235.post@n3.nabble.com> As for the function "splin", when we set spline_type ="monotone", "splin" returns the slope values preserving data monotonicity. These slope values are the adjusted ones of the original slope values to satisfy some constraints. In order to get the original slope values, we need additional information on the derivatives of end points such as "not_a_knot", "clamped" and "natural" or others. I would like to know what conditions are used when spline_type ="monotone". Best regards -- View this message in context: http://mailinglists.scilab.org/Monotone-preserving-splin-tp4036235.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Sat Apr 22 08:39:09 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sat, 22 Apr 2017 08:39:09 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSBT?= =?utf-8?q?cilab_checkerboard_plot_=28grayplot?= In-Reply-To: Message-ID: <4c7-58fafa80-43-38d80ac0@227383009> Le Vendredi, Avril 21, 2017 14:27 CEST, Ekin Akoglu a ?crit: > Dear Antoine, > > Thank you very much for the resolution. It solves my problem by > producing a graphically consistent plot. However, data-wise, the > colorbar does not match the plot unless I rescale it to (1,32). I want > to be able to infer the approximate value of the data from the colors. > However, thank you. Well, I don't use colorbar. I usually replot a dummy rectangle that contains like this: nc=32://number of colors Rect=[linspace(min(data),max(data),nc);linspace(min(data),max(data),nc)] I plot it in a second axis next to the one with the actual data and than set the ticks labels by hand to display the nc values. Antoine > > Kind regards, > > Ekin > > > On 21/04/17 14:25, Antoine Monmayrant wrote: > > Le Vendredi, Avril 21, 2017 11:19 CEST, Ekin Akoglu a ?crit: > > > >> Dear all, > >> > >> I am producing a checkerboard plot with Scilab and the plot seems > >> erroneously colored. The matrix I plot is attached as well as the > >> scripts to plot and the plot produced by Scilab. > >> > >> The problem is that the data at matrix(1,3) and matrix(1,4) are equal, > >> however, on the plot produced by Scilab it is represented by different > >> colors (plants vs det. feeders and plants vs carnivores on the plot). > >> Let me remind you that the plot is transposed form of the matrix. > >> > >> I would appreciate any help on the matter. > >> > >> Kind regards, > >> > >> Ekin > >> > > > > Hello, > > > > The default behavior for grayplot is to paint a given pixel (a given square) with the color corresponding to its four corners. > > See: "help data_mapping" > > You can either change the data_mapping after calling grayplot or use Matplot. > > However, you'll have to rescale your data so that it ranges from 1 to nc where nc is the number of colors in your color_map. > > See my modified function below. > > Does it solve your problem? > > > > Cheers, > > > > Antoine > > > > function myMTIplot(data) > > > > [nrows ncols] = size(data); > > > > data = [zeros(1,ncols); data; zeros(1,ncols)]; > > data = [zeros(1,nrows+2)' data zeros(1,nrows+2)']; > > > > [nrows ncols] = size(data); > > > > figure1 = scf(); > > a = newaxes(); > > > > colorbar(-1, 1); > > grayplot(1:nrows, 1:ncols, data); > > > > figure1.color_map = jetcolormap(32); > > > > a.y_label.text = "Impacted Group"; > > a.y_label.font_size = 4; > > a.x_label.text = "Impacting Group"; > > a.x_label.font_size = 4; > > a.title.text = "Relative MTI"; > > a.title.font_size = 5; > > a.font_size = 4; > > a.data_bounds = [1, 6, 1, 6]; > > > > a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > > > > > //new version without interpolation > > // we rescale the data so that is goes from 1 to 32 > > dat=(data-min(data))/(max(data)-min(data))*31+1; > > figure2 = scf(); > > a = newaxes(); > > > > colorbar(-1, 1); > > grayplot(1:nrows, 1:ncols, dat); > > e=gce();e.data_mapping="direct";//no interpolation > > > > figure2.color_map = jetcolormap(32); > > > > a.y_label.text = "Impacted Group"; > > a.y_label.font_size = 4; > > a.x_label.text = "Impacting Group"; > > a.x_label.font_size = 4; > > a.title.text = "Relative MTI"; > > a.title.font_size = 5; > > a.font_size = 4; > > a.data_bounds = [1, 6, 1, 6]; > > > > a.x_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > a.y_ticks = tlist(["ticks", "locations", "labels"], (1.5:1:5.5), ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > > > > > > endfunction > > > > _______________________________________________ > > 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 bruno.pincon at univ-lorraine.fr Sat Apr 22 10:03:34 2017 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Sat, 22 Apr 2017 10:03:34 +0200 Subject: [Scilab-users] Monotone preserving splin In-Reply-To: <1492838594106-4036235.post@n3.nabble.com> References: <1492838594106-4036235.post@n3.nabble.com> Message-ID: <256f8c0a-935d-6007-57d9-25ce1c0a2766@univ-lorraine.fr> Le 22/04/2017 ? 07:23, fujimoto2005 a ?crit : > As for the function "splin", when we set spline_type ="monotone", "splin" > returns the slope values preserving data monotonicity. > These slope values are the adjusted ones of the original slope values to > satisfy some constraints. > In order to get the original slope values, we need additional information on > the derivatives of end points such as "not_a_knot", "clamped" and "natural" > or others. > I would like to know what conditions are used when spline_type ="monotone". > > Hello, see : https://en.wikipedia.org/wiki/Monotone_cubic_interpolation hth Bruno From sgougeon at free.fr Sat Apr 22 10:58:31 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 22 Apr 2017 10:58:31 +0200 Subject: [Scilab-users] Scilab checkerboard plot (grayplot) In-Reply-To: References: Message-ID: Hello Ekin, Le 21/04/2017 ? 11:19, Ekin Akoglu a ?crit : > Dear all, > > I am producing a checkerboard plot with Scilab and the plot seems > erroneously colored. The matrix I plot is attached as well as the > scripts to plot and the plot produced by Scilab. > > The problem is that the data at matrix(1,3) and matrix(1,4) are equal, > however, on the plot produced by Scilab it is represented by different > colors (plants vs det. feeders and plants vs carnivores on the plot). > Let me remind you that the plot is transposed form of the matrix. > > I would appreciate any help on the matter. As Antoine wrote in his first answer, Matplot() must be used instead of grayplot(). The following simplified script can be used, yielding the following plot. function myMTIplot(data) // Rescaling data to a given range of indices nc = 32; // number of colors zmin = -1; zmax = 1; data2 = (data - zmin)/(zmax-zmin)*(nc-1) + zmax; // Plotting clf f = gcf(); f.color_map = jetcolormap(nc); Matplot(data2) a = gca(); colorbar(zmin, zmax); a.sub_ticks(1) = 0; xlabel("Impacting Group", "fontsize",4) ylabel("Impacted Group", "fontsize", 4) title("Relative MTI", "fontsize", 5); [nrows, ncols] = size(data); a.font_size = 3; a.font_style = 8; a.x_ticks = tlist(["ticks", "locations", "labels"], 1:ncols, .. ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); a.y_ticks = tlist(["ticks", "locations", "labels"], 1:nrows, .. ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); // endfunction M = csvRead("matrix.csv"); myMTIplot(M) It correctly maps the given data matrix: --> data data = 0. 0.4665757 0.2895315 0.2895315 0.4778269 0. -0.2942464 -0.1630711 -0.1630711 -0.3005833 0. -0.1058069 -0.4451125 0.5548875 -0.0842439 0. 0.0774553 -0.3547458 -0.3547458 0.0636698 0. 0.6032754 0.3743599 0.3743599 -0.3821769 HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cadkpdkopkidkfok.png Type: image/png Size: 17445 bytes Desc: not available URL: From sgougeon at free.fr Sat Apr 22 11:15:16 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 22 Apr 2017 11:15:16 +0200 Subject: [Scilab-users] Scilab checkerboard plot (grayplot) In-Reply-To: References: Message-ID: There was a mistake in the mapping (+zmax instead of +1). And may be about data transposition. The following shows 0 in the bottom row, as the plot you posted: function myMTIplot(data) // Rescaling data to a given range of indices nc = 32; // number of colors zmin = -1; zmax = 1; data2 = (data - zmin)/(zmax-zmin)*(nc-1) + 1; data2 = flipdim(data2',1); // Plotting clf f = gcf(); f.color_map = jetcolormap(nc); Matplot(data2) a = gca(); colorbar(zmin, zmax); xlabel("Impacting Group", "fontsize",4) ylabel("Impacted Group", "fontsize", 4) title("Relative MTI", "fontsize", 5); [nrows, ncols] = size(data); a.sub_ticks(1) = 0; a.font_size = 3; a.font_style = 8; ticksText = tlist(["ticks", "locations", "labels"], 1:ncols, .. ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); a.x_ticks = ticksText; a.y_ticks = ticksText; endfunction data = csvRead("matrix.csv"); myMTIplot(M) --> flipdim(data',1)ans =0.4778269 -0.3005833 -0.0842439 0.0636698 -0.38217690.2895315 -0.1630711 0.5548875 -0.3547458 0.37435990.2895315 -0.1630711 -0.4451125 -0.3547458 0.37435990.4665757 -0.2942464 -0.1058069 0.0774553 0.60327540. 0. 0. 0. 0. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aikplhkfgacflkca.png Type: image/png Size: 16544 bytes Desc: not available URL: From fujimoto2005 at gmail.com Sat Apr 22 11:19:22 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 22 Apr 2017 02:19:22 -0700 (MST) Subject: [Scilab-users] Monotone preserving splin In-Reply-To: <256f8c0a-935d-6007-57d9-25ce1c0a2766@univ-lorraine.fr> References: <1492838594106-4036235.post@n3.nabble.com> <256f8c0a-935d-6007-57d9-25ce1c0a2766@univ-lorraine.fr> Message-ID: <1492852762722-4036240.post@n3.nabble.com> Dear Bruno Wiki "Monotone_cubic_interpolation" explains the Fritsch-Carlson method which uses the finite difference approximations as the derivatives. However, splin seems to use the derivative of interpolant as the original slope values. The interpolant can be determined once we set the additional constraints for the derivatives at x1 and xn. I think splin with "monotone" uses some conditions for them and I want to understand them exactly. Best regards. -- View this message in context: http://mailinglists.scilab.org/Monotone-preserving-splin-tp4036235p4036240.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jaszczuropel at gmail.com Sat Apr 22 13:46:56 2017 From: jaszczuropel at gmail.com (jaszczuropel) Date: Sat, 22 Apr 2017 04:46:56 -0700 (MST) Subject: [Scilab-users] Problem with toolbox instalation - atomsExtract Message-ID: <1492861616224-4036242.post@n3.nabble.com> Hi, I have installed Scilab 6 recently and I got this error while trying to install IPCV toolbox: atomsExtract: The extraction of the archive 'C:\Users\user\AppData\Roaming\Scilab\scilab-6.0.0\atoms\x64\IPCV\IPCV-1.1-win64-bin.zip' has failed. I have tried to find solution given to similar problems described in past but none of them has worked for me. Is there any way to fix this problem? Regards -- View this message in context: http://mailinglists.scilab.org/Problem-with-toolbox-instalation-atomsExtract-tp4036242.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bruno.pincon at univ-lorraine.fr Sat Apr 22 17:32:02 2017 From: bruno.pincon at univ-lorraine.fr (=?UTF-8?Q?Pin=c3=a7on_Bruno?=) Date: Sat, 22 Apr 2017 17:32:02 +0200 Subject: [Scilab-users] Monotone preserving splin In-Reply-To: <1492852762722-4036240.post@n3.nabble.com> References: <1492838594106-4036235.post@n3.nabble.com> <256f8c0a-935d-6007-57d9-25ce1c0a2766@univ-lorraine.fr> <1492852762722-4036240.post@n3.nabble.com> Message-ID: <843c255d-6f2d-26d2-69c0-0ad2e80184a7@univ-lorraine.fr> Le 22/04/2017 ? 11:19, fujimoto2005 a ?crit : > Dear Bruno > > Wiki "Monotone_cubic_interpolation" explains the Fritsch-Carlson method > which uses the finite difference approximations as the derivatives. > However, splin seems to use the derivative of interpolant as the original > slope values. > The interpolant can be determined once we set the additional constraints for > the derivatives at x1 and xn. > I think splin with "monotone" uses some conditions for them and I want to > understand them exactly. > Dear Fujimoto, As far as I remember I simply introduce (long time ago) the pchip.f code (corresponding to the "monotone" option as one additionnal feature for the splin function). In this case (and also in cases "fast" and "fast-periodic") you don't get a cubic spline but a sub-spline which is only one continuously differentiable (s" is discontinuous at the breakpoints). All splines or sub-splines computed by splin uses on each interval [x(i), x(i+1)] the Lagrange-Hermite basis/representation for the underlying cubic polynomial, that is something of the fom : p_i(x) = y(i) H_i(x) + y(i+1) H_{i+1}(x) + d(i) K_i(x) + d(i+1) K_{i+1}(x) and so in each option the splin function computes the slopes d(i). The Fritsch-Carlson method uses (like the fast options) a local finite difference scheme to compute the d(i) but with modifications if the resulting cubic polynomial is not monotone. So it is not based on spline ideas like minimising the L2 norm of the second derivative with additionnal constraints to ensure monotony. hth Bruno From fujimoto2005 at gmail.com Sun Apr 23 06:54:43 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 22 Apr 2017 21:54:43 -0700 (MST) Subject: [Scilab-users] Monotone preserving splin In-Reply-To: <843c255d-6f2d-26d2-69c0-0ad2e80184a7@univ-lorraine.fr> References: <1492838594106-4036235.post@n3.nabble.com> <256f8c0a-935d-6007-57d9-25ce1c0a2766@univ-lorraine.fr> <1492852762722-4036240.post@n3.nabble.com> <843c255d-6f2d-26d2-69c0-0ad2e80184a7@univ-lorraine.fr> Message-ID: <1492923283920-4036244.post@n3.nabble.com> Dear Buruno, I see the situation. Suppose the number of the sub-interbal is n-1 ( that is [x1.x2],[x2,x3],...,[xn-1,xn]). The number of unknown variables of sub-cubic polynomials is 4n-4. When "spline_type" is "not_a_knot","clamped"or "periodic" ,we have 4n-4 constraints as follows. 2n-2 for data matching and continuity. n-2 for the first derivatives and comtinuity at x2,...,xn-1. n-2 for the second derivatives and continuity at x2,...,xn-1. 2 for the derivative values at near the end points which the above "spline_type" gives. When "spline_type" is "monotone", the constaraits are as follows. 2n-2 for data mathing and continuity. 2n-2 for the first deribatives mathing and continuity at xi and xi+1 on sub-interval(i=1,...,n-1). These derivatives are calculated by the finite difference method. Best regards. -- View this message in context: http://mailinglists.scilab.org/Monotone-preserving-splin-tp4036235p4036244.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Sun Apr 23 22:25:17 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 23 Apr 2017 22:25:17 +0200 Subject: [Scilab-users] basic question ? Message-ID: Hi All I'm sorry if my question is "basic", but I've not understood why the following code does not work ... size of i,j,k seems correct Do I miss something? Thanks for your time Paul ############################## mode(0) n = 10; A = rand(n,6); B = zeros((2*n),2); C = B; // goal is to get the value of the 1rst and 4th column in 2 lines i = [1 : (2*n)]'; j = [1 : n]'.*.ones(2,1); // gives [1 1 2 2 3 3 .... n n]' k = ones(n,1).*.[1 4]'; // gives [1 4 1 4 1 4 .... 1 4]' tmp = [i j k] // to visualize the indexes //B(i,1) = A(j,k); // does not work?? C(1,1) = A(1,1); C(2,1) = A(1,4); C A -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Sun Apr 23 22:59:20 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Sun, 23 Apr 2017 13:59:20 -0700 Subject: [Scilab-users] basic question ? In-Reply-To: References: Message-ID: <1492981160.2987.119.camel@wescottdesign.com> This is horrible, but should do what you intend: B(i,1) = A(j + size(A, 1) * (k - 1)); It works because you can address a 2D matrix as a 1D matrix, with A(1) == A(1, 1), A(2) = A(2, 1), A(size(A, 1) + 1) = A(1, 2), etc. On Sun, 2017-04-23 at 22:25 +0200, paul.carrico at free.fr wrote: > Hi All > > I'm sorry if my?question is "basic", but I've not understood why the > following code does not work ... size of i,j,k seems correct > ? > Do I miss something? > ? > Thanks for your time > ? > Paul > > ############################## > mode(0) > > n = 10; > > A = rand(n,6); > B = zeros((2*n),2); C = B; > > // goal is to get the value of the 1rst and 4th column in 2 lines > i = [1 : (2*n)]'; > j = [1 : n]'.*.ones(2,1); // gives [1 1 2 2 3 3 .... n n]' > k = ones(n,1).*.[1 4]';??// gives [1 4 1 4 1 4 .... 1 4]' > > ?tmp = [i j k] // to visualize the indexes > > //B(i,1) = A(j,k); // does not work?? > C(1,1) = A(1,1); > C(2,1) = A(1,4); > C > A > _______________________________________________ > 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 paul.carrico at free.fr Sun Apr 23 23:15:38 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 23 Apr 2017 23:15:38 +0200 Subject: [Scilab-users] basic question ? In-Reply-To: <1492981160.2987.119.camel@wescottdesign.com> References: <1492981160.2987.119.camel@wescottdesign.com> Message-ID: Thanks for your answer I found another way ... not necessarily better than your one and probably more costly :-( Paul ###################################################" n = 10; A = rand(n,6); B = zeros((2*n),2); // goal is to get the value of the 1rst and 4th column i = [1 : n]'; j = [1 : 2 : 2*n]'; k = [2 : 2 : 2*n]'; // tmp = [i j k] i = [1 : n]'; j = [1 : 2 : 2*n]'; k = [2 : 2 : 2*n]'; B(j,1) = A(i,1); B(k,1) = A(i,4); Le 2017-04-23 22:59, Tim Wescott a ?crit : > This is horrible, but should do what you intend: > > B(i,1) = A(j + size(A, 1) * (k - 1)); > > It works because you can address a 2D matrix as a 1D matrix, with A(1) > == A(1, 1), A(2) = A(2, 1), A(size(A, 1) + 1) = A(1, 2), etc. > > On Sun, 2017-04-23 at 22:25 +0200, paul.carrico at free.fr wrote: > >> Hi All >> >> I'm sorry if my question is "basic", but I've not understood why the >> following code does not work ... size of i,j,k seems correct >> >> Do I miss something? >> >> Thanks for your time >> >> Paul >> >> ############################## >> mode(0) >> >> n = 10; >> >> A = rand(n,6); >> B = zeros((2*n),2); C = B; >> >> // goal is to get the value of the 1rst and 4th column in 2 lines >> i = [1 : (2*n)]'; >> j = [1 : n]'.*.ones(2,1); // gives [1 1 2 2 3 3 .... n n]' >> k = ones(n,1).*.[1 4]'; // gives [1 4 1 4 1 4 .... 1 4]' >> >> tmp = [i j k] // to visualize the indexes >> >> //B(i,1) = A(j,k); // does not work?? >> C(1,1) = A(1,1); >> C(2,1) = A(1,4); >> C >> A >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > -- > > Tim Wescott > www.wescottdesign.com [1] > Control & Communications systems, circuit & software design. > Phone: 503.631.7815 > Cell: 503.349.8432 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Links: ------ [1] http://www.wescottdesign.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Apr 23 23:47:06 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 23 Apr 2017 23:47:06 +0200 Subject: [Scilab-users] basic question ? In-Reply-To: References: <1492981160.2987.119.camel@wescottdesign.com> Message-ID: <6dd46a2e-ee53-ff97-fe46-1c3043996b9f@free.fr> Hello, Le 23/04/2017 ? 23:15, paul.carrico at free.fr a ?crit : > Thanks for your answer > I found another way ... not necessarily better than your one and > probably more costly :-( You may do simply: B = A(:, [1 4]).'; B = B(:); B = [B zeros(B)] Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Tue Apr 25 00:16:16 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 24 Apr 2017 15:16:16 -0700 (MST) Subject: [Scilab-users] how to add IPCV help Message-ID: <1493072176771-4036249.post@n3.nabble.com> Hello, want to try IPCV in SciLab 6.0 Don't find a way to include IPCV specific help entries. Thank you for advice Erhy -- View this message in context: http://mailinglists.scilab.org/how-to-add-IPCV-help-tp4036249.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From chinluh at tritytech.com Tue Apr 25 05:52:22 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 25 Apr 2017 11:52:22 +0800 Subject: [Scilab-users] Scilab Computer Vision Module Message-ID: <3ec86127-e034-d7fa-a154-13cafa958f3d@tritytech.com> Hi, It is great to have the new computer vision released on atoms, especially a module which is created by Scilab Enterprises. After so long there are many image processing and computer vision modules in atoms, which have their pros and cons, and this new module finally allows the call of almost all functions (if not all :) ) to the OpenCV 2.4.13 through its gateway function although not all are documented. I believe it will be coming very soon. To make it better I think we could share some of our finding of the "hidden" functions" while waiting for the module update, the following code perform the image inpaint algo: scicv_Init(); S = imread(getSampleImage("blobs.jpg")); // Creating mask to remove the object at 2nd row, 2nd col. This would be easier after the support of the insertion for Mat implemented as stated in help file m1 = uint8(zeros(Mat_rows_get(S),Mat_cols_get(S))); m1(110:200,150:250) = 255; imwrite('mymask.jpg',m1); mask = imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE); S2 = inpaint(S,mask,3,INPAINT_NS); matplot(S2) Regards, Chin Luh -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.marchetto at scilab-enterprises.com Tue Apr 25 10:35:00 2017 From: simon.marchetto at scilab-enterprises.com (simon.marchetto at scilab-enterprises.com) Date: Tue, 25 Apr 2017 10:35:00 +0200 Subject: [Scilab-users] Scilab Computer Vision Module In-Reply-To: <3ec86127-e034-d7fa-a154-13cafa958f3d@tritytech.com> References: <3ec86127-e034-d7fa-a154-13cafa958f3d@tritytech.com> Message-ID: Hello, Thanks very much for your support. I was also very impressed about the new IPCV module, the number and quality of available functions ! Particularly those related to GUI manipulation, that we really missed, in comparison with Matlab. We really appreciate your work. For years we have been wanting to provide and support an image processing toolbox, because this kind of toolboxes is among the most used, at least downloaded, by the Scilab community. Yes indeed there are some image processing toolboxes now, especially based on OpenCV, but no so much, if you compare with the huge number available for Python. For me several (good) toolboxes is definitely better than one at this moment. And they can have all different purposes, and follow different choices in design. About hidden functions in sciCV, they will be more and more documented, version after version. Regards, Simon Marchetto Le 2017-04-25 05:52, Tan Chin Luh a ?crit?: > Hi, > > It is great to have the new computer vision released on atoms, > especially a module which is created by Scilab Enterprises. > > After so long there are many image processing and computer vision > modules in atoms, which have their pros and cons, and this new module > finally allows the call of almost all functions (if not all :) ) to > the OpenCV 2.4.13 through its gateway function although not all are > documented. I believe it will be coming very soon. > To make it better I think we could share some of our finding of the > "hidden" functions" while waiting for the module update, the following > code perform the image inpaint algo: > > scicv_Init(); > > S = imread(getSampleImage("blobs.jpg")); > > // Creating mask to remove the object at 2nd row, 2nd col. This would > be easier after the support of the insertion for Mat implemented as > stated in help file > m1 = uint8(zeros(Mat_rows_get(S),Mat_cols_get(S))); > m1(110:200,150:250) = 255; > imwrite('mymask.jpg',m1); > > mask = imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE); > > S2 = inpaint(S,mask,3,INPAINT_NS); > matplot(S2) > > Regards, > Chin Luh > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Tue Apr 25 13:23:53 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 25 Apr 2017 13:23:53 +0200 (CEST) Subject: [Scilab-users] how to add IPCV help In-Reply-To: <1493072176771-4036249.post@n3.nabble.com> Message-ID: <1183764151.3932108.1493119433519.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, When the module is loaded, its help pages are loaded as well. But then, if the help browser was already opened before loading IPCV, it must be closed and restarted to see IPCV pages. HTH Samuel ----- Mail original ----- Hello, want to try IPCV in SciLab 6.0 Don't find a way to include IPCV specific help entries. Thank you for advice Erhy From W.Schulz at ove.at Tue Apr 25 15:29:35 2017 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Tue, 25 Apr 2017 13:29:35 +0000 Subject: [Scilab-users] Problem with Matrix operation Message-ID: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> Hello, I want to set certain elements of a matrix to 1. Interestingly the following code fills 9 elements with 1. I expected to have only 3 elements (with index 1,1; 2,2 and 3,3) filled with 1. A=zeros(5,3) inx=[1 2 3]; iny=[1 2 3]; A(inx,iny)=1 Is there any way to fill a matrix with 1 where I have the indexes in 2 vectors? Thanks for your help Wolfgang From p.muehlmann at gmail.com Tue Apr 25 15:44:37 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Tue, 25 Apr 2017 15:44:37 +0200 Subject: [Scilab-users] IPCV & sciCV Message-ID: Hi developers, am I to wrong to ask if the aim for IPCV and sciCV is the same? Both toolboxes are quite welcome, but some confusion might occur if both toolboxes are installed. In fact, some functions are already named the same...e.g.: imread, imwrite imread in sciCV can have flags, in IPCV it can not. ...just to mention. I am about to ask, if it wouldn't make sence to combine the efforts, and create only one powerful toolbox enabling openCV functionality to Scilab. but...maybe there are good reasons for not doing so... Best Regards, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Yves.Baudais at insa-rennes.fr Tue Apr 25 15:44:08 2017 From: Jean-Yves.Baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Tue, 25 Apr 2017 15:44:08 +0200 Subject: [Scilab-users] Problem with Matrix operation In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> Message-ID: <9800339e-ac31-20fb-7b30-cff095e0b158@insa-rennes.fr> Hello, Le 25/04/2017 ? 15:29, SCHULZ Wolfgang a ?crit : > Hello, > I want to set certain elements of a matrix to 1. Interestingly the following code fills 9 elements with 1. I expected to have only 3 elements (with index 1,1; 2,2 and 3,3) filled with 1. > > A=zeros(5,3) > inx=[1 2 3]; > iny=[1 2 3]; > A(inx,iny)=1 Using this is for submatrix but what you want is not a submatrix. In your special case A=eyes(5,3) > Is there any way to fill a matrix with 1 where I have the indexes in 2 vectors? IMHO only the for loop works, in general... Jean-Yves From denis.crete at thalesgroup.com Tue Apr 25 16:46:34 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 25 Apr 2017 16:46:34 +0200 Subject: [Scilab-users] Problem with Matrix operation In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> Message-ID: <8F1D40232A0E68409E3FC23A30C32662017456FD4986@THSONEA01CMS04P.one.grp> Hello, This should do the job if values different for a matrix containing only 0's and 1's: inx=[1 2 3]; iny=[1 2 3]; A=sparse([inx;iny]',ones(inx'),[5,3]); full(A) If non-indexed values are not known (and A already exists) then A(inx+size(A,'r')*(iny-1))=1; HTH Denis [@@ THALES GROUP INTERNAL @@] Unit? Mixte de Physique CNRS / THALES 1 Avenue Augustin Fresnel 91767 Palaiseau CEDEx - France Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78 e-mail : denis.crete at thalesgroup.com http://www.trt.thalesgroup.com/ump-cnrs-thales http://www.research.thalesgroup.com -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de SCHULZ Wolfgang Envoy??: mardi 25 avril 2017 15:30 ??: Users mailing list for Scilab Objet?: [Scilab-users] Problem with Matrix operation Hello, I want to set certain elements of a matrix to 1. Interestingly the following code fills 9 elements with 1. I expected to have only 3 elements (with index 1,1; 2,2 and 3,3) filled with 1. A=zeros(5,3) inx=[1 2 3]; iny=[1 2 3]; A(inx,iny)=1 Is there any way to fill a matrix with 1 where I have the indexes in 2 vectors? Thanks for your help Wolfgang _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From erhard.glueck.austria at gmail.com Tue Apr 25 20:25:33 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 25 Apr 2017 11:25:33 -0700 (MST) Subject: [Scilab-users] how to add IPCV help In-Reply-To: <1183764151.3932108.1493119433519.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1493072176771-4036249.post@n3.nabble.com> <1183764151.3932108.1493119433519.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1493144733797-4036257.post@n3.nabble.com> Samuel GOUGEON wrote > Hello, > When the module is loaded, its help pages are loaded as well. But then, if > the help browser was already opened before loading IPCV, it must be closed > and restarted to see IPCV pages. > HTH > Samuel Thank you! Now it works -- View this message in context: http://mailinglists.scilab.org/how-to-add-IPCV-help-tp4036249p4036257.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Apr 26 01:33:50 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 26 Apr 2017 01:33:50 +0200 Subject: [Scilab-users] Problem with Matrix operation In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA7545184C@OVEKBG.ove.at> Message-ID: <98478ca3-2a8c-b980-a489-3e1c381b9546@free.fr> Le 25/04/2017 ? 15:29, SCHULZ Wolfgang a ?crit : > Hello, > I want to set certain elements of a matrix to 1. Interestingly the following code fills 9 elements with 1. I expected to have only 3 elements (with index 1,1; 2,2 and 3,3) filled with 1. > > A=zeros(5,3) > inx=[1 2 3]; > iny=[1 2 3]; > A(inx,iny)=1 > > Is there any way to fill a matrix with 1 where I have the indexes in 2 vectors? A = zeros(5,3) inx= [1 2 3]; iny= [1 2 3]; A(sub2ind(size(A),inx,iny))= 1 --> A(sub2ind(size(A),inx,iny)) = 1A = 1. 0. 0.0. 1. 0.0. 0. 1.0. 0. 0.0. 0. 0. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Wed Apr 26 02:58:39 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 26 Apr 2017 08:58:39 +0800 Subject: [Scilab-users] Scilab Computer Vision Module In-Reply-To: References: <3ec86127-e034-d7fa-a154-13cafa958f3d@tritytech.com> Message-ID: Hi Simon, Thanks for your comments. Just to add, IPCV is modified from SIVP, with extra features. 1-2 functions were taken from IPD and SIP quite some time ago. From my opinion, the common issues of all the module above are : 1. Distributing the binary cross platform, which always give the issue of lib version. 2. Functions from the OPENCV are "link" to Scilab with individual gateway, which lead to the limited functions depending on the developer. 3. Data passing and sharing between Scilab and OpenCV From the look of it, the scicv seems to have solved the first 2 issues, and near to 1k functions in OPENCV seems to have included in the dll, which I believe it break the bottle neck of which others (including me) facing. I wonder was it hand-coded? As for number 3, I believe everyone might have different opinion. Yes you're right, for the moment there should be more modules, as OpenCV functions are being used in different functions to perform a high level task in Scilab, which I believe all developers would have their own way to do so. Eventually I believe once the framework/basic have setup, we could move towards it. Just my 2 cents, sorry if any of my statements sound wrong. Thanks. Regards, Chin Luh On 25/4/2017 4:35 PM, simon.marchetto at scilab-enterprises.com wrote: > Hello, > > Thanks very much for your support. > > I was also very impressed about the new IPCV module, the number and > quality of available functions ! Particularly those related to GUI > manipulation, that we really missed, in comparison with Matlab. > We really appreciate your work. > > For years we have been wanting to provide and support an image > processing toolbox, because this kind of toolboxes is among the most > used, at least downloaded, by the Scilab community. > > Yes indeed there are some image processing toolboxes now, especially > based on OpenCV, but no so much, if you compare with the huge number > available for Python. > For me several (good) toolboxes is definitely better than one at this > moment. And they can have all different purposes, and follow different > choices in design. > > About hidden functions in sciCV, they will be more and more > documented, version after version. > > Regards, > > Simon Marchetto > > > Le 2017-04-25 05:52, Tan Chin Luh a ?crit : >> Hi, >> >> It is great to have the new computer vision released on atoms, >> especially a module which is created by Scilab Enterprises. >> >> After so long there are many image processing and computer vision >> modules in atoms, which have their pros and cons, and this new module >> finally allows the call of almost all functions (if not all :) ) to >> the OpenCV 2.4.13 through its gateway function although not all are >> documented. I believe it will be coming very soon. >> To make it better I think we could share some of our finding of the >> "hidden" functions" while waiting for the module update, the following >> code perform the image inpaint algo: >> >> scicv_Init(); >> >> S = imread(getSampleImage("blobs.jpg")); >> >> // Creating mask to remove the object at 2nd row, 2nd col. This would >> be easier after the support of the insertion for Mat implemented as >> stated in help file >> m1 = uint8(zeros(Mat_rows_get(S),Mat_cols_get(S))); >> m1(110:200,150:250) = 255; >> imwrite('mymask.jpg',m1); >> >> mask = imread('mymask.jpg',CV_LOAD_IMAGE_GRAYSCALE); >> >> S2 = inpaint(S,mask,3,INPAINT_NS); >> matplot(S2) >> >> Regards, >> Chin Luh >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > From chinluh at tritytech.com Wed Apr 26 03:23:14 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 26 Apr 2017 09:23:14 +0800 Subject: [Scilab-users] IPCV & sciCV In-Reply-To: References: Message-ID: Hi Philipp, I believe all the developers (not just image and vision) are working on their topics for weeks, months or even years before the release of a module to public. It is good that we have atoms portal so that we could know who else working on the same fields and exchange ideas from there. As for the aim for the modules, I believe all the modules should have the same ultimate aim: to make a good image processing and computer vision tools for Scilab, and possibly, replace Matlab. :) From my opinion, the crash of the function name are quite common, for example, imshow in sip using scilab graphic, using tcl/tk in sivp, using both in IPCV, and using OpenCV highgui in sciCV. It depends on how the developers want it to be. For the moment, I disable the atomsAutoload for both modules and load it manually whenever I need to avoid this problem. As for the combine effort, what I could say is everything is possible with OpenSource. Someday, somehow, Scilab image processing and computer vision shall be taking over Matlab for this. :) Regards, Chin Luh On 25/4/2017 9:44 PM, Philipp M?hlmann wrote: > Hi developers, > > am I to wrong to ask if the aim for IPCV and sciCV is the same? > > Both toolboxes are quite welcome, but some confusion might occur if > both toolboxes are installed. > > In fact, some functions are already named the same...e.g.: imread, imwrite > > imread in sciCV can have flags, in IPCV it can not. > > ...just to mention. > > I am about to ask, if it wouldn't make sence to combine the efforts, > and create only one powerful toolbox enabling openCV functionality to > Scilab. > but...maybe there are good reasons for not doing so... > > > Best Regards, > Philipp > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Apr 26 09:00:22 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 26 Apr 2017 09:00:22 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBTY2lsYWIgQ29tcHV0ZXIg?= =?utf-8?q?Vision_Module?= In-Reply-To: Message-ID: <3bd2-59004580-11-8bf6430@30835542> > From the look of it, the scicv seems to have solved the first 2 issues, > and near to 1k functions in OPENCV seems to have included in the dll, > which I believe it break the bottle neck of which others (including me) > facing. I wonder was it hand-coded? They might have used SWIG ( http://www.swig.org/ ) or some similar tool to automate the generation of the binding code. Antoine From Christophe.Dang at sidel.com Wed Apr 26 09:51:12 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 26 Apr 2017 07:51:12 +0000 Subject: [Scilab-users] Weird behaviour of two input() in a row Message-ID: Hello all, I'm experiencing some weirdies with the following script (6.0.0, Windows 7) : // ********** A=input("A = "); B=input("B = "); // ********** When I run the script, I can enter the value for A then I get the --> prompt. It seems the script stopped, but if I press the "return" keyboard key, The script seem to resume and ask for B, but I then have to press twice the return key to validate it. Does anyone else get the same behaviour ? Shall I declare a bug? -- 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 chinluh at tritytech.com Wed Apr 26 10:55:01 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 26 Apr 2017 16:55:01 +0800 Subject: [Scilab-users] ?==?utf-8?q? Scilab Computer Vision Module In-Reply-To: <3bd2-59004580-11-8bf6430@30835542> References: <3bd2-59004580-11-8bf6430@30835542> Message-ID: <7dc5c9fb-671a-2ffd-7f1b-a2a1018571bf@tritytech.com> Hi, I am not familiar with SWIG, so I though the binding will still need some hand coding as well. thanks for the link. regards, Chin Luh On 26/4/2017 3:00 PM, Antoine Monmayrant wrote: >> From the look of it, the scicv seems to have solved the first 2 issues, >> and near to 1k functions in OPENCV seems to have included in the dll, >> which I believe it break the bottle neck of which others (including me) >> facing. I wonder was it hand-coded? > They might have used SWIG ( http://www.swig.org/ ) or some similar tool to automate the generation of the binding code. > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From simon.marchetto at scilab-enterprises.com Wed Apr 26 11:37:43 2017 From: simon.marchetto at scilab-enterprises.com (simon.marchetto at scilab-enterprises.com) Date: Wed, 26 Apr 2017 11:37:43 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/IFNjaWxhYiBDb21wdXRlciBW?= =?utf-8?q?ision_Module?= In-Reply-To: <7dc5c9fb-671a-2ffd-7f1b-a2a1018571bf@tritytech.com> References: <3bd2-59004580-11-8bf6430@30835542> <7dc5c9fb-671a-2ffd-7f1b-a2a1018571bf@tritytech.com> Message-ID: <10877b59e1d73ac5cb2399bf49bbd935@scilab-enterprises.com> Hello, Yes indeed we use SWIG. As you said, it needs hand coding. First there is a couple of issues in the OpenCV code for SWIG, it needs some code patching. Then it needs some "cleaning" to get the desired code wrapped. Maybe because of these two issues, OpenCV abandoned SWIG for their Python bindings, and used a custom wrapping method. We couldn't afford to do that. After this, you need to implement to typemaps (SWIG code to convert the OpenCV data types from/to Scilab). All of the work is not finished yet. Simon Le 2017-04-26 10:55, Tan Chin Luh a ?crit?: > Hi, > > I am not familiar with SWIG, so I though the binding will still need > some hand coding as well. thanks for the link. > > regards, > Chin Luh > > > On 26/4/2017 3:00 PM, Antoine Monmayrant wrote: >>> From the look of it, the scicv seems to have solved the first 2 >>> issues, >>> and near to 1k functions in OPENCV seems to have included in the dll, >>> which I believe it break the bottle neck of which others (including >>> me) >>> facing. I wonder was it hand-coded? >> They might have used SWIG ( http://www.swig.org/ ) or some similar >> tool to automate the generation of the binding code. >> >> Antoine >> >> _______________________________________________ >> 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 ekinakoglu at gmail.com Wed Apr 26 13:48:16 2017 From: ekinakoglu at gmail.com (Ekin Akoglu) Date: Wed, 26 Apr 2017 14:48:16 +0300 Subject: [Scilab-users] Scilab checkerboard plot (grayplot) In-Reply-To: References: Message-ID: Dear Samuel, Thank you for your help. This way it works as I wanted it to be. Matplot is the better way to go for my purposes. Thank you again. It is a pity that the data need to be re-scaled before plotting, though. Otherwise, it gives a black plot with Matplot. Best regards, Ekin On 22/04/17 12:15, Samuel Gougeon wrote: > There was a mistake in the mapping (+zmax instead of +1). > And may be about data transposition. The following shows > 0 in the bottom row, as the plot you posted: > > function myMTIplot(data) > > // Rescaling data to a given range of indices > nc = 32; // number of colors > zmin = -1; > zmax = 1; > data2 = (data - zmin)/(zmax-zmin)*(nc-1) + 1; > data2 = flipdim(data2',1); > // Plotting > clf > f = gcf(); > f.color_map = jetcolormap(nc); > Matplot(data2) > a = gca(); > colorbar(zmin, zmax); > > xlabel("Impacting Group", "fontsize",4) > ylabel("Impacted Group", "fontsize", 4) > title("Relative MTI", "fontsize", 5); > > [nrows, ncols] = size(data); > a.sub_ticks(1) = 0; > a.font_size = 3; > a.font_style = 8; > ticksText = tlist(["ticks", "locations", "labels"], 1:ncols, .. > ["Plants", "Bacteria", "Det. Feeders", "Carnivores", "Detritus"]); > a.x_ticks = ticksText; > a.y_ticks = ticksText; > endfunction > > data = csvRead("matrix.csv"); > myMTIplot(M) --> flipdim(data',1)ans =0.4778269 -0.3005833 -0.0842439 > 0.0636698 -0.38217690.2895315 -0.1630711 0.5548875 -0.3547458 > 0.37435990.2895315 -0.1630711 -0.4451125 -0.3547458 0.37435990.4665757 > -0.2942464 -0.1058069 0.0774553 0.60327540. 0. 0. 0. 0. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: aikplhkfgacflkca.png Type: image/png Size: 16544 bytes Desc: not available URL: From shorne at energetiq.com Wed Apr 26 15:30:46 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Wed, 26 Apr 2017 09:30:46 -0400 Subject: [Scilab-users] stripchart? Message-ID: In doing some real-time work I would find a stripchart very useful. I have a process generating (say) 10 values/second, that emits two values (Time,Temperature). This might be an xcos calculation, or a realtime data stream. I would like to plot this data on a "stripchart" - to show only the (say) latest 10 seconds of data, with the plot scrolling to the left - new points added to the right, data falls off the end on the left. Digging through the docs I find no trace of such a creature. Am I missing something obvious, or do we not have this capability in scilab? Thanks, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed Apr 26 15:50:57 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 26 Apr 2017 13:50:57 +0000 Subject: [Scilab-users] {EXT} stripchart? In-Reply-To: References: Message-ID: Hello > De : shorne at energetiq.com > Envoy? : mercredi 26 avril 2017 15:31 > > I would like to plot this data on a "stripchart" - to show only the (say) latest 10 seconds of data, > with the plot scrolling to the left - new points added to the right, data falls off the end on the left. >From what I understand, you could do this by extracting the last lines of the matrix of data and then updating the data property of the polyline with this submatrix, see https://help.scilab.org/docs/6.0.0/en_US/polyline_properties.html but this needs to be tested as there will probably be side effects. 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 antoine.monmayrant at laas.fr Wed Apr 26 15:56:33 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 26 Apr 2017 15:56:33 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyBzdHJp?= =?utf-8?q?pchart=3F?= In-Reply-To: Message-ID: <5bf6-5900a700-75-3ecf2580@156560075> Hi Steve, I don't think stripcharts exist in Scilab. That being said, you can emulate them pretty easily. See below the most simple example of such an emulation. In a more realistic scenario, you could replace my loop by a callback function that updates the plot everytime a new datapoint is measured. Hope it helps, Antoine ////////////////////////////////////////////////////////// npts=100; y=rand(1,100); x=1:npts; h=scf(); h.children.tight_limits="on"; plot(x,y,'k.-'); xlabel('Time') ylabel('Data') e=gce();//handle to the plot //dummy loop to simulate data generation and plotting for i=1:1000 oldxy=e.children.data;//old data newy=rand();//this would be your recently measured Y newx=oldxy($,1)+1;//this would be your recently measured X newxy=[oldxy(2:$,:);[newx,newy]]; e.children.data=newxy;//update data xmin=min(newxy(:,1)); xmax=max(newxy(:,1)); ymin=min(newxy(:,2)); ymax=max(newxy(:,2)); e.parent.data_bounds= [xmin,ymin; xmax,ymax];//rescale plot sleep(50)//wait a bit for a slow scroll end ////////////////////////////////////////////////////////// Le Mercredi, Avril 26, 2017 15:30 CEST, shorne at energetiq.com a ?crit: > > In doing some real-time work I would find a stripchart very useful. > I have a process generating (say) 10 values/second, > that emits two values (Time,Temperature). This might be an xcos > calculation, or a realtime data stream. > > I would like to plot this data on a "stripchart" - to show only the (say) > latest 10 seconds of data, > with the plot scrolling to the left - new points added to the right, data > falls off the end on the left. > > Digging through the docs I find no trace of such a creature. > > Am I missing something obvious, or do we not have this capability in > scilab? > > Thanks, > Steve From antoine.monmayrant at laas.fr Wed Apr 26 16:04:58 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 26 Apr 2017 16:04:58 +0200 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICB7RVhUfSBzdHJpcGNoYXJ0?= =?utf-8?q?=3F?= In-Reply-To: Message-ID: <795a-5900a900-27-33462e80@244234344> Le Mercredi, Avril 26, 2017 15:50 CEST, "Dang Ngoc Chan, Christophe" a ?crit: > Hello > > > De : shorne at energetiq.com > > Envoy? : mercredi 26 avril 2017 15:31 > > > > I would like to plot this data on a "stripchart" - to show only the (say) latest 10 seconds of data, > > with the plot scrolling to the left - new points added to the right, data falls off the end on the left. > > From what I understand, > you could do this by extracting the last lines of the matrix of data > and then updating the data property of the polyline with this submatrix, see > https://help.scilab.org/docs/6.0.0/en_US/polyline_properties.html > but this needs to be tested as there will probably be side effects. I just posted a proposition that use exactly this idea. No side effect, but you have to handle the rescaling of the plot. Antoine > > 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. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From shorne at energetiq.com Wed Apr 26 16:13:19 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Wed, 26 Apr 2017 10:13:19 -0400 Subject: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart? In-Reply-To: <5bf6-5900a700-75-3ecf2580@156560075> References: <5bf6-5900a700-75-3ecf2580@156560075> Message-ID: Antoin,e, thanks. This is essentially what I was looking for. I haven't used Xcos much - but I presume this could be wrapped up to use there? Thanks again - Steve From: "Antoine Monmayrant" To: "Users mailing list for Scilab" Date: 04/26/2017 09:54 AM Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart? Sent by: "users" Hi Steve, I don't think stripcharts exist in Scilab. That being said, you can emulate them pretty easily. See below the most simple example of such an emulation. In a more realistic scenario, you could replace my loop by a callback function that updates the plot everytime a new datapoint is measured. Hope it helps, Antoine ////////////////////////////////////////////////////////// npts=100; y=rand(1,100); x=1:npts; h=scf(); h.children.tight_limits="on"; plot(x,y,'k.-'); xlabel('Time') ylabel('Data') e=gce();//handle to the plot //dummy loop to simulate data generation and plotting for i=1:1000 oldxy=e.children.data;//old data newy=rand();//this would be your recently measured Y newx=oldxy($,1)+1;//this would be your recently measured X newxy=[oldxy(2:$,:);[newx,newy]]; e.children.data=newxy;//update data xmin=min(newxy(:,1)); xmax=max(newxy(:,1)); ymin=min(newxy(:,2)); ymax=max(newxy(:,2)); e.parent.data_bounds= [xmin,ymin; xmax,ymax];//rescale plot sleep(50)//wait a bit for a slow scroll end ////////////////////////////////////////////////////////// Le Mercredi, Avril 26, 2017 15:30 CEST, shorne at energetiq.com a ?crit: > > In doing some real-time work I would find a stripchart very useful. > I have a process generating (say) 10 values/second, > that emits two values (Time,Temperature). This might be an xcos > calculation, or a realtime data stream. > > I would like to plot this data on a "stripchart" - to show only the (say) > latest 10 seconds of data, > with the plot scrolling to the left - new points added to the right, data > falls off the end on the left. > > Digging through the docs I find no trace of such a creature. > > Am I missing something obvious, or do we not have this capability in > scilab? > > Thanks, > Steve _______________________________________________ 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 Wed Apr 26 17:42:27 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 26 Apr 2017 17:42:27 +0200 (CEST) Subject: [Scilab-users] Weird behaviour of two input() in a row In-Reply-To: Message-ID: <802018362.9203421.1493221347128.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >Hello all, > >I'm experiencing some weirdies with the following script (6.0.0, Windows 7) : > >// ********** > >A=input("A = "); > >B=input("B = "); > >// ********** > >When I run the script, I can enter the value for A then I get the --> prompt. >It seems the script stopped, but if I press the "return" keyboard key, >The script seem to resume and ask for B, but I then have to press twice the return key to validate it. > >Does anyone else get the same behaviour ? > >Shall I declare a bug? No. It is already reported 3 times (at least), and already fixed (once, it is enough :) in the 6.0 NB branch. Samuel From sgougeon at free.fr Wed Apr 26 17:52:17 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 26 Apr 2017 17:52:17 +0200 (CEST) Subject: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart? In-Reply-To: <5bf6-5900a700-75-3ecf2580@156560075> Message-ID: <1327960947.9257230.1493221937731.JavaMail.root@zimbra75-e12.priv.proxad.net> ----- Mail original ----- Objet: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart? >//dummy loop to simulate data generation and plotting >for i=1:1000 > oldxy=e.children.data;//old data > > newy=rand();//this would be your recently measured Y > newx=oldxy($,1)+1;//this would be your recently measured X > newxy=[oldxy(2:$,:);[newx,newy]]; > e.children.data=newxy;//update data You can replace all the following > xmin=min(newxy(:,1)); > xmax=max(newxy(:,1)); > ymin=min(newxy(:,2)); > ymax=max(newxy(:,2)); > e.parent.data_bounds= [xmin,ymin; xmax,ymax];//rescale plot with only replot // or: replot tight > sleep(50)//wait a bit for a slow scroll >end and that's it Samuel From Christophe.Dang at sidel.com Wed Apr 26 17:59:51 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 26 Apr 2017 15:59:51 +0000 Subject: [Scilab-users] {EXT} Re: Weird behaviour of two input() in a row In-Reply-To: <802018362.9203421.1493221347128.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <802018362.9203421.1493221347128.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hello, > De : sgougeon at free.fr > Envoy? : mercredi 26 avril 2017 17:42 > >Shall I declare a bug? > > No. It is already reported 3 times (at least), I checked in bugzilla but didn't find. I probably didn't use the right keywords ("input" didn't give accurate answers) > and already fixed (once, it is enough :) in the 6.0 NB branch. OK, I'll check this. Thanks -- 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 florian.blachere at uvsq.fr Sun Apr 30 16:58:54 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Sun, 30 Apr 2017 16:58:54 +0200 Subject: [Scilab-users] Fail to run scilab-6.0.0 binary Message-ID: Hello, With an up to date ArchLinux box, the scilab-6.0.0 binary is failing to run with the following error message: > |Cannot find this look and feel: [GTK look and feel - > com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this > platform /opt/scilab/bin/scilab: line 957: 21013 Segmentation fault > (core dumped) "$SCILABBIN" "$@" | I tested with the nightly builds and I've got the same error message. Do I need some more dependency? If it can help, the scilab compile from source on the same machine is working fine. Thanks by advance, Florian -------------- next part -------------- An HTML attachment was scrubbed... URL: