From payen.pierre at gmail.com Wed Mar 1 08:35:47 2017 From: payen.pierre at gmail.com (PirPyn) Date: Wed, 1 Mar 2017 00:35:47 -0700 (MST) Subject: [Scilab-users] Set up a ATOMS repo. In-Reply-To: <37874310-7540-63c9-56db-25c438673128@free.fr> References: <37874310-7540-63c9-56db-25c438673128@free.fr> Message-ID: <1488353747583-4035641.post@n3.nabble.com> Samuel GOUGEON wrote > Please try the following: > edit("SCI/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci",194) > // It is the line #178 in local numbering > //replace the line #178 > extract_cmd = """" + gzip_path + """" + " -d """ + file_out + """"; > //with > extract_cmd = """" + gzip_path + """" + " -f -d """ + file_out + """"; Done, but : Samuel GOUGEON wrote > //Save the file. Then do: > cd SCI/modules/atoms/macros/atoms_internals/ > predef clear // unprotect libraries to be able to > recompile atomsinternalslib > genlib atomsinternalslib // recompile the sub-library to take the change > into account I don't have root access and the lib are read only for me; Still, i pasted the sci to a local file, then i 'exec' it, so it's overloaded. Samuel GOUGEON wrote > //Then, try to rerun the ATOMS Gui.. Well, even in the command line I get : Scilab 5.5.2 wrote > -->exec('/home/atomsDESCRIPTIONget.sci', -1) > > -->atomsRepositoryList > ans = > > !http://(enterprise-copy-of-atoms-official-repository)/ official ! > > -->exec('/home/atomsDESCRIPTIONget.sci', -1) > > -->atomsRepositoryAdd(['file:///home/atoms-repo']) > OVERLOADED atomsDESCRIPTIONget // I put a mprintf just to be sure the > right file is taken into account > > !--error 10000 > atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION > ('/tmp/SCI_TMP_24966_aBy0jb/.atoms/1_TOOLBOXES.gz') a ?chou?. > at line 182 of function atomsDESCRIPTIONget called by : > at line 142 of function atomsRepositoryAdd called by : > atomsRepositoryAdd(['file:///home/atoms-repo']) > > -->atomsRepositoryAdd(['file:///home/atoms-repo.zip']) > OVERLOADED atomsDESCRIPTIONget > > > !--error 10000 > atomsDESCRIPTIONget : L'extraction du fichier DESCRIPTION > ('/tmp//SCI_TMP_24966_aBy0jb/.atoms/1_TOOLBOXES.gz') a ?chou?. > at line 182 of function atomsDESCRIPTIONget called by : > at line 142 of function atomsRepositoryAdd called by : > atomsRepositoryAdd(['file:///home/cea/pp607946/atoms-repo.zip']) > > -->atomsRepositoryList > ans = > > !http://(enterprise-atoms)/ official ! > ! ! > !file:///home/atoms-repo user ! > ! ! > !file:///home/atoms-repo.zip user ! Strangely, the url were added to the RepositoryList -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Set-up-a-ATOMS-repo-tp4035633p4035641.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From payen.pierre at gmail.com Wed Mar 1 08:58:04 2017 From: payen.pierre at gmail.com (Pierre Payen) Date: Wed, 1 Mar 2017 08:58:04 +0100 Subject: [Scilab-users] Bug with file exchange ? Message-ID: Hi everyone, How can we post on file exchange ? When i try to add something i get this error : Could not create the file set. Please correct the errors below and try again. Although there aren't any errors (see screen-shot in attachment). Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cap.png Type: image/png Size: 53262 bytes Desc: not available URL: From payen.pierre at gmail.com Wed Mar 1 09:02:01 2017 From: payen.pierre at gmail.com (PirPyn) Date: Wed, 1 Mar 2017 01:02:01 -0700 (MST) Subject: [Scilab-users] distinguish between rows and columns In-Reply-To: <1488321320234-4035640.post@n3.nabble.com> References: <1488321320234-4035640.post@n3.nabble.com> Message-ID: <1488355321233-4035643.post@n3.nabble.com> I did not understant well your question. But from the size() help : Scilab wrote > The syntax n = size(x, sel) may be used to specify what dimension to get: > > Set sel to 1 or * > 'r' to get the number of rows. * > Set sel to 2 or * > 'c' to get the number of columns. * > Set sel to m, where m is a positive integer to get the mth dimension. > If m is greater than ndims(x), then size(x,m) returns 1. > Set sel to '*' to get the product of the dimensions. -- View this message in context: http://mailinglists.scilab.org/distinguish-between-rows-and-columns-tp4035640p4035643.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Mar 1 09:32:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 1 Mar 2017 09:32:48 +0100 Subject: [Scilab-users] Bug with file exchange ? In-Reply-To: References: Message-ID: Le 01/03/2017 ? 08:58, Pierre Payen a ?crit : > Hi everyone, > How can we post on file exchange ? When i try to add something i get > this error : > > Could not create the file set. Please correct the errors below and try > again. > > Although there aren't any errors (see screen-shot in attachment). The manual versionning is the last feature very recently added to FE. One-2 months ago, it was only automatic, with a 1 increment (1.0, 2.0, 3.0 etc). May be trying with an integer version ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Wed Mar 1 16:40:41 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 01 Mar 2017 16:40:41 +0100 Subject: [Scilab-users] distinguish between rows and columns In-Reply-To: <1488355321233-4035643.post@n3.nabble.com> References: <1488321320234-4035640.post@n3.nabble.com> <1488355321233-4035643.post@n3.nabble.com> Message-ID: <1488382841.10338.14.camel@scilab-enterprises.com> Hello, Yes exactly Pierre, 'r' means rows and 'c' means columns :) . -- Cl?ment Le mercredi 01 mars 2017 ? 01:02 -0700, PirPyn a ?crit?: > I did not understant well your question. But from the size() help :? > > Scilab wrote > > The syntax n = size(x, sel) may be used to specify what dimension to get: > > > > ????Set sel to 1 or > > * > > ?'r' to get the number of rows. > > * > > ????Set sel to 2 or? > > * > > 'c' to get the number of columns. > > * > > ????Set sel to m, where m is a positive integer to get the mth dimension. > > If m is greater than ndims(x), then size(x,m) returns 1. > > ????Set sel to '*' to get the product of the dimensions. > > > > > > -- > View this message in context: http://mailinglists.scilab.org/distinguish-between-rows-and-columns- > tp4035640p4035643.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 Pablo_F_7 at hotmail.com Wed Mar 1 19:17:05 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Wed, 1 Mar 2017 18:17:05 +0000 Subject: [Scilab-users] Bode of discret time transfer function. In-Reply-To: <0138406e-f821-850c-2e45-0196838e323d@inria.fr> References: , <0138406e-f821-850c-2e45-0196838e323d@inria.fr> Message-ID: Thanks a lot! ________________________________ De: users en nombre de Serge Steer Enviado: s?bado, 25 de febrero de 2017 04:38 p.m. Para: users at lists.scilab.org Asunto: Re: [Scilab-users] Bode of discret time transfer function. Le 25/02/2017 ? 19:17, Pablo Fonovich a ?crit : Hi: This is the first time i work with discrete time transfers functions and Scilab. I want to use bode() for plotting the magnitud and phase response of the system, however, i don't understand how to set the frequencies to normalized values (-pi, pi). This is what i'm doing: s=poly(0,'s') H=(s^(-2400))/(1-0.5*s^(-2400)) S=syslin('d',H) bode(S) i get a warning that frequencies beyond nyquist rate are ignored and the resulting plot is attached. [cid:part1.AF505552.9295B9D5 at inria.fr] In the help, it says that bode parameter could include fmin and fmax in herz, but isn't a discrete system response limited to normalized frequencies? And to transform the normalized frecuency to herz the sample rate must be used, but i don't know how to pass it to the system or something. S=syslin(dt,H) defines a dynamical system sampled. dt beeing the sampling period in second. If you want the frequency uniis be in rd/s add "rad" as last input argument Any hints would be appreciated. Thanks _______________________________________________ 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: ATT00001.png Type: image/png Size: 32789 bytes Desc: ATT00001.png URL: From Pablo_F_7 at hotmail.com Wed Mar 1 19:19:51 2017 From: Pablo_F_7 at hotmail.com (Pablo Fonovich) Date: Wed, 1 Mar 2017 18:19:51 +0000 Subject: [Scilab-users] Bode of discret time transfer function. In-Reply-To: <1488059851.3078.83.camel@wescottdesign.com> References: , <1488059851.3078.83.camel@wescottdesign.com> Message-ID: I was implementing a digital reverberation for a class, and i wanted to show that it was indeed a comb filter.. Thanks all of you! you helped me a lot. ________________________________ De: users en nombre de Tim Wescott Enviado: s?bado, 25 de febrero de 2017 06:57 p.m. Para: Users mailing list for Scilab Asunto: Re: [Scilab-users] Bode of discret time transfer function. Not sure what you're trying to achieve, but if you want a plot of the linear amplitude response on a linear frequency line, use Horner: H = syslin('d', (%z - 0.9) / (%z - 99)); th = %pi * (-1:0.01:1)'; clf; plot2d(th, abs(horner(H, exp(%i * th)))); xgrid(2) On Sat, 2017-02-25 at 18:17 +0000, Pablo Fonovich wrote: > Hi: > This is the first time i work with discrete time transfers functions > and Scilab. > I want to use bode() for plotting the magnitud and phase response of > the system, however, i don't understand how to set the frequencies to > normalized values (-pi, pi). > This is what i'm doing: > > s=poly(0,'s') > H=(s^(-2400))/(1-0.5*s^(-2400)) > S=syslin('d',H) > bode(S) > > i get a warning that frequencies beyond nyquist rate are ignored and > the resulting plot is attached. > > In the help, it says that bode parameter could include fmin and fmax > in herz, but isn't a discrete system response limited to normalized > frequencies? And to transform the normalized frecuency to herz the > sample rate must be used, but i don't know how to pass it to the > system or something. > > Any hints would be appreciated. > Thanks > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users users Info Page - Scilab lists.scilab.org The place to ask (and answer) questions on using Scilab. To see the collection of prior postings to the list, visit the users archives. -- Tim Wescott www.wescottdesign.com Wescott Design Services www.wescottdesign.com Wescott Design Services Located in the foothills of the northern Oregon Cascades, Wescott Design Services is ready to use its proven expertise in systems design ... 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 Info Page - Scilab lists.scilab.org The place to ask (and answer) questions on using Scilab. To see the collection of prior postings to the list, visit the users archives. -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Thu Mar 2 16:02:24 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Thu, 2 Mar 2017 08:02:24 -0700 (MST) Subject: [Scilab-users] labels for 2 y-axes in plot Message-ID: <1488466944223-4035658.post@n3.nabble.com> Hello! Please give me an example for a plot, where each y axis should have an other label. Thank you Erhy My example withot laxes labels*:* clf c1=color("blue"); na1=newaxes(); na1.font_color=c1; plot( koeffXs(1:100),Curse1,style=c1); na1.children(1).children(1).foreground=c1; // second curve c2=color("red"); na2=newaxes(); na2.font_color=c2; plot( koeffXs(1:100), Curse2 ,style=c2); na2.filled="off"; na2.axes_visible(1)="off"; na2.y_location="right"; na2.children(1).children(1).thickness=2;// na2.children(1).children(1).foreground=c2; -- View this message in context: http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From michael.benguigui at activeeon.com Thu Mar 2 16:29:21 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Thu, 2 Mar 2017 16:29:21 +0100 Subject: [Scilab-users] Matlab vs Scilab perf Message-ID: Hi all, As a Scilab user, I am currently fighting to reach Matlab performance..My current scilab program takes 4x more than my matlab's vesion. Here are some instructions requiring some optimizations.. If you have an idea... thanks a lot! All times are cumulative times after the execution (iterations) I used the Matlab and Scilab profilers tooth_psi_angle is a 70000x4 2D matrix of real numbers tool.forces.cutting_forces_teeth_TCS is a 72000x4x3 matrix of real numbers process.fz is a scalar tool.kappa is a scalar if tool_angle(i) < tool.pitch_angle then h_total(i) = process.fz * sin(tooth_psi_angle(i,tooth)) * sin(tool.kappa); => Matlab:<0.01s vs Scilab 4.8s ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) -cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); sin(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) -cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) -sin(tool.kappa)]; // result is a 3x3 matrix => Matlab:0.67s vs Scilab 4s tool.forces.cutting_forces_teeth_TCS(i,tooth,:) = ROT_LCS_TCS*[ft;fr;fa]; => Matlab:0.55s vs Scilab 1.3s Regards Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Mar 2 16:33:57 2017 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 2 Mar 2017 16:33:57 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: Hello, Can you precise your Scilab version ? 5.5.2 ? 6.0.0 ? Or another one... S. Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > Hi all, > As a Scilab user, I am currently fighting to reach Matlab > performance..My current scilab program takes 4x more than my matlab's > vesion. Here are some instructions requiring some optimizations.. If > you have an idea... thanks a lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers > tooth_psi_angle is a 70000x4 2D matrix of real numbers > tool.forces.cutting_forces_teeth_TCS is a 72000x4x3 matrix of real numbers > process.fz is a scalar > tool.kappa is a scalar > > if tool_angle(i) < tool.pitch_angle then > h_total(i) = process.fz * sin(tooth_psi_angle(i,tooth)) * > sin(tool.kappa); > > => Matlab:<0.01s vs Scilab 4.8s > > ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) > -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) > -cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); > sin(tooth_psi_angle(i,tooth)) > -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) > -cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) > -sin(tool.kappa)]; // result is a 3x3 matrix > > => Matlab:0.67s vs Scilab 4s > > tool.forces.cutting_forces_teeth_TCS(i,tooth,:) = ROT_LCS_TCS*[ft;fr;fa]; > > => Matlab:0.55s vs Scilab 1.3s > > Regards > Michael > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.benguigui at activeeon.com Thu Mar 2 16:41:06 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Thu, 2 Mar 2017 16:41:06 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: Sorry .. for sure! (and thank you for your quick answer) Scilab 6.0.0 ++ Michael 2017-03-02 16:33 GMT+01:00 St?phane Mottelet : > Hello, > > Can you precise your Scilab version ? 5.5.2 ? 6.0.0 ? Or another one... > > S. > > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > Hi all, > As a Scilab user, I am currently fighting to reach Matlab performance..My > current scilab program takes 4x more than my matlab's vesion. Here are some > instructions requiring some optimizations.. If you have an idea... thanks a > lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers > tooth_psi_angle is a 70000x4 2D matrix of real numbers > tool.forces.cutting_forces_teeth_TCS is a 72000x4x3 matrix of real numbers > process.fz is a scalar > tool.kappa is a scalar > > if tool_angle(i) < tool.pitch_angle then > h_total(i) = process.fz * sin(tooth_psi_angle(i,tooth)) * > sin(tool.kappa); > > => Matlab:<0.01s vs Scilab 4.8s > > ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) > -cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); > sin(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) > -cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) > -sin(tool.kappa)]; // result is a 3x3 matrix > > => Matlab:0.67s vs Scilab 4s > > tool.forces.cutting_forces_teeth_TCS(i,tooth,:) = ROT_LCS_TCS*[ft;fr;fa]; > > => Matlab:0.55s vs Scilab 1.3s > > Regards > Michael > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > -- > D?partement de G?nie Informatique > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > Universit? de Technologie de Compi?gne - CS 60319 > 60203 Compi?gne cedex > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- 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 sgougeon at free.fr Thu Mar 2 16:48:59 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Mar 2017 16:48:59 +0100 Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <1488466944223-4035658.post@n3.nabble.com> References: <1488466944223-4035658.post@n3.nabble.com> Message-ID: Hello Erhy, Le 02/03/2017 ? 16:02, Erhy a ?crit : > Hello! > Please give me an example for a plot, where each y axis should have an other > label. > Thank you > Erhy You may have a look to both demos demo_gui // => Graphics => 2D and 3D plots => plotyy or plotyyy // Then click on "View code" HTH Samuel From stephane.mottelet at utc.fr Thu Mar 2 16:49:04 2017 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 2 Mar 2017 16:49:04 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: <5d179901-2b28-8e9c-c00f-105dd7def5c1@utc.fr> what is "i" in your example ? Is there a loop somewhere ? Matlab will be obviously better for this kind of explicit loop because it uses JIT compilation. S. Le 02/03/2017 ? 16:41, Michael Benguigui a ?crit : > Sorry .. for sure! (and thank you for your quick answer) > Scilab 6.0.0 > > ++ > Michael > > 2017-03-02 16:33 GMT+01:00 St?phane Mottelet >: > > Hello, > > Can you precise your Scilab version ? 5.5.2 ? 6.0.0 ? Or another > one... > > S. > > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : >> Hi all, >> As a Scilab user, I am currently fighting to reach Matlab >> performance..My current scilab program takes 4x more than my >> matlab's vesion. Here are some instructions requiring some >> optimizations.. If you have an idea... thanks a lot! >> >> All times are cumulative times after the execution (iterations) >> I used the Matlab and Scilab profilers >> tooth_psi_angle is a 70000x4 2D matrix of real numbers >> tool.forces.cutting_forces_teeth_TCS is a 72000x4x3 matrix of >> real numbers >> process.fz is a scalar >> tool.kappa is a scalar >> >> if tool_angle(i) < tool.pitch_angle then >> h_total(i) = process.fz * sin(tooth_psi_angle(i,tooth)) * >> sin(tool.kappa); >> >> => Matlab:<0.01s vs Scilab 4.8s >> >> ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) >> -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) >> -cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); >> sin(tooth_psi_angle(i,tooth)) >> -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) >> -cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) >> -sin(tool.kappa)]; // result is a 3x3 matrix >> >> => Matlab:0.67s vs Scilab 4s >> >> tool.forces.cutting_forces_teeth_TCS(i,tooth,:) = >> ROT_LCS_TCS*[ft;fr;fa]; >> >> => Matlab:0.55s vs Scilab 1.3s >> >> Regards >> Michael >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > -- > D?partement de G?nie Informatique > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > Universit? de Technologie de Compi?gne - CS 60319 > 60203 Compi?gne cedex > > _______________________________________________ users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > -- > 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 -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.benguigui at activeeon.com Thu Mar 2 17:39:54 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Thu, 2 Mar 2017 17:39:54 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: <5d179901-2b28-8e9c-c00f-105dd7def5c1@utc.fr> References: <5d179901-2b28-8e9c-c00f-105dd7def5c1@utc.fr> Message-ID: Yes, in a for loop.. And in some part of code i have nested loops.. Thanks again Stephane for your answer.. ++ Michael 2017-03-02 16:49 GMT+01:00 St?phane Mottelet : > what is "i" in your example ? Is there a loop somewhere ? Matlab will be > obviously better for this kind of explicit loop because it uses JIT > compilation. > > S. > > Le 02/03/2017 ? 16:41, Michael Benguigui a ?crit : > > Sorry .. for sure! (and thank you for your quick answer) > Scilab 6.0.0 > > ++ > Michael > > 2017-03-02 16:33 GMT+01:00 St?phane Mottelet : > >> Hello, >> >> Can you precise your Scilab version ? 5.5.2 ? 6.0.0 ? Or another one... >> >> S. >> >> Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : >> >> Hi all, >> As a Scilab user, I am currently fighting to reach Matlab performance..My >> current scilab program takes 4x more than my matlab's vesion. Here are some >> instructions requiring some optimizations.. If you have an idea... thanks a >> lot! >> >> All times are cumulative times after the execution (iterations) >> I used the Matlab and Scilab profilers >> tooth_psi_angle is a 70000x4 2D matrix of real numbers >> tool.forces.cutting_forces_teeth_TCS is a 72000x4x3 matrix of real >> numbers >> process.fz is a scalar >> tool.kappa is a scalar >> >> if tool_angle(i) < tool.pitch_angle then >> h_total(i) = process.fz * sin(tooth_psi_angle(i,tooth)) * >> sin(tool.kappa); >> >> => Matlab:<0.01s vs Scilab 4.8s >> >> ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) >> -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) >> -cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); >> sin(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) >> -cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) >> -sin(tool.kappa)]; // result is a 3x3 matrix >> >> => Matlab:0.67s vs Scilab 4s >> >> tool.forces.cutting_forces_teeth_TCS(i,tooth,:) = ROT_LCS_TCS*[ft;fr;fa]; >> >> => Matlab:0.55s vs Scilab 1.3s >> >> Regards >> Michael >> >> >> _______________________________________________ >> users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users >> >> -- >> D?partement de G?nie Informatique >> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >> Universit? de Technologie de Compi?gne - CS 60319 >> 60203 Compi?gne cedex >> >> _______________________________________________ users mailing list >> users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users > > -- > 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 listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > -- > D?partement de G?nie Informatique > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > Universit? de Technologie de Compi?gne - CS 60319 > 60203 Compi?gne cedex > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- 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 sgougeon at free.fr Thu Mar 2 18:00:27 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Mar 2017 18:00:27 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > Hi all, > As a Scilab user, I am currently fighting to reach Matlab > performance..My current scilab program takes 4x more than my matlab's > vesion. Here are some instructions requiring some optimizations.. If > you have an idea... thanks a lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers Congratulations for using the new Scilab profiler :) Could you post please the file of results? It is indeed hard to answer without having more information either on a /runnable /part of your code, or about results you got with the profiler. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfabbri at gmail.com Thu Mar 2 19:33:36 2017 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Thu, 2 Mar 2017 15:33:36 -0300 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: Speaking from experience: It is worth mentioning that in many ways performance is not critical for a "lab" language like Scilab or Matlab. It is just an extremely simple language to test concepts and algorithms at a very small scale of granularity. The real crucial factor for Scilab or Matlab is the GUI for exploring data and developing algorithms interactively. Once you have a working solution, you'll fit it inside a bigger and more relevant system by porting promptly to a language like C++ for scalability and speed. Just use Scilab for what its worth, don't obsess with speed, even though it is important. Best, -- Dr Ricardo Fabbri Professor of Computer Engineering GNU/Linux registered user #175401 pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net rfabbri.github.io On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon wrote: > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > Hi all, > As a Scilab user, I am currently fighting to reach Matlab performance..My > current scilab program takes 4x more than my matlab's vesion. Here are some > instructions requiring some optimizations.. If you have an idea... thanks a > lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers > > > Congratulations for using the new Scilab profiler :) > Could you post please the file of results? It is indeed hard to answer > without having more information either on a runnable part of your code, or > about results you got with the profiler. > > Regards > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From lambdasoftware at yahoo.es Thu Mar 2 19:55:52 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Thu, 02 Mar 2017 15:55:52 -0300 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: <1488480952.9565.1.camel@yahoo.es> But professor Ricardo. If it's possible to do the same with python, including the GUI, considering the technical issues about hardware consumption and scalability. So why to use MatLab, SciLAB or even Octave? It's not smarter to do all in python and finish the prototype and the "main project" with almost half of time and effort? -- Amanda Osvaldo On Thu, 2017-03-02 at 15:33 -0300, Ricardo Fabbri wrote: > Speaking from experience: > > It is worth mentioning that in many ways performance is not critical > for a "lab" language like Scilab or Matlab. It is just an extremely > simple language to test concepts and algorithms at a very small scale > of granularity. The real crucial factor for Scilab or Matlab is the > GUI for exploring data and developing algorithms interactively. Once > you have a working solution, you'll fit it inside a bigger and more > relevant > system by porting promptly to a language like C++ for scalability and > speed. > > Just use Scilab for what its worth, don't obsess with speed, even > though it is important. > > Best, > > -- > Dr Ricardo Fabbri > Professor of Computer Engineering > GNU/Linux registered user #175401 > pt.wikipedia.org/wiki/IPRJ > labmacambira.sf.net > rfabbri.github.io > > > On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon > wrote: > > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > > > Hi all, > > As a Scilab user, I am currently fighting to reach Matlab > > performance..My > > current scilab program takes 4x more than my matlab's vesion. Here > > are some > > instructions requiring some optimizations.. If you have an idea... > > thanks a > > lot! > > > > All times are cumulative times after the execution (iterations) > > I used the Matlab and Scilab profilers > > > > > > Congratulations for using the new Scilab profiler :) > > Could you post please the file of results? It is indeed hard to > > answer > > without having more information either on a runnable part of your > > code, or > > about results you got with the profiler. > > > > Regards > > Samuel > > > > > > _______________________________________________ > > 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 shorne at energetiq.com Thu Mar 2 21:14:26 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Thu, 2 Mar 2017 15:14:26 -0500 Subject: [Scilab-users] Matlab vs Scilab perf; calling a fortran routine. In-Reply-To: References: Message-ID: I have done a lot of this kind of thing in scilab and other similar tools. A key point - If the algorithm is naturally vectorizable, there probably won't be much benefit in further optimization. However it it inherently is not vectorizable then the key calculation can be written as a callable fortran (my favorite) subroutine. Use Scilab for the I/O and visualization; write the compute intensive core in fortran. While I'm on the subject, the old Intersci system was a very convenient way to automatically generate the interface routine between scilab and an arbitrary fortran subroutine. There seems not to be recent documentation on doing the same (specifically for fortran). Or am I missing something? I've had to use the "call" interface to use old code. Is there a better way? Thanks - Steve From: Ricardo Fabbri To: Users mailing list for Scilab Date: 03/02/2017 01:30 PM Subject: Re: [Scilab-users] Matlab vs Scilab perf Sent by: "users" Speaking from experience: It is worth mentioning that in many ways performance is not critical for a "lab" language like Scilab or Matlab. It is just an extremely simple language to test concepts and algorithms at a very small scale of granularity. The real crucial factor for Scilab or Matlab is the GUI for exploring data and developing algorithms interactively. Once you have a working solution, you'll fit it inside a bigger and more relevant system by porting promptly to a language like C++ for scalability and speed. Just use Scilab for what its worth, don't obsess with speed, even though it is important. Best, -- Dr Ricardo Fabbri Professor of Computer Engineering GNU/Linux registered user #175401 pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net rfabbri.github.io On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon wrote: > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > Hi all, > As a Scilab user, I am currently fighting to reach Matlab performance..My > current scilab program takes 4x more than my matlab's vesion. Here are some > instructions requiring some optimizations.. If you have an idea... thanks a > lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers > > > Congratulations for using the new Scilab profiler :) > Could you post please the file of results? It is indeed hard to answer > without having more information either on a runnable part of your code, or > about results you got with the profiler. > > Regards > Samuel > > > _______________________________________________ > 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 lambdasoftware at yahoo.es Thu Mar 2 22:03:22 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Thu, 02 Mar 2017 18:03:22 -0300 Subject: [Scilab-users] Matlab vs Scilab perf; calling a fortran routine. In-Reply-To: References: Message-ID: <1488488602.3874.1.camel@yahoo.es> Steve, how you handle with the memory limitations in your system ? For example, how you handle 20 GB of data in a machine with 4 GB of RAM ? -- Amanda Osvaldo On Thu, 2017-03-02 at 15:14 -0500, shorne at energetiq.com wrote: > I have done a lot of this kind of thing in scilab and other similar > tools. ?A key point - If the algorithm is naturally vectorizable, > there probably won't be much benefit in further optimization. > ?However it it inherently is not vectorizable then the key > calculation can be written as a callable fortran (my favorite) > subroutine. ? Use Scilab for the I/O and visualization; write the > compute intensive core in fortran. ? > > > > While I'm on the subject, the old ?Intersci system was a very > convenient way to automatically generate the interface routine > between scilab and an arbitrary fortran subroutine. ?There seems > > not to be recent documentation on doing the same (specifically for > fortran). ?Or am I missing something? ? I've had to use the "call" > interface to use old code. ?Is there a better way? > > > > Thanks -? > > Steve > > > > > > > Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: > It is worth mentioning that in many ways performance is not critical > Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: > It is worth mentioning that in many ways performance is not critical > > > > From: Ricardo Fabbri > > To: Users mailing list for Scilab > > Date: 03/02/2017 01:30 PM > > Subject: Re: [Scilab-users] Matlab vs Scilab perf > > Sent by: "users" > > > > > > > > Speaking from experience: > > > > It is worth mentioning that in many ways performance is not critical > > for a "lab" language like Scilab or Matlab. It is just an extremely > > simple language to test concepts and algorithms at a very small scale > > of granularity. The real crucial factor for Scilab or Matlab is the > > GUI for exploring data and developing algorithms interactively. Once > > you have a working solution, you'll fit it inside a bigger and more > > relevant > > system by porting promptly to a language like C++ for scalability and > speed. > > > > Just use Scilab for what its worth, don't obsess with speed, even > > though it is important. > > > > Best, > > > > -- > > Dr Ricardo Fabbri > > Professor of Computer Engineering > > GNU/Linux registered user #175401 > > pt.wikipedia.org/wiki/IPRJ > > labmacambira.sf.net > > rfabbri.github.io > > > > > > On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon > wrote: > > > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > > > > > Hi all, > > > As a Scilab user, I am currently fighting to reach Matlab > performance..My > > > current scilab program takes 4x more than my matlab's vesion. Here > are some > > > instructions requiring some optimizations.. If you have an idea... > thanks a > > > lot! > > > > > > All times are cumulative times after the execution (iterations) > > > I used the Matlab and Scilab profilers > > > > > > > > > Congratulations for using the new Scilab profiler :) > > > Could you post please the file of results? It is indeed hard to > answer > > > without having more information either on a runnable part of your > code, or > > > about results you got with the profiler. > > > > > > Regards > > > Samuel > > > > > > > > > _______________________________________________ > > > 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 contact at pierre-vuillemin.fr Thu Mar 2 22:12:46 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Thu, 2 Mar 2017 22:12:46 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: <1488480952.9565.1.camel@yahoo.es> References: <1488480952.9565.1.camel@yahoo.es> Message-ID: My 2 cents, I think that the main advantage of Scilab/Octave/Matlab in comparison to other environments is that they gather various tools in a (somewhat) coherent bundle. I think that most users won't need to look for another library to do what they want as the most common features are already in the environment. Python does it too with Scipy, but in some domains (e.g. control theory, simulink), the features offered by python are far behind what can be done in Matlab (and to a lesser extent in Scilab). Besides, Python being a general programming language, some operations feels less natural than with Scilab/Octave/Matlab. For instance, I feel that linear algebra quickly becomes unreadable in Python: A*B*C becoming A.dot(B.dot(C)) or A @ B @ C .... Conversely, Python outshines Scilab/Octave/Matlab in many other areas. Concerning speed, while I agree that this is often not that important, the Julia Language has demonstrated that it is not necessarily unreachable for a "high level language". I guess it mainly relies on the performance of the JIT compiler at some point. I remember reading that Scilab 6 should have a JIT compiler, but I might be mistaken? Also, I am not convinced that Scilab/Octave/Matlab are limited only to prototype small algorithms/projects. The main reason being that a lot of people won't port their codes to a compiled language because it represents way to much work... Pierre Le 02/03/2017 ? 19:55, Amanda Osvaldo a ?crit : > But professor Ricardo. > > If it's possible to do the same with python, including the GUI, > considering the technical issues about hardware consumption and > scalability. So why to use MatLab, SciLAB or even Octave? > > It's not smarter to do all in python and finish the prototype and the > "main project" with almost half of time and effort? > > -- Amanda Osvaldo > > On Thu, 2017-03-02 at 15:33 -0300, Ricardo Fabbri wrote: >> Speaking from experience: >> >> It is worth mentioning that in many ways performance is not critical >> for a "lab" language like Scilab or Matlab. It is just an extremely >> simple language to test concepts and algorithms at a very small scale >> of granularity. The real crucial factor for Scilab or Matlab is the >> GUI for exploring data and developing algorithms interactively. Once >> you have a working solution, you'll fit it inside a bigger and more >> relevant >> system by porting promptly to a language like C++ for scalability and speed. >> >> Just use Scilab for what its worth, don't obsess with speed, even >> though it is important. >> >> Best, >> >> -- >> Dr Ricardo Fabbri >> Professor of Computer Engineering >> GNU/Linux registered user #175401 >> pt.wikipedia.org/wiki/IPRJ >> labmacambira.sf.net >> rfabbri.github.io >> >> >> On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon > wrote: >>> Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : Hi all, As a >>> Scilab user, I am currently fighting to reach Matlab performance..My >>> current scilab program takes 4x more than my matlab's vesion. Here >>> are some instructions requiring some optimizations.. If you have an >>> idea... thanks a lot! All times are cumulative times after the >>> execution (iterations) I used the Matlab and Scilab profilers >>> Congratulations for using the new Scilab profiler :) Could you post >>> please the file of results? It is indeed hard to answer without >>> having more information either on a runnable part of your code, or >>> about results you got with the profiler. Regards Samuel >>> _______________________________________________ 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 lambdasoftware at yahoo.es Thu Mar 2 22:24:32 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Thu, 02 Mar 2017 18:24:32 -0300 Subject: [Scilab-users] About performance Message-ID: <1488489872.3874.3.camel@yahoo.es> Just a note about performance in computing. I read the Intel articles in Intel Developer Zone and frequently they call to think about the limitations in the memory cache and the set of instructions used to do the computation. Even if all the data can be vectorized, it's possible to put all the data and code in the processor cache to avoid them to search it in RAM? I'm really like to take more control of it in my projects. Is about computer engineering I don't know how to handle it. https://software.intel.com/pt-br/articles/how-memory-is-accessed?utm_ca mpaign=Servers- Brazil&utm_source=Facebook&utm_medium=SocialMedia&utm_content=content_4 60 -- Amanda Osvaldo -------------- next part -------------- An HTML attachment was scrubbed... URL: From shorne at energetiq.com Thu Mar 2 22:25:21 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Thu, 2 Mar 2017 16:25:21 -0500 Subject: [Scilab-users] Matlab vs Scilab perf; calling a fortran routine. In-Reply-To: <1488488602.3874.1.camel@yahoo.es> References: <1488488602.3874.1.camel@yahoo.es> Message-ID: I've never had to deal with such large data sets. My first thought would be to use an ssd to improve swap times to the disk. Or add more ram. Or buy a bigger workstation. Is your algorithm parallelizable? Or, of course, just wait -- it all depends on what your real constraints are. From: Amanda Osvaldo To: Users mailing list for Scilab Date: 03/02/2017 04:00 PM Subject: Re: [Scilab-users] Matlab vs Scilab perf; calling a fortran routine. Sent by: "users" Steve, how you handle with the memory limitations in your system ? For example, how you handle 20 GB of data in a machine with 4 GB of RAM ? -- Amanda Osvaldo On Thu, 2017-03-02 at 15:14 -0500, shorne at energetiq.com wrote: I have done a lot of this kind of thing in scilab and other similar tools. A key point - If the algorithm is naturally vectorizable, there probably won't be much benefit in further optimization. However it it inherently is not vectorizable then the key calculation can be written as a callable fortran (my favorite) subroutine. Use Scilab for the I/O and visualization; write the compute intensive core in fortran. While I'm on the subject, the old Intersci system was a very convenient way to automatically generate the interface routine between scilab and an arbitrary fortran subroutine. There seems not to be recent documentation on doing the same (specifically for fortran). Or am I missing something? I've had to use the "call" interface to use old code. Is there a better way? Thanks - Steve Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical From: Ricardo Fabbri To: Users mailing list for Scilab Date: 03/02/2017 01:30 PM Subject: Re: [Scilab-users] Matlab vs Scilab perf Sent by: "users" Speaking from experience: It is worth mentioning that in many ways performance is not critical for a "lab" language like Scilab or Matlab. It is just an extremely simple language to test concepts and algorithms at a very small scale of granularity. The real crucial factor for Scilab or Matlab is the GUI for exploring data and developing algorithms interactively. Once you have a working solution, you'll fit it inside a bigger and more relevant system by porting promptly to a language like C++ for scalability and speed. Just use Scilab for what its worth, don't obsess with speed, even though it is important. Best, -- Dr Ricardo Fabbri Professor of Computer Engineering GNU/Linux registered user #175401 pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net rfabbri.github.io On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon wrote: > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > Hi all, > As a Scilab user, I am currently fighting to reach Matlab performance..My > current scilab program takes 4x more than my matlab's vesion. Here are some > instructions requiring some optimizations.. If you have an idea... thanks a > lot! > > All times are cumulative times after the execution (iterations) > I used the Matlab and Scilab profilers > > > Congratulations for using the new Scilab profiler :) > Could you post please the file of results? It is indeed hard to answer > without having more information either on a runnable part of your code, or > about results you got with the profiler. > > Regards > Samuel > > > _______________________________________________ > 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 _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Thu Mar 2 22:44:08 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Thu, 2 Mar 2017 14:44:08 -0700 (MST) Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: References: <1488466944223-4035658.post@n3.nabble.com> Message-ID: <1488491048135-4035674.post@n3.nabble.com> I'm a step forward. Only the colors of the labels and of the X-axis should to be adapted. Please send me an URL of your suggested help pages. The code now is: clf c1=color("blue"); na1=newaxes(); na1.font_color=c1; plot( koeffXs(1:$-1),FnormchangedXRSDif(1:$-1),style=c1); na1.children(1).children(1).foreground=c1; xtitle("", "multiplier", "deviation") // second curve c2=color("red"); na2=newaxes(); na2.font_color=c2; plot( koeffXs(1:$-1), DifDeriv ,style=c2); na2.filled="off"; na2.axes_visible(1)="off"; na2.y_location="right"; na2.children(1).children(1).thickness=2;// na2.children(1).children(1).foreground=c2; xtitle("", "", "corrective") -- View this message in context: http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035674.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Mar 2 23:19:53 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Mar 2017 23:19:53 +0100 Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <1488491048135-4035674.post@n3.nabble.com> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> Message-ID: <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> Le 02/03/2017 ? 22:44, Erhy a ?crit : > I'm a step forward. > Only the colors of the labels and of the X-axis should to be adapted. You get the handle of the parent axes. If it is the current axes, just do: ax = gca(); Then the property for the X label is: ax.x_label.font_foreground = color("red"); https://help.scilab.org/docs/6.0.0/en_US/axes_properties.html https://help.scilab.org/docs/6.0.0/en_US/color.html What do you mean by "the X-axis" ? If you try to change the color *only of *-- say -- the x ticks, leaving y ticks unchanged, this is not possible, unless overlaying a fake identical axes or axis and playing with both. If you try to have colored labels only for the x axis: same answer. This can also be performed by setting by hand colored LaTeXed labels. But in this case (manual setting), labels and related ticks will become fixed : they will no longer be recalculated while resizing the figure (unless implementing a dedicated gcf().resizefcn=".." callback (see help figure_properties)). HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Mar 2 23:23:46 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 2 Mar 2017 23:23:46 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: Message-ID: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> Hello Ricardo, Le 02/03/2017 ? 19:33, Ricardo Fabbri a ?crit : > Speaking from experience: > > It is worth mentioning that in many ways performance is not critical > for a "lab" language like Scilab or Matlab. It is just an extremely > simple language to test concepts and algorithms at a very small scale > of granularity. The real crucial factor for Scilab or Matlab is the > GUI for exploring data and developing algorithms interactively. Once > you have a working solution, you'll fit it inside a bigger and more > relevant > system by porting promptly to a language like C++ for scalability and speed. > > Just use Scilab for what its worth, don't obsess with speed, even > though it is important. I agree: Matlab, Scilab, Octave, IDL, GDL.. Yorick etc were and are still first made for prototyping, not for speed. This is why they were back to interpreted -- and so slower -- languages. But they should not have any handicapping snail instructions for common frequently used ones like scf(). Loosing time gained with an easy language avoiding to declare each object type and to compile and link the whole thing each time that we change a semicolon in the code... would be meaningless. So yes, i definitely agree: it is a matter or ergonomic for GUIs but also and first for the language (regular namings, rational order of arguments, etc) that make it easy to learn and use. This is somewhat why i never really got inside python (and sciPy). I felt its syntax not straightforward to learn, even for simple things. Same thing for R. And it's always the same feeling when i try to compare results from these various languages -- including javascript --, for instance to extend Scilab or debug it, seeing usages or conventions the most used elsewhere. Each time, it is quite harder for me to find and understand the relevant syntax with Python and R, while for instance i find javascript more intuitive. This is why i don't know much about Python. When Pierre writes "Python outshines Scilab/Octave/Matlab in many other areas.", i would be interested to know more about that. I agree with you, Pierre, about the whole environment. This is why, on this aspect, we could have a specific discussion about which modules -- with which components -- should rather compose "Scilab core", and which features could be distributed rather on ATOMS. I am not convinced that the current "Scilab core" composition is optimal. IMO, it is quite unbalanced by historical or particular influences. As a conclusion, i think that introducing non-optimal syntaxes or duplicates etc in the language hurts much more than introducing a quite slow algorithm. Simply because the algorithm can be changed later without breaking anything, while introducing badly designed syntaxes or usages is much harder to manage afterwards, and impedes much more learning, using and maintaining the language. Best regards Samuel From stephane.mottelet at utc.fr Fri Mar 3 00:08:45 2017 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 3 Mar 2017 00:08:45 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> References: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> Message-ID: <9e5ca90d-862a-228a-dd16-0a540d42fafb@utc.fr> Le 02/03/2017 ? 23:23, Samuel Gougeon a ?crit : > [...] > > As a conclusion, i think that introducing non-optimal syntaxes or > duplicates etc in the language hurts much more than introducing a > quite slow algorithm. Simply because the algorithm can be changed > later without breaking anything, while introducing badly designed > syntaxes or usages is much harder to manage afterwards, and impedes > much more learning, using and maintaining the language. You are *so* right Samuel... S. > > Best regards > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rfabbri at gmail.com Fri Mar 3 01:20:44 2017 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Thu, 2 Mar 2017 21:20:44 -0300 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: <9e5ca90d-862a-228a-dd16-0a540d42fafb@utc.fr> References: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> <9e5ca90d-862a-228a-dd16-0a540d42fafb@utc.fr> Message-ID: +1 for the fact that Python is much less simple than Scilab, period. It has a scalability and general-purpose language niche, but to begin with, it is too strongly typed for a lab language. And Python interactive data exporation GUI is not as strong yet AFAIK. -- Dr Ricardo Fabbri Professor of Computer Engineering GNU/Linux registered user #175401 pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net rfabbri.github.io On Thu, Mar 2, 2017 at 8:08 PM, St?phane Mottelet wrote: > > > Le 02/03/2017 ? 23:23, Samuel Gougeon a ?crit : >> >> [...] >> >> As a conclusion, i think that introducing non-optimal syntaxes or >> duplicates etc in the language hurts much more than introducing a quite slow >> algorithm. Simply because the algorithm can be changed later without >> breaking anything, while introducing badly designed syntaxes or usages is >> much harder to manage afterwards, and impedes much more learning, using and >> maintaining the language. > > You are *so* right Samuel... > > S. > >> >> Best regards >> Samuel >> >> _______________________________________________ >> 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 Christophe.Dang at sidel.com Fri Mar 3 09:57:27 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 3 Mar 2017 08:57:27 +0000 Subject: [Scilab-users] Matlab vs Scilab perf Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Michael Benguigui > Envoy? : jeudi 2 mars 2017 17:40 > > ROT_LCS_TCS =[-cos(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*sin(tooth_psi_angle(i,tooth)) - > cos(tool.kappa)*sin(tooth_psi_angle(i,tooth)); sin(tooth_psi_angle(i,tooth)) -sin(tool.kappa)*cos(tooth_psi_angle(i,tooth)) - > cos(tool.kappa)*cos(tooth_psi_angle(i,tooth)); 0 cos(tool.kappa) -sin(tool.kappa)]; > > Yes, in a for loop.. And in some part of code i have nested loops.. You can optimize this expression in several manners: 1. Avoid the loops. Scilab computes on vectors, so instead of for i =1:n; foo(i) = sin(tooth_psi_angle(i, tooth)); end better use foo = sin(tooth_psi_angle(:, tooth)); 2. Compute only once. cos(tooth_psi_angle(i, tooth)), sin(tooth_psi_angle(i, tooth)), sin(tool.kappa) and cos(tool.kappa) are computed 3 times. Better use intermediate variables and factorization, e.g. considering tooth_psi_angle(:, tooth) is a line vector ctpa = cos(tooth_psi_angle(:, tooth)); stpa = sin(tooth_psi_angle(:, tooth)); stk = sin(tool.kappa); ctk = cos(tool.kappa); sumtk = stk + ctk; lineofones = ones(tooth_psi_angle(:, tooth)); ROT_LCS_TCS = [ctpa - stpa*sumtk ; stpa - ctpa*sumtk ; (ctk - stk)*lineofones]; You then get a 3*n matrix (n = number of angle values). You might even try ROT_LCS_TCS = [ [ctpa ; stpa] - sumtk*[stpa ; ctpa] ; (ctk - stk)*lineofones]; and see if it is better. 3. To be more helpful, we need to know the whole code. HTH Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Christophe.Dang at sidel.com Fri Mar 3 10:03:13 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 3 Mar 2017 09:03:13 +0000 Subject: [Scilab-users] {EXT} Re: Matlab vs Scilab perf In-Reply-To: References: Message-ID: Hello again, > De : De la part de Dang Ngoc Chan, Christophe > Envoy? : vendredi 3 mars 2017 09:57 > > considering tooth_psi_angle(:, tooth) is a line vector Mmmm, quite a silly assertion (-: tooth_psi_angle(:, tooth) is necessarily a column vector, you just have to use the apostrophe tooth_psi_angle(:, tooth)' to change it to a line vector. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From michael.benguigui at activeeon.com Fri Mar 3 12:03:56 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Fri, 3 Mar 2017 12:03:56 +0100 Subject: [Scilab-users] {EXT} Re: Matlab vs Scilab perf In-Reply-To: References: Message-ID: Many thanks Christophe Michael 2017-03-03 10:03 GMT+01:00 Dang Ngoc Chan, Christophe < Christophe.Dang at sidel.com>: > Hello again, > > > De : De la part de Dang Ngoc Chan, Christophe > > Envoy? : vendredi 3 mars 2017 09:57 > > > > considering tooth_psi_angle(:, tooth) is a line vector > > Mmmm, quite a silly assertion (-: > > tooth_psi_angle(:, tooth) is necessarily a column vector, > you just have to use the apostrophe > tooth_psi_angle(:, tooth)' > to change it to a line vector. > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error), > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- 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 j.s.strom at hslmg.de Fri Mar 3 13:09:14 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 03 Mar 2017 13:09:14 +0100 Subject: [Scilab-users] Reading numericaldata from txt file containing headlines Message-ID: <58B95CEA.3060909@hslmg.de> Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2 4 2 5 2. 6 2 7 2 Last line empty What can I do to read only the numbers from a text file like Header 1 First line of text file Header 2 1 2.12 2.12 3.2 3 2 4 2 5 2. 6 2 7 2 Last line empty where the data start in the 5th line? Regards, Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From lambdasoftware at yahoo.es Fri Mar 3 13:18:33 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Fri, 03 Mar 2017 09:18:33 -0300 Subject: [Scilab-users] Matlab vs Scilab perf; calling a fortran routine. In-Reply-To: References: <1488488602.3874.1.camel@yahoo.es> Message-ID: <1488543513.4597.1.camel@yahoo.es> Hi Steve. In fact, this is an issue that seems to require more detail.My 20GB of data its server's logs with weak correlation with each other.So I can process a few MB at time without any penalty. It takes about 1 hour in a notebook with a very simple memory optimization to reduce the disk access. However, I think in this debate we are forgetting about each kind of data requires a type of treatment. Process 20GB or even 1 TB of data with very low correlation can be very easy.However, process the same amount of data with high correlation, like a particle accelerator data or some financial data, and it can be a hell without an appropriate framework and hardware. I think we should talk about the "ecosystem", not only about vectorization or algorithms. -- Amanda Osvaldo On Thu, 2017-03-02 at 16:25 -0500, shorne at energetiq.com wrote: > I've never had to deal with such large data sets. ? My first thought > would be to use an ssd to improve swap times to the disk. ?Or add > more ram. > > Or buy a bigger workstation. ? Is your algorithm parallelizable? ? > Or, of course, just wait -- it all depends on what your real > constraints are. > > > > ? > > > > > > > Amanda Osvaldo ---03/02/2017 04:00:03 PM---Steve, how you handle with > the memory limitations in your system ? For example, how you handle > 20 GB > Amanda Osvaldo ---03/02/2017 04:00:03 PM---Steve, how you handle with > the memory limitations in your system ? For example, how you handle > 20 GB > > > > From: Amanda Osvaldo > > To: Users mailing list for Scilab > > Date: 03/02/2017 04:00 PM > > Subject: Re: [Scilab-users] Matlab vs Scilab perf; calling a > fortran routine. > > Sent by: "users" > > > > > > > > Steve, how you handle with the memory limitations in your system ? > > > > For example, how you handle 20 GB of data in a machine with 4 GB of > RAM ? > > > > -- Amanda Osvaldo > > > > > > On Thu, 2017-03-02 at 15:14 -0500, shorne at energetiq.com wrote: > > > I have done a lot of this kind of thing in scilab and other similar > tools. ?A key point - If the algorithm is naturally vectorizable, > there probably won't be much benefit in further optimization. > ?However it it inherently is not vectorizable then the key > calculation can be written as a callable fortran (my favorite) > subroutine. ? Use Scilab for the I/O and visualization; write the > compute intensive core in fortran. ? > > > > While I'm on the subject, the old ?Intersci system was a very > convenient way to automatically generate the interface routine > between scilab and an arbitrary fortran subroutine. ?There seems > > not to be recent documentation on doing the same (specifically for > fortran). ?Or am I missing something? ? I've had to use the "call" > interface to use old code. ?Is there a better way? > > > > Thanks -? > > Steve > Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: > It is worth mentioning that in many ways performance is not critical > > Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: > It is worth mentioning that in many ways performance is not critical > > > > From: Ricardo Fabbri > > To: Users mailing list for Scilab > > Date: 03/02/2017 01:30 PM > > Subject: Re: [Scilab-users] Matlab vs Scilab perf > > Sent by: "users" > > > > > > > > Speaking from experience: > > > > It is worth mentioning that in many ways performance is not critical > > for a "lab" language like Scilab or Matlab. It is just an extremely > > simple language to test concepts and algorithms at a very small scale > > of granularity. The real crucial factor for Scilab or Matlab is the > > GUI for exploring data and developing algorithms interactively. Once > > you have a working solution, you'll fit it inside a bigger and more > > relevant > > system by porting promptly to a language like C++ for scalability and > speed. > > > > Just use Scilab for what its worth, don't obsess with speed, even > > though it is important. > > > > Best, > > > > -- > > Dr Ricardo Fabbri > > Professor of Computer Engineering > > GNU/Linux registered user #175401 > > pt.wikipedia.org/wiki/IPRJ > > labmacambira.sf.net > > rfabbri.github.io > > > > > > On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon > wrote: > > > Le 02/03/2017 ? 16:29, Michael Benguigui a ?crit : > > > > > > Hi all, > > > As a Scilab user, I am currently fighting to reach Matlab > performance..My > > > current scilab program takes 4x more than my matlab's vesion. Here > are some > > > instructions requiring some optimizations.. If you have an idea... > thanks a > > > lot! > > > > > > All times are cumulative times after the execution (iterations) > > > I used the Matlab and Scilab profilers > > > > > > > > > Congratulations for using the new Scilab profiler :) > > > Could you post please the file of results? It is indeed hard to > answer > > > without having more information either on a runnable part of your > code, or > > > about results you got with the profiler. > > > > > > Regards > > > Samuel > > > > > > > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 martini_edu at yahoo.com.br Fri Mar 3 13:38:46 2017 From: martini_edu at yahoo.com.br (Eduardo Martini) Date: Fri, 3 Mar 2017 12:38:46 +0000 (UTC) Subject: [Scilab-users] Compiling Scilab with MPI References: <2051723970.270540.1488544726836.ref@mail.yahoo.com> Message-ID: <2051723970.270540.1488544726836@mail.yahoo.com> Hello you all Hope someone can help me, I am trying to compile scilab 5.5.2 from source in order to use MPI to get a simulation to run in parallel. I downloaded the 5.5.2 version and its Compilation prerequirements from?https://www.scilab.org/development/ml?. I extracted both into a folder and performed a ./configure with no errors at all ? (I skipped the --with-mpi in the first try, just to keep it simple) But when I tried to compile with "make" after a while I get a error "Found dependency from scilab-cli-bin to libstdc++ foundMakefile:2092: recipe for target 'check-libstdcpp-dep' failedmake[1]: *** [check-libstdcpp-dep] Error 2make[1]: Leaving directory '/home/emartini/Downloads/scilab-5.5.2'Makefile:1541: recipe for target 'all-recursive' failedmake: *** [all-recursive] Error 1" I have no clue what to do about it, (and clearly adding MPI didn't help neither...) .Can someone help me out on this one?! ? Thanks a lot in advance!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.log Type: text/x-log Size: 35353 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log Type: text/x-log Size: 33757 bytes Desc: not available URL: From lambdasoftware at yahoo.es Fri Mar 3 13:42:25 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Fri, 03 Mar 2017 09:42:25 -0300 Subject: [Scilab-users] Reading numericaldata from txt file containing headlines In-Reply-To: <58B95CEA.3060909@hslmg.de> References: <58B95CEA.3060909@hslmg.de> Message-ID: <1488544945.4597.4.camel@yahoo.es> Hi, if your data it's tabular, in another words, you can open it in Excel or Libre Office Calc like you whant to do. You should be able to read in the same way with csvRead, however you need to adjust the parameters Something like: [M, comments] = csvRead('myfile.txt',?' ', [], [], [], [], [], 5); Note that ' ' need to be the same separator in your text file.May be it can be a TAB (the key in keyboard) or a simple space, you need try or open your file and check it. And the 5 value it's to ignore the first 5 lines. https://help.scilab.org/docs/6.0.0/en_US/csvRead.html Is that what you are looking for ? -- Amanda Osvaldo On Fri, 2017-03-03 at 13:09 +0100, Jens Simon Strom wrote: > ????Hi,? > > ????with > > ????x=read(file,-1,2) > > ????I can read the data from a text file containing e. g.? > > ???? > > ????1? 2.12?????? First line of text file > > ????2.12?? 3.2 > > ????3 2 > > ????4? 2 > > ????5 2. > > ????6 ??? 2 > > ????7 2? > > ??????????????? Last line empty > > ???? > > ????What can I do to read only the numbers from a text file like > > ???? > > ????Header 1???? First line of text file > > ????Header 2 > > ???? > > ???? > > ????1 2.12 > > ????2.12 3.2 > > ????3 2 > > ????4 2 > > ????5 2. > > ????6 2 > > ????7 2 > > ??????????????? Last line empty?????????????? > ???? > > ???? > > ????where the data start in the 5th line? > > ???? > > ????Regards, Jens > > ???? > > ?? > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From martini_edu at yahoo.com.br Fri Mar 3 13:42:55 2017 From: martini_edu at yahoo.com.br (Eduardo Martini) Date: Fri, 3 Mar 2017 12:42:55 +0000 (UTC) Subject: [Scilab-users] Compiling Scilab with MPI In-Reply-To: <2051723970.270540.1488544726836@mail.yahoo.com> References: <2051723970.270540.1488544726836.ref@mail.yahoo.com> <2051723970.270540.1488544726836@mail.yahoo.com> Message-ID: <792864942.282549.1488544975872@mail.yahoo.com> Hello you all Hope someone can help me, I am trying to compile scilab 5.5.2 from source in order to use MPI to get a simulation to run in parallel. I downloaded the 5.5.2 version and its Compilation prerequirements from?https://www.scilab.org/development/ml?. I extracted both into a folder and performed a ./configure with no errors at all ? (I skipped the --with-mpi in the first try, just to keep it simple) But when I tried to compile with "make" after a while I get a error "Found dependency from scilab-cli-bin to libstdc++ foundMakefile:2092: recipe for target 'check-libstdcpp-dep' failedmake[1]: *** [check-libstdcpp-dep] Error 2make[1]: Leaving directory '/home/emartini/Downloads/scilab-5.5.2'Makefile:1541: recipe for target 'all-recursive' failedmake: *** [all-recursive] Error 1" I have no clue what to do about it, (and clearly adding MPI didn't help neither...) .Can someone help me out on this one?! ? Thanks a lot in advance!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.log Type: text/x-log Size: 35353 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: make.log Type: text/x-log Size: 33757 bytes Desc: not available URL: From martini_edu at yahoo.com.br Fri Mar 3 13:45:45 2017 From: martini_edu at yahoo.com.br (Eduardo Martini) Date: Fri, 3 Mar 2017 12:45:45 +0000 (UTC) Subject: [Scilab-users] Compiling Scilab with MPI In-Reply-To: <792864942.282549.1488544975872@mail.yahoo.com> References: <2051723970.270540.1488544726836.ref@mail.yahoo.com> <2051723970.270540.1488544726836@mail.yahoo.com> <792864942.282549.1488544975872@mail.yahoo.com> Message-ID: <1635241301.294716.1488545146006@mail.yahoo.com> Hello you all Hope someone can help me, I am trying to compile scilab 5.5.2 from source in order to use MPI to get a simulation to run in parallel. I downloaded the 5.5.2 version and its Compilation prerequirements from?https://www.scilab.org/development/ml?. I extracted both into a folder and performed a ./configure with no errors at all ? (I skipped the --with-mpi in the first try, just to keep it simple) But when I tried to compile with "make" after a while I get a error "Found dependency from scilab-cli-bin to libstdc++ foundMakefile:2092: recipe for target 'check-libstdcpp-dep' failedmake[1]: *** [check-libstdcpp-dep] Error 2make[1]: Leaving directory '/home/emartini/Downloads/scilab-5.5.2'Makefile:1541: recipe for target 'all-recursive' failedmake: *** [all-recursive] Error 1" I have no clue what to do about it, (and clearly adding MPI didn't help neither...) .Can someone help me out on this one?! ? Thanks a lot in advance!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddslamdunk at gmail.com Fri Mar 3 14:04:32 2017 From: ddslamdunk at gmail.com (Daniele Tonelli) Date: Fri, 3 Mar 2017 08:04:32 -0500 Subject: [Scilab-users] graphics set Message-ID: Dears, I send to You a link with some modificacion that I need. https://drive.google.com/open?id=0B7VoAHxstpPcU0JfT1dDNkdJZ0k Also I need to save a excel file, however the way it shows the data is in only one column and I need to separate the results in four columns as shown in Scilab. Is there an option that allow to re-write the file because I get the following message? *"File "resultsCatenaria.xls" already exists or directory write access denied."* Thank You very much, *Daniele* PS: Has anyone a mathematic model of cable with linear loads and nodal forces? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: catenaria.sce Type: application/octet-stream Size: 5751 bytes Desc: not available URL: From lambdasoftware at yahoo.es Fri Mar 3 14:15:04 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Fri, 3 Mar 2017 06:15:04 -0700 (MST) Subject: [Scilab-users] Compiling Scilab with MPI In-Reply-To: <2051723970.270540.1488544726836@mail.yahoo.com> References: <2051723970.270540.1488544726836@mail.yahoo.com> Message-ID: <1488546904671-4035691.post@n3.nabble.com> Hi Eduardo, I don't know if I can help you. However, I need to ask.Are you using an updated operation system ?What Linux are you using ? Did you like to try with SciLAB 6 ? I can send the scripts to install the dependencies for a Linux Debian.-- Amanda Osvaldo -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Compiling-Scilab-with-MPI-tp4035686p4035691.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.benguigui at activeeon.com Fri Mar 3 14:40:38 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Fri, 3 Mar 2017 14:40:38 +0100 Subject: [Scilab-users] Scilab 6.0 + starting a new jvm + evstr('1+1; ') => crash Message-ID: Hi all, As a Scilab user, i am facing difficulties during the Scilab 6 adaptation of my project. I did my best to isolate the pb. This code works with Scilab 5.5. At some point of my code, I have: >pair = jinvoke(deployer,'deployOrLookup'); >evstr('1+1');// crash! >// or >// deff('[x]=myplus(y,z)','x=y+z') // crash! Important points: - The common point of evstr and deff is it calls the scilab compiler. - deployOrLookup() calls a java method using jinvoke(), which creates a java Process (Process process = pb.start(); ) that executes another java class (cmd like java -Djava.security.policy=xxx -Dlog4j.configuration=xx -Drmi.port=xxx myClass). - If the jvm already exists, deployOrLookup() does not create it again, but just registers it.. Results: -Executing this code the first time, deployOrLookup() correctly runs a new jvm executing myClass.. and ... at the first evstr() or deff() call, Scilab 6.0 close with "Scilab 6.0.0 (GUI) a cess? de fonctionner .. un probl?me a fait que le programme a cess? de fonctionner correctement. Windows va fermer ce programme et vous indiquer si une solution est disponible." - Executing this code a 2nd time, deployOrLookup() directly registers the running JVM and executes fine any evstr() or deff() call. - If I disable the java Process execution (by putting in comment //Process process = pb.start(); ), evstr() or deff() can be executed without crashing Scilab. Many thanks to the Scilab community Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Fri Mar 3 15:20:05 2017 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Fri, 3 Mar 2017 11:20:05 -0300 Subject: [Scilab-users] Bug in input statement Message-ID: An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Fri Mar 3 16:24:26 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 03 Mar 2017 16:24:26 +0100 Subject: [Scilab-users] Reading numericaldata from txt file containing headlines In-Reply-To: <1488544945.4597.4.camel@yahoo.es> References: <58B95CEA.3060909@hslmg.de> <1488544945.4597.4.camel@yahoo.es> Message-ID: <58B98AAA.7030500@hslmg.de> Thanks Amanda, that helps. In the meantime I have found an alternate way by editing the text file: Move the leading text lines to the end of the data colums. Append a hint after the first data line that there is information below. Use x=read(file,r,c) where r and c define the row and colum number of the numerical data. That works even for my chaotic data format wherein different numbers of blanks and tabs in each line separate the data. Regards, Jens ------------------------------------------------------------------------------------------------------------------------------------------------------- Am 03.03.2017 13:42, schrieb Amanda Osvaldo: > Hi, > > if your data it's tabular, in another words, you can open it in Excel > or Libre Office Calc like you whant to do. > > You should be able to read in the same way with csvRead, however you > need to adjust the parameters > > Something like: > > [M,comments] =csvRead('myfile.txt',' ',[],[],[],[],[],5); > > Note that ' ' need to be the same separator in your text file. > *May be* it can be a TAB (the key in keyboard) or a simple space, you need try or open your file and check it. > > And the 5 value it's to ignore the first 5 lines. > > https://help.scilab.org/docs/6.0.0/en_US/csvRead.html > Is that what you are looking for ? > > -- Amanda Osvaldo > > On Fri, 2017-03-03 at 13:09 +0100, Jens Simon Strom wrote: >> Hi, >> with >> x=read(file,-1,2) >> I can read the data from a text file containing e. g. >> >> 1 2.12 First line of text file >> 2.12 3.2 >> 3 2 >> 4 2 >> 5 2. >> 6 2 >> 7 2 >> Last line empty >> >> What can I do to read only the numbers from a text file like >> >> Header 1 First line of text file >> Header 2 >> >> >> 1 2.12 >> 2.12 3.2 >> 3 2 >> 4 2 >> 5 2. >> 6 2 >> 7 2 >> Last line empty >> >> where the data start in the 5th line? >> >> Regards, Jens >> >> _______________________________________________ >> 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 Fri Mar 3 20:20:21 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 3 Mar 2017 20:20:21 +0100 Subject: [Scilab-users] Scilab 6.0 + starting a new jvm + evstr('1+1; ') => crash In-Reply-To: References: Message-ID: <07fdf28d-32da-441d-181f-63d44c7ae2a5@free.fr> Hello Michael, Again, it is hard or even impossible to help or/and debug without having any true complete (and if possible minimal) way to run an actual code and reproduce the issue. Le 03/03/2017 ? 14:40, Michael Benguigui a ?crit : > Hi all, > As a Scilab user, i am facing difficulties during the Scilab > 6 adaptation of my project. I did my best to isolate the pb. This code > works with Scilab 5.5. At some point of my code, I have: > > >pair = jinvoke(deployer,'deployOrLookup'); > >evstr('1+1');// crash! > >// or > >// deff('[x]=myplus(y,z)','x=y+z') // crash! > > Important points: > - The common point of evstr and deff is it calls the scilab compiler. > - deployOrLookup() calls a java method using jinvoke(), which creates > a java Process (Process process = pb.start(); ) that executes another > java class > (cmd like java -Djava.security.policy=xxx -Dlog4j.configuration=xx > -Drmi.port=xxx myClass). > - If the jvm already exists, deployOrLookup() does not create it > again, but just registers it.. Either you can provide this code, or you provide an equivalent public one with which you get the same issue, in a way we can copy/paste it in the console with all the required context (so lines of codes without any leading prompts -->). Otherwise, nothing prevents thinking that the issue is possibly in the private code or in the private context instead of in Scilab itself. By the way, if your prompt was really ">" instead of "-->", you were not at the top level, and something else could be wrong out of jinvoke, evstr or deff) For my part, i do not get any crash running jimport java.lang.System; jimport java.awt.Color; jimport java.lang.String; // Non-static methods jinvoke("Hello World !!", "length"); evstr('1+1');// crash! deff('[x]=myplus(y,z)','x=y+z') as coming from the first example of the jinvoke() help page. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Mar 3 21:06:54 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 3 Mar 2017 21:06:54 +0100 Subject: [Scilab-users] Once and for all curing input() : a good target for Scilab 6.0.1 <== Re: Bug in input statement In-Reply-To: References: Message-ID: <59e53dd7-0287-b69c-1595-1f148abed8f6@free.fr> Hello Osvaldo, Yes, there are awful sticky bugs on input(). Despite it is a "basic" function, it has never ever worked in a completely right way. It is a quite nasty situation for a high level language to have such a pitfall on basics. IMO, curing it once and for all should be in the top-10 priorities for Scilab 6.0.1. Let's have a look to input() behavior versus Scilab's versions: *4.0 - 4.1.2:* -->mprintf("head of line"); mprintf(" without ending newline"); head of line without ending newline -->mprintf("head of line"); s=input("Message: ","s") head of lineMessage: *-->*myAnswer // no way to forget that we are prompted.. :/ s = myAnswer *5.1.0, 5.2.0, 5.3.0:* -->mprintf("head of line"); mprintf(" without ending newline"); head of line without ending newline // this blank line is displayed only from Scilab 5.3.0 on -->mprintf("head of line"); s=input("Message: ","s") head of line // why this newline? Message:myAnswer // eaten space after ":" when prompting s = myAnswer *5.4.0, 5.5.0 - 5.5.2:* -->mprintf("head of line"); mprintf(" without ending newline"); head of line without ending newline -->mprintf("head of line"); s=input("Message: ","s") head of line // but still: why this appended newline? Message: myAnswer// now the space is correctly displayed when prompting s = myAnswer *6.0.0*: the worst, as you described it and as it is already reported in Bugzilla. http://bugzilla.scilab.org/14376 http://bugzilla.scilab.org/14424 I did not find any workaround.. Same issue with mscanf(): http://bugzilla.scilab.org/14998 Any idea for a workaround? Regards Samuel Le 03/03/2017 ? 15:20, Osvaldo Sergio Farhat de Carvalho a ?crit : > Hello, > I was trying some simple programs that use the input statement on > Scilab 6.0.0, and I got unexpected behaviour. Here is a test: > n = input("n = ") > while n > 0 > n = input("n = ") > end > printf("\nThanks") > > Here is the result of this program on Scilab 6.0.0 console with input > 1, 2, 3, 4 and 0: > > n = > 1 > > n = > --> 2 > n = > 3 > > n = > 4 > > n = > 0 > > > Thanks > 2+2 > ans = > > 4. > > Compare this with the output on Scilab 5.5.2 console for the same input: > > n = 1 > n = 2 > n = 3 > n = 4 > n = 0 > > Thanks > > This is much more what one should expect from this litle program. > Remark that on 6.0.0 console > 1) There is a disturbing new line after printing the input statement > message > 2) There is a spurious apearance of the console prompt "-->" after the > first execution of input statement > 3) The console prompt "-->" does not appear after the end of program > execution. > > I am using Scilab on a Windows 10 system. > > Thanks for your attention. > Osvaldo > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Fri Mar 3 21:58:26 2017 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 3 Mar 2017 21:58:26 +0100 Subject: [Scilab-users] Reading numericaldata from txt file containing headlines In-Reply-To: <58B95CEA.3060909@hslmg.de> References: <58B95CEA.3060909@hslmg.de> Message-ID: You can proceed as follow without any change in your file: u=mopen("myfile","r"); header=mgetl(u,4) data=mfscanf(-1,u,"%f %f\n") Le 03/03/2017 ? 13:09, Jens Simon Strom a ?crit : > Hi, > with > x=read(file,-1,2) > I can read the data from a text file containing e. g. > > 1 2.12 First line of text file > 2.12 3.2 > 3 2 > 4 2 > 5 2. > 6 2 > 7 2 > Last line empty > > What can I do to read only the numbers from a text file like > > Header 1 First line of text file > Header 2 > > > 1 2.12 > 2.12 3.2 > 3 2 > 4 2 > 5 2. > 6 2 > 7 2 > Last line empty > > where the data start in the 5th line? > > Regards, Jens > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Sat Mar 4 08:44:15 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sat, 04 Mar 2017 08:44:15 +0100 Subject: [Scilab-users] Reading numericaldata from txt file containing headlines In-Reply-To: References: <58B95CEA.3060909@hslmg.de> Message-ID: <58BA704F.8000609@hslmg.de> Thanks Serge, That seems to be the most convenient solution to me. Regards, Jens ----------------------------------------------------------------------------------- Am 03.03.2017 21:58, schrieb Serge Steer: > You can proceed as follow without any change in your file: > > u=mopen("myfile","r"); > header=mgetl(u,4) > > data=mfscanf(-1,u,"%f %f\n") > > Le 03/03/2017 ? 13:09, Jens Simon Strom a ?crit : >> Hi, >> with >> x=read(file,-1,2) >> I can read the data from a text file containing e. g. >> >> 1 2.12 First line of text file >> 2.12 3.2 >> 3 2 >> 4 2 >> 5 2. >> 6 2 >> 7 2 >> Last line empty >> >> What can I do to read only the numbers from a text file like >> >> Header 1 First line of text file >> Header 2 >> >> >> 1 2.12 >> 2.12 3.2 >> 3 2 >> 4 2 >> 5 2. >> 6 2 >> 7 2 >> Last line empty >> >> where the data start in the 5th line? >> >> Regards, Jens >> >> >> >> _______________________________________________ >> 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 contact at pierre-vuillemin.fr Sat Mar 4 12:27:18 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Sat, 4 Mar 2017 12:27:18 +0100 Subject: [Scilab-users] Arguments of functions in Scilab Message-ID: <1971c8b0-6ccc-fd90-f630-e8301e13a52b@pierre-vuillemin.fr> Hi all, I'm a bit confused by functions in Scilab and specifically the way they handle their arguments. For instance, in the following code deff('g(x)','disp(x)'); g; // produces an error saying x is not defined x = 1; g; // call the function g and displays x... leads to two questions, * the function g is called each time, shouldn't it be only displayed? * the second call 'works' and display x, even if the argument of the function has not been provided. I've read the page concerning scoping of variables in Scilab, but shouldn't it says that the function was expecting 1 argument? This feels a bit unsafe to me, I'm wondering what is the reason behind this choice? Best regards, Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Sat Mar 4 13:24:51 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Sat, 4 Mar 2017 13:24:51 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> References: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> Message-ID: Concerning my assertion that Python outshines Scilab & co in many other areas, * being a general purpose language, I feel that Python has a broader range of application. For instance, for creating a web-app, Scilab would certainly not be my first choice, while Python is commonly used for that purpose. * Python enables to write object-oriented code and has some features from functional programming that are quite nice. While Matlab and Octave have some "solid" OO features (at least, its enough for what I'm doing with it), Scilab is lacking with respect to this point. For functional programming, all other environment are far behind what Python has to offer. For instance I find that expressions as stripped_list = [line.strip() for line in line_list if line != ""] are really elegant and readable. More generally, manipulating lists in python is made really easy. I really enjoy lists in Scilab. They feel more coherent to me than cells in Matlab, but I wish they had more python-like features. * I feel that interfacing with other languages is easier with Python than with Scilab/Matlab/Octave. * Packages, modules and namespaces enable to create very clear structures. Besides, I could not agree more with you concerning bad syntaxes/redundancy. Having a coherent environment is important. A step towards this goal may be to update and complete the code convention for Scilab in a similar fashion to Python PEP ? Regards, Pierre Le 02/03/2017 ? 23:23, Samuel Gougeon a ?crit : > Hello Ricardo, > > Le 02/03/2017 ? 19:33, Ricardo Fabbri a ?crit : >> Speaking from experience: >> >> It is worth mentioning that in many ways performance is not critical >> for a "lab" language like Scilab or Matlab. It is just an extremely >> simple language to test concepts and algorithms at a very small scale >> of granularity. The real crucial factor for Scilab or Matlab is the >> GUI for exploring data and developing algorithms interactively. Once >> you have a working solution, you'll fit it inside a bigger and more >> relevant >> system by porting promptly to a language like C++ for scalability and >> speed. >> >> Just use Scilab for what its worth, don't obsess with speed, even >> though it is important. > > I agree: Matlab, Scilab, Octave, IDL, GDL.. Yorick etc were and are > still first made for prototyping, not for speed. This is why they were > back to interpreted -- and so slower -- languages. > But they should not have any handicapping snail instructions for > common frequently used ones like scf(). Loosing time gained with an > easy language avoiding to declare each object type and to compile and > link the whole thing each time that we change a semicolon in the > code... would be meaningless. > > So yes, i definitely agree: it is a matter or ergonomic for GUIs but > also and first for the language (regular namings, rational order of > arguments, etc) that make it easy to learn and use. This is somewhat > why i never really got inside python (and sciPy). I felt its syntax > not straightforward to learn, even for simple things. Same thing for > R. And it's always the same feeling when i try to compare results from > these various languages -- including javascript --, for instance to > extend Scilab or debug it, seeing usages or conventions the most used > elsewhere. Each time, it is quite harder for me to find and understand > the relevant syntax with Python and R, while for instance i find > javascript more intuitive. > This is why i don't know much about Python. When Pierre writes "Python > outshines Scilab/Octave/Matlab in many other areas.", i would be > interested to know more about that. > > I agree with you, Pierre, about the whole environment. This is why, on > this aspect, we could have a specific discussion about which modules > -- with which components -- should rather compose "Scilab core", and > which features could be distributed rather on ATOMS. I am not > convinced that the current "Scilab core" composition is optimal. IMO, > it is quite unbalanced by historical or particular influences. > > As a conclusion, i think that introducing non-optimal syntaxes or > duplicates etc in the language hurts much more than introducing a > quite slow algorithm. Simply because the algorithm can be changed > later without breaking anything, while introducing badly designed > syntaxes or usages is much harder to manage afterwards, and impedes > much more learning, using and maintaining the language. > > 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 al_exquemelin at yahoo.com Sat Mar 4 15:00:48 2017 From: al_exquemelin at yahoo.com (Viktor Goryainov) Date: Sat, 4 Mar 2017 17:00:48 +0300 Subject: [Scilab-users] Setting ticks_format In-Reply-To: References: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> Message-ID: Hello! Using the GUIbuilder package I created a graphic window for my application and added a pair of axes to it, like this: handles.ax_screen= newaxes(); handles.ax_screen.margins = [ 0 0 0 0]; handles.ax_screen.auto_margins = 'on'; handles.ax_screen.ticks_format = ["%.3e","%.3e"]; handles.ax_screen.axes_bounds = [0.45,0.0355556,0.527451,0.7911111]; The help page states that "for example ticks_format="%.2e" will print ticks positions in using scientific notation with two decimals". But if I try to plot something, say, X = -10:0.1:10; plot(X, X.^5); then the max value at the y axis will still read 100000, not 1e5. So, what am I doing wrong? Best regards, Viktor From lambdasoftware at yahoo.es Sat Mar 4 22:01:10 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Sat, 04 Mar 2017 18:01:10 -0300 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: <78a30563-7847-c66d-5e17-76635cf97e73@free.fr> Message-ID: <1488661270.3831.2.camel@yahoo.es> Do you propose a reform in SciLAB community ? :-O? -- Amanda Osvaldo On Sat, 2017-03-04 at 13:24 +0100, Pierre Vuillemin wrote: > ????Concerning my assertion that Python outshines Scilab & co in > ??????many other areas, > > ???? > ??????being a general purpose language, I feel that Python has a > ????????broader range of application. For instance, for creating a > ????????web-app, Scilab would certainly not be my first choice, while > ????????Python is commonly used for that purpose.? > > ?????? > ??????Python enables to write object-oriented code and has some > ????????features from functional programming that are quite nice. > While > ????????Matlab and Octave have some "solid" OO features (at least, > its > ????????enough for what I'm doing with it), Scilab is lacking with > ????????respect to this point. For functional programming, all other > ????????environment are far behind what Python has to offer. For > ????????instance I find that expressions as? > > ?????? > ???? > ???? > ?????? > ????????stripped_list = [line.strip() for line in line_list if line > != ""] > > ?????? > ???? > ????are really elegant and readable. More generally, > ??????manipulating lists in python is made really easy. > > ??????I really enjoy lists in Scilab. They feel more coherent to me > than > ??????cells in Matlab, but I wish they had more python-like features. > > ???? > ???? > ??????I feel that interfacing with other languages is easier with > ????????Python than with Scilab/Matlab/Octave. > ??????Packages, modules and namespaces enable to create very clear > ????????structures. > ???? > ????Besides, I could not agree more with you concerning bad > ??????syntaxes/redundancy. Having a coherent environment is > important. > > ????A step towards this goal may be to update and complete the code > ????????convention for Scilab in a similar fashion to Python PEP? > > ???? > > ????Regards, > > ???? > > ????Pierre > > ???? > > ????Le 02/03/2017 ? 23:23, Samuel Gougeon a > ???????crit?: > > ???? > > ???? > > Hello Ricardo, > > ?????? > > > > ?????? > > > > ??????Le 02/03/2017 ? 19:33, Ricardo Fabbri a ?crit : > > ?????? > > > > ?????? > > > Speaking from experience: > > > ???????? > > > > > > ???????? > > > > > > ????????It is worth mentioning that in many ways performance is > > > not > > > ????????critical > > > ???????? > > > > > > ????????for a "lab" language like Scilab or Matlab. It is just an > > > ????????extremely > > > ???????? > > > > > > ????????simple language to test concepts and algorithms at a very > > > small > > > ????????scale > > > ???????? > > > > > > ????????of granularity. The real crucial factor for Scilab or > > > Matlab is > > > ????????the > > > ???????? > > > > > > ????????GUI for exploring data and developing algorithms > > > interactively. > > > ????????Once > > > ???????? > > > > > > ????????you have a working solution, you'll fit it inside a > > > bigger and > > > ????????more > > > ???????? > > > > > > ????????relevant > > > ???????? > > > > > > ????????system by porting promptly to a language like C++ for > > > ????????scalability and speed. > > > ???????? > > > > > > ???????? > > > > > > ????????Just use Scilab for what its worth, don't obsess with > > > speed, > > > ????????even > > > ???????? > > > > > > ????????though it is important. > > > ???????? > > > > > > ?????? > > > > ?????? > > > > ??????I agree: Matlab, Scilab, Octave, IDL, GDL.. Yorick etc were > > and > > ??????are still first made for prototyping, not for speed. This is > > why > > ??????they were back to interpreted -- and so slower -- languages. > > ?????? > > > > ??????But they should not have any handicapping snail instructions > > for > > ??????common frequently used ones like scf(). Loosing time gained > > with > > ??????an easy language avoiding to declare each object type and to > > ??????compile and link the whole thing each time that we change a > > ??????semicolon in the code... would be meaningless. > > ?????? > > > > ?????? > > > > ??????So yes, i definitely agree: it is a matter or ergonomic for > > GUIs > > ??????but also and first for the language (regular namings, > > rational > > ??????order of arguments, etc) that make it easy to learn and use. > > This > > ??????is somewhat why i never really got inside python (and sciPy). > > I > > ??????felt its syntax not straightforward to learn, even for simple > > ??????things. Same thing for R. And it's always the same feeling > > when i > > ??????try to compare results from these various languages -- > > including > > ??????javascript --, for instance to extend Scilab or debug it, > > seeing > > ??????usages or conventions the most used elsewhere. Each time, it > > is > > ??????quite harder for me to find and understand the relevant > > syntax > > ??????with Python and R, while for instance i find javascript more > > ??????intuitive. > > ?????? > > > > ??????This is why i don't know much about Python. When Pierre > > writes > > ??????"Python outshines Scilab/Octave/Matlab in many other areas.", > > i > > ??????would be interested to know more about that. > > ?????? > > > > ?????? > > > > ??????I agree with you, Pierre, about the whole environment. This > > is > > ??????why, on this aspect, we could have a specific discussion > > about > > ??????which modules -- with which components -- should rather > > compose > > ??????"Scilab core", and which features could be distributed rather > > on > > ??????ATOMS. I am not convinced that the current "Scilab core" > > ??????composition is optimal. IMO, it is quite unbalanced by > > historical > > ??????or particular influences. > > ?????? > > > > ?????? > > > > ??????As a conclusion, i think that introducing non-optimal > > syntaxes or > > ??????duplicates etc in the language hurts much more than > > introducing a > > ??????quite slow algorithm. Simply because the algorithm can be > > changed > > ??????later without breaking anything, while introducing badly > > designed > > ??????syntaxes or usages is much harder to manage afterwards, and > > ??????impedes much more learning, using and maintaining the > > language. > > ?????? > > > > ?????? > > > > ??????Best regards > > ?????? > > > > ??????Samuel > > ?????? > > > > ?????? > > > > ??????_______________________________________________ > > ?????? > > > > ??????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: -------------- next part -------------- A non-text attachment was scrubbed... Name: face-surprise.png Type: image/png Size: 1603 bytes Desc: not available URL: From sgougeon at free.fr Sun Mar 5 16:06:03 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 5 Mar 2017 16:06:03 +0100 Subject: [Scilab-users] Arguments of functions in Scilab In-Reply-To: <1971c8b0-6ccc-fd90-f630-e8301e13a52b@pierre-vuillemin.fr> References: <1971c8b0-6ccc-fd90-f630-e8301e13a52b@pierre-vuillemin.fr> Message-ID: <902d3764-86ee-0546-ff7d-2e0516b95d74@free.fr> Hello Pierre, I am answering in the thread: Le 04/03/2017 ? 12:27, Pierre Vuillemin a ?crit : > > Hi all, > > I'm a bit confused by functions in Scilab and specifically the way > they handle their arguments. For instance, in the following code > > deff('g(x)','disp(x)'); > g; // produces an error saying x is not defined > x = 1; > g; // call the function g and displays x... > > leads to two questions, > > * the function g is called each time, shouldn't it be only displayed? > I agree with you: since g is written without (empty) (), considering it as the function handle instead of a function call would be more consistent, as when we write: d = g // to set an alias of g. > * the second call 'works' and display x, even if the argument of the > function has not been provided. I've read the page concerning > scoping of variables > > in Scilab, but shouldn't it says that the function was expecting 1 > argument? > > This feels a bit unsafe to me, I'm wondering what is the reason behind > this choice? > The Scilab kernel protests only when /more /than the maximal number of expected input or output arguments are provided, /never less/: --> g(2,4) Wrong number of input arguments. --> b = g(2) Wrong number of output arguments. This means that, /by default, all input and output arguments are optional/. I think this is an handy assumption. It lets the developper managing arguments checking and setting /addition/ constraints on arguments in a single function definition Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Mar 5 16:15:35 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 5 Mar 2017 16:15:35 +0100 Subject: [Scilab-users] Arguments of functions in Scilab In-Reply-To: <902d3764-86ee-0546-ff7d-2e0516b95d74@free.fr> References: <1971c8b0-6ccc-fd90-f630-e8301e13a52b@pierre-vuillemin.fr> <902d3764-86ee-0546-ff7d-2e0516b95d74@free.fr> Message-ID: <5826fa57-a891-a208-f1d8-d800eac572dd@free.fr> Le 05/03/2017 ? 16:06, Samuel Gougeon a ?crit : > > Le 04/03/2017 ? 12:27, Pierre Vuillemin a ?crit : >> >> Hi all, >> >> I'm a bit confused by functions in Scilab and specifically the way >> they handle their arguments. For instance, in the following code >> >> deff('g(x)','disp(x)'); >> g; // produces an error saying x is not defined >> x = 1; >> g; // call the function g and displays x... >> >> leads to two questions, >> >> * the function g is called each time, shouldn't it be only displayed? >> > > I agree with you: since g is written without (empty) (), considering > it as the function handle instead of a function call would be more > consistent, as when we write: d = g // to set an alias of g. Hmm, actually, such a change would prevent handy calls like --> help Having to enter --> help() would be definitely less handy. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun Mar 5 16:40:32 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 5 Mar 2017 16:40:32 +0100 Subject: [Scilab-users] graphics set In-Reply-To: References: Message-ID: <1a49aa16-e81a-5277-03df-f802c28c8583@free.fr> Hello, Le 03/03/2017 ? 14:04, Daniele Tonelli a ?crit : > Dears, > > I send to You a link with some modificacion that I need. > > https://drive.google.com/open?id=0B7VoAHxstpPcU0JfT1dDNkdJZ0k > 1) see .tight_limits(1) in https://help.scilab.org/docs/6.0.0/en_US/axes_properties.html 2) and 3) see for instance https://help.scilab.org/docs/6.0.0/en_US/datatipCreate.html and https://help.scilab.org/docs/6.0.0/en_US/polyline_properties.html with say .datatip_display_mode="mouseclick" or ="mouseover" (since Scilab 6.0) 4) see .line_style, .thickness, .foreground in https://help.scilab.org/docs/6.0.0/en_US/polyline_properties.html 5) see xstring() : https://help.scilab.org/docs/6.0.0/en_US/xstring.html 6) see .font_size in https://help.scilab.org/docs/6.0.0/en_US/axes_properties.html HTH Samuel From michael.benguigui at activeeon.com Sun Mar 5 21:12:00 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Sun, 5 Mar 2017 21:12:00 +0100 Subject: [Scilab-users] Scilab 6.0 + starting a new jvm + evstr('1+1; ') => crash In-Reply-To: <07fdf28d-32da-441d-181f-63d44c7ae2a5@free.fr> References: <07fdf28d-32da-441d-181f-63d44c7ae2a5@free.fr> Message-ID: Hi all, I managed to make a simpler program to reproduce the pb. Here it is A java class: public class MyEchoClass { public static void execEcho () throws IOException { ArrayList cmd = new ArrayList(); cmd.add("echo"); cmd.add("\"AAAA\""); ProcessBuilder pb = new ProcessBuilder(cmd); pb.start(); } } In Scilab: jinvoke(MyEchoClass,'execEcho'); disp('before...'); evstr('1+1;'); disp('...after'); The result: before... [image: Images int?gr?es 1] Regards Michael 2017-03-03 20:20 GMT+01:00 Samuel Gougeon : > Hello Michael, > > Again, it is hard or even impossible to help or/and debug without having > any true complete (and if possible minimal) way to run an actual code and > reproduce the issue. > > Le 03/03/2017 ? 14:40, Michael Benguigui a ?crit : > > Hi all, > As a Scilab user, i am facing difficulties during the Scilab > 6 adaptation of my project. I did my best to isolate the pb. This code > works with Scilab 5.5. At some point of my code, I have: > > >pair = jinvoke(deployer,'deployOrLookup'); > >evstr('1+1');// crash! > >// or > >// deff('[x]=myplus(y,z)','x=y+z') // crash! > > Important points: > - The common point of evstr and deff is it calls the scilab compiler. > - deployOrLookup() calls a java method using jinvoke(), which creates a > java Process (Process process = pb.start(); ) that executes another java > class > (cmd like java -Djava.security.policy=xxx -Dlog4j.configuration=xx > -Drmi.port=xxx myClass). > - If the jvm already exists, deployOrLookup() does not create it again, > but just registers it.. > > > Either you can provide this code, or you provide an equivalent public one > with which you get the same issue, in a way we can copy/paste it in the > console with all the required context (so lines of codes without any > leading prompts -->). > Otherwise, nothing prevents thinking that the issue is possibly in the > private code or in the private context instead of in Scilab itself. > > By the way, if your prompt was really ">" instead of "-->", you were not > at the top level, and something else could be wrong out of jinvoke, evstr > or deff) > > For my part, i do not get any crash running > jimport java.lang.System; > jimport java.awt.Color; > jimport java.lang.String; > // Non-static methods > jinvoke("Hello World !!", "length"); > evstr('1+1');// crash! > deff('[x]=myplus(y,z)','x=y+z') > > as coming from the first example of the jinvoke() help page. > > Regards > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 20507 bytes Desc: not available URL: From michael.benguigui at activeeon.com Sun Mar 5 21:16:06 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Sun, 5 Mar 2017 21:16:06 +0100 Subject: [Scilab-users] Scilab 6.0 + starting a new jvm + evstr('1+1; ') => crash In-Reply-To: References: <07fdf28d-32da-441d-181f-63d44c7ae2a5@free.fr> Message-ID: And sorry for the wrong title since there is no link with a "new started jvm".. my process simply executing "echo". Regards Michael 2017-03-05 21:12 GMT+01:00 Michael Benguigui < michael.benguigui at activeeon.com>: > Hi all, > > I managed to make a simpler program to reproduce the pb. Here it is > > A java class: > > public class MyEchoClass { > public static void execEcho () throws IOException { > ArrayList cmd = new ArrayList(); > cmd.add("echo"); > cmd.add("\"AAAA\""); > ProcessBuilder pb = new ProcessBuilder(cmd); > pb.start(); > } > } > > In Scilab: > > jinvoke(MyEchoClass,'execEcho'); > disp('before...'); > evstr('1+1;'); > disp('...after'); > > The result: > > before... > [image: Images int?gr?es 1] > > Regards > Michael > > 2017-03-03 20:20 GMT+01:00 Samuel Gougeon : > >> Hello Michael, >> >> Again, it is hard or even impossible to help or/and debug without having >> any true complete (and if possible minimal) way to run an actual code and >> reproduce the issue. >> >> Le 03/03/2017 ? 14:40, Michael Benguigui a ?crit : >> >> Hi all, >> As a Scilab user, i am facing difficulties during the Scilab >> 6 adaptation of my project. I did my best to isolate the pb. This code >> works with Scilab 5.5. At some point of my code, I have: >> >> >pair = jinvoke(deployer,'deployOrLookup'); >> >evstr('1+1');// crash! >> >// or >> >// deff('[x]=myplus(y,z)','x=y+z') // crash! >> >> Important points: >> - The common point of evstr and deff is it calls the scilab compiler. >> - deployOrLookup() calls a java method using jinvoke(), which creates a >> java Process (Process process = pb.start(); ) that executes another java >> class >> (cmd like java -Djava.security.policy=xxx -Dlog4j.configuration=xx >> -Drmi.port=xxx myClass). >> - If the jvm already exists, deployOrLookup() does not create it again, >> but just registers it.. >> >> >> Either you can provide this code, or you provide an equivalent public one >> with which you get the same issue, in a way we can copy/paste it in the >> console with all the required context (so lines of codes without any >> leading prompts -->). >> Otherwise, nothing prevents thinking that the issue is possibly in the >> private code or in the private context instead of in Scilab itself. >> >> By the way, if your prompt was really ">" instead of "-->", you were not >> at the top level, and something else could be wrong out of jinvoke, evstr >> or deff) >> >> For my part, i do not get any crash running >> jimport java.lang.System; >> jimport java.awt.Color; >> jimport java.lang.String; >> // Non-static methods >> jinvoke("Hello World !!", "length"); >> evstr('1+1');// crash! >> deff('[x]=myplus(y,z)','x=y+z') >> >> as coming from the first example of the jinvoke() help page. >> >> Regards >> Samuel >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > -- > 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 > -- 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 20507 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Mon Mar 6 09:51:28 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Mar 2017 09:51:28 +0100 Subject: [Scilab-users] Matlab vs Scilab perf In-Reply-To: References: <1488480952.9565.1.camel@yahoo.es> Message-ID: <1488790288.7881.3.camel@scilab-enterprises.com> Hi Pierre, Le jeudi 02 mars 2017 ? 22:12 +0100, Pierre Vuillemin a ?crit?: > Concerning speed, while I agree that this is often not that important, the Julia Language has > demonstrated that it is not necessarily unreachable for a "high level language". I guess it mainly > relies on the performance of the JIT compiler at some point.? > I remember reading that Scilab 6 should have a JIT compiler, but I might be mistaken? Our approach differs from the Julia one as basically Julia does not have an interpreter at all, they emit LLVM bytecode (ASM like language) on function definition (emitting one function per handled datatype or per signature basically). Our implementation is currently just a proof of concept (read : not shipped with scilab) but some "language analysis" is shipped within Scilab 6.0.0 without accessible user-interface. We currently emit one code-generation for the executed path using an "analysis" to infer types, sizes and some simple behaviors (ones, zeros, find, etc...) on the "double" datatype only. Thanks, -- Cl?ment From clement.david at scilab-enterprises.com Mon Mar 6 09:57:59 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Mar 2017 09:57:59 +0100 Subject: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) Message-ID: <1488790679.7881.5.camel@scilab-enterprises.com> > While I'm on the subject, the old??Intersci system was a very convenient way to automatically > generate the interface routine between scilab and an arbitrary fortran subroutine.??There seems > not to be recent documentation on doing the same (specifically for fortran).??Or am I missing > something????I've had to use the "call" interface to use old code.??Is there a better way? In Scilab 6.0.0, we did not reproduce and intersci code generation as this is handled by another tool called `SWIG` [1] for multiple scripting (or not) languages. This idea is to let the tool parse an C interface description (similar to a .h file with directives) and generate the wrapper code for a specific language. Scilab is natively supported and the tool generates API Scilab code. IMHO this is way simpler to define in interface just writing C code instead of guessing what's the intersci encoding scheme :) for a specific parameter. [1]: http://swig.org/ Thanks, -- Cl?ment From clement.david at scilab-enterprises.com Mon Mar 6 10:16:08 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Mar 2017 10:16:08 +0100 Subject: [Scilab-users] About performance In-Reply-To: <1488489872.3874.3.camel@yahoo.es> References: <1488489872.3874.3.camel@yahoo.es> Message-ID: <1488791768.7881.7.camel@scilab-enterprises.com> Hi Amanda, Le jeudi 02 mars 2017 ? 18:24 -0300, Amanda Osvaldo a ?crit?: > Just a note about performance in computing. > > I read the Intel articles in Intel Developer Zone and frequently they call to think about the > limitations in the memory cache and the set of instructions used to do the computation. > > Even if all the data can be vectorized, it's possible to put all the data and code in the > processor cache to avoid them to search it in RAM? > > I'm really like to take more control of it in my projects. > Is about computer engineering I don't know how to handle it. > > https://software.intel.com/pt-br/articles/how-memory-is-accessed?utm_campaign=Servers-Brazil&utm_s > ource=Facebook&utm_medium=SocialMedia&utm_content=content_460 I don't know how to do on windows but on linux (using the perf tool) I can detect L1 and L2 cache miss for a running program. Starting from that I can easily reduce the data size until I got no more cache miss. In a "simple way" using Scilab, you can try to split your problem accordingly to the memory cache of your machine. L1 cache might be used by the Scilab interpreter and simply use L2 cache size for data manipulation, in my case : L1: 128 kB L2: 512 kB L3: 3072 kB L1 is for Scilab interpreter and MKL speedup L2 can contain up to 65536 (512*1024/8) double values without performance penalty So, I should split my problem to compute at most 65536 values to take the full advantage of L2. And after that, I should use a dedicated tool (linux perf for exemple) to discover what can be done better. Regards, -- Cl?ment From clement.david at scilab-enterprises.com Mon Mar 6 10:27:37 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Mar 2017 10:27:37 +0100 Subject: [Scilab-users] Compiling Scilab with MPI In-Reply-To: <2051723970.270540.1488544726836@mail.yahoo.com> References: <2051723970.270540.1488544726836.ref@mail.yahoo.com> <2051723970.270540.1488544726836@mail.yahoo.com> Message-ID: <1488792457.7881.9.camel@scilab-enterprises.com> Hi Eduardo, You should pass the `--disable-static-system-lib` flag to the configure script. This was an options added to ensure we ship with the libstdc++ instead of using the system one. It should only be used if you plan to distribute the scilab binary in old system (eg. without a C++11 compatible libstdc++). Thanks, -- Cl?ment Le vendredi 03 mars 2017 ? 12:38 +0000, Eduardo Martini a ?crit?: > Hello you all > > Hope someone can help me, I am trying to compile scilab 5.5.2 from source in order to use MPI to > get a simulation to run in parallel. > > I downloaded the 5.5.2 version and its Compilation prerequirements from?https://www.scilab.org/dev > elopment/ml?. > > I extracted both into a folder and performed a ./configure with no errors at all ? (I skipped the > --with-mpi in the first try, just to keep it simple) > > But when I tried to compile with "make" after a while I get a error > > "Found dependency from scilab-cli-bin to libstdc++ found > Makefile:2092: recipe for target 'check-libstdcpp-dep' failed > make[1]: *** [check-libstdcpp-dep] Error 2 > make[1]: Leaving directory '/home/emartini/Downloads/scilab-5.5.2' > Makefile:1541: recipe for target 'all-recursive' failed > make: *** [all-recursive] Error 1" > > I have no clue what to do about it, (and clearly adding MPI didn't help neither...) .Can someone > help me out on this one?! ? > > > Thanks a lot in advance!!! > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From lambdasoftware at yahoo.es Mon Mar 6 15:52:08 2017 From: lambdasoftware at yahoo.es (Amanda Osvaldo) Date: Mon, 06 Mar 2017 11:52:08 -0300 Subject: [Scilab-users] About performance In-Reply-To: <1488791768.7881.7.camel@scilab-enterprises.com> References: <1488489872.3874.3.camel@yahoo.es> <1488791768.7881.7.camel@scilab-enterprises.com> Message-ID: <1488811928.17567.2.camel@yahoo.es> Thanks Clement?, this will change the way of how i work. :-D -- Amanda Osvaldo On Mon, 2017-03-06 at 10:16 +0100, Cl?ment David wrote: > Hi Amanda, > > Le jeudi 02 mars 2017 ? 18:24 -0300, Amanda Osvaldo a ?crit?: > > Just a note about performance in computing. > > > > I read the Intel articles in Intel Developer Zone and frequently > > they call to think about the > > limitations in the memory cache and the set of instructions used to > > do the computation. > > > > Even if all the data can be vectorized, it's possible to put all > > the data and code in the > > processor cache to avoid them to search it in RAM? > > > > I'm really like to take more control of it in my projects. > > Is about computer engineering I don't know how to handle it. > > > > https://software.intel.com/pt-br/articles/how-memory-is-accessed?ut > > m_campaign=Servers-Brazil&utm_s > > ource=Facebook&utm_medium=SocialMedia&utm_content=content_460 > > I don't know how to do on windows but on linux (using the perf tool) > I can detect L1 and L2 cache > miss for a running program. Starting from that I can easily reduce > the data size until I got no more > cache miss. > > In a "simple way" using Scilab, you can try to split your problem > accordingly to the memory cache of > your machine. L1 cache might be used by the Scilab interpreter and > simply use L2 cache size for data > manipulation, in my case : > > L1: 128 kB > L2: 512 kB > L3: 3072 kB > > L1 is for Scilab interpreter and MKL speedup > L2 can contain up to 65536 (512*1024/8) double values without > performance penalty > > So, I should split my problem to compute at most 65536 values to take > the full advantage of L2. And > after that, I should use a dedicated tool (linux perf for exemple) to > discover what can be done > better. > > Regards, > > -- > Cl?ment > _______________________________________________ > 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: face-smile-big.png Type: image/png Size: 1580 bytes Desc: not available URL: From shorne at energetiq.com Mon Mar 6 18:28:51 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Mon, 6 Mar 2017 12:28:51 -0500 Subject: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) In-Reply-To: <1488790679.7881.5.camel@scilab-enterprises.com> References: <1488790679.7881.5.camel@scilab-enterprises.com> Message-ID: I had looked up SWIG. I have found no examples of connecting fortran to scilab using swig. From: Cl?ment David To: Users mailing list for Scilab Cc: shorne at energetiq.com Date: 03/06/2017 03:54 AM Subject: using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) > While I'm on the subject, the old??Intersci system was a very convenient way to automatically > generate the interface routine between scilab and an arbitrary fortran subroutine.??There seems > not to be recent documentation on doing the same (specifically for fortran).??Or am I missing > something????I've had to use the "call" interface to use old code.??Is there a better way? In Scilab 6.0.0, we did not reproduce and intersci code generation as this is handled by another tool called `SWIG` [1] for multiple scripting (or not) languages. This idea is to let the tool parse an C interface description (similar to a .h file with directives) and generate the wrapper code for a specific language. Scilab is natively supported and the tool generates API Scilab code. IMHO this is way simpler to define in interface just writing C code instead of guessing what's the intersci encoding scheme :) for a specific parameter. [1]: http://swig.org/ Thanks, -- Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Mon Mar 6 19:36:19 2017 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 6 Mar 2017 15:36:19 -0300 Subject: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) In-Reply-To: References: <1488790679.7881.5.camel@scilab-enterprises.com> Message-ID: Does it mean that scilab no longer carry about interfacing with Fortran (if ever did it)? Modern Fortran is my prefered language for production codes. Thanks 2017-03-06 14:28 GMT-03:00 : > I had looked up SWIG. I have found no examples of connecting fortran to > scilab using swig. > > [image: Show details for Cl?ment David ---03/06/2017 03:54:24 AM---> While > I'm on the subject, the old Intersci system was a very convenient way to > automatically > ge]Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm > on the subject, the old Intersci system was a very convenient way to > automatically > ge > [image: Hide details for Cl?ment David ---03/06/2017 03:54:24 AM---> While > I'm on the subject, the old Intersci system was a very convenient way to > automatically > ge]Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm > on the subject, the old Intersci system was a very convenient way to > automatically > ge > > From: Cl?ment David > To: Users mailing list for Scilab > Cc: shorne at energetiq.com > Date: 03/06/2017 03:54 AM > Subject: using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a > fortran routine.) > ------------------------------ > > > > > While I'm on the subject, the old Intersci system was a very convenient > way to automatically > > generate the interface routine between scilab and an arbitrary fortran > subroutine. There seems > > not to be recent documentation on doing the same (specifically for > fortran). Or am I missing > > something? I've had to use the "call" interface to use old code. Is > there a better way? > > In Scilab 6.0.0, we did not reproduce and intersci code generation as this > is handled by another > tool called `SWIG` [1] for multiple scripting (or not) languages. This > idea is to let the tool parse > an C interface description (similar to a .h file with directives) and > generate the wrapper code for > a specific language. > > Scilab is natively supported and the tool generates API Scilab code. IMHO > this is way simpler to > define in interface just writing C code instead of guessing what's the > intersci encoding scheme :) > for a specific parameter. > > [1]: http://swig.org/ > > Thanks, > > -- > Cl?ment > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shorne at energetiq.com Mon Mar 6 20:03:33 2017 From: shorne at energetiq.com (shorne at energetiq.com) Date: Mon, 6 Mar 2017 14:03:33 -0500 Subject: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) In-Reply-To: References: <1488790679.7881.5.camel@scilab-enterprises.com> Message-ID: No. Scilab used to be linked against BLAS. I expect it still is. I would guess V6 t was done using SWIG, but I'm guessing. I used to build scilab from the source distribution on linux, back around versions 3 and 4 - it's become just to hairy to do that - the prerequisites have grown enormously. Back then there were many working examples of calling fortran. It's still possible to connect scilab to fortran using the "call" function. It's just clumsy. Possibly slow as well. I use Mingw. There's a reason why all the "modern" languages brag that they are almost as fast as fortran... Even "modern" Fortran has managed to break itself, with the new "modules" thing... old-fashoned makefiles no longer work. F77 was powerful, succinct, and efficient. I guess it just wasn't cool. From: Adelson Oliveira To: Users mailing list for Scilab Date: 03/06/2017 01:33 PM Subject: Re: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) Sent by: "users" Does it mean that scilab no longer carry about interfacing with Fortran (if ever did it)? Modern Fortran is my prefered language for production codes. Thanks 2017-03-06 14:28 GMT-03:00 : I had looked up SWIG.? I have found no examples of connecting fortran to scilab using swig. Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm on the subject, the old??Intersci system was a very convenient way to automatically > ge Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm on the subject, the old??Intersci system was a very convenient way to automatically > ge From: Cl?ment David To: Users mailing list for Scilab Cc: shorne at energetiq.com Date: 03/06/2017 03:54 AM Subject: using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) > While I'm on the subject, the old??Intersci system was a very convenient way to automatically > generate the interface routine between scilab and an arbitrary fortran subroutine.??There seems > not to be recent documentation on doing the same (specifically for fortran).??Or am I missing > something????I've had to use the "call" interface to use old code.??Is there a better way? In Scilab 6.0.0, we did not reproduce and intersci code generation as this is handled by another tool called `SWIG` [1] for multiple scripting (or not) languages. This idea is to let the tool parse an C interface description (similar to a .h file with directives) and generate the wrapper code for a specific language. Scilab is natively supported and the tool generates API Scilab code. IMHO this is way simpler to define in interface just writing C code instead of guessing what's the intersci encoding scheme :) for a specific parameter. [1]: http://swig.org/ Thanks, -- Cl?ment _______________________________________________ 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 lists at kybdr.de Tue Mar 7 15:29:20 2017 From: lists at kybdr.de (Dirk Reusch) Date: Tue, 7 Mar 2017 15:29:20 +0100 Subject: [Scilab-users] Nightly builds of Scilab Branch 6.0 - 64 bits for GNU/Linux Message-ID: <20170307152920.0c40bcdf@lemon> Hello, Why are the nightly builds of Scilab Branch 6.0 - 64 bits for GNU/Linux on scilab.org not up-to-date like for the other platforms? Thanks, Dirk From erhard.glueck.austria at gmail.com Tue Mar 7 16:39:17 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 7 Mar 2017 08:39:17 -0700 (MST) Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> Message-ID: <1488901157871-4035732.post@n3.nabble.com> now I understand*!* I'm not a native English speaker and in my dictionary axes means plural and axis means one (singular) and I searched for selection of a certain axis after /*a = gca()*/ Now I think, it is only possible no modify the axis last created with /*newaxes();*/ Erhy -- View this message in context: http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035732.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Mar 7 18:44:13 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 7 Mar 2017 18:44:13 +0100 Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <1488901157871-4035732.post@n3.nabble.com> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> <1488901157871-4035732.post@n3.nabble.com> Message-ID: <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> Le 07/03/2017 ? 16:39, Erhy a ?crit : > now I understand*!* > I'm not a native English speaker and in my dictionary > axes means plural and axis means one (singular) > and I searched for selection of a certain axis after /*a = gca()*/ > > Now I think, it is only possible no modify the axis last created with > /*newaxes();*/ just do ax1 = gca(); to record the handle of the current axes before calling newaxes(). It is also possible to get the handle of a not current axes with gcf().children(2) // the previous one of the current figure gcf().children(3) // the antepenultimate one etc HTH From contact at pierre-vuillemin.fr Tue Mar 7 16:55:37 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 07 Mar 2017 16:55:37 +0100 Subject: [Scilab-users] Extraction of unusual fields of custom mlist in Scilab 6 Message-ID: <8c715060e592f2bf7cad68fd08009839@pierre-vuillemin.fr> Hi all, I am encountering some difficulties with overloading in Scilab 6, and I'm wondering if this is a bug or not. Consider the following example, a = mlist(['mytype']); b = mlist(['myothertype']); function out = %mytype_e(varargin) var = varargin($); field = varargin(1); disp(typeof(field)) out = []; endfunction a(b); It defines two objects 'a' and 'b' of types 'mytype' and 'myothertype'. The extraction is overloaded for 'mytype' and displays the type of the field that is meant to be extracted. At the end, I try to extract 'b' from 'a'. In Scilab 5.5, 'b' is actually passed to the overloading function and 'myothertype' is displayed by 'a(b)'. Scilab 6 behaves differently and 'field' in the overloading function is a string equal to 'myothertype'. Best regards, Pierre From cfuttrup at gmail.com Tue Mar 7 20:35:12 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Tue, 7 Mar 2017 20:35:12 +0100 Subject: [Scilab-users] Plots for scientific papers Message-ID: <569e5a1c-1a74-0fae-2fc3-5a79f89227f7@gmail.com> Hi I'm using Python matplotlib for some graphs for scientific papers. The reason is that the font and all seems to fit very well with the LaTeX document. I know that Scilab can accept MathML (or LaTeX) expressions. Is there a simple way to configure Scilab for similar high-quality plots? ... I'd like all text to be nice looking, i.e. the title, the x-axis and y-axis labels, the legend, etc. Best regards, Claus From ajteeder at v-twin.org.uk Tue Mar 7 22:33:17 2017 From: ajteeder at v-twin.org.uk (Alan Teeder) Date: Tue, 7 Mar 2017 21:33:17 -0000 Subject: [Scilab-users] scilab 6 - mfile2sci fails Message-ID: <3CF67C51763F4D2D958E571CAD7D9134@AlanPC> Here is a transcript of a mfile2sci GUI session with Scilab 6. It works fine with Scilab 5. --> mfile2sci ans = [] ****** Beginning of mfile2sci() session ****** File to convert: C:/Users/alan/Documents/Scilab/pitch.m Result file path: C:/Users/alan/Documents/Scilab/ Recursive mode: ON Only double values used in M-file: YES Verbose mode: 3 Generate formated code: YES M-file reading... M-file reading: Done Syntax modification... at line 57 of function isinstring ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\kernel\isinstring.sci line 70 ) at line 56 of function m2sci_syntax ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\kernel\m2sci_syntax.sci line 69 ) at line 140 of function mfile2sci ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\mfile2sci.sci line 153 ) at line 147 of function cb_m2sci_gui ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\cb_m2sci_gui.sci line 163 ) Undefined variable: _str2code Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Wed Mar 8 09:19:56 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 08 Mar 2017 09:19:56 +0100 Subject: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) In-Reply-To: References: <1488790679.7881.5.camel@scilab-enterprises.com> Message-ID: <1488961196.2149.21.camel@scilab-enterprises.com> Hi all, I was probably not clear enough, sorry about that : It is still possible to call fortran from Scilab, using : * call() and dynamic-link capabilities * or an hand-written API Scilab C interface * or using an API Scilab C interface generator called SWIG If you want to use SWIG, you have to write a C-like interface file containing function definition for your fortran code as in the attached file and use `swig -scilab DGEMM.i` to generate the Scilab C API to access DGEMM in Scilab. Regards, -- Cl?ment Le lundi 06 mars 2017 ? 14:03 -0500, shorne at energetiq.com a ?crit?: > No. ?Scilab used to be linked against BLAS. ?I expect it still is. ?I would guess V6 t was done > using SWIG, ?but I'm guessing.? > I used to build scilab from the source distribution on linux, back around versions 3 and 4 - it's > become just to hairy to do that - the prerequisites have grown enormously. > Back then there were many working examples of calling fortran. > ? > It's still possible to connect scilab to fortran using the "call" function. > It's just clumsy. ? Possibly slow as well. ? ?I use Mingw. > > There's a reason why all the "modern" languages brag that they are almost as fast as fortran... > Even "modern" Fortran has managed to break itself, with the new "modules" thing... ?old-fashoned > makefiles no longer work. > > F77 was powerful, succinct, and efficient. ? ?I guess it just wasn't cool. > > > > Adelson Oliveira ---03/06/2017 01:33:04 PM---Does it mean that scilab no longer carry about > interfacing with Fortran (if ever did it)? Modern For > Adelson Oliveira ---03/06/2017 01:33:04 PM---Does it mean that scilab no longer carry about > interfacing with Fortran (if ever did it)? Modern For > > From: Adelson Oliveira > To: Users mailing list for Scilab > Date: 03/06/2017 01:33 PM > Subject: Re: [Scilab-users] using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a > fortran routine.) > Sent by: "users" > > > > Does it mean that scilab no longer carry about interfacing with Fortran (if ever did it)? Modern > Fortran is my prefered language for production codes. > > Thanks > > 2017-03-06 14:28 GMT-03:00 : > I had looked up SWIG.? I have found no examples of connecting fortran to scilab using swig. > Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm on the subject, the old??Intersci system was > a very convenient way to automatically > ge > Cl?ment David ---03/06/2017 03:54:24 AM---> While I'm on the subject, the old??Intersci system was > a very convenient way to automatically > ge > > From: Cl?ment David > To: Users mailing list for Scilab > Cc: shorne at energetiq.com > Date: 03/06/2017 03:54 AM > Subject: using intersci in 6.0.0 (was: Matlab vs Scilab perf; calling a fortran routine.) > > > > > While I'm on the subject, the old??Intersci system was a very convenient way to automatically > > generate the interface routine between scilab and an arbitrary fortran subroutine.??There seems > > not to be recent documentation on doing the same (specifically for fortran).??Or am I missing > > something????I've had to use the "call" interface to use old code.??Is there a better way? > > In Scilab 6.0.0, we did not reproduce and intersci code generation as this is handled by another > tool called `SWIG` [1] for multiple scripting (or not) languages. This idea is to let the tool > parse > an C interface description (similar to a .h file with directives) and generate the wrapper code > for > a specific language. > > Scilab is natively supported and the tool generates API Scilab code. IMHO this is way simpler to > define in interface just writing C code instead of guessing what's the intersci encoding scheme :) > for a specific parameter. > > [1]: http://swig.org/ > > Thanks, > > -- > Cl?ment > > > > _______________________________________________ > 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 -------------- A non-text attachment was scrubbed... Name: DGEMM.i Type: text/x-matlab Size: 541 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Wed Mar 8 09:21:18 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 08 Mar 2017 09:21:18 +0100 Subject: [Scilab-users] Nightly builds of Scilab Branch 6.0 - 64 bits for GNU/Linux In-Reply-To: <20170307152920.0c40bcdf@lemon> References: <20170307152920.0c40bcdf@lemon> Message-ID: <1488961278.2149.23.camel@scilab-enterprises.com> Hi Dirk, Nice catch ! There might be an issue on page generation, I will check it today. Thanks, -- Cl?ment Le mardi 07 mars 2017 ? 15:29 +0100, Dirk Reusch a ?crit?: > Hello, > > Why are the nightly builds of Scilab Branch 6.0 - 64 bits for GNU/Linux > on scilab.org not up-to-date like for the other platforms? > > Thanks, > > Dirk > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From michael.benguigui at activeeon.com Wed Mar 8 09:48:32 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Wed, 8 Mar 2017 09:48:32 +0100 Subject: [Scilab-users] jinvoke + new ProcessBuilder(..) + evstr('1+1; ') => Scilab 6 crash Message-ID: Hi all (i udpated the mail title), I managed to make a simpler program to reproduce the pb. Here it is A java class: public class MyEchoClass { public static void execEcho () throws IOException { ArrayList cmd = new ArrayList(); cmd.add("echo"); cmd.add("\"AAAA\""); ProcessBuilder pb = new ProcessBuilder(cmd); pb.start(); } } In Scilab: jinvoke(MyEchoClass,'execEcho'); disp('before...'); evstr('1+1;'); disp('...after'); The result: before... [image: Images int?gr?es 1] Regards Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 20507 bytes Desc: not available URL: From amonmayr at laas.fr Wed Mar 8 10:08:51 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 08 Mar 2017 10:08:51 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBQbG90cyBmb3Igc2NpZW50?= =?utf-8?q?ific_papers?= In-Reply-To: <569e5a1c-1a74-0fae-2fc3-5a79f89227f7@gmail.com> Message-ID: <4055-58bfca00-b-29833cc0@89555184> It's definetly possible to do it. In my group, we usually: - set decent default values for the default figure ( hd=gdf() ): increase font size, ... - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. ] ticks by [0. 0.25 0.5 0.75 1.]) - use the latex rendering for all the text, including ticks labels: - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered in Latex: \lambda^\beta}$" - Export in a vectorial format, I prefer svg. - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using Inkscape - Generate a pdf version. Hope it helps, Antoine ? We have a script to clean up the ticks: it sets a decent number of ticks, and automate the prepend/append of "$". Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup a ?crit: > Hi > > I'm using Python matplotlib for some graphs for scientific papers. The > reason is that the font and all seems to fit very well with the LaTeX > document. > > I know that Scilab can accept MathML (or LaTeX) expressions. Is there a > simple way to configure Scilab for similar high-quality plots? ... I'd > like all text to be nice looking, i.e. the title, the x-axis and y-axis > labels, the legend, etc. > > Best regards, > > Claus > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From contact at pierre-vuillemin.fr Wed Mar 8 11:41:56 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Wed, 08 Mar 2017 11:41:56 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <4055-58bfca00-b-29833cc0@89555184> References: <4055-58bfca00-b-29833cc0@89555184> Message-ID: Following Antoine's idea, find enclosed an example on how you can automate the process of improving your plots. This is obviously incomplete but it gives a general idea. Hope it helps, Pierre Le 08.03.2017 10:08, Antoine Monmayrant a ?crit?: > It's definetly possible to do it. > In my group, we usually: > - set decent default values for the default figure ( hd=gdf() ): > increase font size, ... > - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. > ] ticks by [0. 0.25 0.5 0.75 1.]) > - use the latex rendering for all the text, including ticks labels: > - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; > "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. > - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered > in Latex: \lambda^\beta}$" > - Export in a vectorial format, I prefer svg. > - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using > Inkscape > - Generate a pdf version. > > > Hope it helps, > > Antoine > ? We have a script to clean up the ticks: it sets a decent number of > ticks, and automate the prepend/append of "$". > > > Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup a > ?crit: > >> Hi >> >> I'm using Python matplotlib for some graphs for scientific papers. The >> reason is that the font and all seems to fit very well with the LaTeX >> document. >> >> I know that Scilab can accept MathML (or LaTeX) expressions. Is there >> a >> simple way to configure Scilab for similar high-quality plots? ... I'd >> like all text to be nice looking, i.e. the title, the x-axis and >> y-axis >> labels, the legend, etc. >> >> Best regards, >> >> Claus >> >> _______________________________________________ >> 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 embedded and charset-unspecified text was scrubbed... Name: pretty_plot.sce URL: From amonmayr at laas.fr Wed Mar 8 12:05:52 2017 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Wed, 08 Mar 2017 12:05:52 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSBQ?= =?utf-8?q?lots_for_scientific_paper?= In-Reply-To: Message-ID: <53b7-58bfe580-3-3df58000@60978239> As an added note, one nice feature of inkscape as a post-processing tool is that it can generate Latex text and formula. It's pretty useful to fix some axis label, legend or add "(a)", "(b)" while keeping the font coherent. Antoine Le Mercredi, Mars 08, 2017 11:41 CET, Pierre Vuillemin a ?crit: > Following Antoine's idea, find enclosed an example on how you can > automate the process of improving your plots. This is obviously > incomplete but it gives a general idea. > > Hope it helps, > > Pierre > > Le 08.03.2017 10:08, Antoine Monmayrant a ?crit?: > > It's definetly possible to do it. > > In my group, we usually: > > - set decent default values for the default figure ( hd=gdf() ): > > increase font size, ... > > - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. > > ] ticks by [0. 0.25 0.5 0.75 1.]) > > - use the latex rendering for all the text, including ticks labels: > > - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; > > "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. > > - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered > > in Latex: \lambda^\beta}$" > > - Export in a vectorial format, I prefer svg. > > - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using > > Inkscape > > - Generate a pdf version. > > > > > > Hope it helps, > > > > Antoine > > ? We have a script to clean up the ticks: it sets a decent number of > > ticks, and automate the prepend/append of "$". > > > > > > Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup a > > ?crit: > > > >> Hi > >> > >> I'm using Python matplotlib for some graphs for scientific papers. The > >> reason is that the font and all seems to fit very well with the LaTeX > >> document. > >> > >> I know that Scilab can accept MathML (or LaTeX) expressions. Is there > >> a > >> simple way to configure Scilab for similar high-quality plots? ... I'd > >> like all text to be nice looking, i.e. the title, the x-axis and > >> y-axis > >> labels, the legend, etc. > >> > >> Best regards, > >> > >> Claus > >> > >> _______________________________________________ > >> 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 cfuttrup at gmail.com Wed Mar 8 16:29:32 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 8 Mar 2017 16:29:32 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: References: <4055-58bfca00-b-29833cc0@89555184> Message-ID: <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> Hi Pierre and Antoine Thank you very much for your help. This is very inspiring and encouraging. Best regards, Claus On 08-03-2017 11:41, Pierre Vuillemin wrote: > Following Antoine's idea, find enclosed an example on how you can > automate the process of improving your plots. This is obviously > incomplete but it gives a general idea. > > Hope it helps, > > Pierre > > Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >> It's definetly possible to do it. >> In my group, we usually: >> - set decent default values for the default figure ( hd=gdf() ): >> increase font size, ... >> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. >> ] ticks by [0. 0.25 0.5 0.75 1.]) >> - use the latex rendering for all the text, including ticks labels: >> - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; >> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered >> in Latex: \lambda^\beta}$" >> - Export in a vectorial format, I prefer svg. >> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using >> Inkscape >> - Generate a pdf version. >> >> >> Hope it helps, >> >> Antoine >> ? We have a script to clean up the ticks: it sets a decent number of >> ticks, and automate the prepend/append of "$". >> >> >> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >> a ?crit: >> >>> Hi >>> >>> I'm using Python matplotlib for some graphs for scientific papers. The >>> reason is that the font and all seems to fit very well with the LaTeX >>> document. >>> >>> I know that Scilab can accept MathML (or LaTeX) expressions. Is there a >>> simple way to configure Scilab for similar high-quality plots? ... I'd >>> like all text to be nice looking, i.e. the title, the x-axis and y-axis >>> labels, the legend, etc. >>> >>> Best regards, >>> >>> Claus >>> >>> _______________________________________________ >>> 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 contact at pierre-vuillemin.fr Wed Mar 8 18:28:17 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Wed, 8 Mar 2017 18:28:17 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> Message-ID: I may complete the script over time if you have some suggestions. Until then, I don't see any difference when changing the value of the anti-aliasing option, does someone know if it is still functional? Regards, Pierre Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : > Hi Pierre and Antoine > > Thank you very much for your help. This is very inspiring and encouraging. > > Best regards, > Claus > > On 08-03-2017 11:41, Pierre Vuillemin wrote: >> Following Antoine's idea, find enclosed an example on how you can >> automate the process of improving your plots. This is obviously >> incomplete but it gives a general idea. >> >> Hope it helps, >> >> Pierre >> >> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>> It's definetly possible to do it. >>> In my group, we usually: >>> - set decent default values for the default figure ( hd=gdf() ): >>> increase font size, ... >>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. >>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>> - use the latex rendering for all the text, including ticks labels: >>> - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; >>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered >>> in Latex: \lambda^\beta}$" >>> - Export in a vectorial format, I prefer svg. >>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using >>> Inkscape >>> - Generate a pdf version. >>> >>> >>> Hope it helps, >>> >>> Antoine >>> ? We have a script to clean up the ticks: it sets a decent number of >>> ticks, and automate the prepend/append of "$". >>> >>> >>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>> a ?crit: >>> >>>> Hi >>>> >>>> I'm using Python matplotlib for some graphs for scientific papers. The >>>> reason is that the font and all seems to fit very well with the LaTeX >>>> document. >>>> >>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>> there a >>>> simple way to configure Scilab for similar high-quality plots? ... I'd >>>> like all text to be nice looking, i.e. the title, the x-axis and >>>> y-axis >>>> labels, the legend, etc. >>>> >>>> Best regards, >>>> >>>> Claus >>>> >>>> _______________________________________________ >>>> 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 > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Wed Mar 8 21:24:16 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 8 Mar 2017 21:24:16 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> Message-ID: Hi Pierre >I may complete the script over time if you have some suggestions. Let me work with it over some time ... the first attempt ended like this: !--error 999 'font_size' property does not exist for this handle. at line 7 of function %h_set called by : at line 4 of function generic_i_h called by : at line 2 of function %s_i_h called by : at line 36 of function prettyfy called by : prettyfy(t); at line 1555 of exec file called by : exec('C:\xxxxxx\Scilab54\z3fit.sce', -1) Here's the code which generated above error: scf(); drawlater(); plot(shortxlist,shortylist,'-b'); // Plot smoothed data plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data t = gca(); set(t,"grid",[1 1]); xgrid(color("grey70")); xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / Density"); drawnow(); prettyfy(t); I'm not sure, but could it be that my graphs are created in a different way? I use scf() and gca() instead of gcf() ... Instead of writing "prettyfy(t)" ... could I just feed gcf() directly into prettyfy ?? BTW, I'm using Scilab 5.5.0 at the moment. Best regards, Claus On 08-03-2017 18:28, Pierre Vuillemin wrote: > > I may complete the script over time if you have some suggestions. > > Until then, I don't see any difference when changing the value of the > anti-aliasing option, does someone know if it is still functional? > > Regards, > > Pierre > > > Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : >> Hi Pierre and Antoine >> >> Thank you very much for your help. This is very inspiring and >> encouraging. >> >> Best regards, >> Claus >> >> On 08-03-2017 11:41, Pierre Vuillemin wrote: >>> Following Antoine's idea, find enclosed an example on how you can >>> automate the process of improving your plots. This is obviously >>> incomplete but it gives a general idea. >>> >>> Hope it helps, >>> >>> Pierre >>> >>> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>>> It's definetly possible to do it. >>>> In my group, we usually: >>>> - set decent default values for the default figure ( hd=gdf() ): >>>> increase font size, ... >>>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. >>>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>>> - use the latex rendering for all the text, including ticks labels: >>>> - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; >>>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered >>>> in Latex: \lambda^\beta}$" >>>> - Export in a vectorial format, I prefer svg. >>>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using >>>> Inkscape >>>> - Generate a pdf version. >>>> >>>> >>>> Hope it helps, >>>> >>>> Antoine >>>> ? We have a script to clean up the ticks: it sets a decent number of >>>> ticks, and automate the prepend/append of "$". >>>> >>>> >>>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>>> a ?crit: >>>> >>>>> Hi >>>>> >>>>> I'm using Python matplotlib for some graphs for scientific papers. >>>>> The >>>>> reason is that the font and all seems to fit very well with the LaTeX >>>>> document. >>>>> >>>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>>> there a >>>>> simple way to configure Scilab for similar high-quality plots? ... >>>>> I'd >>>>> like all text to be nice looking, i.e. the title, the x-axis and >>>>> y-axis >>>>> labels, the legend, etc. >>>>> >>>>> Best regards, >>>>> >>>>> Claus >>>>> >>>>> _______________________________________________ >>>>> 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 >> >> >> >> >> _______________________________________________ >> 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 cfuttrup at gmail.com Wed Mar 8 21:51:57 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 8 Mar 2017 21:51:57 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> Message-ID: <5f30ade8-1414-1c3e-9adf-d7869e90681f@gmail.com> Hi Pierre, et al Using gcf() doesn't solve my problem. I get: !--error 999 'font_size' property does not exist for this handle. at line 4 of function generic_i_h called by : at line 2 of function %s_i_h called by : at line 52 of function prettyfy called by : prettyfy(gt); at line 1556 of exec file called by : exec('C:\Users\claus\Documents\Scilab54\z3fit.sce', -1) This is what the code looks like now: scf(); drawlater(); plot(shortxlist,shortylist,'-b'); // Plot smoothed data plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data t = gca(); set(t,"grid",[1 1]); xgrid(color("grey70")); xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / Density"); drawnow(); gt = gcf(); prettyfy(gt); Actually the plot came up with nice title, axis text, etc. ... I don't know what makes the prettyfy function crash on me ... Is it because the plot doesn't have a legend? As mentioned, some error handling could do good. :-) Best regards, Claus On 08-03-2017 21:24, Claus Futtrup wrote: > Hi Pierre > > >I may complete the script over time if you have some suggestions. > > Let me work with it over some time ... the first attempt ended like this: > > !--error 999 > 'font_size' property does not exist for this handle. > at line 7 of function %h_set called by : > at line 4 of function generic_i_h called by : > at line 2 of function %s_i_h called by : > at line 36 of function prettyfy called by : > prettyfy(t); > at line 1555 of exec file called by : > exec('C:\xxxxxx\Scilab54\z3fit.sce', -1) > > Here's the code which generated above error: > > scf(); > drawlater(); > plot(shortxlist,shortylist,'-b'); // Plot smoothed data > plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data > t = gca(); > set(t,"grid",[1 1]); > xgrid(color("grey70")); > xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / > Density"); > drawnow(); > prettyfy(t); > > I'm not sure, but could it be that my graphs are created in a > different way? I use scf() and gca() instead of gcf() ... > > Instead of writing "prettyfy(t)" ... could I just feed gcf() directly > into prettyfy ?? > > BTW, I'm using Scilab 5.5.0 at the moment. > > Best regards, > Claus > > On 08-03-2017 18:28, Pierre Vuillemin wrote: >> >> I may complete the script over time if you have some suggestions. >> >> Until then, I don't see any difference when changing the value of the >> anti-aliasing option, does someone know if it is still functional? >> >> Regards, >> >> Pierre >> >> >> Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : >>> Hi Pierre and Antoine >>> >>> Thank you very much for your help. This is very inspiring and >>> encouraging. >>> >>> Best regards, >>> Claus >>> >>> On 08-03-2017 11:41, Pierre Vuillemin wrote: >>>> Following Antoine's idea, find enclosed an example on how you can >>>> automate the process of improving your plots. This is obviously >>>> incomplete but it gives a general idea. >>>> >>>> Hope it helps, >>>> >>>> Pierre >>>> >>>> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>>>> It's definetly possible to do it. >>>>> In my group, we usually: >>>>> - set decent default values for the default figure ( hd=gdf() ): >>>>> increase font size, ... >>>>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 >>>>> 0.833 1. >>>>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>>>> - use the latex rendering for all the text, including ticks labels: >>>>> - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; >>>>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>>>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered >>>>> in Latex: \lambda^\beta}$" >>>>> - Export in a vectorial format, I prefer svg. >>>>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using >>>>> Inkscape >>>>> - Generate a pdf version. >>>>> >>>>> >>>>> Hope it helps, >>>>> >>>>> Antoine >>>>> ? We have a script to clean up the ticks: it sets a decent number of >>>>> ticks, and automate the prepend/append of "$". >>>>> >>>>> >>>>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>>>> a ?crit: >>>>> >>>>>> Hi >>>>>> >>>>>> I'm using Python matplotlib for some graphs for scientific >>>>>> papers. The >>>>>> reason is that the font and all seems to fit very well with the >>>>>> LaTeX >>>>>> document. >>>>>> >>>>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>>>> there a >>>>>> simple way to configure Scilab for similar high-quality plots? >>>>>> ... I'd >>>>>> like all text to be nice looking, i.e. the title, the x-axis and >>>>>> y-axis >>>>>> labels, the legend, etc. >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Claus >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>> >>> >>> >>> >>> _______________________________________________ >>> 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 list_email at icloud.com Thu Mar 9 01:03:05 2017 From: list_email at icloud.com (list_email at icloud.com) Date: Wed, 08 Mar 2017 17:03:05 -0700 Subject: [Scilab-users] macOS: Java 8 or Java 6? Message-ID: <0C090C96-D53D-44E7-9066-4A250DC96CD2@icloud.com> The listed requirements for SciLab on macOS includes Java 8. However, when I launch SciLab 6.0.0 on macOS 10.11 (El Capitan), I am directed to download Java 6, a legacy version. What is going on? Jerry From contact at pierre-vuillemin.fr Thu Mar 9 09:40:12 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Thu, 09 Mar 2017 09:40:12 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <5f30ade8-1414-1c3e-9adf-d7869e90681f@gmail.com> References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> <5f30ade8-1414-1c3e-9adf-d7869e90681f@gmail.com> Message-ID: <85d1639e82528c811cca41a57a3ecbd9@pierre-vuillemin.fr> Hi Claus, find enclosed an updated version (now adequately called _prettify_ instead of _prettyfy_...). Besides, subsequent evolutions will be posted here [1]. You can email me directly if you find other issues. Hope it helps, Pierre Le 08.03.2017 21:51, Claus Futtrup a ?crit : > Hi Pierre, et al > > Using gcf() doesn't solve my problem. I get: > > !--error 999 > 'font_size' property does not exist for this handle. > at line 4 of function generic_i_h called by : > at line 2 of function %s_i_h called by : > at line 52 of function prettyfy called by : > prettyfy(gt); > at line 1556 of exec file called by : > exec('C:\Users\claus\Documents\Scilab54\z3fit.sce', -1) > > This is what the code looks like now: > > scf(); > drawlater(); > plot(shortxlist,shortylist,'-b'); // Plot smoothed data > plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data > t = gca(); > set(t,"grid",[1 1]); > xgrid(color("grey70")); > xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / Density"); > drawnow(); > gt = gcf(); > prettyfy(gt); > > Actually the plot came up with nice title, axis text, etc. ... I don't know what makes the prettyfy function crash on me ... Is it because the plot doesn't have a legend? > > As mentioned, some error handling could do good. :-) > > Best regards, > Claus > > On 08-03-2017 21:24, Claus Futtrup wrote: > Hi Pierre > >> I may complete the script over time if you have some suggestions. > > Let me work with it over some time ... the first attempt ended like this: > > !--error 999 > 'font_size' property does not exist for this handle. > at line 7 of function %h_set called by : > at line 4 of function generic_i_h called by : > at line 2 of function %s_i_h called by : > at line 36 of function prettyfy called by : > prettyfy(t); > at line 1555 of exec file called by : > exec('C:\xxxxxx\Scilab54\z3fit.sce', -1) > > Here's the code which generated above error: > > scf(); > drawlater(); > plot(shortxlist,shortylist,'-b'); // Plot smoothed data > plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data > t = gca(); > set(t,"grid",[1 1]); > xgrid(color("grey70")); > xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / Density"); > drawnow(); > prettyfy(t); > > I'm not sure, but could it be that my graphs are created in a different way? I use scf() and gca() instead of gcf() ... > > Instead of writing "prettyfy(t)" ... could I just feed gcf() directly into prettyfy ?? > > BTW, I'm using Scilab 5.5.0 at the moment. > > Best regards, > Claus > > On 08-03-2017 18:28, Pierre Vuillemin wrote: > > I may complete the script over time if you have some suggestions. > > Until then, I don't see any difference when changing the value of the anti-aliasing option, does someone know if it is still functional? > > Regards, > > Pierre > Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : > Hi Pierre and Antoine > > Thank you very much for your help. This is very inspiring and encouraging. > > Best regards, > Claus > > On 08-03-2017 11:41, Pierre Vuillemin wrote: Following Antoine's idea, find enclosed an example on how you can automate the process of improving your plots. This is obviously incomplete but it gives a general idea. > > Hope it helps, > > Pierre > > Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : > It's definetly possible to do it. > In my group, we usually: > - set decent default values for the default figure ( hd=gdf() ): > increase font size, ... > - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. > ] ticks by [0. 0.25 0.5 0.75 1.]) > - use the latex rendering for all the text, including ticks labels: > - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; > "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. > - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered > in Latex: \lambda^\beta}$" > - Export in a vectorial format, I prefer svg. > - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using Inkscape > - Generate a pdf version. > > Hope it helps, > > Antoine > ? We have a script to clean up the ticks: it sets a decent number of > ticks, and automate the prepend/append of "$". > > Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup a ?crit: > > Hi > > I'm using Python matplotlib for some graphs for scientific papers. The > reason is that the font and all seems to fit very well with the LaTeX > document. > > I know that Scilab can accept MathML (or LaTeX) expressions. Is there a > simple way to configure Scilab for similar high-quality plots? ... I'd > like all text to be nice looking, i.e. the title, the x-axis and y-axis > labels, the legend, etc. > > Best regards, > > Claus > > _______________________________________________ > 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 _______________________________________________ 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 Links: ------ [1] https://github.com/pivui/scilabTools/tree/master/prettify -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: prettify.sci URL: From cfuttrup at gmail.com Thu Mar 9 18:16:27 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 9 Mar 2017 18:16:27 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <85d1639e82528c811cca41a57a3ecbd9@pierre-vuillemin.fr> References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> <5f30ade8-1414-1c3e-9adf-d7869e90681f@gmail.com> <85d1639e82528c811cca41a57a3ecbd9@pierre-vuillemin.fr> Message-ID: Hi Pierre Thank you. It works nicely on the 16 plots I've tested so far. Best regards, Claus On 09-03-2017 09:40, Pierre Vuillemin wrote: > > Hi Claus, > > find enclosed an updated version (now adequately called /prettify/ > instead of /prettyfy/...). Besides, subsequent evolutions will be > posted here . > > You can email me directly if you find other issues. > > Hope it helps, > > Pierre > > Le 08.03.2017 21:51, Claus Futtrup a ?crit : > >> Hi Pierre, et al >> >> Using gcf() doesn't solve my problem. I get: >> >> !--error 999 >> 'font_size' property does not exist for this handle. >> at line 4 of function generic_i_h called by : >> at line 2 of function %s_i_h called by : >> at line 52 of function prettyfy called by : >> prettyfy(gt); >> at line 1556 of exec file called by : >> exec('C:\Users\claus\Documents\Scilab54\z3fit.sce', -1) >> >> This is what the code looks like now: >> >> scf(); >> drawlater(); >> plot(shortxlist,shortylist,'-b'); // Plot smoothed data >> plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data >> t = gca(); >> set(t,"grid",[1 1]); >> xgrid(color("grey70")); >> xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / >> Density"); >> drawnow(); >> gt = gcf(); >> prettyfy(gt); >> >> Actually the plot came up with nice title, axis text, etc. ... I >> don't know what makes the prettyfy function crash on me ... Is it >> because the plot doesn't have a legend? >> >> As mentioned, some error handling could do good. :-) >> >> Best regards, >> Claus >> >> On 08-03-2017 21:24, Claus Futtrup wrote: >>> Hi Pierre >>> >>> >I may complete the script over time if you have some suggestions. >>> >>> Let me work with it over some time ... the first attempt ended like >>> this: >>> >>> !--error 999 >>> 'font_size' property does not exist for this handle. >>> at line 7 of function %h_set called by : >>> at line 4 of function generic_i_h called by : >>> at line 2 of function %s_i_h called by : >>> at line 36 of function prettyfy called by : >>> prettyfy(t); >>> at line 1555 of exec file called by : >>> exec('C:\xxxxxx\Scilab54\z3fit.sce', -1) >>> >>> Here's the code which generated above error: >>> >>> scf(); >>> drawlater(); >>> plot(shortxlist,shortylist,'-b'); // Plot smoothed data >>> plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data >>> t = gca(); >>> set(t,"grid",[1 1]); >>> xgrid(color("grey70")); >>> xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / >>> Density"); >>> drawnow(); >>> prettyfy(t); >>> >>> I'm not sure, but could it be that my graphs are created in a >>> different way? I use scf() and gca() instead of gcf() ... >>> >>> Instead of writing "prettyfy(t)" ... could I just feed gcf() >>> directly into prettyfy ?? >>> >>> BTW, I'm using Scilab 5.5.0 at the moment. >>> >>> Best regards, >>> Claus >>> >>> On 08-03-2017 18:28, Pierre Vuillemin wrote: >>>> >>>> I may complete the script over time if you have some suggestions. >>>> >>>> Until then, I don't see any difference when changing the value of >>>> the anti-aliasing option, does someone know if it is still functional? >>>> >>>> Regards, >>>> >>>> Pierre >>>> >>>> >>>> Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : >>>>> Hi Pierre and Antoine >>>>> >>>>> Thank you very much for your help. This is very inspiring and >>>>> encouraging. >>>>> >>>>> Best regards, >>>>> Claus >>>>> >>>>> On 08-03-2017 11:41, Pierre Vuillemin wrote: >>>>>> Following Antoine's idea, find enclosed an example on how you can >>>>>> automate the process of improving your plots. This is obviously >>>>>> incomplete but it gives a general idea. >>>>>> >>>>>> Hope it helps, >>>>>> >>>>>> Pierre >>>>>> >>>>>> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>>>>>> It's definetly possible to do it. >>>>>>> In my group, we usually: >>>>>>> - set decent default values for the default figure ( hd=gdf() ): >>>>>>> increase font size, ... >>>>>>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 >>>>>>> 0.833 1. >>>>>>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>>>>>> - use the latex rendering for all the text, including ticks labels: >>>>>>> - for ticks?, just prepend & append "$" to the labels: ["0"; >>>>>>> "0.25"; >>>>>>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>>>>>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text >>>>>>> rendered >>>>>>> in Latex: \lambda^\beta}$" >>>>>>> - Export in a vectorial format, I prefer svg. >>>>>>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... >>>>>>> using Inkscape >>>>>>> - Generate a pdf version. >>>>>>> >>>>>>> >>>>>>> Hope it helps, >>>>>>> >>>>>>> Antoine >>>>>>> ? We have a script to clean up the ticks: it sets a decent >>>>>>> number of >>>>>>> ticks, and automate the prepend/append of "$". >>>>>>> >>>>>>> >>>>>>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>>>>>> a ?crit: >>>>>>> >>>>>>>> Hi >>>>>>>> >>>>>>>> I'm using Python matplotlib for some graphs for scientific >>>>>>>> papers. The >>>>>>>> reason is that the font and all seems to fit very well with the >>>>>>>> LaTeX >>>>>>>> document. >>>>>>>> >>>>>>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>>>>>> there a >>>>>>>> simple way to configure Scilab for similar high-quality plots? >>>>>>>> ... I'd >>>>>>>> like all text to be nice looking, i.e. the title, the x-axis >>>>>>>> and y-axis >>>>>>>> labels, the legend, etc. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Claus >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 cfuttrup at gmail.com Thu Mar 9 19:21:14 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 9 Mar 2017 19:21:14 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <85d1639e82528c811cca41a57a3ecbd9@pierre-vuillemin.fr> References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> <5f30ade8-1414-1c3e-9adf-d7869e90681f@gmail.com> <85d1639e82528c811cca41a57a3ecbd9@pierre-vuillemin.fr> Message-ID: <6842057e-c11d-596c-cef9-27523c9ef4a9@gmail.com> Hi Scilab user group / Pierre Vuillemin About prettify ... I notice it can take options, so for example if I'd like to change default line_thickness to 1 (back to standard), I thought I could write just : prettify(g_rs,'line_thickness',1); Scilab complains (wrong number of input arguments). How can I utilize the smartness in "prettify.sci" correctly? I gathered above would be correct because options are handled by struct() and help for struct indicated above use would be correct. To any help and suggestions offered: Thank you. Best regards, Claus On 09-03-2017 09:40, Pierre Vuillemin wrote: > > Hi Claus, > > find enclosed an updated version (now adequately called /prettify/ > instead of /prettyfy/...). Besides, subsequent evolutions will be > posted here . > > You can email me directly if you find other issues. > > Hope it helps, > > Pierre > > Le 08.03.2017 21:51, Claus Futtrup a ?crit : > >> Hi Pierre, et al >> >> Using gcf() doesn't solve my problem. I get: >> >> !--error 999 >> 'font_size' property does not exist for this handle. >> at line 4 of function generic_i_h called by : >> at line 2 of function %s_i_h called by : >> at line 52 of function prettyfy called by : >> prettyfy(gt); >> at line 1556 of exec file called by : >> exec('C:\Users\claus\Documents\Scilab54\z3fit.sce', -1) >> >> This is what the code looks like now: >> >> scf(); >> drawlater(); >> plot(shortxlist,shortylist,'-b'); // Plot smoothed data >> plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data >> t = gca(); >> set(t,"grid",[1 1]); >> xgrid(color("grey70")); >> xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / >> Density"); >> drawnow(); >> gt = gcf(); >> prettyfy(gt); >> >> Actually the plot came up with nice title, axis text, etc. ... I >> don't know what makes the prettyfy function crash on me ... Is it >> because the plot doesn't have a legend? >> >> As mentioned, some error handling could do good. :-) >> >> Best regards, >> Claus >> >> On 08-03-2017 21:24, Claus Futtrup wrote: >>> Hi Pierre >>> >>> >I may complete the script over time if you have some suggestions. >>> >>> Let me work with it over some time ... the first attempt ended like >>> this: >>> >>> !--error 999 >>> 'font_size' property does not exist for this handle. >>> at line 7 of function %h_set called by : >>> at line 4 of function generic_i_h called by : >>> at line 2 of function %s_i_h called by : >>> at line 36 of function prettyfy called by : >>> prettyfy(t); >>> at line 1555 of exec file called by : >>> exec('C:\xxxxxx\Scilab54\z3fit.sce', -1) >>> >>> Here's the code which generated above error: >>> >>> scf(); >>> drawlater(); >>> plot(shortxlist,shortylist,'-b'); // Plot smoothed data >>> plot(shortxlist,blf1_array(boollist,2),'-r'); // Plot original data >>> t = gca(); >>> set(t,"grid",[1 1]); >>> xgrid(color("grey70")); >>> xtitle("Bl density plot","Bl-value +/- 0.01% range","Quantity / >>> Density"); >>> drawnow(); >>> prettyfy(t); >>> >>> I'm not sure, but could it be that my graphs are created in a >>> different way? I use scf() and gca() instead of gcf() ... >>> >>> Instead of writing "prettyfy(t)" ... could I just feed gcf() >>> directly into prettyfy ?? >>> >>> BTW, I'm using Scilab 5.5.0 at the moment. >>> >>> Best regards, >>> Claus >>> >>> On 08-03-2017 18:28, Pierre Vuillemin wrote: >>>> >>>> I may complete the script over time if you have some suggestions. >>>> >>>> Until then, I don't see any difference when changing the value of >>>> the anti-aliasing option, does someone know if it is still functional? >>>> >>>> Regards, >>>> >>>> Pierre >>>> >>>> >>>> Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : >>>>> Hi Pierre and Antoine >>>>> >>>>> Thank you very much for your help. This is very inspiring and >>>>> encouraging. >>>>> >>>>> Best regards, >>>>> Claus >>>>> >>>>> On 08-03-2017 11:41, Pierre Vuillemin wrote: >>>>>> Following Antoine's idea, find enclosed an example on how you can >>>>>> automate the process of improving your plots. This is obviously >>>>>> incomplete but it gives a general idea. >>>>>> >>>>>> Hope it helps, >>>>>> >>>>>> Pierre >>>>>> >>>>>> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>>>>>> It's definetly possible to do it. >>>>>>> In my group, we usually: >>>>>>> - set decent default values for the default figure ( hd=gdf() ): >>>>>>> increase font size, ... >>>>>>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 >>>>>>> 0.833 1. >>>>>>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>>>>>> - use the latex rendering for all the text, including ticks labels: >>>>>>> - for ticks?, just prepend & append "$" to the labels: ["0"; >>>>>>> "0.25"; >>>>>>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>>>>>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text >>>>>>> rendered >>>>>>> in Latex: \lambda^\beta}$" >>>>>>> - Export in a vectorial format, I prefer svg. >>>>>>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... >>>>>>> using Inkscape >>>>>>> - Generate a pdf version. >>>>>>> >>>>>>> >>>>>>> Hope it helps, >>>>>>> >>>>>>> Antoine >>>>>>> ? We have a script to clean up the ticks: it sets a decent >>>>>>> number of >>>>>>> ticks, and automate the prepend/append of "$". >>>>>>> >>>>>>> >>>>>>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>>>>>> a ?crit: >>>>>>> >>>>>>>> Hi >>>>>>>> >>>>>>>> I'm using Python matplotlib for some graphs for scientific >>>>>>>> papers. The >>>>>>>> reason is that the font and all seems to fit very well with the >>>>>>>> LaTeX >>>>>>>> document. >>>>>>>> >>>>>>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>>>>>> there a >>>>>>>> simple way to configure Scilab for similar high-quality plots? >>>>>>>> ... I'd >>>>>>>> like all text to be nice looking, i.e. the title, the x-axis >>>>>>>> and y-axis >>>>>>>> labels, the legend, etc. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Claus >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 j.s.strom at hslmg.de Thu Mar 9 20:10:28 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 09 Mar 2017 20:10:28 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> Message-ID: <58C1A8A4.3080603@hslmg.de> Hallo Pierre, prettyfy is great. It will save many people a lot of time and trouble. I do not often use a legend. Leaving it out produces an error and using an empty one looks ugly. So that's my suggestion. Kind regards Jens ---------------------------------------------------------------------------------------------------------------------------------- Am 08.03.2017 18:28, schrieb Pierre Vuillemin: > > I may complete the script over time if you have some suggestions. > > Until then, I don't see any difference when changing the value of the > anti-aliasing option, does someone know if it is still functional? > > Regards, > > Pierre > > > Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : >> Hi Pierre and Antoine >> >> Thank you very much for your help. This is very inspiring and >> encouraging. >> >> Best regards, >> Claus >> >> On 08-03-2017 11:41, Pierre Vuillemin wrote: >>> Following Antoine's idea, find enclosed an example on how you can >>> automate the process of improving your plots. This is obviously >>> incomplete but it gives a general idea. >>> >>> Hope it helps, >>> >>> Pierre >>> >>> Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : >>>> It's definetly possible to do it. >>>> In my group, we usually: >>>> - set decent default values for the default figure ( hd=gdf() ): >>>> increase font size, ... >>>> - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. >>>> ] ticks by [0. 0.25 0.5 0.75 1.]) >>>> - use the latex rendering for all the text, including ticks labels: >>>> - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; >>>> "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. >>>> - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered >>>> in Latex: \lambda^\beta}$" >>>> - Export in a vectorial format, I prefer svg. >>>> - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using >>>> Inkscape >>>> - Generate a pdf version. >>>> >>>> >>>> Hope it helps, >>>> >>>> Antoine >>>> ? We have a script to clean up the ticks: it sets a decent number of >>>> ticks, and automate the prepend/append of "$". >>>> >>>> >>>> Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup >>>> a ?crit: >>>> >>>>> Hi >>>>> >>>>> I'm using Python matplotlib for some graphs for scientific papers. >>>>> The >>>>> reason is that the font and all seems to fit very well with the LaTeX >>>>> document. >>>>> >>>>> I know that Scilab can accept MathML (or LaTeX) expressions. Is >>>>> there a >>>>> simple way to configure Scilab for similar high-quality plots? ... >>>>> I'd >>>>> like all text to be nice looking, i.e. the title, the x-axis and >>>>> y-axis >>>>> labels, the legend, etc. >>>>> >>>>> Best regards, >>>>> >>>>> Claus >>>>> >>>>> _______________________________________________ >>>>> 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 >> >> >> >> >> _______________________________________________ >> 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 contact at pierre-vuillemin.fr Fri Mar 10 08:52:58 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Fri, 10 Mar 2017 08:52:58 +0100 Subject: [Scilab-users] ?==?utf-8?q? Plots for scientific papers In-Reply-To: <58C1A8A4.3080603@hslmg.de> References: <4055-58bfca00-b-29833cc0@89555184> <3fd8a045-9a7a-264b-0e61-bde46d952b37@gmail.com> <58C1A8A4.3080603@hslmg.de> Message-ID: <32ba26135b13b3d7ba58cb47dd2127f5@pierre-vuillemin.fr> Hi all, * the last version no longer assumes that there is a legend, * I've added a doc (header) with an example that should clarify the options. I tend to use structure for options, i.e. opt.line_thickness = 2 prettify(h, opt) * now, the z-axis should also be modified. Regards, Pierre nb: again, the last version is on my github [1]. Le 09.03.2017 20:10, Jens Simon Strom a ?crit : > Hallo Pierre, > prettyfy is great. It will save many people a lot of time and trouble. I do not often use a legend. Leaving it out produces an error and using an empty one looks ugly. So that's my suggestion. > Kind regards > Jens > ---------------------------------------------------------------------------------------------------------------------------------- > Am 08.03.2017 18:28, schrieb Pierre Vuillemin: > > I may complete the script over time if you have some suggestions. > > Until then, I don't see any difference when changing the value of the anti-aliasing option, does someone know if it is still functional? > > Regards, > > Pierre > Le 08/03/2017 ? 16:29, Claus Futtrup a ?crit : > Hi Pierre and Antoine > > Thank you very much for your help. This is very inspiring and encouraging. > > Best regards, > Claus > > On 08-03-2017 11:41, Pierre Vuillemin wrote: Following Antoine's idea, find enclosed an example on how you can automate the process of improving your plots. This is obviously incomplete but it gives a general idea. > > Hope it helps, > > Pierre > > Le 08.03.2017 10:08, Antoine Monmayrant a ?crit : > It's definetly possible to do it. > In my group, we usually: > - set decent default values for the default figure ( hd=gdf() ): > increase font size, ... > - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. > ] ticks by [0. 0.25 0.5 0.75 1.]) > - use the latex rendering for all the text, including ticks labels: > - for ticks?, just prepend & append "$" to the labels: ["0"; "0.25"; > "0.5"; "0.75"; "1"]->["$0$"; "$0.25$"; "$0.5$"; "$0.75$"; "$1$"]. > - for text, use "$\text{" and "}$" : "$\text{Your fancy text rendered > in Latex: \lambda^\beta}$" > - Export in a vectorial format, I prefer svg. > - Apply some cosmetic changes, add arrows, "(a)", "(b)", ... using Inkscape > - Generate a pdf version. > > Hope it helps, > > Antoine > ? We have a script to clean up the ticks: it sets a decent number of > ticks, and automate the prepend/append of "$". > > Le Mardi, Mars 07, 2017 20:35 CET, Claus Futtrup a ?crit: > > Hi > > I'm using Python matplotlib for some graphs for scientific papers. The > reason is that the font and all seems to fit very well with the LaTeX > document. > > I know that Scilab can accept MathML (or LaTeX) expressions. Is there a > simple way to configure Scilab for similar high-quality plots? ... I'd > like all text to be nice looking, i.e. the title, the x-axis and y-axis > labels, the legend, etc. > > Best regards, > > Claus > > _______________________________________________ > 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 _______________________________________________ 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 Links: ------ [1] https://github.com/pivui/scilabTools/blob/master/prettify/prettify.sci -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Fri Mar 10 15:34:28 2017 From: lists at kybdr.de (Dirk Reusch) Date: Fri, 10 Mar 2017 15:34:28 +0100 Subject: [Scilab-users] Not-Equal-Operation (<>, ~=) with UserType arguments badly crashes Scilab 6.0.0 Message-ID: <20170310153428.3efba73b@lemon> Hello, Using precompiled Scilab 6.0.0 Linux 64bit, the following procedure crashes Scilab silently ... Startup execution: loading initial environment --> exec('/home/dirk/Downloads/scilab-6.0.0/modules/ast/tests/unit_tests/newtype.tst',-1) This is my type. %nt_p: This is my type. --> a==a Undefined operation for the given operands. check or define function %nt_o_nt for overloading. --> a<>a ... SCILAB CRASHES !!! Thanks for any advice and further insight, Dirk PS: Tested also with current nightly build ... with the very same crash result! From clement.david at scilab-enterprises.com Fri Mar 10 16:33:34 2017 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 10 Mar 2017 16:33:34 +0100 Subject: [Scilab-users] Extraction of unusual fields of custom mlist in Scilab 6 In-Reply-To: <8c715060e592f2bf7cad68fd08009839@pierre-vuillemin.fr> References: <8c715060e592f2bf7cad68fd08009839@pierre-vuillemin.fr> Message-ID: <1489160014.2149.50.camel@scilab-enterprises.com> Hi Pierre, Nice catch, could you open a bug on that ? The bug is also much more understandable with : a = mlist(['mytype']); b = mlist(['myothertype']); function out = %mytype_e(varargin) ????var???= varargin($); ????field = varargin(1); ????disp(typeof(varargin)) ????disp(typeof(var)) ????disp(typeof(field)) ????out = []; endfunction a(b); Which display that var and field does not have the same type nor value when there is only 1 argument :/ . Thanks, -- Cl?ment From erhard.glueck.austria at gmail.com Fri Mar 10 16:53:22 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 10 Mar 2017 08:53:22 -0700 (MST) Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> <1488901157871-4035732.post@n3.nabble.com> <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> Message-ID: <1489161202744-4035782.post@n3.nabble.com> now I see there is also a function *drawaxis*. Is it possible to get a *handle* of the X-axis alone to modify the color and appearance of only one axis? Thank You Erhy -- View this message in context: http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035782.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Mar 10 17:49:24 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 10 Mar 2017 17:49:24 +0100 (CET) Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <1489161202744-4035782.post@n3.nabble.com> Message-ID: <579120608.1756708.1489164564305.JavaMail.root@zimbra75-e12.priv.proxad.net> >now I see there is also a function >*drawaxis*. >Is it possible to get a *handle* of the X-axis alone to modify the color and appearance of only one axis? As indicated in its help page, just use the drawaxis output: HandleOfMyAdditionalAxis = drawaxis(..); From erhard.glueck.austria at gmail.com Fri Mar 10 18:16:46 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 10 Mar 2017 10:16:46 -0700 (MST) Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <579120608.1756708.1489164564305.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> <1488901157871-4035732.post@n3.nabble.com> <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> <1489161202744-4035782.post@n3.nabble.com> <579120608.1756708.1489164564305.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1489166206951-4035784.post@n3.nabble.com> Thank you Samuel. I hoped for a handle of an already existing ax*i*s after newax*e*s() -- View this message in context: http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035784.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Mar 10 21:00:42 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Mar 2017 21:00:42 +0100 Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: <1489166206951-4035784.post@n3.nabble.com> References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> <1488901157871-4035732.post@n3.nabble.com> <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> <1489161202744-4035782.post@n3.nabble.com> <579120608.1756708.1489164564305.JavaMail.root@zimbra75-e12.priv.proxad.net> <1489166206951-4035784.post@n3.nabble.com> Message-ID: Le 10/03/2017 ? 18:16, Erhy a ?crit : > Thank you Samuel. > I hoped for a handle of an already existing ax*i*s after newax*e*s() newaxes() creates its own set of axes with calling drawaxis(). As already answered on 2017-03-02 23:19, axes created by newaxes() can't be modified separately. From sgougeon at free.fr Fri Mar 10 21:10:29 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Mar 2017 21:10:29 +0100 Subject: [Scilab-users] labels for 2 y-axes in plot In-Reply-To: References: <1488466944223-4035658.post@n3.nabble.com> <1488491048135-4035674.post@n3.nabble.com> <72e6c905-e346-304a-2ed6-170e1f02031d@free.fr> <1488901157871-4035732.post@n3.nabble.com> <6feb0f0a-d0be-e9fb-5ed8-00d7596ae761@free.fr> <1489161202744-4035782.post@n3.nabble.com> <579120608.1756708.1489164564305.JavaMail.root@zimbra75-e12.priv.proxad.net> <1489166206951-4035784.post@n3.nabble.com> Message-ID: <8cda8d3d-2758-ca58-a022-e51ad3bc4a4d@free.fr> Le 10/03/2017 ? 21:00, Samuel Gougeon a ?crit : > Le 10/03/2017 ? 18:16, Erhy a ?crit : >> Thank you Samuel. >> I hoped for a handle of an already existing ax*i*s after newax*e*s() > newaxes() creates its own set of axes with calling drawaxis(). Sorry, please read: newaxes() creates its own set of axes *without* calling drawaxis(). > As already answered on 2017-03-02 23:19, axes created by newaxes() > can't be modified separately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Sat Mar 11 12:59:44 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sat, 11 Mar 2017 19:59:44 +0800 Subject: [Scilab-users] Native managed Hypermatrices affect the Matplot functionality? Message-ID: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> Hi, A few questions regarding this: 1. As we know the Matplot will create new children if we call it without closing the previous one. So the following code will produce different behavior for 5.5.2 and 6. for cnt = 1:n a = rand(480,640,3); Matplot(a); end if n about 100 Scilab 5.5.2 : Memory shown in task manager will goes up to above 1 G, and clear after closing windows Scilab 6 : Memory shown in task manager will goes up a certain level (less tan 1 G), and show message "Can not allocate 7.37 MB memory." (7.37 varies for every run). Figure could not be closed with the "x" button on upper right, but able to closed by xdel. if n is big... Scilab 5.5.2 : Run until the critical error message shown Scilab 6 : Crash and close 2. To solve this in Scilab 5.5.2, we usually assign the data directly into the Matplot children data. However, in Scilab 6, when we run: a = uint8(zeros(480,640,3)); a(:,:,1) = uint8(255); a(:,:,2) = uint8(180); a(:,:,3) = uint8(60); Matplot(a); // View the image first before running following lines h = gcf(); h.children.children.data = a; Even we assigned back the same variable, the orientation of the data is wrong and the image is wrongly plot on the figure. The above example will show orange color in the first plot, and after assigning the same data back into the Matplot children data, the 3 layers are arrange in wrong order resulting wrong display. Thanks. Regards, Chin Luh -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 11 14:53:36 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 11 Mar 2017 14:53:36 +0100 Subject: [Scilab-users] Native managed Hypermatrices affect the Matplot functionality? In-Reply-To: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> References: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> Message-ID: <13ec6b4b-4639-feac-b7f7-4dcd22150ef1@free.fr> Hello, Le 11/03/2017 ? 12:59, Tan Chin Luh a ?crit : > .../... > > 2. To solve this in Scilab 5.5.2, we usually assign the data directly > into the Matplot children data. However, in Scilab 6, when we run: > > a = uint8(zeros(480,640,3)); > a(:,:,1) = uint8(255); > a(:,:,2) = uint8(180); > a(:,:,3) = uint8(60); > Matplot(a); > // View the image first before running following lines > h = gcf(); > h.children.children.data = a; > > Even we assigned back the same variable, the orientation of the data > is wrong and the image is wrongly plot on the figure. The above > example will show orange color in the first plot, and after assigning > the same data back into the Matplot children data, the 3 layers are > arrange in wrong order resulting wrong display. > This is clearly a regression. Only the first layer is actually assigned, others being ignored: e = gce(); size(e.data) and(e.data==255) --> e = gce(); --> size(e.data) ans = 480. 640. --> and(e.data==255) ans = T You may post a report about it. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sat Mar 11 17:15:49 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 11 Mar 2017 17:15:49 +0100 Subject: [Scilab-users] Books Message-ID: <7913139b-d840-748d-ff7c-c1ff5a4cbfab@gmail.com> To the Scilab team Last year three books were published in french - "Scilab, from theory to practice" - the first one about Fundamentals was translated to English. What about the second one about XCOS, will it also become available in English? Best regards, Claus From chinluh at tritytech.com Sun Mar 12 07:21:05 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sun, 12 Mar 2017 14:21:05 +0800 Subject: [Scilab-users] Native managed Hypermatrices affect the Matplot functionality? In-Reply-To: <13ec6b4b-4639-feac-b7f7-4dcd22150ef1@free.fr> References: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> <13ec6b4b-4639-feac-b7f7-4dcd22150ef1@free.fr> Message-ID: <7dfe408d-ed36-7dc9-9235-3841b7d8f4b2@tritytech.com> Thanks Samuel, Before I make the report, just to clarify one more point. The data extracted suppose to show white color plot, however: a = uint8(zeros(480,640,3)); a(:,:,1) = uint8(255); a(:,:,2) = uint8(180); a(:,:,3) = uint8(60); Matplot(a); *// View the image first before running following lines, this will show orange color* e = gce(); e.data = a; *// **this will show 3 columns of image, left -> white, middle -> gray, right -> black* b = e.data; and(b==255) *// this will show white image* Matplot(b); Any extra comments to add into bug report? Thanks again. rgds, CL On 11/3/2017 9:53 PM, Samuel Gougeon wrote: > Hello, > > Le 11/03/2017 ? 12:59, Tan Chin Luh a ?crit : >> .../... >> >> 2. To solve this in Scilab 5.5.2, we usually assign the data >> directly into the Matplot children data. However, in Scilab 6, when >> we run: >> >> a = uint8(zeros(480,640,3)); >> a(:,:,1) = uint8(255); >> a(:,:,2) = uint8(180); >> a(:,:,3) = uint8(60); >> Matplot(a); >> // View the image first before running following lines >> h = gcf(); >> h.children.children.data = a; >> >> Even we assigned back the same variable, the orientation of the data >> is wrong and the image is wrongly plot on the figure. The above >> example will show orange color in the first plot, and after assigning >> the same data back into the Matplot children data, the 3 layers are >> arrange in wrong order resulting wrong display. >> > > This is clearly a regression. Only the first layer is actually > assigned, others being ignored: > e = gce(); > size(e.data) > and(e.data==255) > > --> e = gce(); > > --> size(e.data) > ans = > 480. 640. > > --> and(e.data==255) > ans = > T > > You may post a report about it. > > 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 fujimoto2005 at gmail.com Sun Mar 12 11:36:26 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 12 Mar 2017 03:36:26 -0700 (MST) Subject: [Scilab-users] Does scilab 6.0 has day count funciton? Message-ID: <1489314986760-4035793.post@n3.nabble.com> Does scilab 6.0 has day count function such as 30/360, A/360 for bond yield calculation? -- View this message in context: http://mailinglists.scilab.org/Does-scilab-6-0-has-day-count-funciton-tp4035793.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Mar 12 12:10:37 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 Mar 2017 12:10:37 +0100 Subject: [Scilab-users] Native managed Hypermatrices affect the Matplot functionality? In-Reply-To: <7dfe408d-ed36-7dc9-9235-3841b7d8f4b2@tritytech.com> References: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> <13ec6b4b-4639-feac-b7f7-4dcd22150ef1@free.fr> <7dfe408d-ed36-7dc9-9235-3841b7d8f4b2@tritytech.com> Message-ID: <284ad248-688d-3620-22d2-de5be5889be3@free.fr> Le 12/03/2017 ? 07:21, Tan Chin Luh a ?crit : > Thanks Samuel, > > Before I make the report, just to clarify one more point. > > The data extracted suppose to show white color plot, however: > > > a = uint8(zeros(480,640,3)); > a(:,:,1) = uint8(255); > a(:,:,2) = uint8(180); > a(:,:,3) = uint8(60); > Matplot(a); > *// View the image first before running following lines, this will > show orange color* > e = gce(); > e.data = a; > *// **this will show 3 columns of image, left -> white, middle -> > gray, right -> black* > b = e.data; > and(b==255) > *// this will show white image* > Matplot(b); Yes, you are right: there are 2 sides of this bug * the 3 layers are partially taken into account to render the area, but are likely badly sampled. It looks quite similar to the bug http://bugzilla.scilab.org/14886 * only the first layer is assigned to .data, and they are no longer data corresponding to the rendering. All 6.0.0 bugs about Matplot and Matplot1 somewhat hinder image rendering so image processing applications, that are the most downloaded. IMO, because they have regressed and they are very used, curing them should be of high priority. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Sun Mar 12 15:24:45 2017 From: lists at kybdr.de (Dirk Reusch) Date: Sun, 12 Mar 2017 15:24:45 +0100 Subject: [Scilab-users] Logical Operations (&&, ||) with tlist, mlist, or UserType arguments badly crashes Scilab 6.0.0 Message-ID: <20170312152445.66ac452e@lemon> Using precompiled Scilab 6.0.0 Linux 64bit, the following procedure crashes Scilab silently ... Startup execution: loading initial environment --> a=tlist("T") a = a(1) T --> a & a Undefined operation for the given operands. check or define function %T_h_T for overloading. --> a && a ... SCILAB CRASHES !!! Please note, the very same crash results occur, when using the "||" operator, or mlist, or UserType arguments. Thanks for any advice and further insight, Dirk PS: Tested also with nightly build branch-6.0-1488991653 ... with the very same crash results! From sgougeon at free.fr Sun Mar 12 16:47:43 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 Mar 2017 16:47:43 +0100 Subject: [Scilab-users] Logical Operations (&&, ||) with tlist, mlist, or UserType arguments badly crashes Scilab 6.0.0 In-Reply-To: <20170312152445.66ac452e@lemon> References: <20170312152445.66ac452e@lemon> Message-ID: <7d911994-a79d-9092-0e90-ba88cc3877b5@free.fr> Hello Dirk, Le 12/03/2017 ? 15:24, Dirk Reusch a ?crit : > Using precompiled Scilab 6.0.0 Linux 64bit, the following procedure > crashes Scilab silently ... > > Startup execution: > loading initial environment > > --> a=tlist("T") > a = > a(1) > T > > --> a & a > > Undefined operation for the given operands. > check or define function %T_h_T for overloading. > > --> a && a > > ... SCILAB CRASHES !!! Confirmed. It is clearly a bug, very similar to this one: http://bugzilla.scilab.org/15008 By the way, we may be wondering about the overloading codes for && and ||, that are not documented. If there are no specific codes and codes of & and | should be used, how would it be possible from the overloading function to distinguish between a call to & from a call to &&? But this is another question, beyond the crash. From lists at kybdr.de Sun Mar 12 22:00:07 2017 From: lists at kybdr.de (Dirk Reusch) Date: Sun, 12 Mar 2017 22:00:07 +0100 Subject: [Scilab-users] Logical Operations (&&, ||) with tlist, mlist, or UserType arguments badly crashes Scilab 6.0.0 In-Reply-To: <7d911994-a79d-9092-0e90-ba88cc3877b5@free.fr> References: <20170312152445.66ac452e@lemon> <7d911994-a79d-9092-0e90-ba88cc3877b5@free.fr> Message-ID: <20170312220007.1dc5c422@lemon> Hello Samuel, Taking also into account my last post (cf. Mar 10, 2017; 3:34pm), one may summarize as follows: Scilab 6.0 crashes when using 1) "&&" or "||" with tlist, mlist, or UserTyper arguments 2) "~=" with UserType arguments Do you think these issues/bugs issues will be fixed in the near future? Thanks and best regards, Dirk On Sun, 12 Mar 2017 16:47:43 +0100 Samuel Gougeon wrote: > Hello Dirk, > > Le 12/03/2017 ? 15:24, Dirk Reusch a ?crit : > > Using precompiled Scilab 6.0.0 Linux 64bit, the following procedure > > crashes Scilab silently ... > > > > Startup execution: > > loading initial environment > > > > --> a=tlist("T") > > a = > > a(1) > > T > > > > --> a & a > > > > Undefined operation for the given operands. > > check or define function %T_h_T for overloading. > > > > --> a && a > > > > ... SCILAB CRASHES !!! > > Confirmed. It is clearly a bug, very similar to this one: > http://bugzilla.scilab.org/15008 > > By the way, we may be wondering about the overloading codes for && > and ||, that are not documented. > If there are no specific codes and codes of & and | should be used, > how would it be possible from the overloading function to distinguish > between a call to & from a call to &&? > But this is another question, beyond the crash. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From chinluh at tritytech.com Mon Mar 13 01:17:27 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 13 Mar 2017 08:17:27 +0800 Subject: [Scilab-users] Native managed Hypermatrices affect the Matplot functionality? In-Reply-To: <284ad248-688d-3620-22d2-de5be5889be3@free.fr> References: <270d1b10-1ec6-3263-e343-c617dd465415@tritytech.com> <13ec6b4b-4639-feac-b7f7-4dcd22150ef1@free.fr> <7dfe408d-ed36-7dc9-9235-3841b7d8f4b2@tritytech.com> <284ad248-688d-3620-22d2-de5be5889be3@free.fr> Message-ID: <5b0e96bc-f8c7-da21-4ac7-35881a0b2d0b@tritytech.com> Thanks again, Bug reported @ http://bugzilla.scilab.org/15059 rgds, Chin Luh On 12/3/2017 7:10 PM, Samuel Gougeon wrote: > Le 12/03/2017 ? 07:21, Tan Chin Luh a ?crit : >> Thanks Samuel, >> >> Before I make the report, just to clarify one more point. >> >> The data extracted suppose to show white color plot, however: >> >> >> a = uint8(zeros(480,640,3)); >> a(:,:,1) = uint8(255); >> a(:,:,2) = uint8(180); >> a(:,:,3) = uint8(60); >> Matplot(a); >> *// View the image first before running following lines, this will >> show orange color* >> e = gce(); >> e.data = a; >> *// **this will show 3 columns of image, left -> white, middle -> >> gray, right -> black* >> b = e.data; >> and(b==255) >> *// this will show white image* >> Matplot(b); > > Yes, you are right: there are 2 sides of this bug > > * the 3 layers are partially taken into account to render the area, > but are likely badly sampled. It looks quite similar to the bug > http://bugzilla.scilab.org/14886 > * only the first layer is assigned to .data, and they are no longer > data corresponding to the rendering. > > All 6.0.0 bugs about Matplot and Matplot1 somewhat hinder image > rendering so image processing applications, that are the most > downloaded. IMO, because they have regressed and they are very used, > curing them should be of high priority. > > 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 lists at kybdr.de Mon Mar 13 11:55:02 2017 From: lists at kybdr.de (Dirk Reusch) Date: Mon, 13 Mar 2017 11:55:02 +0100 Subject: [Scilab-users] Mysteries in the Realm of Overloading Catenation Operators (",", "; ") in Scilab 6.0 Message-ID: <20170313115502.653638b0@lemon> Hello, Using precompiled Scilab 6.0.0 Linux 64bit, exploring the announced "ability to define user types in C++ modules" (cf. Scilab 6.0 - Release Notes February 15th 2017) ... reveals the following: Startup execution: loading initial environment --> exec('/home/dirk/Downloads/scilab-branch-6.0-1488991653/modules/ast/tests/unit_tests/newtype.tst',-1) This is my type. %nt_p: This is my type. --> [a;a] Undefined operation for the given operands. check or define function %nt_f_nt for overloading. --> [a,a] Undefined operation for the given operands. check or define function %nt_c_nt for overloading. --> // So far, it's Ok!, but trying to .. --> [a,1] inconsistent row/column dimensions --> [a;1] inconsistent row/column dimensions --> // .. is IMHO not OK! --> // Why does Scilab here *not* try to call "%nt_c_s", or "%nt_f_s" ? So it seems IMHO, that the "ability to define user types in C++ modules" is currently in a rather broken/incomplete state ... but, I am looking forward to see things improving. Thanks for any advice and further insight, Dirk PS: Tested also with nightly build branch-6.0-1488991653 ... with the very same mysteries! From paul.bignier at scilab-enterprises.com Mon Mar 13 16:01:15 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 13 Mar 2017 16:01:15 +0100 Subject: [Scilab-users] macOS: Java 8 or Java 6? In-Reply-To: <0C090C96-D53D-44E7-9066-4A250DC96CD2@icloud.com> References: <0C090C96-D53D-44E7-9066-4A250DC96CD2@icloud.com> Message-ID: <9a039f78-45ab-575a-2b06-6d6984ef74c8@scilab-enterprises.com> Hello Jerry, As some mentioned on this blog , we are facing issues of Mac requiring Java 6 legacy code (other platforms don't suffer from that). At the end of the paper a workaround is proposed, should you not wish to install Java 6. Regards, Paul On 03/09/2017 01:03 AM, list_email at icloud.com wrote: > The listed requirements for SciLab on macOS includes Java 8. However, when I launch SciLab 6.0.0 on macOS 10.11 (El Capitan), I am directed to download Java 6, a legacy version. What is going on? > > Jerry > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From list_email at icloud.com Tue Mar 14 05:58:05 2017 From: list_email at icloud.com (list_email at icloud.com) Date: Mon, 13 Mar 2017 21:58:05 -0700 Subject: [Scilab-users] macOS: Java 8 or Java 6? In-Reply-To: <9a039f78-45ab-575a-2b06-6d6984ef74c8@scilab-enterprises.com> References: <0C090C96-D53D-44E7-9066-4A250DC96CD2@icloud.com> <9a039f78-45ab-575a-2b06-6d6984ef74c8@scilab-enterprises.com> Message-ID: Thank you, Paul. I wanted to evaluate SciLab but this experience has not been good. Jerry > On Mar 13, 2017, at 8:01 AM, Paul Bignier wrote: > > > Hello Jerry, > > As some mentioned on this blog , we are facing issues of Mac requiring Java 6 legacy code (other platforms don't suffer from that). > At the end of the paper a workaround is proposed, should you not wish to install Java 6. > > Regards, > Paul > > On 03/09/2017 01:03 AM, list_email at icloud.com wrote: >> The listed requirements for SciLab on macOS includes Java 8. However, when I launch SciLab 6.0.0 on macOS 10.11 (El Capitan), I am directed to download Java 6, a legacy version. What is going on? >> >> Jerry >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Paul BIGNIER > Development engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.68 > http://www.scilab-enterprises.com _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddslamdunk at gmail.com Tue Mar 14 16:04:21 2017 From: ddslamdunk at gmail.com (Daniele Tonelli) Date: Tue, 14 Mar 2017 10:04:21 -0500 Subject: [Scilab-users] atomsInstall("femtruss") Message-ID: Good morning, Why I can?t install atomsInstall("femtruss")? Thanks, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Mar 14 20:16:08 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Mar 2017 20:16:08 +0100 Subject: [Scilab-users] atomsInstall("femtruss") In-Reply-To: References: Message-ID: Le 14/03/2017 ? 16:04, Daniele Tonelli a ?crit : > Good morning, > > Why I can?t install atomsInstall("femtruss")? Which Scilab version are you using, and which operating system? What's the error message displayed when you try to install it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddslamdunk at gmail.com Tue Mar 14 20:22:24 2017 From: ddslamdunk at gmail.com (Daniele Tonelli) Date: Tue, 14 Mar 2017 14:22:24 -0500 Subject: [Scilab-users] atomsInstall("femtruss") In-Reply-To: References: Message-ID: Scilab 6.0.0 Windows 10 atomsInstallList: The package femtruss is not available. at line 51 of function atomsError ( C:\Program Files\scilab-6.0.0\modules\atoms\macros\atoms_internals\atomsError.sci line 65 ) at line 75 of function atomsInstallList ( C:\Program Files\scilab-6.0.0\modules\atoms\macros\atoms_internals\atomsInstallList.sci line 114 ) at line 233 of function atomsInstall ( C:\Program Files\scilab-6.0.0\modules\atoms\macros\atomsInstall.sci line 249 ) Thanks, Daniel 2017-03-14 14:16 GMT-05:00 Samuel Gougeon : > Le 14/03/2017 ? 16:04, Daniele Tonelli a ?crit : > > Good morning, > > Why I can?t install atomsInstall("femtruss")? > > > Which Scilab version are you using, and which operating system? > What's the error message displayed when you try to install it? > > > _______________________________________________ > 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 Tue Mar 14 22:43:21 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 14 Mar 2017 22:43:21 +0100 Subject: [Scilab-users] atomsInstall("femtruss") In-Reply-To: References: Message-ID: Le 14/03/2017 ? 20:22, Daniele Tonelli a ?crit : > Scilab 6.0.0 femtruss is not yet available on Scilab 6.0. It is currently available only for Scilab 5.4 and 5.5: https://atoms.scilab.org/toolboxes/femtruss/1.2.1 From rei.listas at yahoo.com Wed Mar 15 01:02:37 2017 From: rei.listas at yahoo.com (Reinaldo) Date: Tue, 14 Mar 2017 17:02:37 -0700 (MST) Subject: [Scilab-users] C/C++ compiler for Mac OS Sierra In-Reply-To: <1487690871.2090.3.camel@scilab-enterprises.com> References: <1250060948.3619555.1487011570813@mail.yahoo.com> <781bd288-44fd-866f-2804-3733c4aa78b3@scilab-enterprises.com> <1487149032.2114.2.camel@scilab-enterprises.com> <1202314111.569737.1487540695798@mail.yahoo.com> <1487690871.2090.3.camel@scilab-enterprises.com> Message-ID: <674141440.219462.1489536133371@mail.yahoo.com> Hi Cl?ment, Thank you for your mail. I have installed Geany app for Mac OSX. It has been good...? Tnx.Reinaldo. De: Cl?ment David-2 [via Scilab / Xcos - Mailing Lists Archives] Para: Reinaldo Enviadas: Ter?a-feira, 21 de Fevereiro de 2017 12:28 Assunto: Re: C/C++ compiler for Mac OS Sierra Hi Reinaldo, > Thank you for your mail. I downloaded the Command Line Tool as suggested by Paul in my Mac. It > works! I found out that "gcc" and "g++" are symlinks and they are not "real" compiler because > there is no entry for "man gcc" in Mac OSX. The real name is Clang and Clang++... Please correct > me if I told something wrong about this issue. However, I suppose that the Clang and Clang++ work > like gcc and g++ in Linux, respectively, don't they? Yep they are also supported as compilers in our ./configure script and Makefiles. > So, I gave up to use Eclipse IDE for C++ because I cannot adapt myself to the project-based > philosophy. Therefore, I would like to program using another software, perhaps, Gedit or something > else like that for Mac OSX.? > > What do you suggest, please? And how could I install it in the Mac OSX Sierra? I have no experiences on a specific editor for MacOS X, maybe Xcode (without the IDE features) or simpler things like Atom. Vim has a better taste for me (cross-platform) with its quick Cut Paste Sed features and LLVM based code-completion (provided by YouCompleteMe). > PS: Is this Xcode Command Line Tool enough to run Scilab 6.0? Thanks. I have no experience with it, but probably yes :). MacOS X is a platform we target but we do not have developers working on it from day to day. -- Cl?ment _______________________________________________ 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-C-C-compiler-for-Mac-OS-Sierra-tp4035482p4035543.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-C-C-compiler-for-Mac-OS-Sierra-tp4035482p4035819.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 Mar 15 16:02:22 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 16:02:22 +0100 Subject: [Scilab-users] Once and for all curing input() : a good target for Scilab 6.0.1 <== Re: Bug in input statement In-Reply-To: <59e53dd7-0287-b69c-1595-1f148abed8f6@free.fr> References: <59e53dd7-0287-b69c-1595-1f148abed8f6@free.fr> Message-ID: Once more user report about input(): http://bugzilla.scilab.org/15069 SG Le 03/03/2017 ? 21:06, Samuel Gougeon a ?crit : > Hello Osvaldo, > > Yes, there are awful sticky bugs on input(). Despite it is a "basic" > function, it has never ever worked in a completely right way. It is a > quite nasty situation for a high level language to have such a pitfall > on basics. > IMO, curing it once and for all should be in the top-10 priorities for > Scilab 6.0.1. > > Let's have a look to input() behavior versus Scilab's versions: > *4.0 - 4.1.2:* > -->mprintf("head of line"); mprintf(" without ending newline"); > head of line without ending newline > -->mprintf("head of line"); s=input("Message: ","s") > head of lineMessage: *-->*myAnswer // no way to forget that we are > prompted.. :/ > s = > myAnswer > > *5.1.0, 5.2.0, 5.3.0:* > -->mprintf("head of line"); mprintf(" without ending newline"); > head of line without ending newline > // this blank line is displayed only from Scilab 5.3.0 on > -->mprintf("head of line"); s=input("Message: ","s") > head of line // why this newline? > Message:myAnswer // eaten space after ":" when prompting > s = > myAnswer > > *5.4.0, 5.5.0 - 5.5.2:* > -->mprintf("head of line"); mprintf(" without ending newline"); > head of line without ending newline > -->mprintf("head of line"); s=input("Message: ","s") > head of line // but still: why this appended newline? > Message: myAnswer// now the space is correctly displayed when prompting > s = > myAnswer > > *6.0.0*: the worst, as you described it and as it is already reported > in Bugzilla. > http://bugzilla.scilab.org/14376 > http://bugzilla.scilab.org/14424 > > I did not find any workaround.. Same issue with mscanf(): > http://bugzilla.scilab.org/14998 > > Any idea for a workaround? > > Regards > Samuel > > Le 03/03/2017 ? 15:20, Osvaldo Sergio Farhat de Carvalho a ?crit : >> Hello, >> I was trying some simple programs that use the input statement on >> Scilab 6.0.0, and I got unexpected behaviour. Here is a test: >> n = input("n = ") >> while n > 0 >> n = input("n = ") >> end >> printf("\nThanks") >> >> Here is the result of this program on Scilab 6.0.0 console with input >> 1, 2, 3, 4 and 0: >> >> n = >> 1 >> >> n = >> --> 2 >> n = >> 3 >> >> n = >> 4 >> >> n = >> 0 >> >> >> Thanks >> 2+2 >> ans = >> >> 4. >> >> Compare this with the output on Scilab 5.5.2 console for the same input: >> >> n = 1 >> n = 2 >> n = 3 >> n = 4 >> n = 0 >> >> Thanks >> >> This is much more what one should expect from this litle program. >> Remark that on 6.0.0 console >> 1) There is a disturbing new line after printing the input statement >> message >> 2) There is a spurious apearance of the console prompt "-->" after >> the first execution of input statement >> 3) The console prompt "-->" does not appear after the end of program >> execution. >> >> I am using Scilab on a Windows 10 system. >> >> Thanks for your attention. >> Osvaldo >> >> >> >> _______________________________________________ >> 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 Wed Mar 15 17:04:54 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 17:04:54 +0100 Subject: [Scilab-users] lcm() output type: how to avoid overflowing and get an actual result? Message-ID: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> Hello, Processing the bug http://bugzilla.scilab.org/15017 for the lcm() function deserves an open discussion about the datatype of the result when the operand is a matrix of encoded integers. Presently, the result of lcm(A) has the type of A: --> r = lcm(int16([123 423])), typeof(r) r = 17343 ans = int16 --> r = lcm(uint8([123 423])), typeof(r) r = 61 ans = uint8 This behavior is questionable, in the way that the Least Common Multiple of some integers is always equal or*most often greater* than the maximum of the operand. Therefore, when the operand is a matrix of encoded integers, the LCM can easily (and most often) yield an overflow, and so yield a wrapped result, being most often unrelevant and misleading: Example: --> A = int8([2 3 5 7]); --> lcm(A) ans = -46 // 210 expected --> typeof(lcm(A)) ans = int8 So we see that even with few and small input values, as expected the result is already "corrupted". This bad effect does not happens with gcd() because its results is always *smaller or equal* to the maximum of the operand components. Octave behaves in the same bad way than Scilab, just saturating to the highest integer value instead of wrapping it, but in both cases the result is wrong: >> A = int8([2 3 5 7]); >> lcm(A(1), A(2), A(3), A(4)) ans = 127 So, the question is:*Do we improve the situation, and if we do, in which way?* Here are some suggestions: * The result is always promoted to the next class of inttype: int8 => int16, uint8 => uint16, int16 => int32, etc int64 and uint64 could be promoted into decimal numbers, but with a possible loss of accuracy (but beyond 2^63) * The result is always promoted to the most accurate (int64 or) uint64 class * The result is always promoted to the decimal (aka floating point) class My (slight) preference would be*to cast the result always into the decimal class*. Why? - the type of the result would be always the same: decimal - it would be OK and lossless for all int8, uint8, int16, and uint16 operands, and for all int32, uint32, int64, uint64 smaller than 2^26 OK, we could loose some low bits when processing some big 32 or 64 bits integers, but at least we would have a result ; otherwise, casting to uint64 could still lead to some overflow, so no actual result at all. - Usual +,-,*,/,^ operators between an int# or uint# and a decimal number forces the result to the encoded integer type. So this choice would let any further operations recasting the lcm() result into the original inttype (instead of promoting all further results in an unexpected way). What's your opinion? What would you prefer working with? Hope reading you soon Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Wed Mar 15 17:29:46 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Wed, 15 Mar 2017 16:29:46 +0000 Subject: [Scilab-users] {EXT} lcm() output type: how to avoid overflowing and get an actual result? In-Reply-To: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> References: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon > Envoy? : mercredi 15 mars 2017 17:05 > > My (slight) preference would be to cast the result always into the decimal class This sounds reasonable. But the result could also be converted to the format that is the "closest and suitable" from the input format. I mean: the user forced a format that is not floating point number for a reason of his/her own; When it is possible, we should respect this choice. So if the input is in uint8, the result could be computed in floating point number then converted to uint8 if possible, or uint# if it is too large, or even kept as floating point number when required. Don't know how heavy this is on a big matrix (a user probably select uint# to spare memory). My two cents regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sgougeon at free.fr Wed Mar 15 18:02:08 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 18:02:08 +0100 Subject: [Scilab-users] {EXT} lcm() output type: how to avoid overflowing and get an actual result? In-Reply-To: References: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> Message-ID: Hello Christophe, Thanks for your contribution: Le 15/03/2017 ? 17:29, Dang Ngoc Chan, Christophe a ?crit : >> My (slight) preference would be to cast the result always into the decimal class > This sounds reasonable. > > But the result could also be converted to the format that is the "closest and suitable" from the input format. > > I mean: the user forced a format that is not floating point number for a reason of his/her own; > When it is possible, we should respect this choice. > > So if the input is in uint8, the result could be computed in floating point number > then converted to uint8 if possible, or uint# if it is too large, or even kept as floating point number when required. Yes, it is possible to do that. But the main "problem" of this implementation would be that the output type would be unpredictable. So, do we prefer such an unpredictable type, that despite it is optimized could still fail being lossless, or do we prefer a fixed output type, by the way the same as for decimal operands, that will be most often lossless, and would already be much better than the current implementation (that is everything but lossless :/)? I think that if a user wants to use big integers to get accurate results, using an arbitrary accuracy module would be mandatory. > Don't know how heavy this is on a big matrix (a user probably select uint# to spare memory). IMO memory space is no longer really a problem in Scilab 6 [1]. Regards Samuel [1] About this topic, we could have expected from Scilab 6.0 to implement the wish http://bugzilla.scilab.org/12789 aiming to store each boolean in 1 byte instead of 4. But this is another thread. From sgougeon at free.fr Wed Mar 15 18:09:25 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 18:09:25 +0100 Subject: [Scilab-users] lcm() output type: how to avoid overflowing and get an actual result? In-Reply-To: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> References: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> Message-ID: Le 15/03/2017 ? 17:04, Samuel Gougeon a ?crit : > Hello, > > Processing the bughttp://bugzilla.scilab.org/15017 for the lcm() function > deserves an open discussion about the datatype of the result when the operand > is a matrix of encoded integers. > Presently, the result of lcm(A) has the type of A: > > --> r = lcm(int16([123 423])), typeof(r) > r = > 17343 > ans = > int16 > > --> r = lcm(uint8([123 423])), typeof(r) > r = > 61 > ans = > uint8 > > This behavior is questionable, in the way that the Least Common Multiple of some > integers is always equal or*most often greater* than the maximum of the operand. > Therefore, when the operand is a matrix of encoded integers, the LCM can easily > (and most often) yield an overflow, and so yield a wrapped result, being most often > unrelevant and misleading: > Example: > --> A = int8([2 3 5 7]); > --> lcm(A) > ans = > -46 // 210 expected > --> typeof(lcm(A)) > ans = > int8 > > So we see that even with few and small input values, as expected the result is already > "corrupted". > > This bad effect does not happens with gcd() because its results is always > *smaller or equal* to the maximum of the operand components. > > Octave behaves in the same bad way than Scilab, just saturating to the highest > integer value instead of wrapping it, but in both cases the result is wrong: > > >> A = int8([2 3 5 7]); > >> lcm(A(1), A(2), A(3), A(4)) > ans = 127 > > So, the question is:*Do we improve the situation, and if we do, in which way?* > Here are some suggestions: > > * The result is always promoted to the next class of inttype: > int8 => int16, uint8 => uint16, int16 => int32, etc > int64 and uint64 could be promoted into decimal numbers, but with a possible > loss of accuracy (but beyond 2^63) > > * The result is always promoted to the most accurate (int64 or) uint64 class > > * The result is always promoted to the decimal (aka floating point) class > > My (slight) preference would be*to cast the result always into the decimal class*. Why? > - the type of the result would be always the same: decimal > > - it would be OK and lossless for all int8, uint8, int16, and uint16 operands, > and for all int32, uint32, int64, uint64 smaller than 2^26 > OK, we could loose some low bits when processing some big 32 or 64 bits integers, > but at least we would have a result ; otherwise, casting to uint64 could still > lead to some overflow, so no actual result at all. > > - Usual +,-,*,/,^ operators between an int# or uint# and a decimal number forces > the result to the encoded integer type. So this choice would let any further > operations recasting the lcm() result into the original inttype (instead of > promoting all further results in an unexpected way). > > What's your opinion? What would you prefer working with? Another solution could be to implement an /outputType/ option for lcm(), in order to let the user choosing the expected behavior, with the following possible values: "asInput", "decimal", explicit inttype, "best", ... But with which default value? :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Wed Mar 15 18:57:59 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 15 Mar 2017 10:57:59 -0700 Subject: [Scilab-users] lcm() output type: how to avoid overflowing and get an actual result? In-Reply-To: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> References: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> Message-ID: <1489600679.714.106.camel@wescottdesign.com> So, a quick test gives me: -->A = uint8([123 423]); A / lcm(A) ?ans??= ? ? 2??2 ? This looks pretty "least common multiple" to me. ?If I want a least common multiple over decimal numbers or floats or bigger integers or whatever, then it's my responsibility to tell the function that's what I want by appropriately casting the type of the input. A note in the help section about this (desirable, IMHO) behavior would probably be a Good Idea though. On Wed, 2017-03-15 at 17:04 +0100, Samuel Gougeon wrote: > Hello, > > Processing the bug http://bugzilla.scilab.org/15017 for the lcm() > function > deserves an open discussion about the datatype of the result when the > operand > is a matrix of encoded integers. > Presently, the result of lcm(A) has the type of A: > > --> r = lcm(int16([123 423])), typeof(r) > ?r??=? > ? 17343 > ?ans??= > ?int16 > > --> r = lcm(uint8([123 423])), typeof(r) > ?r??=? > ? 61 > ?ans??= > ?uint8 > > This behavior is questionable, in the way that the Least Common > Multiple of some > integers is always equal or most often greater than the maximum of > the operand. > Therefore, when the operand is a matrix of encoded integers, the LCM > can easily > (and most often) yield an overflow, and so yield a wrapped result, > being most often > unrelevant and misleading: > Example: > --> A = int8([2 3 5 7]); > --> lcm(A) > ?ans??= > ?-46????????// 210 expected > --> typeof(lcm(A)) > ?ans??= > ?int8 > > So we see that even with few and small input values, as expected the > result is already > "corrupted". > > This bad effect does not happens with gcd() because its results is > always > smaller or equal to the maximum of the operand components. > > Octave behaves in the same bad way than Scilab, just saturating to > the highest > integer value instead of wrapping it, but in both cases the result is > wrong: > > >> A = int8([2 3 5 7]); > >> lcm(A(1), A(2), A(3), A(4)) > ans = 127 > > So, the question is: Do we improve the situation, and if we do, in > which way? > Here are some suggestions: > > * The result is always promoted to the next class of inttype: > ? int8 => int16, uint8 => uint16, int16 => int32, etc > ? int64 and uint64 could be promoted into decimal numbers, but with a > possible > ? loss of accuracy (but beyond 2^63) > > * The result is always promoted to the most accurate (int64 or) > uint64 class > > * The result is always promoted to the decimal (aka floating point) > class > > My (slight) preference would be to cast the result always into the > decimal class. Why? > ?- the type of the result would be always the same: decimal > > ?- it would be OK and lossless for all int8, uint8, int16, and uint16 > operands, > ???and for all int32, uint32, int64, uint64 smaller than 2^26 > ???OK, we could loose some low bits when processing some big 32 or 64 > bits integers, > ???but at least we would have a result ; otherwise, casting to uint64 > could still > ???lead to some overflow, so no actual result at all.? > > ?- Usual +,-,*,/,^ operators between an int# or uint# and a decimal > number forces > ???the result to the encoded integer type. So this choice would let > any further > ???operations recasting the lcm() result into the original inttype > (instead of? > ???promoting all further results in an unexpected way). > > What's your opinion? What would you prefer working with? > > Hope reading you soon > Samuel > > _______________________________________________ > 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 contact at pierre-vuillemin.fr Wed Mar 15 18:56:33 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Wed, 15 Mar 2017 18:56:33 +0100 Subject: [Scilab-users] A tool for creating formated tables Message-ID: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> Hi all, I've made a little tool for creating formated tables in Scilab. In particular, it enables to: * display pretty tables in the console, * create github-markdown tables, * create latex tables. Source code (the file tabular.sci) and some examples are provided here . It is not fully documented yet but the examples in the README give a good overview. Comments and feedback are welcome. I will also add the possibility to export matrices to latex (without titles or headers). Regards, Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Mar 15 20:33:17 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 20:33:17 +0100 Subject: [Scilab-users] A tool for creating formated tables In-Reply-To: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> References: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> Message-ID: Hello Pierre, Le 15/03/2017 ? 18:56, Pierre Vuillemin a ?crit : > > Hi all, > > I've made a little tool for creating formated tables in Scilab. In > particular, it enables to: > > * display pretty tables in the console, > * create github-markdown tables, > * create latex tables. > > Source code (the file tabular.sci) and some examples are provided here > . It is not > fully documented yet but the examples in the README give a good overview. > > Comments and feedback are welcome. > > I will also add the possibility to export matrices to latex (without > titles or headers). > I did not have a look to your github yet, but do you know prettyprint()? https://help.scilab.org/docs/6.0.0/en_US/prettyprint.html Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Wed Mar 15 20:42:37 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 15 Mar 2017 20:42:37 +0100 Subject: [Scilab-users] A tool for creating formated tables In-Reply-To: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> References: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> Message-ID: Hi Pierre Wow! Today I did the opposite ... I exported a LaTeX table to Scilab (as a matrix of strings). Best regards, Claus On 15-03-2017 18:56, Pierre Vuillemin wrote: > > Hi all, > > I've made a little tool for creating formated tables in Scilab. In > particular, it enables to: > > * display pretty tables in the console, > * create github-markdown tables, > * create latex tables. > > Source code (the file tabular.sci) and some examples are provided here > . It is not > fully documented yet but the examples in the README give a good overview. > > Comments and feedback are welcome. > > I will also add the possibility to export matrices to latex (without > titles or headers). > > > Regards, > > Pierre > > > > _______________________________________________ > 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 Mar 15 20:44:33 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 15 Mar 2017 20:44:33 +0100 Subject: [Scilab-users] lcm() output type: how to avoid overflowing and get an actual result? In-Reply-To: <1489600679.714.106.camel@wescottdesign.com> References: <8741c322-b62c-7a98-300b-b95f642bc9db@free.fr> <1489600679.714.106.camel@wescottdesign.com> Message-ID: Hello Tim, Le 15/03/2017 ? 18:57, Tim Wescott a ?crit : > So, a quick test gives me: > > -->A = uint8([123 423]); A / lcm(A) > ans = > > 2 2 > > This looks pretty "least common multiple" to me. Really? In which way? As long as integers are used, the result should not depend on their encoding. So: --> A = [123 423]; Lcm = lcm([123 423]), Lcm ./ A Lcm = 17343 ans = 141 41 BTW, why are you computing A/Lcm instead of Lcm ./A ? From paul.carrico at free.fr Thu Mar 16 08:31:15 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Thu, 16 Mar 2017 08:31:15 +0100 Subject: [Scilab-users] (Graphical) Visualization of the structure workflow Message-ID: <613d4c5246c5d147fc2aab9e4e60942f@free.fr> Hi All When I need to re-used some codes/programs I performed, especially when the structure is "complex" (using several files and functions), I often need to spend some time to reappropriate it (even if ever I try to well comment my codes). In order to be more efficient, I'm thinking in using graphic tools to writedown workflow, but I'm wondering if such tool ever exists in Scilab/atoms even (fully automatic or not)? Nb: some name I found: Visual Understanding Envinronment, Graphviz ... This post can be understand as a general discussion ... Regards Paul From contact at pierre-vuillemin.fr Thu Mar 16 10:10:50 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Thu, 16 Mar 2017 10:10:50 +0100 Subject: [Scilab-users] A tool for creating formated tables In-Reply-To: References: <40d1a8d0-fb98-8c3e-fb27-cc5484175836@pierre-vuillemin.fr> Message-ID: Hi Samuel, Indeed, I know the prettyprint function, the idea behind the function tabular was slightly different as it was firstly aimed at displaying tables including both string/numerical data in a unified way. Regards, Pierre Le 15/03/2017 ? 20:33, Samuel Gougeon a ?crit : > Hello Pierre, > > Le 15/03/2017 ? 18:56, Pierre Vuillemin a ?crit : >> >> Hi all, >> >> I've made a little tool for creating formated tables in Scilab. In >> particular, it enables to: >> >> * display pretty tables in the console, >> * create github-markdown tables, >> * create latex tables. >> >> Source code (the file tabular.sci) and some examples are provided >> here . It >> is not fully documented yet but the examples in the README give a >> good overview. >> >> Comments and feedback are welcome. >> >> I will also add the possibility to export matrices to latex (without >> titles or headers). >> > > I did not have a look to your github yet, but do you know prettyprint()? > https://help.scilab.org/docs/6.0.0/en_US/prettyprint.html > > 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 michael.benguigui at activeeon.com Thu Mar 16 11:14:27 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Thu, 16 Mar 2017 11:14:27 +0100 Subject: [Scilab-users] Scilab GUI 6 crash Message-ID: Hi all, On scilab 6, executing: 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'); makes scilab GUI crash! in video: https://drive.google.com/file/d/0B1xq0JSJQm07VGZSMGEyaVZyTWM/view?usp=sharing Any idea, workaround? Regards Michael -- 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 j.s.strom at hslmg.de Thu Mar 16 11:32:04 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 16 Mar 2017 11:32:04 +0100 Subject: [Scilab-users] Same color for contour isolines Message-ID: <58CA69A4.2080007@hslmg.de> Hi, How would you avoid the loop in the following example? n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); contour(n2_,nS_,N1/100,[-60:10:60]) ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) nComp=length(Comp); for k=1:nComp Comp(k).children.foreground=3; end Regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Mar 17 14:01:24 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 17 Mar 2017 14:01:24 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBTYW1lIGNvbG9yIGZvciBj?= =?utf-8?q?ontour_isolines?= In-Reply-To: <58CA69A4.2080007@hslmg.de> Message-ID: <340d-58cbde00-1-1dda50c0@87303880> Le Jeudi, Mars 16, 2017 11:32 CET, Jens Simon Strom a ?crit: > Hi, > How would you avoid the loop in the following example? By setting the colormap beforehand so that is only contains the color you want: n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); levels=[-60:10:60]; h=scf(); h.color_map=(ones(levels)).'*[0,1, 0];// replace the green [0,1, 0]; by any rgb color you want contour(n2_,nS_,N1/100,levels); It's a workaround, it's ugly, but it does the job: "Look ma', no loop!". Hope it helps, Antoine > > n2_=-1000:200:1000; > nS_=-1000:200:1000; > [N2,NS]=ndgrid(n2_,nS_); > N1=2.6*N2+(3.6)*NS; > xdel(); > contour(n2_,nS_,N1/100,[-60:10:60]) > > ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) > nComp=length(Comp); > for k=1:nComp > Comp(k).children.foreground=3; > end > > Regards > Jens > > From j.s.strom at hslmg.de Fri Mar 17 15:28:14 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 17 Mar 2017 15:28:14 +0100 Subject: [Scilab-users] ?==?utf-8?q? Same color for contour isolines In-Reply-To: <340d-58cbde00-1-1dda50c0@87303880> References: <340d-58cbde00-1-1dda50c0@87303880> Message-ID: <58CBF27E.6080002@hslmg.de> Hi Antoine, Brillant! My search did not reach out that far. I only fiddled around with the parents children and grand...grandchildren stuff. BTW: Is " Look ma' " the felt German for /Guck mal/? Kind regards Helmut ---------------------------------------------- Am 17.03.2017 14:01, schrieb Antoine Monmayrant: > Le Jeudi, Mars 16, 2017 11:32 CET, Jens Simon Strom a ?crit: > >> Hi, >> How would you avoid the loop in the following example? > By setting the colormap beforehand so that is only contains the color you want: > > n2_=-1000:200:1000; > nS_=-1000:200:1000; > [N2,NS]=ndgrid(n2_,nS_); > N1=2.6*N2+(3.6)*NS; > xdel(); > > levels=[-60:10:60]; > h=scf(); > h.color_map=(ones(levels)).'*[0,1, 0];// replace the green [0,1, 0]; by any rgb color you want > contour(n2_,nS_,N1/100,levels); > > It's a workaround, it's ugly, but it does the job: "Look ma', no loop!". > > Hope it helps, > > Antoine > > >> n2_=-1000:200:1000; >> nS_=-1000:200:1000; >> [N2,NS]=ndgrid(n2_,nS_); >> N1=2.6*N2+(3.6)*NS; >> xdel(); >> contour(n2_,nS_,N1/100,[-60:10:60]) >> >> ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) >> nComp=length(Comp); >> for k=1:nComp >> Comp(k).children.foreground=3; >> end >> >> Regards >> Jens >> >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adailtonjn68 at gmail.com Fri Mar 17 16:43:24 2017 From: adailtonjn68 at gmail.com (=?UTF-8?Q?Adailton_J=C3=BAnior?=) Date: Fri, 17 Mar 2017 11:43:24 -0400 Subject: [Scilab-users] Install image processing toolbox Message-ID: Good morning, all I've having a problem. I am trying to install an image processing toolbox in Scilab 6. The thing is when I open the ATOMS installation module no image processing category is shown in the sidebar. Also, when I try to install using atomsInstall('some image processing toolbox') like atomsInstall("SIP"), I get the following message, --> atomsInstall("SIP") atomsInstallList: O pacote SIP n?o est? dispon?vel. at line 51 of function atomsError ( C:\Users\adailton.junior\AppData\Local\scilab-6.0.0\modules\atoms\macros\atoms_internals\atomsError.sci line 65 ) at line 75 of function atomsInstallList ( C:\Users\adailton.junior\AppData\Local\scilab-6.0.0\modules\atoms\macros\atoms_internals\atomsInstallList.sci line 114 ) at line 233 of function atomsInstall ( C:\Users\adailton.junior\AppData\Local\scilab-6.0.0\modules\atoms\macros\atomsInstall.sci line 249 ) I'm involved in a research about plant leaf identification in my univertisy and I really need to solve the toolbox. Obs.: my scilab version is in portuguese. I thank you all in advance. Regards, Adailton J?nior -------------- next part -------------- An HTML attachment was scrubbed... URL: From al_exquemelin at yahoo.com Fri Mar 17 18:47:40 2017 From: al_exquemelin at yahoo.com (Viktor Goryainov) Date: Fri, 17 Mar 2017 20:47:40 +0300 Subject: [Scilab-users] Install image processing toolbox In-Reply-To: References: Message-ID: Hello! 17.03.2017 18:43, Adailton J?nior ?????: > --> atomsInstall("SIP") As far as I can see from atoms.scilab.org, neither SIP, nor SIVP (Scilab Image and Video Processing toolbox) are available at all for Scilab 6.0 right now. The latter has less time since last update released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. Best regards, Viktor From perrichon.pierre at wanadoo.fr Sat Mar 18 12:08:48 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Sat, 18 Mar 2017 12:08:48 +0100 Subject: [Scilab-users] Low limiter zero of an Integral_m integrator doesn't properly work (Scilab Xcos 5.5.2) Message-ID: Dear Xcos team, In my process, I use an integrator Intergral_m with limiters bewteen 0 and 1. It seems that small n?gative values are not taken into account. So the lower limiter doesn't properly work It seems mandatory to add a saturation 0-1 to get a correct result, which is redondancy with the limiters. In my record BUGLimiteurIntegrateur.scg , we can see value -8.30 e-101 behind the integrator with limiter See http://bugzilla.scilab.org/show_bug.cgi?id=15077 for attached files Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 906 bytes Desc: not available URL: From chinluh at tritytech.com Sat Mar 18 14:06:33 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sat, 18 Mar 2017 21:06:33 +0800 Subject: [Scilab-users] Install image processing toolbox In-Reply-To: References: Message-ID: hi, you might want to try: --> atomsInstall("IPCV") a new module which is base on SIVP with more functions, just uploaded about a day ago. Cheers! rgds, CL On 18/3/2017 1:47 AM, Viktor Goryainov wrote: > Hello! > > 17.03.2017 18:43, Adailton J?nior ?????: > >> --> atomsInstall("SIP") > > As far as I can see from atoms.scilab.org, neither SIP, nor SIVP > (Scilab Image and Video Processing toolbox) are available at all for > Scilab 6.0 right now. The latter has less time since last update > released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. > > Best regards, > Viktor > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From cfuttrup at gmail.com Sat Mar 18 15:47:29 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 18 Mar 2017 15:47:29 +0100 Subject: [Scilab-users] Histogram plot Message-ID: Dear Scilab users I've tried to use histplot, but I probably just don't understand what it does or what it is supposed to do. I hope you can help me do this in a smarter way. Here's to code which does the correct stuff - but as you can see, I have to "manually" count what goes into each histogram category - and afterwards I also have to manually "paint" the histplot. It's rather complicated for being such a simple task. // sample.sce Bl = [ 7.007 7.065 7.047 6.999 6.999 7.025 6.998 7.075 7.035 .. 7.037 7.071 7.031 7.069 7.032 7.02 7.047 7.025 7.026 ]; avgbl = mean(Bl); [nearest,i] = min(abs(Bl-avgbl)); // 'nearest'is unimportant, we need i nearest = Bl(i); // This is our 'Master'for the BIAS study Bl_diff = Bl - nearest; minBl_diff = floor(100*min(Bl_diff))/100 - 0.005; maxBl_diff = ceil(100*max(Bl_diff))/100 + 0.005; bins = (maxBl_diff - minBl_diff)*100; // we create 9 bins dividers = linspace(minBl_diff,maxBl_diff,bins+1); // 10 dividers bin_vec(1) = sum(Bl_diff < dividers(2)); // start initialize bin_vec for i=2:bins do bin_vec(i) = sum(Bl_diff < dividers(i+1)) - sum(Bl_diff < dividers(i)) end // bin_vec contains the correct frequency count scf(); drawlater(); // histplot(dividers,Bl_diff,style=2); // WRONG FREQUENCY COUNT for i=1:bins do xi = (dividers(i+1) + dividers(i))/2; // middle of bin container xlo = xi - 0.004; xhi = xi + 0.004; plot([xlo xlo],[0 bin_vec(i)],'-k'); plot([xlo xhi],[bin_vec(i) bin_vec(i)],'-k'); plot([xhi xhi],[0 bin_vec(i)],'-k'); xfpoly([xlo xlo xhi xhi xlo],[0 bin_vec(i) bin_vec(i) 0 0],color("grey")); end xtitle("","Bias study, $Bl$ - mean($Bl$)","Count"); drawnow(); Best regards, Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 18 15:52:53 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 15:52:53 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: References: Message-ID: Hello Claus, Have you tried the "normalization=%f" histplot() option? SG Le 18/03/2017 ? 15:47, Claus Futtrup a ?crit : > > Dear Scilab users > > I've tried to use histplot, but I probably just don't understand what > it does or what it is supposed to do. I hope you can help me do this > in a smarter way. Here's to code which does the correct stuff - but as > you can see, I have to "manually" count what goes into each histogram > category - and afterwards I also have to manually "paint" the > histplot. It's rather complicated for being such a simple task. > > // sample.sce > > Bl = [ > > 7.007 7.065 7.047 6.999 6.999 7.025 6.998 7.075 7.035 .. > > 7.037 7.071 7.031 7.069 7.032 7.02 7.047 7.025 7.026 ]; > > avgbl = mean(Bl); > > [nearest,i] = min(abs(Bl-avgbl)); // 'nearest'is unimportant, we need i > > nearest = Bl(i); // This is our 'Master'for the BIAS study > > Bl_diff = Bl - nearest; > > minBl_diff = floor(100*min(Bl_diff))/100 - 0.005; > > maxBl_diff = ceil(100*max(Bl_diff))/100 + 0.005; > > bins = (maxBl_diff - minBl_diff)*100; // we create 9 bins > > dividers = linspace(minBl_diff,maxBl_diff,bins+1); // 10 dividers > > bin_vec(1) = sum(Bl_diff < dividers(2)); // start initialize bin_vec > > for i=2:bins do > > bin_vec(i) = sum(Bl_diff < dividers(i+1)) - sum(Bl_diff < dividers(i)) > > end // bin_vec contains the correct frequency count > > scf(); > > drawlater(); > > // histplot(dividers,Bl_diff,style=2); // WRONG FREQUENCY COUNT > > for i=1:bins do > > xi = (dividers(i+1) + dividers(i))/2; // middle of bin container > > xlo = xi - 0.004; > > xhi = xi + 0.004; > > plot([xlo xlo],[0 bin_vec(i)],'-k'); > > plot([xlo xhi],[bin_vec(i) bin_vec(i)],'-k'); > > plot([xhi xhi],[0 bin_vec(i)],'-k'); > > xfpoly([xlo xlo xhi xhi xlo],[0 bin_vec(i) bin_vec(i) 0 0],color("grey")); > > end > > xtitle("","Bias study, $Bl$ - mean($Bl$)","Count"); > > drawnow(); > > Best regards, > > Claus > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adailtonjn68 at gmail.com Sat Mar 18 16:03:30 2017 From: adailtonjn68 at gmail.com (=?UTF-8?Q?Adailton_J=c3=banior?=) Date: Sat, 18 Mar 2017 11:03:30 -0400 Subject: [Scilab-users] Install image processing toolbox In-Reply-To: References: Message-ID: Hello, atomsInstall("IPCV") didn't work right away, and I tried in more than one computer. Although, after usingatomsSystemUpdate(), it worked. So, thanks for the quick reply. And good work. Now, I can proceed with my research. Best regards, -- Adailton J?nior +5569992549337 On 18/03/2017 09:06, Tan Chin Luh wrote: > hi, > > you might want to try: > --> atomsInstall("IPCV") > > a new module which is base on SIVP with more functions, just uploaded > about a day ago. > > Cheers! > > rgds, > CL > > > On 18/3/2017 1:47 AM, Viktor Goryainov wrote: >> Hello! >> >> 17.03.2017 18:43, Adailton J?nior ?????: >> >>> --> atomsInstall("SIP") >> >> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP >> (Scilab Image and Video Processing toolbox) are available at all for >> Scilab 6.0 right now. The latter has less time since last update >> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. >> >> Best regards, >> Viktor >> _______________________________________________ >> 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 cfuttrup at gmail.com Sat Mar 18 16:04:04 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 18 Mar 2017 16:04:04 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: References: Message-ID: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> Hi Samuel This works. Thanks. Now I understand what normalization does - and that it's default = true. :-) What about the fact that I'd like not only to outline the bars, but I like the bars to be colored solid grey? (The help pages show no examples of this). Best regards, Claus On 18-03-2017 15:52, Samuel Gougeon wrote: > Hello Claus, > Have you tried the "normalization=%f" histplot() option? > SG > > Le 18/03/2017 ? 15:47, Claus Futtrup a ?crit : >> >> Dear Scilab users >> >> I've tried to use histplot, but I probably just don't understand what >> it does or what it is supposed to do. I hope you can help me do this >> in a smarter way. Here's to code which does the correct stuff - but >> as you can see, I have to "manually" count what goes into each >> histogram category - and afterwards I also have to manually "paint" >> the histplot. It's rather complicated for being such a simple task. >> >> // sample.sce >> >> Bl = [ >> >> 7.007 7.065 7.047 6.999 6.999 7.025 6.998 7.075 7.035 .. >> >> 7.037 7.071 7.031 7.069 7.032 7.02 7.047 7.025 7.026 ]; >> >> avgbl = mean(Bl); >> >> [nearest,i] = min(abs(Bl-avgbl)); // 'nearest'is unimportant, we need i >> >> nearest = Bl(i); // This is our 'Master'for the BIAS study >> >> Bl_diff = Bl - nearest; >> >> minBl_diff = floor(100*min(Bl_diff))/100 - 0.005; >> >> maxBl_diff = ceil(100*max(Bl_diff))/100 + 0.005; >> >> bins = (maxBl_diff - minBl_diff)*100; // we create 9 bins >> >> dividers = linspace(minBl_diff,maxBl_diff,bins+1); // 10 dividers >> >> bin_vec(1) = sum(Bl_diff < dividers(2)); // start initialize bin_vec >> >> for i=2:bins do >> >> bin_vec(i) = sum(Bl_diff < dividers(i+1)) - sum(Bl_diff < dividers(i)) >> >> end // bin_vec contains the correct frequency count >> >> scf(); >> >> drawlater(); >> >> // histplot(dividers,Bl_diff,style=2); // WRONG FREQUENCY COUNT >> >> for i=1:bins do >> >> xi = (dividers(i+1) + dividers(i))/2; // middle of bin container >> >> xlo = xi - 0.004; >> >> xhi = xi + 0.004; >> >> plot([xlo xlo],[0 bin_vec(i)],'-k'); >> >> plot([xlo xhi],[bin_vec(i) bin_vec(i)],'-k'); >> >> plot([xhi xhi],[0 bin_vec(i)],'-k'); >> >> xfpoly([xlo xlo xhi xhi xlo],[0 bin_vec(i) bin_vec(i) 0 >> 0],color("grey")); >> >> end >> >> xtitle("","Bias study, $Bl$ - mean($Bl$)","Count"); >> >> drawnow(); >> >> Best regards, >> >> Claus >> >> >> >> _______________________________________________ >> 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 Sat Mar 18 16:14:54 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 16:14:54 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> Message-ID: <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> Le 18/03/2017 ? 16:04, Claus Futtrup a ?crit : > Hi Samuel > > This works. Thanks. Now I understand what normalization does - and > that it's default = true. :-) > > What about the fact that I'd like not only to outline the bars, but I > like the bars to be colored solid grey? (The help pages show no > examples of this). After calling histplot(), just do: gce().children.background = color("grey70"); histplot() is being reforged. The new release shall be available in Scilab 6.1, with more examples in the help page. Samuel From jrafaelbguerra at hotmail.com Sat Mar 18 16:23:10 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 18 Mar 2017 08:23:10 -0700 (MST) Subject: [Scilab-users] Histogram plot In-Reply-To: <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> Message-ID: <1489850590052-4035852.post@n3.nabble.com> Fyi, in Scilab 5.5.2 win 7, it seems to also require fill_mode = "on", and the fill color leaks as per image below: histplot(dividers,Bl_diff,normalization=%f); p= gce(); p.children.fill_mode = "on"; p.children.background = color("grey70"); Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Histogram-plot-tp4035847p4035852.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jeje0399 at gmail.com Sat Mar 18 16:25:05 2017 From: jeje0399 at gmail.com (jeremy) Date: Sat, 18 Mar 2017 08:25:05 -0700 (MST) Subject: [Scilab-users] Arduino-Scilab Message-ID: <1489850705557-4035853.post@n3.nabble.com> Bonjour, dans le but de mon projet de Terminale , j'ai besoin de connecter scilab et arduino ensemble. Mias,Scilab me demande la Arduino_toolbox_v3 alors que seul la v2 est fournis dan le module Arduino disponible sur ATOMS, je souhaiterais donc savoir comment installer cette toolbox. De plus, je souhaiterais savoir si la version 1.1 du module Arduino suffit ou si il me faut la version 1.3. Merci d'avance pour vos r?ponses -- View this message in context: http://mailinglists.scilab.org/Arduino-Scilab-tp4035853.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Mar 18 16:41:51 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 16:41:51 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: <1489850590052-4035852.post@n3.nabble.com> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> <1489850590052-4035852.post@n3.nabble.com> Message-ID: <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> Le 18/03/2017 ? 16:23, Rafael Guerra a ?crit : > Fyi, in Scilab 5.5.2 win 7, it seems to also require fill_mode = "on", and > the fill color leaks as per image below: > > histplot(dividers,Bl_diff,normalization=%f); > p= gce(); > p.children.fill_mode = "on"; > p.children.background = color("grey70"); > > Leakage for empty bars confirmed in 5.5.2 and 6.0 with the simple example: d = grand(1,60,'unf',0,1); clf(); histplot(20,d,normalization=%f); p = gce(); p.children.fill_mode -->p.children.fill_mode ans = on But as shown by the results above, .fill_mode is already set to "on"; The leakage on empty bars in not yet reported. From sgougeon at free.fr Sat Mar 18 16:44:44 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 16:44:44 +0100 Subject: [Scilab-users] Arduino-Scilab In-Reply-To: <1489850705557-4035853.post@n3.nabble.com> References: <1489850705557-4035853.post@n3.nabble.com> Message-ID: Hello Jeremy, For messages and anwers in french, you shall subscribe and post to the [users*-fr*] mailing list. Read you soon Samuel Le 18/03/2017 ? 16:25, jeremy a ?crit : > Bonjour, dans le but de mon projet de Terminale , j'ai besoin de connecter > scilab et arduino ensemble. Mias,Scilab me demande la Arduino_toolbox_v3 > alors que seul la v2 est fournis dan le module Arduino disponible sur ATOMS, > je souhaiterais donc savoir comment installer cette toolbox. De plus, je > souhaiterais savoir si la version 1.1 du module Arduino suffit ou si il me > faut la version 1.3. > > Merci d'avance pour vos r?ponses > > > > -- > View this message in context: http://mailinglists.scilab.org/Arduino-Scilab-tp4035853.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 jrafaelbguerra at hotmail.com Sat Mar 18 16:54:13 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 18 Mar 2017 08:54:13 -0700 (MST) Subject: [Scilab-users] Histogram plot In-Reply-To: <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> <1489850590052-4035852.post@n3.nabble.com> <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> Message-ID: <1489852453899-4035856.post@n3.nabble.com> Is fill_mode already set to "on"? It all depends on what we have plotted before histplot is called. The example below shows it to be set to "off": d = grand(1,60,'unf',0,1); clf(); subplot(2,1,1) plot(d) subplot(2,1,2) histplot(20,d,normalization=%f); p = gce(); p.children.fill_mode p.children.fill_mode ans = off -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Histogram-plot-tp4035847p4035856.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Sat Mar 18 16:58:40 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 18 Mar 2017 16:58:40 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> <1489850590052-4035852.post@n3.nabble.com> <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> Message-ID: <4f80ba0c-b5e4-744e-c3f8-32fd914b250a@gmail.com> Hi Samuel, et al. I'm running Scilab 5.5.0 (haven't bothered to update) on Win10. >p.children.fill_mode is default = off. I guess it's a good idea to manually ensure it is on, for compatibility reasons. It sounds good that histplot() is revamped and help pages updated for 6.1 :-) Best regards, Claus On 18-03-2017 16:41, Samuel Gougeon wrote: > Le 18/03/2017 ? 16:23, Rafael Guerra a ?crit : >> Fyi, in Scilab 5.5.2 win 7, it seems to also require fill_mode = >> "on", and >> the fill color leaks as per image below: >> >> histplot(dividers,Bl_diff,normalization=%f); >> p= gce(); >> p.children.fill_mode = "on"; >> p.children.background = color("grey70"); >> >> >> > > Leakage for empty bars confirmed in 5.5.2 and 6.0 with the simple > example: > d = grand(1,60,'unf',0,1); > clf(); > histplot(20,d,normalization=%f); > p = gce(); > p.children.fill_mode > > -->p.children.fill_mode > ans = > on > > But as shown by the results above, .fill_mode is already set to "on"; > > The leakage on empty bars in not yet reported. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Sat Mar 18 17:08:12 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 17:08:12 +0100 Subject: [Scilab-users] Histogram plot In-Reply-To: <1489852453899-4035856.post@n3.nabble.com> References: <299f8a7d-1d8e-ff5f-c959-f599a9ceefcb@gmail.com> <40bf05e6-9f1e-5cac-1ddb-6e1626ec3f8e@free.fr> <1489850590052-4035852.post@n3.nabble.com> <2991b901-dbea-eeb7-5b5f-ffbe37f5325d@free.fr> <1489852453899-4035856.post@n3.nabble.com> Message-ID: Le 18/03/2017 ? 16:54, Rafael Guerra a ?crit : > Is fill_mode already set to "on"? > It all depends on what we have plotted before histplot is called. My fault: i have implemented the filling*after *the 5.5.2 release http://bugzilla.scilab.org/13965 + CodeReview pointer but on my 5.5.2 installation, and i did not refresh it to the default 5.5.2 after that. Sorry for being misleading. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Mar 18 17:14:52 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 Mar 2017 17:14:52 +0100 Subject: [Scilab-users] Same color for contour isolines In-Reply-To: <58CA69A4.2080007@hslmg.de> References: <58CA69A4.2080007@hslmg.de> Message-ID: Hello Jens, Le 16/03/2017 ? 11:32, Jens Simon Strom a ?crit : > Hi, > How would you avoid the loop in the following example? > > n2_=-1000:200:1000; > nS_=-1000:200:1000; > [N2,NS]=ndgrid(n2_,nS_); > N1=2.6*N2+(3.6)*NS; > xdel(); > contour(n2_,nS_,N1/100,[-60:10:60]) > > ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) > nComp=length(Comp); > for k=1:nComp > Comp(k).children.foreground=3; > end This code also changes the color of the frame of text labels (if it was displayed). The ideal expected way would be: ca.children.children(2:2:$).foreground = color("green"); But this instruction yields an error. This is a bug, just reported here: http://bugzilla.scilab.org/15079 The proposed solution shall be available in Scilab 6.0.1. Before it, you may simply do the following: edit %h_get // in the file, replace the instruction out_vect=[out_vect,get(hdl(i),str)] // with out_vect=[out_vect;get(hdl(i),str)] Then exec %h_get.sci If you want to have it fixed permanently before the 6.0.1 release, you must recompile the graphics library: cd SCI/modules/graphics/macros predef clear genlib graphicslib clear %h_get and that's all for ever: Then the syntaxes ca.children.children(2:2:$).foreground // reading values = extraction ca.children.children(2:2:$).foreground = color("green"); // setting value = insertion will work even after restarting Scilab HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Sat Mar 18 20:43:15 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Sat, 18 Mar 2017 20:43:15 +0100 Subject: [Scilab-users] Same color for contour isolines In-Reply-To: References: <58CA69A4.2080007@hslmg.de> Message-ID: <58CD8DD3.5080705@hslmg.de> Hi there Samuel, Thanks for the real but yet disfunctional solution. I will wait in patience until Scilab 6.0.1 is available. Kind regards Jens ------------------------------------------------------------------------------------------------------------------------------------------------- Am 18.03.2017 17:14, schrieb Samuel Gougeon: > Hello Jens, > > Le 16/03/2017 ? 11:32, Jens Simon Strom a ?crit : >> Hi, >> How would you avoid the loop in the following example? >> >> n2_=-1000:200:1000; >> nS_=-1000:200:1000; >> [N2,NS]=ndgrid(n2_,nS_); >> N1=2.6*N2+(3.6)*NS; >> xdel(); >> contour(n2_,nS_,N1/100,[-60:10:60]) >> >> ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) >> nComp=length(Comp); >> for k=1:nComp >> Comp(k).children.foreground=3; >> end > > This code also changes the color of the frame of text labels (if it > was displayed). > > The ideal expected way would be: > ca.children.children(2:2:$).foreground = color("green"); > > But this instruction yields an error. This is a bug, just reported here: > http://bugzilla.scilab.org/15079 > The proposed solution shall be available in Scilab 6.0.1. > > Before it, you may simply do the following: > > edit %h_get > // in the file, replace the instruction > out_vect=[out_vect,get(hdl(i),str)] > // with > out_vect=[out_vect;get(hdl(i),str)] > > Then exec %h_get.sci > If you want to have it fixed permanently before the 6.0.1 release, you > must recompile the graphics library: > > cd SCI/modules/graphics/macros > predef clear > genlib graphicslib > clear %h_get > > and that's all for ever: Then the syntaxes > ca.children.children(2:2:$).foreground // reading values = extraction > ca.children.children(2:2:$).foreground = color("green"); // setting > value = insertion > will work even after restarting Scilab > > HTH > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.r.jamnia at gmail.com Sun Mar 19 19:21:09 2017 From: a.r.jamnia at gmail.com (abdul rashid) Date: Sun, 19 Mar 2017 21:51:09 +0330 Subject: [Scilab-users] error 21,Invalid index Message-ID: Hello all, I have been very confused because of facing with below scilab code errors. Would you please, check the mentioned errors and to guide. [p_opt, fobj_p_opt, p_init, fobj_p_init] = optim_gourguet(Gbis_aleas2, PopSize, Nb_iter, Proba_mut, Proba_cross, Log, ga_params); optim_gourguet: Initialization of the population !--error 21 Invalid index. at line 8 of function FF_aleas_bis called by : at line 4 of function G_aleas2 called by : at line 4 of function sg_f called by : at line 2 of function _sg_f called by : at line 53 of function optim_gourguet called by : Nb_iter, Proba_mut, Proba_cross, Log, ga_params) The mentioned scilab files are enclosed. These codes belong to my Ph.D. research. executing the models are so necessary because of limited time of my dissertation. Scilab version 5.5.2 have been used. I am very grateful in advance for your kind consideration and assistance. Sincerely yours, Abdul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Calibration.sce Type: application/octet-stream Size: 19108 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: optim_gourguet.sci Type: application/octet-stream Size: 6016 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Optim_GA_inputs.sci Type: application/octet-stream Size: 2551 bytes Desc: not available URL: From sgougeon at free.fr Sun Mar 19 21:22:36 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 19 Mar 2017 21:22:36 +0100 Subject: [Scilab-users] error 21,Invalid index In-Reply-To: References: Message-ID: <97348216-85f9-02fd-1e29-f8992cc25b58@free.fr> Hello, Le 19/03/2017 ? 19:21, abdul rashid a ?crit : > > Hello all, > > I have been very confused because of facing with below scilab code > errors. Would you please, check the mentioned errors and to guide. > > [p_opt, fobj_p_opt, p_init, fobj_p_init] = optim_gourguet(Gbis_aleas2, > PopSize, Nb_iter, Proba_mut, Proba_cross, Log, ga_params); > > optim_gourguet: Initialization of the population > > !--error 21 > > Invalid index. > > at line 8 of function FF_aleas_bis called by : > The error occurs in the function FF_aleas_bis() while the definition of this function is not provided. So how to know why the error occurs? -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.r.jamnia at gmail.com Mon Mar 20 09:02:23 2017 From: a.r.jamnia at gmail.com (abdul rashid) Date: Mon, 20 Mar 2017 11:32:23 +0330 Subject: [Scilab-users] error 21,Invalid index In-Reply-To: <97348216-85f9-02fd-1e29-f8992cc25b58@free.fr> References: <97348216-85f9-02fd-1e29-f8992cc25b58@free.fr> Message-ID: Sorry, the mentioned functions file entitled ( fonctions_dynam.sci ) has been forgotten to enclose and now is attached. Thanks for your consideration. On Sun, Mar 19, 2017 at 11:52 PM, Samuel Gougeon wrote: > Hello, > > Le 19/03/2017 ? 19:21, abdul rashid a ?crit : > > Hello all, > > I have been very confused because of facing with below scilab code > errors. Would you please, check the mentioned errors and to guide. > > [p_opt, fobj_p_opt, p_init, fobj_p_init] = optim_gourguet(Gbis_aleas2, > PopSize, Nb_iter, Proba_mut, Proba_cross, Log, ga_params); > > optim_gourguet: Initialization of the population > > !--error 21 > > Invalid index. > > at line 8 of function FF_aleas_bis called by : > > > The error occurs in the function FF_aleas_bis() while the definition of > this function is not provided. > So how to know why the error occurs? > > > _______________________________________________ > 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: fonctions_dynam.sci Type: application/octet-stream Size: 3658 bytes Desc: not available URL: From paul.bignier at scilab-enterprises.com Mon Mar 20 10:24:08 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 20 Mar 2017 10:24:08 +0100 Subject: [Scilab-users] Scilab GUI 6 crash In-Reply-To: References: Message-ID: Hello Michael, It works just fine on my system, could you please tell us more about your config (OS / other installed toolboxes / result of '-->jre_path()' )? Regards, Paul On 03/16/2017 11:14 AM, Michael Benguigui wrote: > 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'); -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Mar 20 11:11:39 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Mon, 20 Mar 2017 10:11:39 +0000 Subject: [Scilab-users] {EXT} Re: error 21,Invalid index In-Reply-To: References: <97348216-85f9-02fd-1e29-f8992cc25b58@free.fr> Message-ID: Hello > De : users [mailto:users-bounces at lists.scilab.org] De la part de abdul rashid > Envoy? : lundi 20 mars 2017 09:02 > > !--error 21 > Invalid index. > at line 8 of function FF_aleas_bis called by : [...] > > Sorry, the mentioned functions file entitled ( fonctions_dynam.sci ) has been forgotten to enclose and now is attached. Reading the fonctions_dynam.sci file, it seems that you use global variables inside functions. While it is legitimate in some cases, my opinion is that it should be avoided (i.e. use only local variables) and in the present case, it is obfuscating: the line #8 of the FF_aleas_bis is Stom_p=p(N_species_14+size_q+2:1+size_q+N_species_14+N_species_14^2); but to know what N_species_14 and size_q are, we have to read the entire code of the project which is not convenient. Nevertheless, you should check whether N_species_14+size_q+2 <= size(p) <= 1+size_q+N_species_14+N_species_14^2 or not. Hope this helps, regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From antoine.monmayrant at laas.fr Mon Mar 20 11:21:57 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 20 Mar 2017 11:21:57 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBJbnN0YWxsIGltYWdlIHBy?= =?utf-8?q?ocessing_toolbox?= In-Reply-To: Message-ID: Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: > Hello, > > atomsInstall("IPCV") didn't work right away, and I tried in more than > one computer. Although, after usingatomsSystemUpdate(), it worked. > So, thanks for the quick reply. And good work. Now, I can proceed with > my research. Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz scilab-6.0.0/bin/scilab --> atomsInstall('IPCV') Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? ans = !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! AtomsAutoload() // segfault & core dumped Antoine > > Best regards, > > -- > Adailton J?nior > +5569992549337 > > > > > On 18/03/2017 09:06, Tan Chin Luh wrote: > > hi, > > > > you might want to try: > > --> atomsInstall("IPCV") > > > > a new module which is base on SIVP with more functions, just uploaded > > about a day ago. > > > > Cheers! > > > > rgds, > > CL > > > > > > On 18/3/2017 1:47 AM, Viktor Goryainov wrote: > >> Hello! > >> > >> 17.03.2017 18:43, Adailton J?nior ?????: > >> > >>> --> atomsInstall("SIP") > >> > >> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP > >> (Scilab Image and Video Processing toolbox) are available at all for > >> Scilab 6.0 right now. The latter has less time since last update > >> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. > >> > >> Best regards, > >> Viktor > >> _______________________________________________ > >> users mailing list > >> users at lists.scilab.org > >> http://lists.scilab.org/mailman/listinfo/users > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Mon Mar 20 11:39:06 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 20 Mar 2017 11:39:06 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSAg?= =?utf-8?q?Install_image_processing_toolbo?= In-Reply-To: Message-ID: <1678-58cfb180-19-1ab9e7a0@137789600> Answering my own message: It seems that core dump & segfault are almost part of the install process described here: http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/ I followed these recommendations and I can restart scilab without a segfault. I have the feeling there is something wrong with such an install process (install prerequisite, use atoms, crash, do some hand tweaking, pray). As far as I remember, image processing toolboxes have always been a pain to install. Why is this the case? Is the atoms system inadequate? Antoine Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" a ?crit: > Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: > > > Hello, > > > > atomsInstall("IPCV") didn't work right away, and I tried in more than > > one computer. Although, after usingatomsSystemUpdate(), it worked. > > So, thanks for the quick reply. And good work. Now, I can proceed with > > my research. > > > Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: > > tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz > scilab-6.0.0/bin/scilab > > --> atomsInstall('IPCV') > Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? > > ans = > > !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! > > AtomsAutoload() // segfault & core dumped > > > Antoine > > > > > Best regards, > > > > -- > > Adailton J?nior > > +5569992549337 > > > > > > > > > > On 18/03/2017 09:06, Tan Chin Luh wrote: > > > hi, > > > > > > you might want to try: > > > --> atomsInstall("IPCV") > > > > > > a new module which is base on SIVP with more functions, just uploaded > > > about a day ago. > > > > > > Cheers! > > > > > > rgds, > > > CL > > > > > > > > > On 18/3/2017 1:47 AM, Viktor Goryainov wrote: > > >> Hello! > > >> > > >> 17.03.2017 18:43, Adailton J?nior ?????: > > >> > > >>> --> atomsInstall("SIP") > > >> > > >> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP > > >> (Scilab Image and Video Processing toolbox) are available at all for > > >> Scilab 6.0 right now. The latter has less time since last update > > >> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. > > >> > > >> Best regards, > > >> Viktor > > >> _______________________________________________ > > >> users mailing list > > >> users at lists.scilab.org > > >> http://lists.scilab.org/mailman/listinfo/users > > > > > > > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From david.cheze at cea.fr Mon Mar 20 11:48:20 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Mon, 20 Mar 2017 03:48:20 -0700 (MST) Subject: [Scilab-users] non linear optim Message-ID: <1490006900946-4035880.post@n3.nabble.com> Hi, I'm running scilab 6.0 on WIN7_64 and I failed to run optimisation based on 'optim' functions (leastsq) while fminsearch performed well. The call in my code are summarized below : ----- function RMSE=evaloptiM1D(X) ... calls to other macros to calculate the "cost"=RMSE returned value endfunction x0= [1.27 ; 0.8] [fopt, xopt]=leastsq(evaloptiM1D,x0) //fail [x, fval]=fminsearch(evaloptiM1D,x0',opt) //run ok ---------- fminsearch returns successfully X = 1.22 0.77 while leastsq starts then fails with : User function 'costf' have not been setted. Any idea about what it means and where it could comes from ? Thanks for your advice David -- View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Mon Mar 20 12:27:57 2017 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 20 Mar 2017 12:27:57 +0100 Subject: [Scilab-users] non linear optim In-Reply-To: <1490006900946-4035880.post@n3.nabble.com> References: <1490006900946-4035880.post@n3.nabble.com> Message-ID: <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> Hello David, Do the examples work? I need to know if the problem is related to your scripts or leastsq. Could you please reduce to a minimal reproducible use-case and report it on the bugzilla ? Regards, Paul On 03/20/2017 11:48 AM, David Ch?ze wrote: > Hi, > > I'm running scilab 6.0 on WIN7_64 and I failed to run optimisation based on > 'optim' functions (leastsq) while fminsearch performed well. The call in my > code are summarized below : > > ----- > function RMSE=evaloptiM1D(X) > ... calls to other macros to calculate the "cost"=RMSE returned value > endfunction > > x0= [1.27 ; 0.8] > > [fopt, xopt]=leastsq(evaloptiM1D,x0) //fail > > [x, fval]=fminsearch(evaloptiM1D,x0',opt) //run ok > > > ---------- > fminsearch returns successfully X = 1.22 0.77 > while > leastsq starts then fails with : > > User function 'costf' have not been setted. > > Any idea about what it means and where it could comes from ? > > Thanks for your advice > > > David > > > > > > -- > View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Mon Mar 20 16:53:41 2017 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Mon, 20 Mar 2017 08:53:41 -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: <1490025221517-4035882.post@n3.nabble.com> Hi Paul, the leastsq examples run properly on my machine, as well as other tests with simple functions inside. I looked at leastsq first because of the minimal request very simple way to express the problem f=costf(X) with functions that are not quickly vectorizable. Otherwise I was used to datafit. I saw in lsqrsolve that we need to provide the numbers of equations to run the solver, maybe it's similar for leastsq ? In my case the costf function evaluates the model over 7 tests, each test is 6 to 7 evaluations of different configurations. I'm limiting to 2 unknowns to calibrate in my model so the problem can be solve a priori but leastsq is not informed of that a priori . and -- View this message in context: http://mailinglists.scilab.org/non-linear-optim-tp4035880p4035882.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Frieder.Nikolaisen at student.hs-rm.de Mon Mar 20 17:26:14 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Mon, 20 Mar 2017 17:26:14 +0100 Subject: [Scilab-users] Read matrix from text file Message-ID: Hello, I do try to read a matrix of floating point numbers from a text file. I want to have floating point numbers in Sciliab. (I used before mgetl which return strings). I have attached the example text file and scilab file. The error it says is: read: Wrong number of output argument(s): 0 expected. Thank you. Greetings Frieder My code: Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); Koeffizienten = mopen(Koeffizienten_Pfad) B = read(Koeffizienten,-1,4) disp(B) mclose('all') -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Dieselmotor_v2.0.sce URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Koeffizienten_DM_Matrix.txt URL: From tim at wescottdesign.com Mon Mar 20 17:53:25 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 20 Mar 2017 09:53:25 -0700 Subject: [Scilab-users] Read matrix from text file In-Reply-To: References: Message-ID: <1490028805.3726.21.camel@wescottdesign.com> On Mon, 2017-03-20 at 17:26 +0100, Frieder Nikolaisen wrote: > Hello, > I do try to read a matrix of floating point numbers from a text file. > I want to have floating point numbers in Sciliab. (I used before > mgetl which return strings). > I have attached the example text file and scilab file. The error it > says is: read: Wrong number of output argument(s): 0 expected. > Thank you. > Greetings > Frieder > ? > My code: > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei > Koeffizienten"); > > Koeffizienten = mopen(Koeffizienten_Pfad) > > B = read(Koeffizienten,-1,4) > > disp(B) > > mclose('all') Scilab has multiple contradictory ways of managing files. ?It appears that "mopen" is not compatible with "read". ?To use read: -->file("open", "bob.txt", "old"); ? -->read(bob, -1, 4) ?ans??= ? ????1.????2.????3.????4.?? ????5.????6.????7.??- 8.?? ? -->file("close", bob); However, if you can trust that your file will always be in a tidy format, you can use fscanfMat: -->fscanfMat("bob.txt") ?ans??= ? ????1.????2.????3.????4.?? ????5.????6.????7.??- 8. (You can also use mopen and mfscanf -- the "file" stuff is "Fortran- like", the "mopen" stuff is "C-like", and fscanfMat is just convenient. ?I tend to use the C-like stuff because most of my "real" programming work is done in C, so I'm familiar with it. ?Pick your poison.) -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From tim at wescottdesign.com Mon Mar 20 18:12:03 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 20 Mar 2017 10:12:03 -0700 Subject: [Scilab-users] non linear optim In-Reply-To: <1490025221517-4035882.post@n3.nabble.com> References: <1490006900946-4035880.post@n3.nabble.com> <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> <1490025221517-4035882.post@n3.nabble.com> Message-ID: <1490029923.3726.33.camel@wescottdesign.com> On Mon, 2017-03-20 at 08:53 -0700, David Ch?ze wrote: > Hi Paul, > > the leastsq examples run properly on my machine, as well as other > tests with > simple functions inside. > > I looked at leastsq first because of the minimal request very simple > way to > express the problem f=costf(X) with functions that are not quickly > vectorizable. Otherwise I was used to datafit. I saw in lsqrsolve > that we > need to provide the numbers of equations to run the solver, maybe > it's > similar for leastsq ? In my case the costf function evaluates the > model over > 7 tests, each test is 6 to 7 evaluations of different configurations. > I'm > limiting to 2 unknowns to calibrate in my model so the problem can be > solve > a priori??but leastsq is not informed of that a priori .? > > and? > > Hey David: I think Paul is concerned that something broke in the transition from 5.x to 6.0. I haven't used fminsearch, but it looks like it uses a significantly different algorithm than leastsq and optim (I believe that optim uses Newton's method, or perhaps a combination of Newton's method and gradient descent). ?So it could just be that the underlying algorithm in fminsearch works better for your problem than the one for leastsq. Looking at the relevant Wikipedia pages may suggest something: https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method? (fminsearch) https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization?(optim) --? Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From osvaldo at dcc.ufmg.br Mon Mar 20 18:30:23 2017 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 20 Mar 2017 14:30:23 -0300 Subject: [Scilab-users] Read matrix from text file In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From sdr at durietz.se Mon Mar 20 18:44:18 2017 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Mar 2017 18:44:18 +0100 Subject: [Scilab-users] Read matrix from text file In-Reply-To: References: Message-ID: <12874167-3f6c-19a7-5858-26a1924557ac@durietz.se> Hello Frieder, have you tried just this? Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); B = read(Koeffizienten_Pfad,-1,4) Redards Stefan On 2017-03-20 17:26, Frieder Nikolaisen wrote: > Hello, > > I do try to read a matrix of floating point numbers from a text file. > I want to have floating point numbers in Sciliab. (I used before mgetl > which return strings). > > I have attached the example text file and scilab file. The error it > says is: read: Wrong number of output argument(s): 0 expected. > > Thank you. > > Greetings > > Frieder > > > > My code: > > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); > > Koeffizienten = mopen(Koeffizienten_Pfad) > > B = read(Koeffizienten,-1,4) > > disp(B) > > mclose('all') > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From paul.carrico at free.fr Mon Mar 20 19:13:14 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 20 Mar 2017 19:13:14 +0100 Subject: [Scilab-users] non linear optim In-Reply-To: <1490029923.3726.33.camel@wescottdesign.com> References: <1490006900946-4035880.post@n3.nabble.com> <90169a57-6449-5138-178a-27fa312d4cc2@scilab-enterprises.com> <1490025221517-4035882.post@n3.nabble.com> <1490029923.3726.33.camel@wescottdesign.com> Message-ID: <560f2b8aac98078612a3e173a57bc834@free.fr> Hi All I've ever been thinking that fminsearch uses Nelder-Mead algorthm i.e. it is an order 0 method (no gradient is needed to determine the local extremum) ; this is a personnal approach but I uses NeldeMead (with bounds and restarts) instead of fminsearch for a limited number of variables. Nota bene : I'm still using Scilab 5.5.2 release Paul Le 2017-03-20 18:12, Tim Wescott a ?crit?: > On Mon, 2017-03-20 at 08:53 -0700, David Ch?ze wrote: >> Hi Paul, >> >> the leastsq examples run properly on my machine, as well as other >> tests with >> simple functions inside. >> >> I looked at leastsq first because of the minimal request very simple >> way to >> express the problem f=costf(X) with functions that are not quickly >> vectorizable. Otherwise I was used to datafit. I saw in lsqrsolve >> that we >> need to provide the numbers of equations to run the solver, maybe >> it's >> similar for leastsq ? In my case the costf function evaluates the >> model over >> 7 tests, each test is 6 to 7 evaluations of different configurations. >> I'm >> limiting to 2 unknowns to calibrate in my model so the problem can be >> solve >> a priori??but leastsq is not informed of that a priori .? >> >> and? >> >> > > Hey David: > > I think Paul is concerned that something broke in the transition from > 5.x to 6.0. > > I haven't used fminsearch, but it looks like it uses a significantly > different algorithm than leastsq and optim (I believe that optim uses > Newton's method, or perhaps a combination of Newton's method and > gradient descent). ?So it could just be that the underlying algorithm > in fminsearch works better for your problem than the one for leastsq. > > Looking at the relevant Wikipedia pages may suggest something: > > https://en.wikipedia.org/wiki/Nelder%E2%80%93Mead_method? (fminsearch) > https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization?(optim) > > --? > > 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 From Frieder.Nikolaisen at student.hs-rm.de Mon Mar 20 19:13:41 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Mon, 20 Mar 2017 19:13:41 +0100 Subject: [Scilab-users] Read matrix from text file In-Reply-To: References: Message-ID: Hi Osvaldo, thanks. It does run well. I have different text documents, sometimes I want to skip the header or not load the entire document. I do not find a solution in the help. Like with mgetl, just read a few lines as the variabale A and then use B for the wanted Matrix. Cheers Frieder Am 20.03.2017 um 18:30 schrieb Osvaldo Sergio Farhat de Carvalho: > Hi Frieder, > > Try > > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); > > m = fscanfMat(Koeffizienten_Pfad) > > disp(B) > > Regards, > Osvaldo > > -----"users" escreveu: ----- > Para: > De: Frieder Nikolaisen > Enviado por: "users" > Data: 20/03/2017 01:37 PM > Assunto: [Scilab-users] Read matrix from text file > > Hello, > > I do try to read a matrix of floating point numbers from a text file. > I want to have floating point numbers in Sciliab. (I used before mgetl > which return strings). > > I have attached the example text file and scilab file. The error it > says is: read: Wrong number of output argument(s): 0 expected. > > Thank you. > > Greetings > > Frieder > > My code: > > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei > Koeffizienten"); > > Koeffizienten = mopen(Koeffizienten_Pfad) > > B = read(Koeffizienten,-1,4) > > disp(B) > > mclose('all') > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > [anexo "Dieselmotor_v2.0.sce" removido por Osvaldo Sergio Farhat de > Carvalho/PROF/DCC/ICEX/UFMG] > [anexo "Koeffizienten_DM_Matrix.txt" removido por Osvaldo Sergio > Farhat de Carvalho/PROF/DCC/ICEX/UFMG] > > > _______________________________________________ > 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 Mon Mar 20 19:25:49 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Mon, 20 Mar 2017 11:25:49 -0700 Subject: [Scilab-users] Read matrix from text file In-Reply-To: References: Message-ID: <1490034349.2967.2.camel@wescottdesign.com> You can use "Fortran style" ("file" to open and then "read"), or "C- style" ("mopen" to open and then "mfscanf"). ?Both read and mfscanf let you specify the number of lines to read in (note that I've only ever done this with mfscanf). You can also (I'm pretty sure) specify a number of lines to read with mgetl -- this lets you read into a text block, then use whatever parsing you want to actually read the data. On Mon, 2017-03-20 at 19:13 +0100, Frieder Nikolaisen wrote: > Hi Osvaldo,? > thanks. It does run well.? > I have different text documents, sometimes I want to skip the header > or not load the entire document.? I do not find a solution in the > help. Like with mgetl, just read a few lines as the variabale A and > then use B for the wanted Matrix.? > Cheers > Frieder? > > Am 20.03.2017 um 18:30 schrieb Osvaldo Sergio Farhat de Carvalho: > > Hi Frieder, > > > > Try > > > > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei > > Koeffizienten"); > > > > m = fscanfMat(Koeffizienten_Pfad) > > > > disp(B) > > > > Regards, > > Osvaldo > > > > -----"users" escreveu: ----- > > Para: > > De: Frieder Nikolaisen? > > Enviado por: "users"? > > Data: 20/03/2017 01:37 PM > > Assunto: [Scilab-users] Read matrix from text file > > > > Hello, > > I do try to read a matrix of floating point numbers from a text > > file. I want to have floating point numbers in Sciliab. (I used > > before mgetl which return strings). > > I have attached the example text file and scilab file. The error it > > says is: read: Wrong number of output argument(s): 0 expected. > > Thank you. > > Greetings > > Frieder > > ? > > My code: > > Koeffizienten_Pfad?=?uigetfile(["*.txt"],'',"W?hlen Sie die Datei > > Koeffizienten"); > > > > Koeffizienten?=?mopen(Koeffizienten_Pfad) > > > > B?=?read(Koeffizienten,-1,4) > > > > disp(B) > > > > mclose('all') > > > > ? > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > > > [anexo "Dieselmotor_v2.0.sce" removido por Osvaldo Sergio Farhat de > > Carvalho/PROF/DCC/ICEX/UFMG] > > [anexo "Koeffizienten_DM_Matrix.txt" removido por Osvaldo Sergio > > Farhat de Carvalho/PROF/DCC/ICEX/UFMG] > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > ? > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From chinluh at tritytech.com Tue Mar 21 02:34:08 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 21 Mar 2017 09:34:08 +0800 Subject: [Scilab-users] ?= Install image processing toolbo In-Reply-To: <1678-58cfb180-19-1ab9e7a0@137789600> References: <1678-58cfb180-19-1ab9e7a0@137789600> Message-ID: <2fd5d604-d3e7-72fb-a76c-a3ddb9cd4ba8@tritytech.com> Hi, Great that you've get it works. The crashed was caused by 2 reasons: 1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is caused by the older libgomp.so library distributed under Scilab 6 binary. This problem could be resolved with the OpenCV installed as along the installation the latest libgomp.so would be installed to the system as well. 2. If you're running an older version (e.g Ubuntu 14.04) , the crash is caused during the loading of the IPCV library which is compiled with newer version of gcc. Usually in linux, a lot of codes/program will just ask the user to download the source and recompile on the system itself. This will eliminate the issue of crashing. Another way is packaging the libraries into the software package, which could be a more complicated process for the developer. For the problem you faced, it is definitely not the atoms portal issue. Atoms portal does not handle the third parties library an atoms-module required, and the dependencies of the module which could also crashed with the version of libraries carried by the Scilab binary. So with all these problem, I tried to come out with the "less" effort way for the user to make it works on linux, still causing crash for the first time, but with extra 1-2 steps will solve the problem. Thanks. Regards, Chin Luh On 20/3/2017 6:39 PM, Antoine Monmayrant wrote: > Answering my own message: It seems that core dump & segfault are almost part of the install process described here: http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/ > I followed these recommendations and I can restart scilab without a segfault. > > I have the feeling there is something wrong with such an install process (install prerequisite, use atoms, crash, do some hand tweaking, pray). > As far as I remember, image processing toolboxes have always been a pain to install. > Why is this the case? > Is the atoms system inadequate? > > Antoine > > Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" a ?crit: > >> Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: >> >>> Hello, >>> >>> atomsInstall("IPCV") didn't work right away, and I tried in more than >>> one computer. Although, after usingatomsSystemUpdate(), it worked. >>> So, thanks for the quick reply. And good work. Now, I can proceed with >>> my research. >> >> Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: >> >> tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz >> scilab-6.0.0/bin/scilab >> >> --> atomsInstall('IPCV') >> Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? >> >> ans = >> >> !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! >> >> AtomsAutoload() // segfault & core dumped >> >> >> Antoine >> >>> Best regards, >>> >>> -- >>> Adailton J?nior >>> +5569992549337 >>> >>> >>> >>> >>> On 18/03/2017 09:06, Tan Chin Luh wrote: >>>> hi, >>>> >>>> you might want to try: >>>> --> atomsInstall("IPCV") >>>> >>>> a new module which is base on SIVP with more functions, just uploaded >>>> about a day ago. >>>> >>>> Cheers! >>>> >>>> rgds, >>>> CL >>>> >>>> >>>> On 18/3/2017 1:47 AM, Viktor Goryainov wrote: >>>>> Hello! >>>>> >>>>> 17.03.2017 18:43, Adailton J?nior ?????: >>>>> >>>>>> --> atomsInstall("SIP") >>>>> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP >>>>> (Scilab Image and Video Processing toolbox) are available at all for >>>>> Scilab 6.0 right now. The latter has less time since last update >>>>> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. >>>>> >>>>> Best regards, >>>>> Viktor >>>>> _______________________________________________ >>>>> 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 >> > _______________________________________________ > 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 Mar 21 08:54:53 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 21 Mar 2017 08:54:53 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSBJ?= =?utf-8?q?nstall_image_processing_toolbo?= In-Reply-To: <2fd5d604-d3e7-72fb-a76c-a3ddb9cd4ba8@tritytech.com> Message-ID: <4f97-58d0dc80-1b-a1778c0@94603485> Hi, I faced case #1: Ubuntu 16.04 with recent kernel. The thing with Atoms is that you don't go and check the website, you just install and are left wondering why this module just killed your scilab install. It's a fairly bad first experience and I think it turns away some potential users. Do you think it would be possible to design your atoms module to warn users of the issue and workaround? This could be done in the "IPCV.start" script. Antoine Le Mardi, Mars 21, 2017 02:34 CET, Tan Chin Luh a ?crit: > Hi, > > Great that you've get it works. > The crashed was caused by 2 reasons: > > 1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is > caused by the older libgomp.so library distributed under Scilab 6 > binary. This problem could be resolved with the OpenCV installed as > along the installation the latest libgomp.so would be installed to the > system as well. > > 2. If you're running an older version (e.g Ubuntu 14.04) , the crash is > caused during the loading of the IPCV library which is compiled with > newer version of gcc. > > Usually in linux, a lot of codes/program will just ask the user to > download the source and recompile on the system itself. This will > eliminate the issue of crashing. Another way is packaging the libraries > into the software package, which could be a more complicated process for > the developer. > > For the problem you faced, it is definitely not the atoms portal issue. > Atoms portal does not handle the third parties library an atoms-module > required, and the dependencies of the module which could also crashed > with the version of libraries carried by the Scilab binary. > > So with all these problem, I tried to come out with the "less" effort > way for the user to make it works on linux, still causing crash for the > first time, but with extra 1-2 steps will solve the problem. > > Thanks. > > Regards, > Chin Luh > > On 20/3/2017 6:39 PM, Antoine Monmayrant wrote: > > Answering my own message: It seems that core dump & segfault are almost part of the install process described here: http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/ > > I followed these recommendations and I can restart scilab without a segfault. > > > > I have the feeling there is something wrong with such an install process (install prerequisite, use atoms, crash, do some hand tweaking, pray). > > As far as I remember, image processing toolboxes have always been a pain to install. > > Why is this the case? > > Is the atoms system inadequate? > > > > Antoine > > > > Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" a ?crit: > > > >> Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: > >> > >>> Hello, > >>> > >>> atomsInstall("IPCV") didn't work right away, and I tried in more than > >>> one computer. Although, after usingatomsSystemUpdate(), it worked. > >>> So, thanks for the quick reply. And good work. Now, I can proceed with > >>> my research. > >> > >> Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: > >> > >> tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz > >> scilab-6.0.0/bin/scilab > >> > >> --> atomsInstall('IPCV') > >> Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? > >> > >> ans = > >> > >> !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! > >> > >> AtomsAutoload() // segfault & core dumped > >> > >> > >> Antoine > >> > >>> Best regards, > >>> > >>> -- > >>> Adailton J?nior > >>> +5569992549337 > >>> > >>> > >>> > >>> > >>> On 18/03/2017 09:06, Tan Chin Luh wrote: > >>>> hi, > >>>> > >>>> you might want to try: > >>>> --> atomsInstall("IPCV") > >>>> > >>>> a new module which is base on SIVP with more functions, just uploaded > >>>> about a day ago. > >>>> > >>>> Cheers! > >>>> > >>>> rgds, > >>>> CL > >>>> > >>>> > >>>> On 18/3/2017 1:47 AM, Viktor Goryainov wrote: > >>>>> Hello! > >>>>> > >>>>> 17.03.2017 18:43, Adailton J?nior ?????: > >>>>> > >>>>>> --> atomsInstall("SIP") > >>>>> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP > >>>>> (Scilab Image and Video Processing toolbox) are available at all for > >>>>> Scilab 6.0 right now. The latter has less time since last update > >>>>> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. > >>>>> > >>>>> Best regards, > >>>>> Viktor > >>>>> _______________________________________________ > >>>>> 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 > >> > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > From Frieder.Nikolaisen at student.hs-rm.de Tue Mar 21 09:10:15 2017 From: Frieder.Nikolaisen at student.hs-rm.de (Frieder Nikolaisen) Date: Tue, 21 Mar 2017 09:10:15 +0100 Subject: [Scilab-users] Read matrix from text file In-Reply-To: <1490028805.3726.21.camel@wescottdesign.com> References: <1490028805.3726.21.camel@wescottdesign.com> Message-ID: <82607ab233ca3573bd319b9222fd74c4@mail.student.hs-rm.de> Thanks alot. It also works with file and read for me. But I still don't know how to handle a string header: read: Wrong number of output argument(s): 0 expected. Koeffizienten_DM=file("open", "C:Usersf.nikolaisenDocumentsBachelorarbeitSimulationKoeffizienten_DM_Matrix.txt", "old") E=read(Koeffizienten_DM,-1,4) disp(E) file('close',Koeffizienten_DM); Could I still choose the document as a user? And having there not an abselout path, but the current directory opened. Sorry for this beginners questions, its really hard to get this details with the Scilab help. Greetings Frieder Am 2017-03-20 17:53, schrieb Tim Wescott: > On Mon, 2017-03-20 at 17:26 +0100, Frieder Nikolaisen wrote: > >> Hello, I do try to read a matrix of floating point numbers from a text file. I want to have floating point numbers in Sciliab. (I used before mgetl which return strings). I have attached the example text file and scilab file. The error it says is: read: Wrong number of output argument(s): 0 expected. Thank you. Greetings Frieder My code: Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); Koeffizienten = mopen(Koeffizienten_Pfad) B = read(Koeffizienten,-1,4) disp(B) mclose('all') > > Scilab has multiple contradictory ways of managing files. It appears > that "mopen" is not compatible with "read". To use read: > > -->file("open", "bob.txt", "old"); > > -->read(bob, -1, 4) > ans = > > 1. 2. 3. 4. > 5. 6. 7. - 8. > > -->file("close", bob); > > However, if you can trust that your file will always be in a tidy > format, you can use fscanfMat: > > -->fscanfMat("bob.txt") > ans = > > 1. 2. 3. 4. > 5. 6. 7. - 8. > > (You can also use mopen and mfscanf -- the "file" stuff is "Fortran- > like", the "mopen" stuff is "C-like", and fscanfMat is just convenient. > I tend to use the C-like stuff because most of my "real" programming > work is done in C, so I'm familiar with it. Pick your poison.) -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Tue Mar 21 09:09:26 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Tue, 21 Mar 2017 16:09:26 +0800 Subject: [Scilab-users] ?= Install image processing toolbo In-Reply-To: <4f97-58d0dc80-1b-a1778c0@94603485> References: <4f97-58d0dc80-1b-a1778c0@94603485> Message-ID: Hi, > I faced case #1: Ubuntu 16.04 with recent kernel. > The thing with Atoms is that you don't go and check the website, you just install and are left wondering why this module just killed your scilab install. It's a fairly bad first experience and I think it turns away some potential users. I've put that in the "Additional build instructions", but apparently it is just visible for the maintainers. I should have put it in the description. > Do you think it would be possible to design your atoms module to warn users of the issue and workaround? > This could be done in the "IPCV.start" script. I thought of that as well, however, I would need more installation feedback before I could cater for most possibilities. Else, the errors might be more unpredictable for other platform. I will look into the best way in next release. thanks for your feedback. rgds, Chin Luh > > Antoine > > > Le Mardi, Mars 21, 2017 02:34 CET, Tan Chin Luh a ?crit: > >> Hi, >> >> Great that you've get it works. >> The crashed was caused by 2 reasons: >> >> 1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is >> caused by the older libgomp.so library distributed under Scilab 6 >> binary. This problem could be resolved with the OpenCV installed as >> along the installation the latest libgomp.so would be installed to the >> system as well. >> >> 2. If you're running an older version (e.g Ubuntu 14.04) , the crash is >> caused during the loading of the IPCV library which is compiled with >> newer version of gcc. >> >> Usually in linux, a lot of codes/program will just ask the user to >> download the source and recompile on the system itself. This will >> eliminate the issue of crashing. Another way is packaging the libraries >> into the software package, which could be a more complicated process for >> the developer. >> >> For the problem you faced, it is definitely not the atoms portal issue. >> Atoms portal does not handle the third parties library an atoms-module >> required, and the dependencies of the module which could also crashed >> with the version of libraries carried by the Scilab binary. >> >> So with all these problem, I tried to come out with the "less" effort >> way for the user to make it works on linux, still causing crash for the >> first time, but with extra 1-2 steps will solve the problem. >> >> Thanks. >> >> Regards, >> Chin Luh >> >> On 20/3/2017 6:39 PM, Antoine Monmayrant wrote: >>> Answering my own message: It seems that core dump & segfault are almost part of the install process described here: http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/ >>> I followed these recommendations and I can restart scilab without a segfault. >>> >>> I have the feeling there is something wrong with such an install process (install prerequisite, use atoms, crash, do some hand tweaking, pray). >>> As far as I remember, image processing toolboxes have always been a pain to install. >>> Why is this the case? >>> Is the atoms system inadequate? >>> >>> Antoine >>> >>> Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" a ?crit: >>> >>>> Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: >>>> >>>>> Hello, >>>>> >>>>> atomsInstall("IPCV") didn't work right away, and I tried in more than >>>>> one computer. Although, after usingatomsSystemUpdate(), it worked. >>>>> So, thanks for the quick reply. And good work. Now, I can proceed with >>>>> my research. >>>> Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: >>>> >>>> tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz >>>> scilab-6.0.0/bin/scilab >>>> >>>> --> atomsInstall('IPCV') >>>> Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? >>>> >>>> ans = >>>> >>>> !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! >>>> >>>> AtomsAutoload() // segfault & core dumped >>>> >>>> >>>> Antoine >>>> >>>>> Best regards, >>>>> >>>>> -- >>>>> Adailton J?nior >>>>> +5569992549337 >>>>> >>>>> >>>>> >>>>> >>>>> On 18/03/2017 09:06, Tan Chin Luh wrote: >>>>>> hi, >>>>>> >>>>>> you might want to try: >>>>>> --> atomsInstall("IPCV") >>>>>> >>>>>> a new module which is base on SIVP with more functions, just uploaded >>>>>> about a day ago. >>>>>> >>>>>> Cheers! >>>>>> >>>>>> rgds, >>>>>> CL >>>>>> >>>>>> >>>>>> On 18/3/2017 1:47 AM, Viktor Goryainov wrote: >>>>>>> Hello! >>>>>>> >>>>>>> 17.03.2017 18:43, Adailton J?nior ?????: >>>>>>> >>>>>>>> --> atomsInstall("SIP") >>>>>>> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP >>>>>>> (Scilab Image and Video Processing toolbox) are available at all for >>>>>>> Scilab 6.0 right now. The latter has less time since last update >>>>>>> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. >>>>>>> >>>>>>> Best regards, >>>>>>> Viktor >>>>>>> _______________________________________________ >>>>>>> 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 >>>> >>> _______________________________________________ >>> 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 Christophe.Dang at sidel.com Tue Mar 21 10:18:43 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 21 Mar 2017 09:18:43 +0000 Subject: [Scilab-users] Some weirdies with 6.0.0 Message-ID: Hello, I noticed some weird behaviours which are difficult to reproduce (6.0.0, Windows 7). E.g. I has two graphical windows opened and one of them did not refresh (clf()+plot() always gave me the first plot although I changed the variables). Or the console "refused to answer": any command showed the glasshour and no prompt nor effect, CTRL+C did not stop the process until I saved with Scinotes (yes, I had to go to Scinotes, press the spacerbar and for the CTRL+C to be taken into account). I don't know where it comes from, I didn't manage to reproduce it. Did anyone else experiment such weirdies? -- 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 david.cheze at cea.fr Tue Mar 21 10:55:32 2017 From: david.cheze at cea.fr (CHEZE David 227480) Date: Tue, 21 Mar 2017 09:55:32 +0000 Subject: [Scilab-users] Some weirdies with 6.0.0 In-Reply-To: References: Message-ID: Hi, >Did anyone else experiment such weirdies? I did not get the same issues on WIN7_x64 scilab 6.0.0 . I had some weirdies while using the debug, when it comes to the faulty piece of my code or when I ask to debugger with improper syntax, then resume was not clean, sometimes it crashed and I had to restart the session. When everything runs smoothly during the debug, it works like a charm. David From antoine.monmayrant at laas.fr Tue Mar 21 12:16:44 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 21 Mar 2017 12:16:44 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ID89PT91dGYtOD9xPyA/PSBJ?= =?utf-8?q?nstall_image_processing_toolbo?= In-Reply-To: Message-ID: <7e89-58d10b80-9-22972280@120068193> Le Mardi, Mars 21, 2017 09:09 CET, Tan Chin Luh a ?crit: > Hi, > > > I faced case #1: Ubuntu 16.04 with recent kernel. > > The thing with Atoms is that you don't go and check the website, you just install and are left wondering why this module just killed your scilab install. It's a fairly bad first experience and I think it turns away some potential users. > I've put that in the "Additional build instructions", but apparently it > is just visible for the maintainers. I should have put it in the > description. > > Do you think it would be possible to design your atoms module to warn users of the issue and workaround? > > This could be done in the "IPCV.start" script. > I thought of that as well, however, I would need more installation > feedback before I could cater for most possibilities. Else, the errors > might be more unpredictable for other platform. I will look into the > best way in next release. > > thanks for your feedback. You are welcome! Do not hesitate to contact me if you need a beta-tester for a bullet-proofed version. I can try to install it on Windows 7, 10, Ubuntu 14.04, 16.04 and see how it goes. Cheers, Antoine > > rgds, > Chin Luh > > > > Antoine > > > > > > Le Mardi, Mars 21, 2017 02:34 CET, Tan Chin Luh a ?crit: > > > >> Hi, > >> > >> Great that you've get it works. > >> The crashed was caused by 2 reasons: > >> > >> 1. If you're running latest kernel (e.g Ubuntu 16.04), the crash is > >> caused by the older libgomp.so library distributed under Scilab 6 > >> binary. This problem could be resolved with the OpenCV installed as > >> along the installation the latest libgomp.so would be installed to the > >> system as well. > >> > >> 2. If you're running an older version (e.g Ubuntu 14.04) , the crash is > >> caused during the loading of the IPCV library which is compiled with > >> newer version of gcc. > >> > >> Usually in linux, a lot of codes/program will just ask the user to > >> download the source and recompile on the system itself. This will > >> eliminate the issue of crashing. Another way is packaging the libraries > >> into the software package, which could be a more complicated process for > >> the developer. > >> > >> For the problem you faced, it is definitely not the atoms portal issue. > >> Atoms portal does not handle the third parties library an atoms-module > >> required, and the dependencies of the module which could also crashed > >> with the version of libraries carried by the Scilab binary. > >> > >> So with all these problem, I tried to come out with the "less" effort > >> way for the user to make it works on linux, still causing crash for the > >> first time, but with extra 1-2 steps will solve the problem. > >> > >> Thanks. > >> > >> Regards, > >> Chin Luh > >> > >> On 20/3/2017 6:39 PM, Antoine Monmayrant wrote: > >>> Answering my own message: It seems that core dump & segfault are almost part of the install process described here: http://scilabipcv.tritytech.com/2017/03/17/installation-of-scilab-ipcv/ > >>> I followed these recommendations and I can restart scilab without a segfault. > >>> > >>> I have the feeling there is something wrong with such an install process (install prerequisite, use atoms, crash, do some hand tweaking, pray). > >>> As far as I remember, image processing toolboxes have always been a pain to install. > >>> Why is this the case? > >>> Is the atoms system inadequate? > >>> > >>> Antoine > >>> > >>> Le Lundi, Mars 20, 2017 11:21 CET, "Antoine Monmayrant" a ?crit: > >>> > >>>> Le Samedi, Mars 18, 2017 16:03 CET, Adailton J?nior a ?crit: > >>>> > >>>>> Hello, > >>>>> > >>>>> atomsInstall("IPCV") didn't work right away, and I tried in more than > >>>>> one computer. Although, after usingatomsSystemUpdate(), it worked. > >>>>> So, thanks for the quick reply. And good work. Now, I can proceed with > >>>>> my research. > >>>> Well I was less lucky than you: this package crashes a fresh install of scilab 6.0: > >>>> > >>>> tar -xvf scilab-6.0.0.bin.linux-x86_64.tar.gz > >>>> scilab-6.0.0/bin/scilab > >>>> > >>>> --> atomsInstall('IPCV') > >>>> Examen du d?p?t http://atoms.scilab.org/6.0 ... Termin? > >>>> > >>>> ans = > >>>> > >>>> !IPCV 1.0 allusers SCI/contrib/IPCV/1.0 I ! > >>>> > >>>> AtomsAutoload() // segfault & core dumped > >>>> > >>>> > >>>> Antoine > >>>> > >>>>> Best regards, > >>>>> > >>>>> -- > >>>>> Adailton J?nior > >>>>> +5569992549337 > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> On 18/03/2017 09:06, Tan Chin Luh wrote: > >>>>>> hi, > >>>>>> > >>>>>> you might want to try: > >>>>>> --> atomsInstall("IPCV") > >>>>>> > >>>>>> a new module which is base on SIVP with more functions, just uploaded > >>>>>> about a day ago. > >>>>>> > >>>>>> Cheers! > >>>>>> > >>>>>> rgds, > >>>>>> CL > >>>>>> > >>>>>> > >>>>>> On 18/3/2017 1:47 AM, Viktor Goryainov wrote: > >>>>>>> Hello! > >>>>>>> > >>>>>>> 17.03.2017 18:43, Adailton J?nior ?????: > >>>>>>> > >>>>>>>> --> atomsInstall("SIP") > >>>>>>> As far as I can see from atoms.scilab.org, neither SIP, nor SIVP > >>>>>>> (Scilab Image and Video Processing toolbox) are available at all for > >>>>>>> Scilab 6.0 right now. The latter has less time since last update > >>>>>>> released (0.5.3.2 in 2014), but it was still intended for Scilab 5.x. > >>>>>>> > >>>>>>> Best regards, > >>>>>>> Viktor > >>>>>>> _______________________________________________ > >>>>>>> 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 > >>>> > >>> _______________________________________________ > >>> users mailing list > >>> users at lists.scilab.org > >>> http://lists.scilab.org/mailman/listinfo/users > >> > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From samuel.enibe at unn.edu.ng Tue Mar 21 14:12:00 2017 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Tue, 21 Mar 2017 14:12:00 +0100 Subject: [Scilab-users] Test Statistics in Regression Equations Message-ID: I use the SCILAB linregr function for regression analysis. Is there any inbuilt output for the following statistical tests: 1. MEAN BIAS ERROR (MBE) 2. MEAN ABSOLUTE PERCENTAGE ERROR (MAPE) 3. ROOT MEAN SQUARE ERROR (RMSE) 4. t-STATISTIC Thank you very much. God bless you. -- Samuel Enibe University of Nigeria, Nsukka, Nigeria From perrichon.pierre at wanadoo.fr Sat Mar 18 11:56:04 2017 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Sat, 18 Mar 2017 11:56:04 +0100 Subject: [Scilab-users] Low limiter zero of an Integral_m integrator doesn't properly work (Scilab Xcos 5.5.2) Message-ID: Dear Xcos team, In my process, I use an integrator Intergral_m with limiters bewteen 0 and 1. It seems that small n?gative values are not taken into account. So the lower limiter doesn't properly work It seems mandatory to add a saturation 0-1 to get a correct result, which is redondancy with the limiters. In my record BUGLimiteurIntegrateur.scg , we can see value -8.30 e-101 behind the integrator with limiter See http://bugzilla.scilab.org/show_bug.cgi?id=15077 for attached files Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 906 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 160113 bytes Desc: not available URL: From tomasz.garstka at wip.pcz.pl Mon Mar 20 20:58:39 2017 From: tomasz.garstka at wip.pcz.pl (Tomasz Garstka) Date: Mon, 20 Mar 2017 20:58:39 +0100 Subject: [Scilab-users] Xcos - simulation problem with Backlash block Message-ID: <8387568d5cf4d0b89942a0a3da0afc94.squirrel@www2.wip.pcz.pl> Hello I'm simulating in Xcos simple closed control loop (servo) with inertia block (1/1+Ts) as ramp function of drive. That's run OK. When I added Backlash block (to simulate real screw gear), the simulation take a long, long time without effect. If I remove inertia block, run OK, but no with both blocks. How I can solve this problem? Thank You Tomasz From p.muehlmann at gmail.com Tue Mar 21 16:18:06 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Tue, 21 Mar 2017 16:18:06 +0100 Subject: [Scilab-users] scilab beta tester Message-ID: Dear Scilab developers, as Antoine offered beeing beta tester for Image Processing Toolbox I wonder if toolbox developers could provide some code along with their toolbox for testing the toolbox at other PC's or OS. Just to check if the toolbox functions all work, one could put samples for each function into one sci-script and store this script together with the toolbox. Potential users could run just this demo-script to check if all functions work fine, automatically become some kind of beta tester. What do you think? Best regards, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Mar 21 18:14:38 2017 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 21 Mar 2017 18:14:38 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBzY2lsYWIgYmV0YSB0ZXN0?= =?utf-8?q?er?= In-Reply-To: Message-ID: <37e6-58d15f80-1b-7e059180@261600468> Le Mardi, Mars 21, 2017 16:18 CET, Philipp M?hlmann a ?crit: > Dear Scilab developers, > > as Antoine offered beeing beta tester for Image Processing Toolbox I wonder > if toolbox developers could provide some code along with their toolbox for > testing the toolbox at other PC's or OS. Well, according to the wiki: https://wiki.scilab.org/howto/Create%20a%20toolbox , tests are not compulsory but strongly recommended. Antoine > > Just to check if the toolbox functions all work, one could put samples for > each function into one sci-script and store this script together with the > toolbox. > > Potential users could run just this demo-script to check if all functions > work fine, automatically become some kind of beta tester. > > What do you think? > > Best regards, > Philipp From tim at wescottdesign.com Tue Mar 21 21:55:48 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 21 Mar 2017 13:55:48 -0700 Subject: [Scilab-users] Read matrix from text file In-Reply-To: <82607ab233ca3573bd319b9222fd74c4@mail.student.hs-rm.de> References: <1490028805.3726.21.camel@wescottdesign.com> <82607ab233ca3573bd319b9222fd74c4@mail.student.hs-rm.de> Message-ID: <1490129748.2967.9.camel@wescottdesign.com> Really Good Documentation is usually the last thing to get done even on a commercial product -- there aren't many open-source software projects that are well documented, and those are often documented separately in how-to books. Fortunately, we have things like mailing lists and forums. The read function takes an optional format string, which, if you don't provide anything, defaults to reading a line of numbers. ?The documentation says that it's in Fortran format, so you should be able to find a good book or website on Fortran and find the format you need to be able to read in a string or a set of strings. On Tue, 2017-03-21 at 09:10 +0100, Frieder Nikolaisen wrote: > Thanks alot. It also works with file and read for me. But I still > don't know how to handle a string header: read: Wrong number of > output argument(s): 0 expected. > > Koeffizienten_DM=file("open", > "C:\Users\f.nikolaisen\Documents\Bachelorarbeit\Simulation\Koeffizien > ten_DM_Matrix.txt", "old") > > E=read(Koeffizienten_DM,-1,4) > > disp(E) > > file('close',Koeffizienten_DM); > > Could I still choose the document as a user? And having there not an > abselout path, but the current directory opened. > Sorry for this beginners questions, its really hard to get this > details with the Scilab help. > Greetings > Frieder > ? > ? > Am 2017-03-20 17:53, schrieb Tim Wescott: > > On Mon, 2017-03-20 at 17:26 +0100, Frieder Nikolaisen wrote: > > > Hello, I do try to read a matrix of floating point numbers from a > > > text file. I want to have floating point numbers in Sciliab. (I > > > used before mgetl which return strings). I have attached the > > > example text file and scilab file. The error it says is: read: > > > Wrong number of output argument(s): 0 expected. Thank you. > > > Greetings Frieder ? My code: Koeffizienten_Pfad = > > > uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); > > > Koeffizienten = mopen(Koeffizienten_Pfad) B = > > > read(Koeffizienten,-1,4) disp(B) mclose('all') > > Scilab has multiple contradictory ways of managing files. ?It > > appears > > that "mopen" is not compatible with "read". ?To use read: > > > > -->file("open", "bob.txt", "old"); > > ? > > -->read(bob, -1, 4) > > ?ans??= > > ? > > ????1.????2.????3.????4.?? > > ????5.????6.????7.??- 8.?? > > ? > > -->file("close", bob); > > > > However, if you can trust that your file will always be in a tidy > > format, you can use fscanfMat: > > > > -->fscanfMat("bob.txt") > > ?ans??= > > ? > > ????1.????2.????3.????4.?? > > ????5.????6.????7.??- 8. > > > > (You can also use mopen and mfscanf -- the "file" stuff is > > "Fortran- > > like", the "mopen" stuff is "C-like", and fscanfMat is just > > convenient. > > ?I tend to use the C-like stuff because most of my "real" > > programming > > work is done in C, so I'm familiar with it. ?Pick your poison.) > ? > ? > _______________________________________________ > 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 tim at wescottdesign.com Tue Mar 21 22:04:12 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 21 Mar 2017 14:04:12 -0700 Subject: [Scilab-users] Xcos - simulation problem with Backlash block In-Reply-To: <8387568d5cf4d0b89942a0a3da0afc94.squirrel@www2.wip.pcz.pl> References: <8387568d5cf4d0b89942a0a3da0afc94.squirrel@www2.wip.pcz.pl> Message-ID: <1490130252.2967.15.camel@wescottdesign.com> Can you post the Xcos file that causes the problem? Backlash is very difficult to simulate. ?The problem is what is known as "stiff", meaning that there are places in the state space where the linearized system suddenly changes its characteristics dramatically over a small change in the values of the states. ?In the case of backlash, this happens when the backlash is taken up, and the output suddenly starts moving in response to the input, where before it was not connected. This is a difficult problem for solvers -- hence, your solution is taking more time. I'd try all of the solvers available, and see if one works better than another. ?I'd start with the ones that have "BDF" in their names. ?You can choose the solver by clicking Simulation -> setup -> Solver kind. On Mon, 2017-03-20 at 20:58 +0100, Tomasz Garstka wrote: > Hello > > I'm simulating in Xcos simple closed control loop (servo) with > inertia > block (1/1+Ts) as ramp function of drive. That's run OK. When I added > Backlash block (to simulate real screw gear), the simulation take a > long, > long time without effect. > If I remove inertia block, run OK, but no with both blocks. > > How I can solve this problem? > > Thank You > > Tomasz > > _______________________________________________ > 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 erhard.glueck.austria at gmail.com Tue Mar 21 22:30:05 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 21 Mar 2017 14:30:05 -0700 (MST) Subject: [Scilab-users] Why there are Matlab explanation in Scilab Help? Message-ID: <1490131805995-4035918.post@n3.nabble.com> Hello! As newbie I ask you, why there are Matlab explanation in Scilab Help? Erhy -- View this message in context: http://mailinglists.scilab.org/Why-there-are-Matlab-explanation-in-Scilab-Help-tp4035918.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Mar 21 22:37:50 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Mar 2017 22:37:50 +0100 Subject: [Scilab-users] Why there are Matlab explanation in Scilab Help? In-Reply-To: <1490131805995-4035918.post@n3.nabble.com> References: <1490131805995-4035918.post@n3.nabble.com> Message-ID: Le 21/03/2017 ? 22:30, Erhy a ?crit : > Hello! > As newbie I ask you, > why there are Matlab explanation in Scilab Help? In which pages? Could you please provide links: https://help.scilab.org/docs/6.0.0/en_US/index.html From tim at wescottdesign.com Tue Mar 21 22:37:47 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 21 Mar 2017 14:37:47 -0700 Subject: [Scilab-users] Why there are Matlab explanation in Scilab Help? In-Reply-To: <1490131805995-4035918.post@n3.nabble.com> References: <1490131805995-4035918.post@n3.nabble.com> Message-ID: <1490132267.3053.1.camel@wescottdesign.com> Example? ?"help XXX" that gets to the help page in question, perhaps? Scilab has lots of hooks to allow you to convert and run Matlab programs -- perhaps you've run into one of those? ?I think there may also be some pages that are designed to help people make the transition from Matlab to Scilab. On Tue, 2017-03-21 at 14:30 -0700, Erhy wrote: > Hello! > As newbie I ask you, > why there are Matlab explanation in Scilab Help? > Erhy > > > > -- > View this message in context: http://mailinglists.scilab.org/Why-ther > e-are-Matlab-explanation-in-Scilab-Help-tp4035918.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 > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Tue Mar 21 22:40:41 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Mar 2017 22:40:41 +0100 Subject: [Scilab-users] Test Statistics in Regression Equations In-Reply-To: References: Message-ID: Le 21/03/2017 ? 14:12, Samuel Enibe a ?crit : > I use the SCILAB linregr function for regression analysis. > > Is there any inbuilt output for the following statistical tests: > 1. MEAN BIAS ERROR (MBE) > 2. MEAN ABSOLUTE PERCENTAGE ERROR (MAPE) > 3. ROOT MEAN SQUARE ERROR (RMSE) > 4. t-STATISTIC Browsing in toolboxes of the Statistic category could help: https://atoms.scilab.org/categories/data_analysis_-_statistics/statistics From sgougeon at free.fr Tue Mar 21 23:20:25 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 21 Mar 2017 23:20:25 +0100 Subject: [Scilab-users] Read matrix from text file In-Reply-To: <82607ab233ca3573bd319b9222fd74c4@mail.student.hs-rm.de> References: <1490028805.3726.21.camel@wescottdesign.com> <82607ab233ca3573bd319b9222fd74c4@mail.student.hs-rm.de> Message-ID: Le 21/03/2017 ? 09:10, Frieder Nikolaisen a ?crit : > > Thanks alot. It also works with file and read for me. But I still > don't know how to handle a string header: read: Wrong number of output > argument(s): 0 expected. > Do you mean: some initial rows of text? Then you may rather use csvRead(): https://help.scilab.org/docs/6.0.0/en_US/csvRead.html and its last input argument "header" > Koeffizienten_DM=file("open", "C:\Users\f.nikolaisen\Documents\Bachelorarbeit\Simulation\Koeffizienten_DM_Matrix.txt", "old") > > E=read(Koeffizienten_DM,-1,4) > > disp(E) > > file('close',Koeffizienten_DM); > > > Could I still choose the document as a user? > Koeffizienten_Pfad = uigetfile(["*.txt"],'',"W?hlen Sie die Datei Koeffizienten"); Koeffizienten_DM= file("open",Koeffizienten_Pfad, "old"); > And having there not an abselout path, but the current directory opened. > Koeffizienten_DM= file("open","Koeffizienten_DM_Matrix.txt", "old"); > Sorry for this beginners questions, its really hard to get this > details with the Scilab help. > The multiple sections about files are likely the worst. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Wed Mar 22 01:33:49 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 22 Mar 2017 08:33:49 +0800 Subject: [Scilab-users] scilab beta tester In-Reply-To: <37e6-58d15f80-1b-7e059180@261600468> References: <37e6-58d15f80-1b-7e059180@261600468> Message-ID: Hi, This is already in the plan, just need time to get it up. There are a few things in the development pipeline: 1. currently the codes are still the mix of C and C++ api, cleaning up required. 2. move to OpenCV 3.2, which is already under testing, however, this might not be friendly to the linux user as they need to compile their own opencv3 3. move to scilab api 6 4. error handling, currently not much implemented For the test, it was some tests last time but after changing the codes to cater for more datatypes to match most of the opencv datatype, the test codes need to be rewritten. If you notice, quite some functions could now be directly applied to RGB instead of only gray. Functions in opencv (or more precise, different ip functions) will only allow certain datatype to passed to it as well. Thanks. rgds CL On 22/3/2017 1:14 AM, Antoine Monmayrant wrote: > Le Mardi, Mars 21, 2017 16:18 CET, Philipp M?hlmann a ?crit: > >> Dear Scilab developers, >> >> as Antoine offered beeing beta tester for Image Processing Toolbox I wonder >> if toolbox developers could provide some code along with their toolbox for >> testing the toolbox at other PC's or OS. > Well, according to the wiki: https://wiki.scilab.org/howto/Create%20a%20toolbox , tests are not compulsory but strongly recommended. > > Antoine > >> Just to check if the toolbox functions all work, one could put samples for >> each function into one sci-script and store this script together with the >> toolbox. >> >> Potential users could run just this demo-script to check if all functions >> work fine, automatically become some kind of beta tester. >> >> What do you think? >> >> Best regards, >> Philipp > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From chinluh at tritytech.com Wed Mar 22 04:54:47 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 22 Mar 2017 11:54:47 +0800 Subject: [Scilab-users] Issue with Using atomsTest Message-ID: Hi, Just to check whether anyone encounter issues with the atomsTest function. When running the test_run, all the tests passed. However, when running the atomsTest, all tests fail with the error: failed: Slave Scilab exited with error code 1. the log file gives : Start Toolbox Skeleton Load macros Load gateways Load Java libraries Load help Load demos Start Toolbox Skeleton WARNING: Toolbox skeleton library is already loaded at line 15 of executed file D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce exec: error on line #67: "Redefining permanent variable." Remove help chapter How to reproduce: 1. Install any Scilab 6 module with unittest with atoms 2. run atomsTest and test_run to see the differences. Thanks. rgds, CL From murallon2015 at gmail.com Wed Mar 22 10:44:09 2017 From: murallon2015 at gmail.com (Leo) Date: Wed, 22 Mar 2017 02:44:09 -0700 (MST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360152528729-4025879.post@n3.nabble.com> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> <1360141589668-4025875.post@n3.nabble.com> <1360148347.11340.3.camel@paros> <1360150072190-4025877.post@n3.nabble.com> <1360150627.11340.5.camel@paros> <1360152528729-4025879.post@n3.nabble.com> Message-ID: <1490175849499-4035925.post@n3.nabble.com> Hello everyone, I have tried the same example using scilab 6.0.0 and 5.5.2 (Debian 9). -->CFLAGS = ""; -->LDFLAGS = ""; -->CFLAGS = "-I" + SCI + "/modules/scicos/includes" + " -I" + SCI + "/modules/scicos_blocks/includes"; -->LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos.lib"""; -->LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos_f.lib"""; --> ilib_for_link('lim_int','lim_int_comp.c',[],'c','','loader.sce','',LDFLAGS,CFLAGS); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Did not copy lim_int_comp.c: Source and target directories are the same (/tmp/SCI_TMP_3775_ICbN3u/lim_int). ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile at line 184 of function ilib_compile ( /home/leo/Downloads/scilab/scilab-6.0.0/share/scilab/modules/dynamic_link/macros/ilib_compile.sci line 200 ) at line 104 of function ilib_for_link ( /home/leo/Downloads/scilab/scilab-6.0.0/share/scilab/modules/dynamic_link/macros/ilib_for_link.sci line 118 ) ilib_compile: Could not find the built library '.libs/liblim_int.so'. '.libs/liblim_int.so' exists but it is a link to '.libs/liblim_int.so.0.0.0' that doesn't exist I am just looking for a working C Function block example/tutorial for beginners. I would appreciate some help. Thanks Leo -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4035925.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Wed Mar 22 11:53:33 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Wed, 22 Mar 2017 11:53:33 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file Message-ID: <58D257AD.4050502@hslmg.de> Hi, I would like to read 5 colum vectors from the example txt-file as quoted between the dotted lines below. The desired result should be: Y=[2017;2017;2017;2017] M=['May';'June';'Jul';'Aug'] D=[26.;25.;25.;24.] BATh=[0.;%nan;1.;2.] //hour of begin of astronomical twilight. BATm=[48.;%nan;29.;57.] //minute of begin of astronomical twilight. Which of Scilab's various file reading functions would you recommend here? I am passably familiar with Fortran and C formats. So I just need a productive choice of the function to start my trial and error with. My essays with mfscanffailed miserably. Regards Jens -------------------------------------------------------------------------------------------- Sun Location: 0?00'00.0", N50?00'00.0", 0m (Longitude referred to Greenwich meridian) Date Begin Rise Az.Trans Alt Set Az. End (UT1) Astr Astr TwiliTwilight h m h m ? h m ? h m ? h m 2017 May 26 (Fri) 00:48 04:01 55 11:57 61S 19:54 306 23:11 2017 Jun 25 (Sun) ///// 03:52 51 12:03 63S 20:13 309 ///// 2017 Jul 25 (Tue) 01:29 04:20 57 12:07 60S 19:52 302 22:41 2017 Aug 24 (Thu) 02:57 05:03 72 12:02 51S 19:00 288 21:05 -------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Wed Mar 22 12:59:28 2017 From: j-lan at online.no (JLan) Date: Wed, 22 Mar 2017 04:59:28 -0700 (MST) Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <58D257AD.4050502@hslmg.de> References: <58D257AD.4050502@hslmg.de> Message-ID: <1490183968890-4035928.post@n3.nabble.com> M=csvRead(filename," ",[],"string",[],[],[],7) Y=M(1:4,1)' etc. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-numerical-and-string-vectors-from-txt-file-tp4035926p4035928.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Wed Mar 22 12:32:56 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 22 Mar 2017 12:32:56 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <58D257AD.4050502@hslmg.de> References: <58D257AD.4050502@hslmg.de> Message-ID: <682bcc4a-814e-1791-d838-ae68e183e760@online.no> On 22.03.2017 11:53, Jens Simon Strom wrote: > Hi, > I would like to read 5 colum vectors from the example txt-file as > quoted between the dotted lines below. > The desired result should be: > > Y=[2017;2017;2017;2017] > M=['May';'June';'Jul';'Aug'] > D=[26.;25.;25.;24.] > BATh=[0.;%nan;1.;2.] //hour of begin of astronomical twilight. > BATm=[48.;%nan;29.;57.] //minute of begin of astronomical twilight. M=csvRead(filename," ",[],"string",[],[],[],7) Y=M(1:4,1)' etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Wed Mar 22 12:33:09 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 22 Mar 2017 12:33:09 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <58D257AD.4050502@hslmg.de> References: <58D257AD.4050502@hslmg.de> Message-ID: <0e9147f8-63c8-3aab-1717-19236bcacc68@online.no> On 22.03.2017 11:53, Jens Simon Strom wrote: > Hi, > I would like to read 5 colum vectors from the example txt-file as > quoted between the dotted lines below. > The desired result should be: > > Y=[2017;2017;2017;2017] > M=['May';'June';'Jul';'Aug'] > D=[26.;25.;25.;24.] > BATh=[0.;%nan;1.;2.] //hour of begin of astronomical twilight. > BATm=[48.;%nan;29.;57.] //minute of begin of astronomical twilight. M=csvRead(filename," ",[],"string",[],[],[],7) Y=M(1:4,1)' etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Wed Mar 22 14:49:53 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Wed, 22 Mar 2017 14:49:53 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <1490183968890-4035928.post@n3.nabble.com> References: <58D257AD.4050502@hslmg.de> <1490183968890-4035928.post@n3.nabble.com> Message-ID: <58D28101.1020006@hslmg.de> Thanks Jan ?ge, This is my further detailation of your approach: M=csvRead('G:\Daten\ScilabFun\MICAfileForMFSCANFreading.txt',.. " ",[],"string",[],[],[],7); Year=strtod(M(1:4,1)') Month=M(1:4,2)' Day=strtod(M(1:4,3)') BAThour = strtod(part(M(1:4,5)', [1,2] )) BATminute = strtod(part(M(1:4,5)', [4,5] )) Would you get toBAThour andBATminute the same way? Kind regards Jens ----------------------------------------------------------------------------------------------------------------------- Am 22.03.2017 12:59, schrieb JLan: > M=csvRead(filename," ",[],"string",[],[],[],7) > Y=M(1:4,1)' > etc. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-numerical-and-string-vectors-from-txt-file-tp4035926p4035928.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 Clement.David at esi-group.com Tue Mar 21 17:05:15 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 21 Mar 2017 16:05:15 +0000 Subject: [Scilab-users] Xcos - simulation problem with Backlash block In-Reply-To: <8387568d5cf4d0b89942a0a3da0afc94.squirrel@www2.wip.pcz.pl> References: <8387568d5cf4d0b89942a0a3da0afc94.squirrel@www2.wip.pcz.pl> Message-ID: <1490112313.9126.3.camel@esi-group.com> Hello Tomasz, What's your Scilab version ? Could you post your example please ? FYI to report an issue, the bugzilla [1] should be used as it automates some reporting, eases communication and allow us to deliver the fix on the next version. Thanks, [1]: http://bugzilla.scilab.org/ -- Cl?ment Le lundi 20 mars 2017 ? 20:58 +0100, Tomasz Garstka a ?crit?: > Hello > > I'm simulating in Xcos simple closed control loop (servo) with inertia > block (1/1+Ts) as ramp function of drive. That's run OK. When I added > Backlash block (to simulate real screw gear), the simulation take a long, > long time without effect. > If I remove inertia block, run OK, but no with both blocks. > > How I can solve this problem? > > Thank You > > Tomasz > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Wed Mar 22 15:08:28 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 22 Mar 2017 14:08:28 +0000 Subject: [Scilab-users] Issue with Using atomsTest In-Reply-To: References: Message-ID: <1490191707.9126.14.camel@esi-group.com> Hello Chin Luh, Thanks for reporting that, it seems to be a bug on our side ; could your report it please ? -- Cl?ment Le mercredi 22 mars 2017 ? 11:54 +0800, Tan Chin Luh a ?crit?: > Hi, > > Just to check whether anyone encounter issues with the atomsTest function. > > When running the test_run, all the tests passed. However, when running? > the atomsTest, all tests fail with the error: failed: Slave Scilab? > exited with error code 1. the log file gives : > > Start Toolbox Skeleton > ?????Load macros > ?????Load gateways > ?????Load Java libraries > ?????Load help > ?????Load demos > > Start Toolbox Skeleton > WARNING: Toolbox skeleton library is already loaded > at line????15 of executed file? > D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce > > exec: error on line #67: "Redefining permanent variable." Remove help? > chapter > > > How to reproduce: > > 1. Install any Scilab 6 module with unittest with atoms > > 2. run atomsTest and test_run to see the differences. > > > Thanks. > > > rgds, > CL > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Wed Mar 22 15:14:51 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 22 Mar 2017 14:14:51 +0000 Subject: [Scilab-users] (Graphical) Visualization of the structure workflow In-Reply-To: <613d4c5246c5d147fc2aab9e4e60942f@free.fr> References: <613d4c5246c5d147fc2aab9e4e60942f@free.fr> Message-ID: <1490192090.9126.16.camel@esi-group.com> Hi Paul, The Scilab "coverage" tools can be used to explore existing codes. Currently it only supports an HTML (for code, measurements) and "binary" backend but we can easily add a "Graphviz" or "Callgrind" backend to display call graphs. IMHO this could be also good to describe your needs in a wiki page [1]. [1]: https://wiki.scilab.org/Ideas%20of%20development%20for%20Scilab -- Cl?ment Le jeudi 16 mars 2017 ? 08:31 +0100, paul.carrico at free.fr a ?crit?: > Hi All > > > When I need to re-used some codes/programs I performed, especially when? > the structure is "complex" (using several files and functions), I often? > need to spend some time to reappropriate it (even if ever I try to well? > comment my codes). > > In order to be more efficient, I'm thinking in using graphic tools to? > writedown workflow, but I'm wondering if such tool ever exists in? > Scilab/atoms even (fully automatic or not)? > > Nb: some name I found: Visual Understanding Envinronment, Graphviz ... > > This post can be understand as a general discussion ... > > Regards > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From martin.marmsoler at gmail.com Wed Mar 22 22:19:53 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Wed, 22 Mar 2017 22:19:53 +0100 Subject: [Scilab-users] compiling scilab Message-ID: Hello, I tried to compile scilab, but I get every the the following error: File "_none_", line 1: Error: Files ./src/xml2modelica/xMLParser.cmx and ./src/xml2modelica/linenum.cmx make inconsistent assumptions over implementation Linenum It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 Best regards, Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Wed Mar 22 22:29:15 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 22 Mar 2017 14:29:15 -0700 Subject: [Scilab-users] compiling scilab In-Reply-To: References: Message-ID: <1490218155.3053.3.camel@wescottdesign.com> On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > Hello, > > I tried to compile scilab, but I get every the the following error: > > File "_none_", line 1: > Error: Files ./src/xml2modelica/xMLParser.cmx > ?????? and ./src/xml2modelica/linenum.cmx > ?????? make inconsistent assumptions over implementation Linenum > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 I do _not_ know the answer, but someone is going to ask you for platform, operating system, and the version of the tools that you're using. ?Then they're going to want to know where you got your source code (unless it's obvious from the revision numbers). Sorry I can't offer more... -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From martin.marmsoler at gmail.com Wed Mar 22 23:02:30 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Wed, 22 Mar 2017 23:02:30 +0100 Subject: [Scilab-users] compiling scilab In-Reply-To: <1490218155.3053.3.camel@wescottdesign.com> References: <1490218155.3053.3.camel@wescottdesign.com> Message-ID: I'm using antergos and cloned the code from scilab website. GNU Make 4.2.1 4.10.3-1-ARCH 2017-03-22 22:29 GMT+01:00 Tim Wescott : > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > Hello, > > > > I tried to compile scilab, but I get every the the following error: > > > > File "_none_", line 1: > > Error: Files ./src/xml2modelica/xMLParser.cmx > > and ./src/xml2modelica/linenum.cmx > > make inconsistent assumptions over implementation Linenum > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > I do _not_ know the answer, but someone is going to ask you for > platform, operating system, and the version of the tools that you're > using. Then they're going to want to know where you got your source > code (unless it's obvious from the revision numbers). > > Sorry I can't offer more... > > -- > > 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 erhard.glueck.austria at gmail.com Wed Mar 22 23:15:39 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Wed, 22 Mar 2017 15:15:39 -0700 (MST) Subject: [Scilab-users] add number arrays efficiently, how? Message-ID: <1490220939682-4035946.post@n3.nabble.com> Hello! I'm thinking in arrays - and I write SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]; SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd; How to code it smarter? Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Wed Mar 22 23:55:37 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Wed, 22 Mar 2017 23:55:37 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <58D28101.1020006@hslmg.de> References: <58D257AD.4050502@hslmg.de> <1490183968890-4035928.post@n3.nabble.com> <58D28101.1020006@hslmg.de> Message-ID: <492a979d-c3b5-1e5d-ab61-163aea51e30a@online.no> On 22.03.2017 14:49, Jens Simon Strom wrote: > > Would you get to BAThour and BATminute the same way? I would probably have done it in a more complicated way:-), but I like this solution, it seems quite robust for characters replacing missing numbers. In case your number of header lines varies: firstdata="2017"//something unique in the first dataline(or last header line) maxheaderlength=10 Mh=mgetl(filename,maxheaderlength) for skiplines=1:size(Mh,1) if strindex(Mh(skiplines),firstdata)~=[] then break end end skiplines=skiplines-1 Md=csvRead(filename,"",[],"string",[],[],[],skiplines) Jan-?ge -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Wed Mar 22 23:57:55 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 22 Mar 2017 15:57:55 -0700 Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: <1490220939682-4035946.post@n3.nabble.com> References: <1490220939682-4035946.post@n3.nabble.com> Message-ID: <1490223475.3053.8.camel@wescottdesign.com> On Wed, 2017-03-22 at 15:15 -0700, Erhy wrote: > Hello! > I'm thinking in arrays - and I write > > SumArr = [ 1 2 3 ];??toAdd = [ 7 8 9 10 ]; > SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = > toAdd; > > How to code it smarter? That's probably the best way to append an array if you can't anticipate ahead of time how big your ending array will be. ?However, each time you do that Scilab has to allocate space for a bigger array, copy, and destroy the old copy of the array. If you DO know how big your ending array will be, then you can speed things up by creating a zero array of full size, then populating it as you go. ?I.e., in this case you'd create SumArr to be 1x7, then populate the first three elements, then populate the last four. -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From j.s.strom at hslmg.de Thu Mar 23 00:25:17 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Thu, 23 Mar 2017 00:25:17 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <492a979d-c3b5-1e5d-ab61-163aea51e30a@online.no> References: <58D257AD.4050502@hslmg.de> <1490183968890-4035928.post@n3.nabble.com> <58D28101.1020006@hslmg.de> <492a979d-c3b5-1e5d-ab61-163aea51e30a@online.no> Message-ID: <58D307DD.20601@hslmg.de> The test data I posted had been preprocessed manually by equalizing the spaces between the colums to a single one. The original output of the MICA astro software aligns the colums tidily so that the number of spaces varies along a line and from line to line if the values vary between 1 and 3 digits. One can fix that with regex. It would be workflow supporting if the separator input ofcsvRead would interpret several blanks as equivalent to one or if automation could be acchieved elsewise. Jens -------------------------------------------------------------------------------------------------------------------------------------------------- Am 22.03.2017 23:55, schrieb Jan ?ge Langeland: > On 22.03.2017 14:49, Jens Simon Strom wrote: >> >> Would you get toBAThour andBATminute the same way? > I would probably have done it in a more complicated way:-), but I > like this solution, it seems quite robust for characters replacing > missing numbers. > > In case your number of header lines varies: > firstdata="2017"//something unique in the first dataline(or last header line) > maxheaderlength=10 > Mh=mgetl(filename,maxheaderlength) > for skiplines=1:size(Mh,1) > if strindex(Mh(skiplines),firstdata)~=[] then > break > end > end > skiplines=skiplines-1 > > Md=csvRead(filename," ",[],"string",[],[],[],skiplines) > > > Jan-?ge > > > _______________________________________________ > 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 Thu Mar 23 00:28:00 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Mar 2017 00:28:00 +0100 Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: <1490220939682-4035946.post@n3.nabble.com> References: <1490220939682-4035946.post@n3.nabble.com> Message-ID: Le 22/03/2017 ? 23:15, Erhy a ?crit : > Hello! > I'm thinking in arrays - and I write > > SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]; > SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd; > > How to code it smarter? SumArr = [SumArr toAdd] From tim at wescottdesign.com Thu Mar 23 00:50:26 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 22 Mar 2017 16:50:26 -0700 Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: References: <1490220939682-4035946.post@n3.nabble.com> Message-ID: <1490226626.3053.9.camel@wescottdesign.com> On Thu, 2017-03-23 at 00:28 +0100, Samuel Gougeon wrote: > Le 22/03/2017 ? 23:15, Erhy a ?crit : > > > > Hello! > > I'm thinking in arrays - and I write > > > > SumArr = [ 1 2 3 ];??toAdd = [ 7 8 9 10 ]; > > SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = > > toAdd; > > > > How to code it smarter? > SumArr = [SumArr toAdd] > If you know them in advance, yes. ?My answer was predicated on not knowing "toAdd" at the same time as the 1x3 SumArr. > --? Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From sgougeon at free.fr Thu Mar 23 01:12:07 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 23 Mar 2017 01:12:07 +0100 Subject: [Scilab-users] Issue with Using atomsTest In-Reply-To: References: Message-ID: Hi, Le 22/03/2017 ? 04:54, Tan Chin Luh a ?crit : > Hi, > > Just to check whether anyone encounter issues with the atomsTest > function. > > When running the test_run, all the tests passed. However, when running > the atomsTest, all tests fail with the error: failed: Slave Scilab > exited with error code 1. the log file gives : > > Start Toolbox Skeleton > Load macros > Load gateways > Load Java libraries > Load help > Load demos > > Start Toolbox Skeleton > WARNING: Toolbox skeleton library is already loaded > at line 15 of executed file > D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce > > exec: error on line #67: "Redefining permanent variable." Remove help > chapter I don't know how you get this error, because i am unable to load the Toolbox_skeleton: it is provided without any loader. It must be built before, and it requires a compiler. But I did a test for another toolbox, namely with stixbox that has only macros. stixbox is already provided for Scilab 6.0, but all its tests fail whatever is the way running them. The reason is that its macros directory includes the lib file as generated by genlib(), but most of .bin files are missing, as if they were removed after the compilation! So, most of its functions are actually unknown, as documented when using the "show_error" test_run() option. As a consequence, i am not sure that there is any generic bug about test_run() or atomsTest(). Here, clearly, the error is from the packaging of the /stixbox 2.5/ ATOMS module. But may be i tried with the bad guy and most of other modules are OK. Except Toolbox_skeleton as bad. Samuel > > > How to reproduce: > > 1. Install any Scilab 6 module with unittest with atoms > > 2. run atomsTest and test_run to see the differences. > > > Thanks. > > > rgds, > CL > > > > > _______________________________________________ > 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 Thu Mar 23 01:12:51 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Thu, 23 Mar 2017 08:12:51 +0800 Subject: [Scilab-users] Issue with Using atomsTest In-Reply-To: <1490191707.9126.14.camel@esi-group.com> References: <1490191707.9126.14.camel@esi-group.com> Message-ID: Hi Cl?ment, Thanks for your reply. Bug reported : http://bugzilla.scilab.org/show_bug.cgi?id=15094 Regards, Chin Luh On 22/3/2017 10:08 PM, Cl?ment David wrote: > Hello Chin Luh, > > Thanks for reporting that, it seems to be a bug on our side ; could your report it please ? > > -- > Cl?ment > > Le mercredi 22 mars 2017 ? 11:54 +0800, Tan Chin Luh a ?crit : >> Hi, >> >> Just to check whether anyone encounter issues with the atomsTest function. >> >> When running the test_run, all the tests passed. However, when running >> the atomsTest, all tests fail with the error: failed: Slave Scilab >> exited with error code 1. the log file gives : >> >> Start Toolbox Skeleton >> Load macros >> Load gateways >> Load Java libraries >> Load help >> Load demos >> >> Start Toolbox Skeleton >> WARNING: Toolbox skeleton library is already loaded >> at line 15 of executed file >> D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce >> >> exec: error on line #67: "Redefining permanent variable." Remove help >> chapter >> >> >> How to reproduce: >> >> 1. Install any Scilab 6 module with unittest with atoms >> >> 2. run atomsTest and test_run to see the differences. >> >> >> Thanks. >> >> >> rgds, >> CL >> >> >> >> >> _______________________________________________ >> 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 chinluh at tritytech.com Thu Mar 23 01:22:09 2017 From: chinluh at tritytech.com (Tan Chin Luh) Date: Thu, 23 Mar 2017 08:22:09 +0800 Subject: [Scilab-users] Issue with Using atomsTest In-Reply-To: References: Message-ID: <4ec76c31-4459-9faa-38e9-7bd1fbf5b777@tritytech.com> Hi Samuel, What I did for the Toolbox Skeleton was: 1. Compile it 2. Manually zip it 3. atomsInstall the zip file. Then I could use the test_run and atomsTest to see the result. Thanks. Regards, Chin Luh On 23/3/2017 8:12 AM, Samuel Gougeon wrote: > Hi, > > Le 22/03/2017 ? 04:54, Tan Chin Luh a ?crit : >> Hi, >> >> Just to check whether anyone encounter issues with the atomsTest >> function. >> >> When running the test_run, all the tests passed. However, when >> running the atomsTest, all tests fail with the error: failed: Slave >> Scilab exited with error code 1. the log file gives : >> >> Start Toolbox Skeleton >> Load macros >> Load gateways >> Load Java libraries >> Load help >> Load demos >> >> Start Toolbox Skeleton >> WARNING: Toolbox skeleton library is already loaded >> at line 15 of executed file >> D:\scilab\scilab-6.0.0\contrib\toolbox_skeleton\0.1.0\loader.sce >> >> exec: error on line #67: "Redefining permanent variable." Remove help >> chapter > > I don't know how you get this error, because i am unable to load the > Toolbox_skeleton: > it is provided without any loader. It must be built before, and it > requires a compiler. > > But I did a test for another toolbox, namely with stixbox that has > only macros. > stixbox is already provided for Scilab 6.0, but all its tests fail > whatever is the way running them. > The reason is that its macros directory includes the lib file as > generated by genlib(), > but most of .bin files are missing, as if they were removed after the > compilation! > So, most of its functions are actually unknown, as documented when > using the > "show_error" test_run() option. > > As a consequence, i am not sure that there is any generic bug about > test_run() or atomsTest(). > Here, clearly, the error is from the packaging of the /stixbox 2.5/ > ATOMS module. > > But may be i tried with the bad guy and most of other modules are OK. > Except Toolbox_skeleton as bad. > > Samuel > > > > > > >> >> >> How to reproduce: >> >> 1. Install any Scilab 6 module with unittest with atoms >> >> 2. run atomsTest and test_run to see the differences. >> >> >> Thanks. >> >> >> rgds, >> CL >> >> >> >> >> _______________________________________________ >> 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 j-lan at online.no Thu Mar 23 09:51:27 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Thu, 23 Mar 2017 09:51:27 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: <58D307DD.20601@hslmg.de> References: <58D257AD.4050502@hslmg.de> <1490183968890-4035928.post@n3.nabble.com> <58D28101.1020006@hslmg.de> <492a979d-c3b5-1e5d-ab61-163aea51e30a@online.no> <58D307DD.20601@hslmg.de> Message-ID: On 23.03.2017 00:25, Jens Simon Strom wrote: > The test data I posted had been preprocessed manually by equalizing > the spaces between the colums to a single one. The original output of > the MICA astro software aligns the colums tidily so that the number of > spaces varies along a line and from line to line if the values vary > between 1 and 3 digits. One can fix that with regex. It would be > workflow supporting if the separator input ofcsvRead would interpret > several blanks as equivalent to one or if automation could be > acchieved elsewise. > Jens > -------------------------------------------------------------------------------------------------------------------------------------------------- > If you have fixed column widths, maybe something like this is better: Ma=mgetl(filename) skiplines=7 clear Md for i=skiplines+1:size(Ma,1) Md(i-skiplines,1:22)=strsplit(Ma(i),[4 8 12 17 20 21 24 26 27 29 33 35 36 38 42 45 46 48 53 55 56])' end Jan-?ge -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Thu Mar 23 09:54:53 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 23 Mar 2017 01:54:53 -0700 (MST) Subject: [Scilab-users] mixed data type matrix Message-ID: <1490259293327-4035956.post@n3.nabble.com> I want to make the matrix whose the first column has the date value such as 2007/5/1 which I can use it in Excel and whose second column has the numerical value such as 0.12. How can I construct such mixed data type matrix which I can copy it and paste it to Excel? List is not a solution because I can copy it to the clipboard through the variable browser. -- View this message in context: http://mailinglists.scilab.org/mixed-data-type-matrix-tp4035956.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From n.strelkov at gmail.com Thu Mar 23 10:21:45 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 23 Mar 2017 12:21:45 +0300 Subject: [Scilab-users] compiling scilab In-Reply-To: References: <1490218155.3053.3.camel@wescottdesign.com> Message-ID: Dear Martin! First of all can't understand why you are trying to compile Scilab. You can get binary version , extract and use it. At second you can get Scilab from AUR . If you still willing to compile Scilab from sources you should install its build dependencies. I think you can start building Scilab 6.0.0 (commit 22bd3a5c93489bce74fbaf25d19fe55aefca853c ). After successful build of 6.0.0 you can try newer revisions. I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on . So I can't offer more. -- *With best regards,Ph.D., assistant professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : > I'm using antergos and cloned the code from scilab website. > GNU Make 4.2.1 > 4.10.3-1-ARCH > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > >> On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: >> > Hello, >> > >> > I tried to compile scilab, but I get every the the following error: >> > >> > File "_none_", line 1: >> > Error: Files ./src/xml2modelica/xMLParser.cmx >> > and ./src/xml2modelica/linenum.cmx >> > make inconsistent assumptions over implementation Linenum >> > >> > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc >> > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 >> >> I do _not_ know the answer, but someone is going to ask you for >> platform, operating system, and the version of the tools that you're >> using. Then they're going to want to know where you got your source >> code (unless it's obvious from the revision numbers). >> >> Sorry I can't offer more... >> >> -- >> >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Mar 23 10:34:08 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Thu, 23 Mar 2017 09:34:08 +0000 Subject: [Scilab-users] mixed data type matrix Message-ID: Hello, > De : fujimoto2005 > Envoy? : jeudi 23 mars 2017 09:55 > > I want to make the matrix whose the first column has the date value such as > 2007/5/1 which I can use it in Excel and whose second column has the numerical value such as 0.12. Excel can convert dates to numbers, see e.g. http://stackoverflow.com/questions/19721416/formula-to-convert-date-to-number so you can represent a date as an integer the same way Excel does. Then in Excel, you just have to change the cell format as date and it automatically shows up. 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 j-lan at online.no Thu Mar 23 11:12:26 2017 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Thu, 23 Mar 2017 11:12:26 +0100 Subject: [Scilab-users] mixed data type matrix In-Reply-To: <1490259293327-4035956.post@n3.nabble.com> References: <1490259293327-4035956.post@n3.nabble.com> Message-ID: <2416e752-8d0e-54f0-2339-0710dee0c598@online.no> On 23.03.2017 09:54, fujimoto2005 wrote: > I want to make the matrix whose the first column has the date value such as > 2007/5/1 which I can use it in Excel and whose second column has the > numerical value such as 0.12. > How can I construct such mixed data type matrix which I can copy it and > paste it to Excel? > List is not a solution because I can copy it to the clipboard through the > variable browser. > Just convert the numerical value to a string: date=["2007/1/1" "2008/2/2" "2009/3/3"]' num=[1.1 2.2 3.3]' Mdn=date Mdn(:,2)=string(num) Copy from variable browser or if you prefer, go via a csv file: csvWrite(Mdn,"datafile.csv",";") From n.strelkov at gmail.com Thu Mar 23 12:27:51 2017 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 23 Mar 2017 14:27:51 +0300 Subject: [Scilab-users] Define numerator and denominator of transfer function as variables in Xcos (DLR block) Message-ID: 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: fir_test.zcos Type: application/octet-stream Size: 5408 bytes Desc: not available URL: From tim at wescottdesign.com Thu Mar 23 18:28:30 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Thu, 23 Mar 2017 10:28:30 -0700 Subject: [Scilab-users] mixed data type matrix In-Reply-To: <2416e752-8d0e-54f0-2339-0710dee0c598@online.no> References: <1490259293327-4035956.post@n3.nabble.com> <2416e752-8d0e-54f0-2339-0710dee0c598@online.no> Message-ID: <1490290110.3053.16.camel@wescottdesign.com> On Thu, 2017-03-23 at 11:12 +0100, Jan ?ge Langeland wrote: > > On 23.03.2017 09:54, fujimoto2005 wrote: > > > > I want to make the matrix whose the first column has the date value > > such as > > 2007/5/1 which I can use it in Excel and whose second column has > > the > > numerical value such as 0.12. > > How can I construct such mixed data type matrix which I can copy it > > and > > paste it to Excel? > > List is not a solution because I can copy it to the clipboard > > through the > > variable browser. > > > Just convert the numerical value to a string: > date=["2007/1/1" "2008/2/2" "2009/3/3"]' > num=[1.1 2.2 3.3]' > Mdn=date > Mdn(:,2)=string(num) > > Copy from variable browser or if you prefer, go via a csv file: > > csvWrite(Mdn,"datafile.csv",";") Or just write out a csv file. Or, if it's a small enough data set, print it to the console, copy, and paste into Excell. -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From lists at kybdr.de Thu Mar 23 21:55:41 2017 From: lists at kybdr.de (Dirk Reusch) Date: Thu, 23 Mar 2017 21:55:41 +0100 Subject: [Scilab-users] "findmsvccompiler" is buggy!? Message-ID: <20170323215541.25dbe994@lemon> Hello, Having installed VS 2013 ("msvc120express") and VS 2015 ("msvc140pro") and trying to force the use of VS 2015 via setenv("SCILAB_PREFERED_MSVC","mscv140pro") I have noticed that "findmsvccompiler()" still reports "msvc120express". IMHO there is a bug in "dlwFindMsVcCompiler()", because "dlwIsVc14Pro()" returns correctly %t. Best regards, Dirk From antoine.elias at scilab-enterprises.com Thu Mar 23 22:26:18 2017 From: antoine.elias at scilab-enterprises.com (antoine.elias at scilab-enterprises.com) Date: Thu, 23 Mar 2017 22:26:18 +0100 Subject: [Scilab-users] =?utf-8?q?=22findmsvccompiler=22_is_buggy!=3F?= In-Reply-To: <20170323215541.25dbe994@lemon> References: <20170323215541.25dbe994@lemon> Message-ID: <275539b2d8cf33d1143e657fb02931b1@scilab-enterprises.com> Hello, Can you try with : setenv("SCILAB_PREFERED_MSVC","msVC140pro") I have 4 versions of VS on my computer and I can switch without trouble. Regards, Antoine Le 2017-03-23 21:55, Dirk Reusch a ?crit : > Hello, > > Having installed VS 2013 ("msvc120express") and VS 2015 ("msvc140pro") > and trying to force the use of VS 2015 via > > setenv("SCILAB_PREFERED_MSVC","mscv140pro") > > I have noticed that "findmsvccompiler()" still reports "msvc120express". > > IMHO there is a bug in "dlwFindMsVcCompiler()", because "dlwIsVc14Pro()" > returns correctly %t. > > Best regards, > > Dirk > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at kybdr.de Thu Mar 23 22:57:54 2017 From: lists at kybdr.de (Dirk Reusch) Date: Thu, 23 Mar 2017 22:57:54 +0100 Subject: [Scilab-users] "findmsvccompiler" is buggy!? In-Reply-To: <275539b2d8cf33d1143e657fb02931b1@scilab-enterprises.com> References: <20170323215541.25dbe994@lemon> <275539b2d8cf33d1143e657fb02931b1@scilab-enterprises.com> Message-ID: <20170323225754.21c76007@lemon> Hello Antoine, Please have a look at "dlwFindMsVcCompiler" (cf. below), the list entries of funcs = list( ... ) and the entries of compilers = [ ... ] do *not* match! Best regards, Dirk --------------------------------------------------------------- function MSCompiler = dlwFindMsVcCompiler() MSCompiler = "unknown"; // unknown // We use always last version of MS compiler val = getenv("SCILAB_PREFERED_MSVC", ""); if val <> "" then funcs = list(dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc11Express,dlwIsVc11Pro,dlwIsVc10Express,dlwIsVc10Pro); compilers = [ ... "msvc140express"; "msvc140pro"; "msvc120express"; "msvc120pro"; "msvc110express"; "msvc110pro"; "msvc100express"; "msvc100pro";]; idx = find(val == compilers); if idx <> [] then func = funcs(idx); if func() then MSCompiler = val; return; end end end ... On Thu, 23 Mar 2017 22:26:18 +0100 antoine.elias at scilab-enterprises.com wrote: > > > Hello, > > Can you try with : > > setenv("SCILAB_PREFERED_MSVC","msVC140pro") > > I have 4 versions of VS on my computer and I can switch without > trouble. > > Regards, > Antoine > > Le 2017-03-23 21:55, Dirk Reusch a ?crit : > > Hello, > > > > Having installed VS 2013 ("msvc120express") and VS 2015 > > ("msvc140pro") and trying to force the use of VS 2015 via > > > > setenv("SCILAB_PREFERED_MSVC","mscv140pro") > > > > I have noticed that "findmsvccompiler()" still reports > > "msvc120express". > > > > IMHO there is a bug in "dlwFindMsVcCompiler()", because > > "dlwIsVc14Pro()" returns correctly %t. > > > > Best regards, > > > > Dirk > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > -- Kybernetik Dr. Reusch | Phone +49 (0)7127 9579 296 Juchtlenstrasse 11 | Fax +49 (0)7127 9579 297 72124 Pliezhausen | E-Mail reusch at kybdr.de Germany | Internet www.kybdr.de From antoine.elias at scilab-enterprises.com Fri Mar 24 01:15:40 2017 From: antoine.elias at scilab-enterprises.com (antoine.elias at scilab-enterprises.com) Date: Fri, 24 Mar 2017 01:15:40 +0100 Subject: [Scilab-users] =?utf-8?q?=22findmsvccompiler=22_is_buggy!=3F?= In-Reply-To: <20170323225754.21c76007@lemon> References: <20170323215541.25dbe994@lemon> <275539b2d8cf33d1143e657fb02931b1@scilab-enterprises.com> <20170323225754.21c76007@lemon> Message-ID: <7f484893bba09837fa58399f65fcd76e@scilab-enterprises.com> Well it seems that someone have some problem with copy/paste ( me ^^ ) fix -> https://codereview.scilab.org/#/c/19226/ But on my computer with 6.0.0 release: --> findmsvccompiler //default value ans = msvc120pro --> setenv("SCILAB_PREFERED_MSVC","msvc140pro"); --> findmsvccompiler ans = msvc140pro Works well. Thank you Antoine Le 2017-03-23 22:57, Dirk Reusch a ?crit?: > Hello Antoine, > > Please have a look at "dlwFindMsVcCompiler" (cf. below), the list > entries of > > funcs = list( ... ) > > and the entries of > > compilers = [ ... ] > > do *not* match! > > Best regards, > > Dirk > > --------------------------------------------------------------- > > function MSCompiler = dlwFindMsVcCompiler() > MSCompiler = "unknown"; // unknown > > // We use always last version of MS compiler > > val = getenv("SCILAB_PREFERED_MSVC", ""); > if val <> "" then > funcs = > > list(dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc14Express,dlwIsVc12Pro,dlwIsVc11Express,dlwIsVc11Pro,dlwIsVc10Express,dlwIsVc10Pro); > compilers = [ ... "msvc140express"; > "msvc140pro"; > "msvc120express"; > "msvc120pro"; > "msvc110express"; > "msvc110pro"; > "msvc100express"; > "msvc100pro";]; > idx = find(val == compilers); > if idx <> [] then > func = funcs(idx); > if func() then > MSCompiler = val; > return; > end > end > end > ... > > On Thu, 23 Mar 2017 22:26:18 +0100 > antoine.elias at scilab-enterprises.com wrote: > >> >> >> Hello, >> >> Can you try with : >> >> setenv("SCILAB_PREFERED_MSVC","msVC140pro") >> >> I have 4 versions of VS on my computer and I can switch without >> trouble. >> >> Regards, >> Antoine >> >> Le 2017-03-23 21:55, Dirk Reusch a ?crit : >> > Hello, >> > >> > Having installed VS 2013 ("msvc120express") and VS 2015 >> > ("msvc140pro") and trying to force the use of VS 2015 via >> > >> > setenv("SCILAB_PREFERED_MSVC","mscv140pro") >> > >> > I have noticed that "findmsvccompiler()" still reports >> > "msvc120express". >> > >> > IMHO there is a bug in "dlwFindMsVcCompiler()", because >> > "dlwIsVc14Pro()" returns correctly %t. >> > >> > Best regards, >> > >> > Dirk >> > _______________________________________________ >> > users mailing list >> > users at lists.scilab.org >> > http://lists.scilab.org/mailman/listinfo/users >> From pablo_f_7 at hotmail.com Fri Mar 24 02:01:49 2017 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Fri, 24 Mar 2017 01:01:49 +0000 Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: <1490226626.3053.9.camel@wescottdesign.com> References: <1490220939682-4035946.post@n3.nabble.com> , <1490226626.3053.9.camel@wescottdesign.com> Message-ID: Hi, I would have also written SumArr = [SumArr toAdd] Why is this answer different to the original? SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd; May be im missing something, but i think in both cases you need to know the arrays in advance, dont you? Also, i think SumArr = [SumArr toAdd] has better performance... Perhaps im not understanding the question.. Obtener Outlook para Android ________________________________ From: users on behalf of Tim Wescott Sent: Wednesday, March 22, 2017 8:50:26 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] add number arrays efficiently, how? On Thu, 2017-03-23 at 00:28 +0100, Samuel Gougeon wrote: > Le 22/03/2017 ? 23:15, Erhy a ?crit : > > > > Hello! > > I'm thinking in arrays - and I write > > > > SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]; > > SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = > > toAdd; > > > > How to code it smarter? > SumArr = [SumArr toAdd] > If you know them in advance, yes. My answer was predicated on not knowing "toAdd" at the same time as the 1x3 SumArr. > -- 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 sgougeon at free.fr Fri Mar 24 02:16:29 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Mar 2017 02:16:29 +0100 Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: <1490226626.3053.9.camel@wescottdesign.com> References: <1490220939682-4035946.post@n3.nabble.com> <1490226626.3053.9.camel@wescottdesign.com> Message-ID: <267fdb24-cd3a-c054-cfa6-484b58605461@free.fr> Le 23/03/2017 ? 00:50, Tim Wescott a ?crit : > On Thu, 2017-03-23 at 00:28 +0100, Samuel Gougeon wrote: >> Le 22/03/2017 ? 23:15, Erhy a ?crit : >>> Hello! >>> I'm thinking in arrays - and I write >>> >>> SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]; >>> SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = >>> toAdd; >>> >>> How to code it smarter? >> SumArr = [SumArr toAdd] >> > If you know them in advance, yes. which is the case: > Hello! > I'm thinking in arrays - and I write > SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]; From Clement.David at esi-group.com Fri Mar 24 09:53:29 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Fri, 24 Mar 2017 08:53:29 +0000 Subject: [Scilab-users] compiling scilab In-Reply-To: References: <1490218155.3053.3.camel@wescottdesign.com> Message-ID: <1490345608.2141.29.camel@esi-group.com> Hello all, Sorry for answering that late, I can offer more :) . The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a known issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. I was only able to reproduce it on system using OCaml 4 and it seems to be related to a wrong ml/mli dependency order. Could you confirm that you are using the latest OCaml version ? Thanks, -- Cl?ment Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit?: > Dear Martin! > > First of all can't understand why you are trying to compile Scilab.? > You can get binary version, extract and use it. > > At second you can get Scilab from AUR. If you still willing to compile Scilab from sources you > should install its build dependencies.? > I think you can start building Scilab 6.0.0 (commit 22bd3a5c93489bce74fbaf25d19fe55aefca853c). > After successful build of 6.0.0 you can try newer revisions. > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on. So I > can't offer more. > > -- > With best regards, > Ph.D., assistant professor at MPEI, > IEEE member, > maintainer of Mathieu functions toolbox for Scilab, > Nikolay Strelkov. > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : > > I'm using antergos and cloned the code from scilab website. > > GNU Make 4.2.1 > > 4.10.3-1-ARCH > > > > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > > > Hello, > > > > > > > > I tried to compile scilab, but I get every the the following error: > > > > > > > > File "_none_", line 1: > > > > Error: Files ./src/xml2modelica/xMLParser.cmx > > > > ?????? and ./src/xml2modelica/linenum.cmx > > > > ?????? make inconsistent assumptions over implementation Linenum > > > > > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > > > > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > > > > > I do _not_ know the answer, but someone is going to ask you for > > > platform, operating system, and the version of the tools that you're > > > using.? Then they're going to want to know where you got your source > > > code (unless it's obvious from the revision numbers). > > > > > > Sorry I can't offer more... > > > > > > -- > > > > > > 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 > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From florian.blachere at uvsq.fr Fri Mar 24 11:17:41 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Fri, 24 Mar 2017 11:17:41 +0100 Subject: [Scilab-users] compiling scilab In-Reply-To: <1490345608.2141.29.camel@esi-group.com> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> Message-ID: <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> Hello, I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD from the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with-modelica') the build fails even with the '-j1' option. Regards, Florian On 24/03/17 09:53, Cl?ment David wrote: > Hello all, > > Sorry for answering that late, I can offer more :) . > > The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a known > issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. > > I was only able to reproduce it on system using OCaml 4 and it seems to be related to a wrong ml/mli > dependency order. Could you confirm that you are using the latest OCaml version ? > > Thanks, > > -- > Cl?ment > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : >> Dear Martin! >> >> First of all can't understand why you are trying to compile Scilab. >> You can get binary version, extract and use it. >> >> At second you can get Scilab from AUR. If you still willing to compile Scilab from sources you >> should install its build dependencies. >> I think you can start building Scilab 6.0.0 (commit 22bd3a5c93489bce74fbaf25d19fe55aefca853c). >> After successful build of 6.0.0 you can try newer revisions. >> >> I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on. So I >> can't offer more. >> >> -- >> With best regards, >> Ph.D., assistant professor at MPEI, >> IEEE member, >> maintainer of Mathieu functions toolbox for Scilab, >> Nikolay Strelkov. >> >> 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : >>> I'm using antergos and cloned the code from scilab website. >>> GNU Make 4.2.1 >>> 4.10.3-1-ARCH >>> >>> >>> 2017-03-22 22:29 GMT+01:00 Tim Wescott : >>>> On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: >>>>> Hello, >>>>> >>>>> I tried to compile scilab, but I get every the the following error: >>>>> >>>>> File "_none_", line 1: >>>>> Error: Files ./src/xml2modelica/xMLParser.cmx >>>>> and ./src/xml2modelica/linenum.cmx >>>>> make inconsistent assumptions over implementation Linenum >>>>> >>>>> It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc >>>>> Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 >>>> I do _not_ know the answer, but someone is going to ask you for >>>> platform, operating system, and the version of the tools that you're >>>> using. Then they're going to want to know where you got your source >>>> code (unless it's obvious from the revision numbers). >>>> >>>> Sorry I can't offer more... >>>> >>>> -- >>>> >>>> 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 >>> >> _______________________________________________ >> 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 lists at kybdr.de Fri Mar 24 11:46:13 2017 From: lists at kybdr.de (Dirk Reusch) Date: Fri, 24 Mar 2017 11:46:13 +0100 Subject: [Scilab-users] Building Scilab 6.0 with Visual Studio 2015? Message-ID: <20170324114613.496bb04c@lemon> Hello, Has anybody successfully build Scilab 6.0 from source for Windows 64Bit using Visual Studio 2015? If yes, does it work out-of-the-box following the instructions given here https://wiki.scilab.org/Compilation%20of%20Scilab ? Thanks, Dirk From erhard.glueck.austria at gmail.com Fri Mar 24 11:50:25 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 24 Mar 2017 03:50:25 -0700 (MST) Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: References: <1490220939682-4035946.post@n3.nabble.com> <1490226626.3053.9.camel@wescottdesign.com> Message-ID: <1490352625982-4035974.post@n3.nabble.com> PabloF wrote > May be im missing something, but i think in both cases you need to know > the arrays in advance, dont you? > > Also, i think SumArr = [SumArr toAdd] has better performance... > Perhaps im not understanding the question.. Perhaps merge arrays would be a appropriate subject. If I code, I'm always uncertain about the orientation of the created array. My first alternative works in any case. -- View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946p4035974.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Fri Mar 24 13:16:28 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 24 Mar 2017 05:16:28 -0700 (MST) Subject: [Scilab-users] add number arrays efficiently, how? In-Reply-To: <1490352625982-4035974.post@n3.nabble.com> References: <1490220939682-4035946.post@n3.nabble.com> <1490226626.3053.9.camel@wescottdesign.com> <1490352625982-4035974.post@n3.nabble.com> Message-ID: <1490357788093-4035976.post@n3.nabble.com> Erhy, Your code only works if the input arrays are oriented similiarly (both column or row vectors). For the following input your code would not run: SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]'; SumArr( (length(SumArr)+1) : (length(SumArr)+length(toAdd)) ) = toAdd; !--error 15 Submatrix incorrectly defined. //You could try: function y=add_b2a(a, b) [mx,k]=max(size(a)); if k==1 then y= [a(:); b(:)]; else y= [a(:); b(:)]'; end endfunction // Examples: SumArr = [ 1 2 3 ]; toAdd = [ 7 8 9 10 ]'; add_b2a(SumArr, toAdd) ans = 1. 2. 3. 7. 8. 9. 10. SumArr = [ 1 2 3]'; toAdd = [ 7 8 9 10 ]; add_b2a(SumArr, toAdd) ans = 1. 2. 3. 7. 8. 9. 10. Regards, Rafael -- View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946p4035976.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Fri Mar 24 13:48:48 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 24 Mar 2017 12:48:48 +0000 Subject: [Scilab-users] {EXT} Re: add number arrays efficiently, how? In-Reply-To: <1490357788093-4035976.post@n3.nabble.com> References: <1490220939682-4035946.post@n3.nabble.com> <1490226626.3053.9.camel@wescottdesign.com> <1490352625982-4035974.post@n3.nabble.com> <1490357788093-4035976.post@n3.nabble.com> Message-ID: Hello, > De : Rafael Guerra > Envoy? : vendredi 24 mars 2017 13:16 > > Your code only works if the input arrays are oriented similiarly (both column or row vectors). > [...] > > SumArr = [ 1 2 3 ]; > toAdd = [ 7 8 9 10 ]' You can transform it to line vectors (or column vectors) with matrix(): [matrix(SumArr, 1, size(SumArr, "*")), matrix(toAdd, 1, size(toAdd, "*"))] Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From jrafaelbguerra at hotmail.com Fri Mar 24 14:01:00 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 24 Mar 2017 06:01:00 -0700 (MST) Subject: [Scilab-users] {EXT} Re: add number arrays efficiently, how? In-Reply-To: References: <1490220939682-4035946.post@n3.nabble.com> <1490226626.3053.9.camel@wescottdesign.com> <1490352625982-4035974.post@n3.nabble.com> <1490357788093-4035976.post@n3.nabble.com> Message-ID: <1490360460966-4035978.post@n3.nabble.com> with no logic to respect the SumArr orientation the following is even simpler: [SumArr(:); toAdd(:)] Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946p4035978.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Fri Mar 24 14:09:20 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 24 Mar 2017 06:09:20 -0700 (MST) Subject: [Scilab-users] mixed data type matrix In-Reply-To: <1490290110.3053.16.camel@wescottdesign.com> References: <1490259293327-4035956.post@n3.nabble.com> <2416e752-8d0e-54f0-2339-0710dee0c598@online.no> <1490290110.3053.16.camel@wescottdesign.com> Message-ID: <1490360960579-4035979.post@n3.nabble.com> Dear All Thanks for your helpful answers. I could solve the problem. Best regards. -- View this message in context: http://mailinglists.scilab.org/mixed-data-type-matrix-tp4035956p4035979.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Fri Mar 24 16:24:52 2017 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 24 Mar 2017 16:24:52 +0100 Subject: [Scilab-users] Reading numerical and string vectors from txt-file In-Reply-To: References: <58D257AD.4050502@hslmg.de> <1490183968890-4035928.post@n3.nabble.com> <58D28101.1020006@hslmg.de> <492a979d-c3b5-1e5d-ab61-163aea51e30a@online.no> <58D307DD.20601@hslmg.de> Message-ID: <58D53A44.6070805@hslmg.de> mgetl(filename) is a good alternative. I have used it in a function because retrieving numbers comes up frequently for me. function cv=!cv(fp,colspan,varargin)//Extracts a numeric Colum Vector from ASCII file //Data separator in file: spaces only, number may differ from line to line to cope with ragged colums //fp: full path of ASCII file, type string //colspan: Increasing row vector of colum indices, position range of the numbers, type constant // The data colum may be ragged but no other characters may protrude into the colum span. //varargin: optional string vector, line numbers to read //cv: colum vector of read numbers, type constant //CAVEAT: If the file uses separating tabs they should be replaced by blanks. colspan should be enclosed // in at least one leading and one trailing blank in all lines (check in editor). //Examples: //cv=!cv('file.txt',[12:15]) //reads colums 12 to 15 of all lines //cv=!cv('file.txt',[1:6],'[10:$-3]') //reads colums 1 to 6 of 10th to third last line, good for masking headers and footers //cv=!cv('file.txt',[1:6],'[1 11 101]') //reads distant lines fdescr=mopen(fp,'r');//file descriptor txtlines = mgetl(fdescr,-1);//string colum vector with all lines mclose(fdescr); [lhs,rhs]=argn(0) if rhs==3 then execstr('txtlines=txtlines('+varargin(1)+')')//reduction to the requested lines end cv = strtod(part(txtlines,colspan))//string to double endfunction Jens --------------------------------------------------------------------------------------------------- Am 23.03.2017 09:51, schrieb Jan ?ge Langeland: > > > > On 23.03.2017 00:25, Jens Simon Strom wrote: >> The test data I posted had been preprocessed manually by equalizing >> the spaces between the colums to a single one. The original output of >> the MICA astro software aligns the colums tidily so that the number >> of spaces varies along a line and from line to line if the values >> vary between 1 and 3 digits. One can fix that with regex. It would be >> workflow supporting if the separator input ofcsvRead would interpret >> several blanks as equivalent to one or if automation could be >> acchieved elsewise. >> Jens >> -------------------------------------------------------------------------------------------------------------------------------------------------- >> > If you have fixed column widths, maybe something like this is better: > > Ma=mgetl(filename) > skiplines=7 > clear Md > for i=skiplines+1:size(Ma,1) > Md(i-skiplines,1:22)=strsplit(Ma(i),[4 8 12 17 20 21 24 26 27 29 33 35 > 36 38 42 45 46 48 53 55 56])' > end > > Jan-?ge > > > _______________________________________________ > 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 Fri Mar 24 18:40:54 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 24 Mar 2017 18:40:54 +0100 Subject: [Scilab-users] 3D interpolation Message-ID: Hi all, I don't know if my question is relavante (or not), but I'm wondering what is the best way to perform a 3D interpolation, from for the matrix definition to the interpolation procedure. Let me using a basic example: I've some curves y = f(x,T) defining a material behaviour at different temperatures i.e. 1 curve (x,y) per temperature: - y = f(x,20) - y = f(x,100) - y = f(x,200) etc. What is the best way to define a single matrix? [x y T] ? Next step is to be able to perform a 3D interpolation whatever is the temperature (for a given x) ... any advice? (of course I'm looking to INTERP3D flag. Thanks for any feedback Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Fri Mar 24 18:45:45 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Fri, 24 Mar 2017 18:45:45 +0100 Subject: [Scilab-users] 3D interpolation In-Reply-To: References: Message-ID: <8F1D40232A0E68409E3FC23A30C32662017454432C30@THSONEA01CMS04P.one.grp> Hello ! Did you try cshep2d + eval_cshep2d ? 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 De : users [mailto:users-bounces at lists.scilab.org] De la part de paul.carrico at free.fr Envoy? : vendredi 24 mars 2017 18:41 ? : User Scilab Objet : [Scilab-users] 3D interpolation Hi all, I don't know if my question is relavante (or not), but I'm wondering what is the best way to perform a 3D interpolation, from for the matrix definition to the interpolation procedure. Let me using a basic example: I've some curves y = f(x,T) defining a material behaviour at different temperatures i.e. 1 curve (x,y) per temperature: - y = f(x,20) - y = f(x,100) - y = f(x,200) etc. What is the best way to define a single matrix? [x y T] ? Next step is to be able to perform a 3D interpolation whatever is the temperature (for a given x) ... any advice? (of course I'm looking to interp3D flag. Thanks for any feedback Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Fri Mar 24 18:51:31 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Mar 2017 10:51:31 -0700 Subject: [Scilab-users] 3D interpolation In-Reply-To: References: Message-ID: <1490377891.3053.20.camel@wescottdesign.com> I'm not an expert. ?But: I did a quick spin through the help files and came up with splin2d and interp2d. ?It looks like what you want -- get the splines in x and T using splin2d, and find the y values for a given x and T using interp2d. I don't know if this is the very best way to do this mathematically -- I know that this sort of 2D interpolated look-up is used extensively in engine management units in cars (they're called "maps" in that lingo), so there's probably a lot of research on accuracy vs. efficiency tradeoffs. On Fri, 2017-03-24 at 18:40 +0100, paul.carrico at free.fr wrote: > Hi all, > > I don't know if my question is relavante (or not), but I'm wondering > what is the best way to perform a 3D interpolation, from for the > matrix definition to the interpolation procedure. > > Let me using a basic example: I've some curves y = f(x,T) defining a > material behaviour at different temperatures i.e. 1 curve (x,y) per > temperature: > - y = f(x,20) > - y = f(x,100) > - y = f(x,200) > > etc. > > What is the best way to define a single matrix? [x y T] ? > > > Next step is to be able to perform a 3D interpolation whatever is the > temperature (for a given x) ... any advice? (of course I'm looking to > interp3D flag. > > Thanks for any feedback > > Paul > _______________________________________________ > 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 tim at wescottdesign.com Fri Mar 24 19:23:32 2017 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Mar 2017 11:23:32 -0700 Subject: [Scilab-users] 3D interpolation In-Reply-To: <8F1D40232A0E68409E3FC23A30C32662017454432C30@THSONEA01CMS04P.one.grp> References: <8F1D40232A0E68409E3FC23A30C32662017454432C30@THSONEA01CMS04P.one.grp> Message-ID: <1490379812.3053.35.camel@wescottdesign.com> That doesn't show up in the help for 5.5.2. ?Is it a 6.x thing, or is there a toolbox? ?Looks interesting, at any rate. On Fri, 2017-03-24 at 18:45 +0100, CRETE Denis wrote: > Hello?! > Did you try cshep2d + eval_cshep2d ? > 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 > ? > De?: users [mailto:users-bounces at lists.scilab.org] De la part de paul > .carrico at free.fr > Envoy??: vendredi 24 mars 2017 18:41 > ??: User Scilab > Objet?: [Scilab-users] 3D interpolation > ? > Hi all, > > I don't know if my question is relavante (or not), but I'm wondering > what is the best way to perform a 3D interpolation, from for the > matrix definition to the interpolation procedure. > > Let me using a basic example: I've some curves y = f(x,T) defining a > material behaviour at different temperatures i.e. 1 curve (x,y) per > temperature: > - y = f(x,20) > - y = f(x,100) > - y = f(x,200) > > etc. > > What is the best way to define a single matrix? [x y T] ? > > > Next step is to be able to perform a 3D interpolation whatever is the > temperature (for a given x) ... any advice? (of course I'm looking to > interp3D flag. > > Thanks for any feedback > > Paul > _______________________________________________ > 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 Christophe.Dang at sidel.com Fri Mar 24 19:27:05 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 24 Mar 2017 18:27:05 +0000 Subject: [Scilab-users] {EXT} Some weirdies with 6.0.0 In-Reply-To: References: Message-ID: Hello, > De : Dang Ngoc Chan, Christophe > Envoy? : mardi 21 mars 2017 10:19 > > E.g. I has two graphical windows opened and one of them did not I investigated this a bit and found a reproducible minimal case, see bug 15100 http://bugzilla.scilab.org/show_bug.cgi?id=15100 Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From erhard.glueck.austria at gmail.com Fri Mar 24 20:36:42 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 24 Mar 2017 12:36:42 -0700 (MST) Subject: [Scilab-users] add value to each element of an array, also to an empty one Message-ID: <1490384202470-4035989.post@n3.nabble.com> Hello! Again a basic question. e.g. A = [ 1 2 3 ]; I = find( A > 10); if length(I) > 0 then I = I + 1; end Is there a alternative *without the if ?* I miss the .+ operator. Thank you -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Mar 24 20:47:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Mar 2017 20:47:48 +0100 Subject: [Scilab-users] add value to each element of an array, also to an empty one In-Reply-To: <1490384202470-4035989.post@n3.nabble.com> References: <1490384202470-4035989.post@n3.nabble.com> Message-ID: <07a5f2f6-13f8-a04a-fa33-fbb9ad525c94@free.fr> Hello Erhy, Le 24/03/2017 ? 20:36, Erhy a ?crit : > Hello! > Again a basic question. > e.g. > A = [ 1 2 3 ]; > I = find( A > 10); > if length(I) > 0 then > I = I + 1; > end > > Is there a alternative > *without the if ?* Yes, just: I = I + 1 The if is useless: 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing was done 2. otherwise, just add 1 > I miss the .+ operator. So do i, sometimes. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From erhard.glueck.austria at gmail.com Fri Mar 24 21:08:37 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 24 Mar 2017 13:08:37 -0700 (MST) Subject: [Scilab-users] add value to each element of an array, also to an empty one In-Reply-To: <07a5f2f6-13f8-a04a-fa33-fbb9ad525c94@free.fr> References: <1490384202470-4035989.post@n3.nabble.com> <07a5f2f6-13f8-a04a-fa33-fbb9ad525c94@free.fr> Message-ID: <1490386117217-4035991.post@n3.nabble.com> Samuel GOUGEON wrote > 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing But in my examples I = []; Iplus = I + 1; then Iplus is 1 -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035991.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Mar 24 21:22:54 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Mar 2017 21:22:54 +0100 Subject: [Scilab-users] add value to each element of an array, also to an empty one In-Reply-To: <1490386117217-4035991.post@n3.nabble.com> References: <1490384202470-4035989.post@n3.nabble.com> <07a5f2f6-13f8-a04a-fa33-fbb9ad525c94@free.fr> <1490386117217-4035991.post@n3.nabble.com> Message-ID: <8ac15b37-0575-3203-4c9f-8e4eb7ab64ec@free.fr> Le 24/03/2017 ? 21:08, Erhy a ?crit : > Samuel GOUGEON wrote >> 1. length(I)==0 means I==[] and then I+1 == []+1 ==[] as if nothing > But in my examples > I = []; > Iplus = I + 1; > then Iplus is 1 Not in Scilab 6, for the time being. I assumed that you were using Scilab 6. In Scilab 5: i know nothing simpler than testing if I~=[] From erhard.glueck.austria at gmail.com Fri Mar 24 21:39:58 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Fri, 24 Mar 2017 13:39:58 -0700 (MST) Subject: [Scilab-users] add value to each element of an array, also to an empty one In-Reply-To: <8ac15b37-0575-3203-4c9f-8e4eb7ab64ec@free.fr> References: <1490384202470-4035989.post@n3.nabble.com> <07a5f2f6-13f8-a04a-fa33-fbb9ad525c94@free.fr> <1490386117217-4035991.post@n3.nabble.com> <8ac15b37-0575-3203-4c9f-8e4eb7ab64ec@free.fr> Message-ID: <1490387998674-4035993.post@n3.nabble.com> Samuel GOUGEON wrote > Not in Scilab 6, for the time being. I assumed that you were using Scilab > 6. so I will jump to version 6 Thank you! -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035993.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Mar 24 21:40:50 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Mar 2017 21:40:50 +0100 Subject: [Scilab-users] 3D interpolation In-Reply-To: References: Message-ID: Le 24/03/2017 ? 18:40, paul.carrico at free.fr a ?crit : > Hi all, > > I don't know if my question is relavante (or not), but I'm wondering > what is the best way to perform a 3D interpolation, from for the > matrix definition to the interpolation procedure. > > Let me using a basic example: I've some curves y = f(x,T) defining a > material behaviour at different temperatures i.e. 1 curve (x,y) per > temperature: > - y = f(x,20) > - y = f(x,100) > - y = f(x,200) > > etc. > > What is the best way to define a single matrix? [x y T] ? It depends on whether f() is vectorized or not. It could be something like t = [20 100 200]; [X, T] = ndgrid(x, t); Y = f(X,T); // or Y = feval(x, t); Then: M = [X(:) Y(:) T(:)]; -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Mar 24 21:54:50 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 24 Mar 2017 21:54:50 +0100 Subject: [Scilab-users] 3D interpolation In-Reply-To: References: Message-ID: <0969589389f9a68f20ccfb197c0d68cc@free.fr> thanks all for the answers; I didn't know about ndgrid and I'm currently having a look on it (seems to be quite interesting) Samuel: from your example and the help doc, I need to understand how to proceed to perform linear interpolations (temperatures and abscissa's in my example) Paul Le 2017-03-24 21:40, Samuel Gougeon a ?crit : > Le 24/03/2017 ? 18:40, paul.carrico at free.fr a ?crit : > >> Hi all, >> >> I don't know if my question is relavante (or not), but I'm wondering >> what is the best way to perform a 3D interpolation, from for the >> matrix definition to the interpolation procedure. >> >> Let me using a basic example: I've some curves y = f(x,T) defining a >> material behaviour at different temperatures i.e. 1 curve (x,y) per >> temperature: >> - y = f(x,20) >> - y = f(x,100) >> - y = f(x,200) >> >> etc. >> >> What is the best way to define a single matrix? [x y T] ? > > It depends on whether f() is vectorized or not. It could be something > like > t = [20 100 200]; > [X, T] = ndgrid(x, t); > Y = f(X,T); > // or > Y = feval(x, t); > > Then: > M = [X(:) Y(:) T(:)]; > _______________________________________________ > 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 Fri Mar 24 23:53:16 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 24 Mar 2017 15:53:16 -0700 (MST) Subject: [Scilab-users] add value to each element of an array, also to an empty one In-Reply-To: <1490384202470-4035989.post@n3.nabble.com> References: <1490384202470-4035989.post@n3.nabble.com> Message-ID: <1490395996790-4035996.post@n3.nabble.com> An ugly alternative without find and without the if as requested: A = [ -1 2 7 ]; I = (A>10).*(cumsum(ones(A))+1); I(I==0) = [] I = [] I = (A>0).*(cumsum(ones(A))+1); I(I==0) = [] I = 3. 4. Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035996.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Sat Mar 25 07:49:15 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 24 Mar 2017 23:49:15 -0700 (MST) Subject: [Scilab-users] efficient calculation for a moving window Message-ID: <1490424555129-4035997.post@n3.nabble.com> Suppose x is a 1*n?vector and m Hi All To go further in 2D/3D interpolation as I started in my previous emails, I built the example here after. As suggested, I had a look to - cshep2d but but seems can not be used here (dimensions issue) - splin2d + interp2d In the later case, Am I right to say that splin2d "cross-sections" the surface in order to define the "best spline" passing through the nodes (in the cross section obviously), then the interpolation/calculation is basically using this new 2D function, right ? if so this is not a linear interpolation between 2 nodes (as I expect), isn't it? Paul ############################################ mode(0) n=10; x = linspace(0,300,(n+1))'; // abscissa t = [0 25 100]; // temperature z = 20*rand((n+1),3); // ordinate // Nota : we must have the same number of data for both x and z // plot3d clf() a=get("current_axes"); a.x_label; x_label=a.x_label; x_label.text=" X abscissa"; a.y_label; y_label=a.y_label; y_label.text=" Temperature T"; a.z_label; z_label=a.z_label; z_label.text=" y ordinate"; plot3d(x,t,z) // Nota: if I do a cross section normal to XoZ plane, I've the basic curve z=f(x,T)) -> seems correct // interpolation xp = [22 103 236]' tp = [5 56 85]' [Xp,Tp] = ndgrid(xp,tp) -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Sat Mar 25 09:14:50 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 25 Mar 2017 01:14:50 -0700 (MST) Subject: [Scilab-users] Lengend for 3d-plot and an horizontal plane at z=0 Message-ID: <1490429690297-4035999.post@n3.nabble.com> I have 3d-plot with 2 surfaces as an attached file. I want to improve its appearance. 1, Can I add the legend for each surface as 2d-plot? Help file tells me 'Legend' is only for 2d-plot and I can't find the same functionality for 3d-plot. 2, How can I add a horizontal plane at z=0. I want to separate whole space and contrast the sub-spaces over and under z-0 plane. Though I could add by mesh(mesh_x,mesh_y,zeros(mesh_x)), this plane has the poor appearance as a separator since I can't set it semi-transparent to be able to see the under 0 subspace and it does't connect with x-z plane and y-z plane. Best regards -- View this message in context: http://mailinglists.scilab.org/Lengend-for-3d-plot-and-an-horizontal-plane-at-z-0-tp4035999.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sat Mar 25 14:46:13 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 25 Mar 2017 06:46:13 -0700 (MST) Subject: [Scilab-users] 3D interpolation : comments adding In-Reply-To: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> References: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> Message-ID: <1490449573720-4036001.post@n3.nabble.com> Try this: n=21; x = linspace(0,300,n)'; // abscissa t = [0 25 100]; // temperature z = n*sin(x/n).*.cos(t/n); // ordinate clf() a=get("current_axes"); a.x_label.text=" X abscissa"; a.y_label.text=" Temperature T"; a.z_label.text=" Z ordinate"; // linear interpolation xp = [22 103 236]; tp = [5 56 85]; [Xp,Tp] = ndgrid(xp,tp); Zp = linear_interpn(Xp,Tp, x, t, z); plot3d(x,t,z) // requires Scilab-6 for scatter plot: scatter3(Xp(:), Tp(:), Zp(:), "markerEdgeColor", "black","markerFaceColor", [.9 .3 .0]) Rgds, Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-users-3D-interpolation-comments-adding-tp4035998p4036001.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sat Mar 25 16:44:16 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 25 Mar 2017 08:44:16 -0700 (MST) Subject: [Scilab-users] efficient calculation for a moving window In-Reply-To: <1490424555129-4035997.post@n3.nabble.com> References: <1490424555129-4035997.post@n3.nabble.com> Message-ID: <1490456656110-4036002.post@n3.nabble.com> You can try vectorization for speed at cost of memory - see code below. It should be pretty general as long as f can work on columns. Note that for the moving average example I have used, a convolution implementation would be much faster. // START OF CODE n=100; m = 20; function y=f(x) // function f can be anything but must operate on columns of input x y = mean(x,'c'); endfunction // Initial loop solution: y = rand(1,n); y1 = zeros(1,n-m+1); for i=1:n-m+1 y1(i)=f(y(i:i-1+m)); end // Optimized solution with vectorization: [X,Y] = meshgrid(1:m,1:n-m+1); y2 = f(matrix(y(X+Y-1),n-m+1,m)); printf("difference = %g\n",norm(y1-y2')) // END OF CODE Regards, Rafael -- View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036002.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tim at wescottdesign.com Sat Mar 25 17:52:03 2017 From: tim at wescottdesign.com (tim at wescottdesign.com) Date: Sat, 25 Mar 2017 09:52:03 -0700 Subject: [Scilab-users] 3D interpolation : comments adding In-Reply-To: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> References: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> Message-ID: <0969f38208cc474e6817399fd027f3c5@wescottdesign.com> The help says that splin2d generates bicubic patches, so presumably it's not linear interpolation. On 2017-03-25 00:24, paul.carrico at free.fr wrote: > Hi All > > To go further in 2D/3D interpolation as I started in my previous emails, I built the example here after. > > As suggested, I had a look to > - cshep2d but but seems can not be used here (dimensions issue) > - splin2d + interp2d > > In the later case, Am I right to say that splin2d "cross-sections" the surface in order to define the "best spline" passing through the nodes (in the cross section obviously), then the interpolation/calculation is basically using this new 2D function, right ? > > if so this is not a linear interpolation between 2 nodes (as I expect), isn't it? > > Paul > > ############################################ > > mode(0) > > n=10; > x = linspace(0,300,(n+1))'; // abscissa > t = [0 25 100]; // temperature > z = 20*rand((n+1),3); // ordinate > // Nota : we must have the same number of data for both x and z > > // plot3d > clf() > a=get("current_axes"); > a.x_label; x_label=a.x_label; x_label.text=" X abscissa"; > a.y_label; y_label=a.y_label; y_label.text=" Temperature T"; > a.z_label; z_label=a.z_label; z_label.text=" y ordinate"; > plot3d(x,t,z) > > // Nota: if I do a cross section normal to XoZ plane, I've the basic curve z=f(x,T)) -> seems correct > > // interpolation > xp = [22 103 236]' > tp = [5 56 85]' > > [Xp,Tp] = ndgrid(xp,tp) > > _______________________________________________ > 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 Mar 25 19:38:48 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sat, 25 Mar 2017 19:38:48 +0100 Subject: [Scilab-users] 3D interpolation : comments adding In-Reply-To: <0969f38208cc474e6817399fd027f3c5@wescottdesign.com> References: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> <0969f38208cc474e6817399fd027f3c5@wescottdesign.com> Message-ID: <548ebfbe2be40fd1826a746fb1b1c5b5@free.fr> Hi Tim That's indeed what I've read as well; my need remains to get a linear interpolation between physical points ... I'm still digging in order to find a "pleasant" code :_) Thanks for the feedback Paul Le 2017-03-25 17:52, tim at wescottdesign.com a ?crit : > The help says that splin2d generates bicubic patches, so presumably > it's not linear interpolation. > > On 2017-03-25 00:24, paul.carrico at free.fr wrote: > >> Hi All >> >> To go further in 2D/3D interpolation as I started in my previous >> emails, I built the example here after. >> >> As suggested, I had a look to >> - cshep2d but but seems can not be used here (dimensions issue) >> - splin2d + interp2d >> >> In the later case, Am I right to say that splin2d "cross-sections" >> the surface in order to define the "best spline" passing through the >> nodes (in the cross section obviously), then the >> interpolation/calculation is basically using this new 2D function, >> right ? >> >> if so this is not a linear interpolation between 2 nodes (as I >> expect), isn't it? >> >> Paul >> >> ############################################ >> >> mode(0) >> >> n=10; >> x = linspace(0,300,(n+1))'; // abscissa >> t = [0 25 100]; // temperature >> z = 20*rand((n+1),3); // ordinate >> // Nota : we must have the same number of data for both x and z >> >> // plot3d >> clf() >> a=get("current_axes"); >> a.x_label; x_label=a.x_label; x_label.text=" X abscissa"; >> a.y_label; y_label=a.y_label; y_label.text=" Temperature T"; >> a.z_label; z_label=a.z_label; z_label.text=" y ordinate"; >> plot3d(x,t,z) >> >> // Nota: if I do a cross section normal to XoZ plane, I've the basic >> curve z=f(x,T)) -> seems correct >> >> // interpolation >> xp = [22 103 236]' >> tp = [5 56 85]' >> >> [Xp,Tp] = ndgrid(xp,tp) >> >> _______________________________________________ >> 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 Sat Mar 25 20:55:48 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 25 Mar 2017 20:55:48 +0100 Subject: [Scilab-users] 3D interpolation : comments adding In-Reply-To: <548ebfbe2be40fd1826a746fb1b1c5b5@free.fr> References: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> <0969f38208cc474e6817399fd027f3c5@wescottdesign.com> <548ebfbe2be40fd1826a746fb1b1c5b5@free.fr> Message-ID: <0bb59481-c3b3-c86b-0223-fab7c3194f23@free.fr> Le 25/03/2017 ? 19:38, paul.carrico at free.fr a ?crit : > Hi Tim > That's indeed what I've read as well; my need remains to get a linear > interpolation between physical points ... I'm still digging in order > to find a "pleasant" code :_) linear_interpn() is made for that: https://help.scilab.org/docs/6.0.0/en_US/linear_interpn.html Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Sat Mar 25 21:09:00 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 25 Mar 2017 13:09:00 -0700 (MST) Subject: [Scilab-users] Lengend for 3d-plot and an horizontal plane at z=0 In-Reply-To: <1490429690297-4035999.post@n3.nabble.com> References: <1490429690297-4035999.post@n3.nabble.com> Message-ID: <1490472540474-4036008.post@n3.nabble.com> For 2. , see picture attached and code below with tight limits 'on' and face color = 'none': //START OF CODE x0 = linspace(25,120,100); y0 = linspace(0.5,2.5,100); [x y] = meshgrid(x0,y0); z1 = 3e7*(y-mean(y))+0.1*x; clf f=gcf() f.color_map = jetcolormap(64); surf(x, y, z1,'facecol','interp') h=get("hdl"); h.color_mode=-2; a = gca() B = a.data_bounds; a.tight_limits = 'on'; dx = 10; // x-decimation factor dy = 15; // y-decimation factor x0 = [x0(1:dx:$) B(2,1)] ; y0 = [y0(1:dy:$) B(2,2)]; [xx yy] = meshgrid(x0,y0); surf(xx,yy,0*xx,'facecol','none') a=gca() //END OF CODE Regards, Rafael -- View this message in context: http://mailinglists.scilab.org/Lengend-for-3d-plot-and-an-horizontal-plane-at-z-0-tp4035999p4036008.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sat Mar 25 23:11:22 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 25 Mar 2017 15:11:22 -0700 (MST) Subject: [Scilab-users] 3D interpolation : comments adding In-Reply-To: <0bb59481-c3b3-c86b-0223-fab7c3194f23@free.fr> References: <8b8620ac512a1e75ef68bdcb43910baa@free.fr> <0969f38208cc474e6817399fd027f3c5@wescottdesign.com> <548ebfbe2be40fd1826a746fb1b1c5b5@free.fr> <0bb59481-c3b3-c86b-0223-fab7c3194f23@free.fr> Message-ID: <1490479882702-4036009.post@n3.nabble.com> linear_interpn(repetitus, repetita, repetitum) = repeated -- View this message in context: http://mailinglists.scilab.org/Scilab-users-3D-interpolation-comments-adding-tp4035998p4036009.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Sun Mar 26 09:29:50 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 26 Mar 2017 00:29:50 -0700 (MST) Subject: [Scilab-users] Lengend for 3d-plot and an horizontal plane at z=0 In-Reply-To: <1490429690297-4035999.post@n3.nabble.com> References: <1490429690297-4035999.post@n3.nabble.com> Message-ID: <1490513390631-4036010.post@n3.nabble.com> Dear Rafael Thank you for your helpful answer. I can solve the problem. By the way, is there legend function for 3d-plot? Best regard -- View this message in context: http://mailinglists.scilab.org/Lengend-for-3d-plot-and-an-horizontal-plane-at-z-0-tp4035999p4036010.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Sun Mar 26 09:33:18 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 26 Mar 2017 00:33:18 -0700 (MST) Subject: [Scilab-users] Color-bar hides a label for z axes. Message-ID: <1490513598226-4036011.post@n3.nabble.com> I use the long label for z-axe. So color-bar hides it. Is is possible to change the position of z-axis from right to left to avoid color-bar? Best regards. hidden_z_lael_by_color_bar.png -- View this message in context: http://mailinglists.scilab.org/Color-bar-hides-a-label-for-z-axes-tp4036011.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Mar 26 15:20:38 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 26 Mar 2017 15:20:38 +0200 Subject: [Scilab-users] Lengend for 3d-plot and an horizontal plane at z=0 In-Reply-To: <1490429690297-4035999.post@n3.nabble.com> References: <1490429690297-4035999.post@n3.nabble.com> Message-ID: Hello, Le 25/03/2017 ? 09:14, fujimoto2005 a ?crit : > I have 3d-plot with 2 surfaces as an attached file. > I want to improve its appearance. > > 1, Can I add the legend for each surface as 2d-plot? > Help file tells me 'Legend' is only for 2d-plot and I can't find the same > functionality for 3d-plot. I do not see the file attached to your message. It is strange. It is only visible in the web archive.. legends are presently possible as well in 3D axes, but anyway only for polyline objects, not for Fac3D surfaces. Datatips are nor supported on surfaces. The only possible trick that i could see is to define a polygon filled with the color of the surface, made invisible, from which a legend() is built: clf surf() e = gce(); e.color_flag = 0; cyan = color("cyan"); e.color_mode = cyan; xpoly(5,5,"marks") p = gce(); p.fill_mode = "on"; p.background = e.color_mode; p.visible = "off"; legend(p, "Surface 1") // If the surface has some marks on its nodes, and we want them in the legend style: p.mark_mode = "on"; p.mark_style = e.mark_style; p.mark_foreground = e.mark_foreground; p.mark_background = e.mark_background; For several surfaces, just generate one invisible polygon matching their styles per surface, and provide to legend() a vector of their handles. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dfbanhicdodmgdfd.png Type: image/png Size: 15121 bytes Desc: not available URL: From fujimoto2005 at gmail.com Sun Mar 26 18:16:05 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 26 Mar 2017 09:16:05 -0700 (MST) Subject: [Scilab-users] efficient calculation for a moving window In-Reply-To: <1490456656110-4036002.post@n3.nabble.com> References: <1490424555129-4035997.post@n3.nabble.com> <1490456656110-4036002.post@n3.nabble.com> Message-ID: <1490544965384-4036021.post@n3.nabble.com> Dear Rafael Thanks for your answer. I can?t understand the meaning of 'y(X+Y-1)'. I geuss the ith row of matrix(y(X+Y-1),n-m+1,m) is y(i:i+m-1) but I don't see why it. Please explain it. Best regards -- View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036021.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Sun Mar 26 19:41:52 2017 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 26 Mar 2017 10:41:52 -0700 (MST) Subject: [Scilab-users] efficient calculation for a moving window In-Reply-To: <1490544965384-4036021.post@n3.nabble.com> References: <1490424555129-4035997.post@n3.nabble.com> <1490456656110-4036002.post@n3.nabble.com> <1490544965384-4036021.post@n3.nabble.com> Message-ID: <1490550112520-4036023.post@n3.nabble.com> Hi Fujimoto, As requested, for the example constructed the logic was: // m =20, moving window size // y: has length 100, input vector with values to be processed // X+Y-1: has size 81x20, each row has indexes of moving window (1-20, 2-21,..., 81-100) // y(X+Y-1): has size 1x1620, i.e., it is a vector with all y values at each of 81x20 indexes // matrix(...): reshapes last serialized result to the required matrix shape (81x20) for f(...) // f(...): computes along input columns (the mean) for each row; output y2 is a 81x1 column vector Regards, Rafael -- View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036023.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From martin.marmsoler at gmail.com Sun Mar 26 21:15:15 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Sun, 26 Mar 2017 21:15:15 +0200 Subject: [Scilab-users] compiling scilab In-Reply-To: <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> Message-ID: Hello, it worked for me to use the --without-modelica option for the config file and -j1 with make. Best regards, Martin 2017-03-24 11:17 GMT+01:00 Florian Blach?re : > Hello, > > I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux > using the PKGBUILD from the AUR (https://aur.archlinux.org/ > packages/scilab/) and with modelica activated ('--with-modelica') the > build fails even with the '-j1' option. > > Regards, > > Florian > On 24/03/17 09:53, Cl?ment David wrote: > > Hello all, > > Sorry for answering that late, I can offer more :) . > > The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a known > issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. > > I was only able to reproduce it on system using OCaml 4 and it seems to be related to a wrong ml/mli > dependency order. Could you confirm that you are using the latest OCaml version ? > > Thanks, > > -- > Cl?ment > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : > > Dear Martin! > > First of all can't understand why you are trying to compile Scilab. > You can get binary version, extract and use it. > > At second you can get Scilab from AUR. If you still willing to compile Scilab from sources you > should install its build dependencies. > I think you can start building Scilab 6.0.0 (commit 22bd3a5c93489bce74fbaf25d19fe55aefca853c). > After successful build of 6.0.0 you can try newer revisions. > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on. So I > can't offer more. > > -- > With best regards, > Ph.D., assistant professor at MPEI, > IEEE member, > maintainer of Mathieu functions toolbox for Scilab, > Nikolay Strelkov. > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : > > I'm using antergos and cloned the code from scilab website. > GNU Make 4.2.1 > 4.10.3-1-ARCH > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > Hello, > > I tried to compile scilab, but I get every the the following error: > > File "_none_", line 1: > Error: Files ./src/xml2modelica/xMLParser.cmx > and ./src/xml2modelica/linenum.cmx > make inconsistent assumptions over implementation Linenum > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > I do _not_ know the answer, but someone is going to ask you for > platform, operating system, and the version of the tools that you're > using. Then they're going to want to know where you got your source > code (unless it's obvious from the revision numbers). > > Sorry I can't offer more... > > -- > > Tim Wescottwww.wescottdesign.com > Control & Communications systems, circuit & software design. > Phone: 503.631.7815 <(503)%20631-7815> > Cell: 503.349.8432 <(503)%20349-8432> > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > 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 contact at pierre-vuillemin.fr Mon Mar 27 09:57:01 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Mon, 27 Mar 2017 09:57:01 +0200 Subject: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst Message-ID: Hi all, It seems that when using regular expressions with strsubst, only the first occurrence is replaced. For instance, tst_str = 'This is a cow. A cow is funny.' out1 = strsubst(tst_str, 'cow', 'rabbit') out2 = strsubst(tst_str,'/cow/','rabbit','r') disp(out1) // both occurence are replaced -> ok disp(out2) // only the first occurence is replaced -> strange? Is it the intended behaviour? Regards, Pierre From fujimoto2005 at gmail.com Mon Mar 27 10:43:08 2017 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 27 Mar 2017 01:43:08 -0700 (MST) Subject: [Scilab-users] efficient calculation for a moving window In-Reply-To: <1490550112520-4036023.post@n3.nabble.com> References: <1490424555129-4035997.post@n3.nabble.com> <1490456656110-4036002.post@n3.nabble.com> <1490544965384-4036021.post@n3.nabble.com> <1490550112520-4036023.post@n3.nabble.com> Message-ID: <1490604188129-4036032.post@n3.nabble.com> Hi Rafael Thanks for your explanations. I understood it. Best regards. -- View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036032.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From erhard.glueck.austria at gmail.com Mon Mar 27 11:59:49 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 27 Mar 2017 02:59:49 -0700 (MST) Subject: [Scilab-users] how to place datatip on one point of polyline Message-ID: <1490608789710-4036034.post@n3.nabble.com> Hello! If I plot curves where some values are %nan datatips are not shown if the curve point for the tip is surrounded by %nan values. Now I code on Version 6.0.0 My code: function str=ShowTipsmyfmt(h) pt = h.data; str = 'where is the tip on the red curve?'; endfunction function TipIx= ShowTips() x1=linspace(0,1,32)'; y1=sinc(10*x1); TipIx = round( length(y1) ./ 2 ); y2=zeros(y1); y2(TipIx-1) = %nan; y2(TipIx+1) = %nan; y3=ones(y1) .* %nan ; y3( TipIx-1 : TipIx+1 ) = 0.4; clf(); plot2d(x1,[y1,y2,y3], style=[color("black"), color("red"), color("blue")] ); e=gce(); p_blue=e.children(1); p_blue.mark_style=5;// diamond p_red=e.children(2); p_red.mark_style=1;// + p_red.thickness=2; p_red.mark_foreground=color("red"); if TipIx ~= [] then t_red=datatipCreate(p_blue, TipIx); datatipSetOrientation(t_red,"upper left") datatipSetDisplay(t_red,"ShowTipsmyfmt") t_blue=datatipCreate(p_blue, TipIx); t_blue.font_foreground=color("blue"); t_blue.font_size=3; datatipSetOrientation(t_blue,"upper left") datatipSetDisplay(t_blue,"ShowTipsmyfmt") end endfunction -- View this message in context: http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From p.muehlmann at gmail.com Mon Mar 27 13:29:45 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Mon, 27 Mar 2017 13:29:45 +0200 Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: <1490608789710-4036034.post@n3.nabble.com> References: <1490608789710-4036034.post@n3.nabble.com> Message-ID: t_red=datatipCreate(p_blue, TipIx); shouldn't it be t_red=datatipCreate(p_red, TipIx); ?? 2017-03-27 11:59 GMT+02:00 Erhy : > Hello! > If I plot curves where some values are %nan > datatips are not shown if the curve point for the tip is surrounded by %nan > values. > Now I code on Version 6.0.0 > > My code: > function str=ShowTipsmyfmt(h) > pt = h.data; > str = 'where is the tip on the red curve?'; > endfunction > function TipIx= ShowTips() > x1=linspace(0,1,32)'; > y1=sinc(10*x1); > TipIx = round( length(y1) ./ 2 ); > y2=zeros(y1); > y2(TipIx-1) = %nan; > y2(TipIx+1) = %nan; > y3=ones(y1) .* %nan ; > y3( TipIx-1 : TipIx+1 ) = 0.4; > clf(); > plot2d(x1,[y1,y2,y3], style=[color("black"), color("red"), color("blue")] > ); > e=gce(); > p_blue=e.children(1); > p_blue.mark_style=5;// diamond > p_red=e.children(2); > p_red.mark_style=1;// + > p_red.thickness=2; > p_red.mark_foreground=color("red"); > if TipIx ~= [] then > t_red=datatipCreate(p_blue, TipIx); > datatipSetOrientation(t_red,"upper left") > datatipSetDisplay(t_red,"ShowTipsmyfmt") > > t_blue=datatipCreate(p_blue, TipIx); > t_blue.font_foreground=color("blue"); > t_blue.font_size=3; > datatipSetOrientation(t_blue,"upper left") > datatipSetDisplay(t_blue,"ShowTipsmyfmt") > end > endfunction > > > > > -- > View this message in context: http://mailinglists.scilab. > org/how-to-place-datatip-on-one-point-of-polyline-tp4036034.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 > -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucianoandino.ar at gmail.com Mon Mar 27 13:39:27 2017 From: lucianoandino.ar at gmail.com (Luciano Andino) Date: Mon, 27 Mar 2017 14:39:27 +0300 Subject: [Scilab-users] simple plot function Message-ID: Hi, doing a simple plot of [image: Im?genes integradas 2] x in [0,1] 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) graphic differs from this online calc: https://www.desmos.com/calculator/jehn17mvvb Don't know what I am doing wrong, thanks in advance -- 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: image.png Type: image/png Size: 7552 bytes Desc: not available URL: From Alain.Lamy at cnes.fr Mon Mar 27 14:17:25 2017 From: Alain.Lamy at cnes.fr (Lamy Alain) Date: Mon, 27 Mar 2017 12:17:25 +0000 Subject: [Scilab-users] simple plot function In-Reply-To: References: Message-ID: <8F232902ADB4E14EB16789FB7006FC845A02F7A7@TW-MBX-P01.cnesnet.ad.cnes.fr> 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) [cid:image001.png at 01D2A704.DB333640] -------------- 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: image001.png URL: From erhard.glueck.austria at gmail.com Mon Mar 27 14:18:33 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 27 Mar 2017 05:18:33 -0700 (MST) Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: References: <1490608789710-4036034.post@n3.nabble.com> Message-ID: <1490617113988-4036038.post@n3.nabble.com> der_Phil wrote > t_red=datatipCreate(p_blue, TipIx); > shouldn't it be > t_red=datatipCreate(p_red, TipIx); Thank you for reading the code. I wrote the example for demo the problem in an other script. You are right, but if you run the script with your correction the plot looks just before. Erhy -- View this message in context: http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036038.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From p.muehlmann at gmail.com Mon Mar 27 14:33:32 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Mon, 27 Mar 2017 14:33:32 +0200 Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: <1490617113988-4036038.post@n3.nabble.com> References: <1490608789710-4036034.post@n3.nabble.com> <1490617113988-4036038.post@n3.nabble.com> Message-ID: yes, indeeed. The datatip shows up if you replace the "%nan" by a number...such as: y2(TipIx-1) = 0;//%nan;y2(TipIx+1) = 0; //%nan; ...not sure if this helps. BR Philipp 2017-03-27 14:18 GMT+02:00 Erhy : > der_Phil wrote > > t_red=datatipCreate(p_blue, TipIx); > > shouldn't it be > > t_red=datatipCreate(p_red, TipIx); > > Thank you for reading the code. > I wrote the example for demo the problem in an other script. > You are right, > but if you run the script with your correction > the plot looks just before. > Erhy > > > > -- > View this message in context: http://mailinglists.scilab. > org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036038.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 > -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Mon Mar 27 13:46:36 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Mon, 27 Mar 2017 13:46:36 +0200 Subject: [Scilab-users] simple plot function In-Reply-To: References: Message-ID: Hi, A dot is missing in the argument of the hyperbolic sin for the division to be performed element-wise, 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) Regards, Pierre Le 27.03.2017 13:39, Luciano Andino a ?crit : > Hi, doing a simple plot of > x in [0,1] > > 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) > > graphic differs from this online calc: > > https://www.desmos.com/calculator/jehn17mvvb > > Don't know what I am doing wrong, > > thanks in advance > > -- > > Luciano Andino > Ing. en Sistemas de Informaci?n > UTN FRSF > BMSTU > > _______________________________________________ > 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: image.png Type: image/png Size: 7552 bytes Desc: not available URL: From erhard.glueck.austria at gmail.com Mon Mar 27 15:15:03 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Mon, 27 Mar 2017 06:15:03 -0700 (MST) Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: References: <1490608789710-4036034.post@n3.nabble.com> <1490617113988-4036038.post@n3.nabble.com> Message-ID: <1490620503345-4036041.post@n3.nabble.com> der_Phil wrote > yes, indeeed. > The datatip shows up if you replace the "%nan" by a number...such as: > > y2(TipIx-1) = 0;//%nan;y2(TipIx+1) = 0; //%nan; > > ...not sure if this helps. > > BR > Philipp Want also thank you for the last choke, as Austrian I know this choke. As mentioned it is a demo script in real world script you cannot predict the values of the curve. corrected script to evaluate: function str=ShowTipsmyfmt(h) pt = h.data; str = 'where is the tip on the red curve?'; endfunction function TipIx= ShowTips() x1=linspace(0,1,32)'; y1=sinc(10*x1); TipIx = round( length(y1) ./ 2 ); y2=zeros(y1); y2(TipIx-1) = %nan; y2(TipIx+1) = %nan; y3=ones(y1) .* %nan ; y3( TipIx-1 : TipIx+1 ) = 0.4; clf(); plot2d(x1,[y1,y2,y3], style=[color("black"), color("red"), color("blue")] ); e=gce(); p_blue=e.children(1); p_blue.mark_style=5;// diamond p_red=e.children(2); p_red.mark_style=1;// + p_red.thickness=2; p_red.mark_foreground=color("red"); if TipIx ~= [] then t_red=datatipCreate(p_red, TipIx); datatipSetOrientation(t_red,"upper left") datatipSetDisplay(t_red,"ShowTipsmyfmt") t_blue=datatipCreate(p_blue, TipIx); t_blue.font_foreground=color("blue"); t_blue.font_size=3; datatipSetOrientation(t_blue,"upper left") datatipSetDisplay(t_blue,"ShowTipsmyfmt") end endfunction -- View this message in context: http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036041.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Mon Mar 27 15:57:42 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 27 Mar 2017 15:57:42 +0200 Subject: [Scilab-users] Scilab 6 and graphics Message-ID: <77d3ece3-5d50-211d-730e-e1ad2806c32e@gmail.com> Hi there Today I downloaded Scilab 6 and I'm surprised about the speed. A script with 4 plots used to run in 14.4 seconds, now takes 1.9 seconds. The script itself is fast, it was always the plots that took all the time (using Scilab 5.5.0). I'm running the 64 bit version of Scilab on a Microsoft Windows 10 machine (a Lenovo W530). Best regards, Claus From sgougeon at free.fr Mon Mar 27 16:43:42 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 27 Mar 2017 16:43:42 +0200 (CEST) Subject: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst In-Reply-To: Message-ID: <632998264.12777520.1490625822387.JavaMail.root@zimbra75-e12.priv.proxad.net> ----- Mail original ----- >De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01 > >Hi all, > >It seems that when using regular expressions with strsubst, only the >first occurrence is replaced. For instance, > >tst_str = 'This is a cow. A cow is funny.' >out1 = strsubst(tst_str, 'cow', 'rabbit') >out2 = strsubst(tst_str,'/cow/','rabbit','r') >disp(out1) // both occurence are replaced -> ok >disp(out2) // only the first occurence is replaced -> strange? > >Is it the intended behaviour? No, but after years of being pending after the report http://bugzilla.scilab.org/4276 it was fixed very recently and is already available in the Nightly Built 6.0 branch: https://codereview.scilab.org/#/c/19144/ Samuel From sgougeon at free.fr Mon Mar 27 17:25:24 2017 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 27 Mar 2017 17:25:24 +0200 (CEST) Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: <1490608789710-4036034.post@n3.nabble.com> Message-ID: <1289313968.12932110.1490628324251.JavaMail.root@zimbra75-e12.priv.proxad.net> >De: "Erhy", Lundi 27 Mars 2017 11:59:49 >Objet: [Scilab-users] how to place datatip on one point of polyline > >Hello! >If I plot curves where some values are %nan >datatips are not shown if the curve point for the tip is surrounded by %nan values. >Now I code on Version 6.0.0 IMO, this current behavior is normal when the interpolation mode is "on", what is the case in your examples. However, when the interpolation mode is "off", each mark that is plotted should indeed accept a visible datatip, while it is currently not the case: Let's have the following vector of x or/and y values/nodes: A B C %nan D %nan E F a) A datatip set in C is not displayed => bug b) But A datatip set in E is displayed: OK c) A datatip set in D is not displayed = a) case The bug is not yet reported: In .interp_mode="off", each %nan cancels the display of a datatip set on the _previous_ valid node. Samuel From Clement.David at esi-group.com Mon Mar 27 17:47:40 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Mon, 27 Mar 2017 15:47:40 +0000 Subject: [Scilab-users] compiling scilab In-Reply-To: References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> Message-ID: <1490629657.26047.23.camel@esi-group.com> Hello, On my machine, with the patch [1] I am able to build scilab. Could you open a bug to track the issue and confirm that this patch works in your distribution ? [1]: https://codereview.scilab.org/#/c/19232 -- Cl?ment Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit?: > Hello, > > it worked for me to use the --without-modelica option for the config file and -j1 with make. > > Best regards, > > Martin > > 2017-03-24 11:17 GMT+01:00 Florian Blach?re : > > Hello, > > I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD from > > the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with- > > modelica') the build fails even with the '-j1' option. > > Regards, > > Florian > > On 24/03/17 09:53, Cl?ment David wrote: > > > Hello all, > > > > > > Sorry for answering that late, I can offer more :) . > > > > > > The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a > > > known > > > issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. > > > > > > I was only able to reproduce it on system using OCaml 4 and it seems to be related to a wrong > > > ml/mli > > > dependency order. Could you confirm that you are using the latest OCaml version ? > > > > > > Thanks, > > > > > > -- > > > Cl?ment > > > > > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit?: > > > > Dear Martin! > > > > > > > > First of all can't understand why you are trying to compile Scilab.? > > > > You can get binary version, extract and use it. > > > > > > > > At second you can get Scilab from AUR. If you still willing to compile Scilab from sources > > > > you > > > > should install its build dependencies.? > > > > I think you can start building Scilab 6.0.0 (commit > > > > 22bd3a5c93489bce74fbaf25d19fe55aefca853c). > > > > After successful build of 6.0.0 you can try newer revisions. > > > > > > > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on. > > > > So I > > > > can't offer more. > > > > > > > > -- > > > > With best regards, > > > > Ph.D., assistant professor at MPEI, > > > > IEEE member, > > > > maintainer of Mathieu functions toolbox for Scilab, > > > > Nikolay Strelkov. > > > > > > > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : > > > > > I'm using antergos and cloned the code from scilab website. > > > > > GNU Make 4.2.1 > > > > > 4.10.3-1-ARCH > > > > > > > > > > > > > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > > > > > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > > > > > > Hello, > > > > > > > > > > > > > > I tried to compile scilab, but I get every the the following error: > > > > > > > > > > > > > > File "_none_", line 1: > > > > > > > Error: Files ./src/xml2modelica/xMLParser.cmx > > > > > > > ?????? and ./src/xml2modelica/linenum.cmx > > > > > > > ?????? make inconsistent assumptions over implementation Linenum > > > > > > > > > > > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > > > > > > > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > > > > > > > > > > > I do _not_ know the answer, but someone is going to ask you for > > > > > > platform, operating system, and the version of the tools that you're > > > > > > using.? Then they're going to want to know where you got your source > > > > > > code (unless it's obvious from the revision numbers). > > > > > > > > > > > > Sorry I can't offer more... > > > > > > > > > > > > -- > > > > > > > > > > > > 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 > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From contact at pierre-vuillemin.fr Mon Mar 27 17:48:07 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Mon, 27 Mar 2017 17:48:07 +0200 Subject: [Scilab-users] Replace multiple occurrences of regular expression in string with strsubst In-Reply-To: <632998264.12777520.1490625822387.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <632998264.12777520.1490625822387.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <5f2aed95-4d16-6f55-459d-d29dbc30efca@pierre-vuillemin.fr> My bad, I didn't see the bug report. Great news though. Regards, Pierre Le 27/03/2017 ? 16:43, sgougeon at free.fr a ?crit : > ----- Mail original ----- >> De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01 >> >> Hi all, >> >> It seems that when using regular expressions with strsubst, only the >> first occurrence is replaced. For instance, >> >> tst_str = 'This is a cow. A cow is funny.' >> out1 = strsubst(tst_str, 'cow', 'rabbit') >> out2 = strsubst(tst_str,'/cow/','rabbit','r') >> disp(out1) // both occurence are replaced -> ok >> disp(out2) // only the first occurence is replaced -> strange? >> >> Is it the intended behaviour? > No, but after years of being pending after the report > http://bugzilla.scilab.org/4276 > it was fixed very recently and is already available in the > Nightly Built 6.0 branch: > https://codereview.scilab.org/#/c/19144/ > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From cfuttrup at gmail.com Mon Mar 27 20:02:39 2017 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 27 Mar 2017 20:02:39 +0200 Subject: [Scilab-users] Scilab 6 and graphics In-Reply-To: <77d3ece3-5d50-211d-730e-e1ad2806c32e@gmail.com> References: <77d3ece3-5d50-211d-730e-e1ad2806c32e@gmail.com> Message-ID: Hi there Update, after installing Scilab 6, now Scilab 5.5.0 also runs much faster ... it completes in 2.3 seconds, almost as fast as Scilab 6. Maybe improvements to the graphics library? (Java?). Best regards Claus On 27-03-2017 15:57, Claus Futtrup wrote: > Hi there > > Today I downloaded Scilab 6 and I'm surprised about the speed. A > script with 4 plots used to run in 14.4 seconds, now takes 1.9 > seconds. The script itself is fast, it was always the plots that took > all the time (using Scilab 5.5.0). I'm running the 64 bit version of > Scilab on a Microsoft Windows 10 machine (a Lenovo W530). > > Best regards, > > Claus > From v_mil at ukr.net Mon Mar 27 20:49:35 2017 From: v_mil at ukr.net (Viktor Mileikovskyi) Date: Mon, 27 Mar 2017 21:49:35 +0300 Subject: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix Message-ID: <1490638807.96385675.wg2vqquw@frv32.fwdcdn.com> Dear members! I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". A construction such as y(x>10)=y(x>10)+1; produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function of optimization, function for zero search or other iteration process. If millions of calculations of the affected function is required, the time consumption significantly increases and the output will be littered and unreadable. Using warning('off') usually is not good idea because it can suppress some important warning during the calculation. Is it possible to suppress the warning separately? Multiplication, division or power do not produce the same warning. With best regards. Viktor. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Mon Mar 27 21:22:33 2017 From: tim at wescottdesign.com (tim at wescottdesign.com) Date: Mon, 27 Mar 2017 12:22:33 -0700 Subject: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix In-Reply-To: <1490638807.96385675.wg2vqquw@frv32.fwdcdn.com> References: <1490638807.96385675.wg2vqquw@frv32.fwdcdn.com> Message-ID: <61e047fd0b0ad1c6ba81acc5cdf416fa@wescottdesign.com> Wait. That's a major change in behavior, and will result in some broken code out here in user-land: -->getversion ans = scilab-5.5.2 -->A = rand(3,3) A = 0.0683740 0.7263507 0.2320748 0.5608486 0.1985144 0.2312237 0.6623569 0.5442573 0.2164633 -->A = A + [] A = 0.0683740 0.7263507 0.2320748 0.5608486 0.1985144 0.2312237 0.6623569 0.5442573 0.2164633 On 2017-03-27 11:49, Viktor Mileikovskyi wrote: > Dear members! > > I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". > > A construction such as > > y(x>10)=y(x>10)+1; > > produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function of optimization, function for zero search or other iteration process. > > If millions of calculations of the affected function is required, the time consumption significantly increases and the output will be littered and unreadable. Using warning('off') usually is not good idea because it can suppress some important warning during the calculation. Is it possible to suppress the warning separately? > > Multiplication, division or power do not produce the same warning. > > With best regards. > Viktor. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.marmsoler at gmail.com Mon Mar 27 21:38:59 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Mon, 27 Mar 2017 21:38:59 +0200 Subject: [Scilab-users] compiling scilab In-Reply-To: <1490629657.26047.23.camel@esi-group.com> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> <1490629657.26047.23.camel@esi-group.com> Message-ID: Hello, yes I will try it. Thank you! Martin 2017-03-27 17:47 GMT+02:00 Cl?ment David : > Hello, > > On my machine, with the patch [1] I am able to build scilab. Could you > open a bug to track the issue > and confirm that this patch works in your distribution ? > > [1]: https://codereview.scilab.org/#/c/19232 > > -- > Cl?ment > > Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit : > > Hello, > > > > it worked for me to use the --without-modelica option for the config > file and -j1 with make. > > > > Best regards, > > > > Martin > > > > 2017-03-24 11:17 GMT+01:00 Florian Blach?re : > > > Hello, > > > I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux > using the PKGBUILD from > > > the AUR (https://aur.archlinux.org/packages/scilab/) and with > modelica activated ('--with- > > > modelica') the build fails even with the '-j1' option. > > > Regards, > > > Florian > > > On 24/03/17 09:53, Cl?ment David wrote: > > > > Hello all, > > > > > > > > Sorry for answering that late, I can offer more :) . > > > > > > > > The error comes from the buggy parallel OCaml compilation of the > Modelica compiler. This is a > > > > known > > > > issue and I currently failed to resolve it : you should compile with > `make -j1` to succeed. > > > > > > > > I was only able to reproduce it on system using OCaml 4 and it seems > to be related to a wrong > > > > ml/mli > > > > dependency order. Could you confirm that you are using the latest > OCaml version ? > > > > > > > > Thanks, > > > > > > > > -- > > > > Cl?ment > > > > > > > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : > > > > > Dear Martin! > > > > > > > > > > First of all can't understand why you are trying to compile > Scilab. > > > > > You can get binary version, extract and use it. > > > > > > > > > > At second you can get Scilab from AUR. If you still willing to > compile Scilab from sources > > > > > you > > > > > should install its build dependencies. > > > > > I think you can start building Scilab 6.0.0 (commit > > > > > 22bd3a5c93489bce74fbaf25d19fe55aefca853c). > > > > > After successful build of 6.0.0 you can try newer revisions. > > > > > > > > > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", > "checkinstall" and so on. > > > > > So I > > > > > can't offer more. > > > > > > > > > > -- > > > > > With best regards, > > > > > Ph.D., assistant professor at MPEI, > > > > > IEEE member, > > > > > maintainer of Mathieu functions toolbox for Scilab, > > > > > Nikolay Strelkov. > > > > > > > > > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler < > martin.marmsoler at gmail.com>: > > > > > > I'm using antergos and cloned the code from scilab website. > > > > > > GNU Make 4.2.1 > > > > > > 4.10.3-1-ARCH > > > > > > > > > > > > > > > > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > > > > > > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > > > > > > > Hello, > > > > > > > > > > > > > > > > I tried to compile scilab, but I get every the the following > error: > > > > > > > > > > > > > > > > File "_none_", line 1: > > > > > > > > Error: Files ./src/xml2modelica/xMLParser.cmx > > > > > > > > and ./src/xml2modelica/linenum.cmx > > > > > > > > make inconsistent assumptions over implementation > Linenum > > > > > > > > > > > > > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > > > > > > > > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > > > > > > > > > > > > > I do _not_ know the answer, but someone is going to ask you for > > > > > > > platform, operating system, and the version of the tools that > you're > > > > > > > using. Then they're going to want to know where you got your > source > > > > > > > code (unless it's obvious from the revision numbers). > > > > > > > > > > > > > > Sorry I can't offer more... > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > _______________________________________________ > > > > > 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 > > > > > > > _______________________________________________ > > 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 v_mil at ukr.net Mon Mar 27 22:30:27 2017 From: v_mil at ukr.net (Viktor Mileikovskyi) Date: Mon, 27 Mar 2017 23:30:27 +0300 Subject: [Scilab-users] Adding a matrix with the empty matrix will give an empty matrix In-Reply-To: <61e047fd0b0ad1c6ba81acc5cdf416fa@wescottdesign.com> References: <1490638807.96385675.wg2vqquw@frv32.fwdcdn.com> <61e047fd0b0ad1c6ba81acc5cdf416fa@wescottdesign.com> Message-ID: <1490645834.500428373.stroqm82@frv32.fwdcdn.com> Yes! I agree with this change. But constructions with condition in the left part such as y(x>10)=y(x>10)+1; at false condition cause the same result in 5.5.2 and 6.0.0. Therefore, the warning is not required in this special case. Now I will use additional "if" block to bypass this warning: if or(x>10) then y(x>10)=y(x>10)+1; end B.r. Viktor. --- ??????????? ???????????? --- ??? ????: tim at wescottdesign.com ????: 27 ??????? 2017, 22:22:48 > > Wait. That's a major change in behavior, and will result in some broken code out here in user-land: > -->getversion > ans = > > scilab-5.5.2 > > -->A = rand(3,3) > A = > > 0.0683740 0.7263507 0.2320748 > 0.5608486 0.1985144 0.2312237 > 0.6623569 0.5442573 0.2164633 > > -->A = A + [] > A = > > 0.0683740 0.7263507 0.2320748 > 0.5608486 0.1985144 0.2312237 > 0.6623569 0.5442573 0.2164633 > On 2017-03-27 11:49, Viktor Mileikovskyi wrote:Dear members! I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". A construction such as y(x>10)=y(x>10)+1; produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function of optimization, function for zero search or other iteration process. If millions of calculations of the affected function is required, the time consumption significantly increases and the output will be littered and unreadable. Using warning('off') usually is not good idea because it can suppress some important warning during the calculation. Is it possible to suppress the warning separately? Multiplication, division or power do not produce the same warning. With best regards. Viktor. _______________________________________________ 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 martin.marmsoler at gmail.com Mon Mar 27 22:51:16 2017 From: martin.marmsoler at gmail.com (Martin Marmsoler) Date: Mon, 27 Mar 2017 22:51:16 +0200 Subject: [Scilab-users] compiling scilab In-Reply-To: References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> <1490629657.26047.23.camel@esi-group.com> Message-ID: Yes it worked to compile :) 2017-03-27 21:38 GMT+02:00 Martin Marmsoler : > Hello, > > yes I will try it. > > Thank you! > > Martin > > 2017-03-27 17:47 GMT+02:00 Cl?ment David : > >> Hello, >> >> On my machine, with the patch [1] I am able to build scilab. Could you >> open a bug to track the issue >> and confirm that this patch works in your distribution ? >> >> [1]: https://codereview.scilab.org/#/c/19232 >> >> -- >> Cl?ment >> >> Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit : >> > Hello, >> > >> > it worked for me to use the --without-modelica option for the config >> file and -j1 with make. >> > >> > Best regards, >> > >> > Martin >> > >> > 2017-03-24 11:17 GMT+01:00 Florian Blach?re : >> > > Hello, >> > > I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux >> using the PKGBUILD from >> > > the AUR (https://aur.archlinux.org/packages/scilab/) and with >> modelica activated ('--with- >> > > modelica') the build fails even with the '-j1' option. >> > > Regards, >> > > Florian >> > > On 24/03/17 09:53, Cl?ment David wrote: >> > > > Hello all, >> > > > >> > > > Sorry for answering that late, I can offer more :) . >> > > > >> > > > The error comes from the buggy parallel OCaml compilation of the >> Modelica compiler. This is a >> > > > known >> > > > issue and I currently failed to resolve it : you should compile >> with `make -j1` to succeed. >> > > > >> > > > I was only able to reproduce it on system using OCaml 4 and it >> seems to be related to a wrong >> > > > ml/mli >> > > > dependency order. Could you confirm that you are using the latest >> OCaml version ? >> > > > >> > > > Thanks, >> > > > >> > > > -- >> > > > Cl?ment >> > > > >> > > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : >> > > > > Dear Martin! >> > > > > >> > > > > First of all can't understand why you are trying to compile >> Scilab. >> > > > > You can get binary version, extract and use it. >> > > > > >> > > > > At second you can get Scilab from AUR. If you still willing to >> compile Scilab from sources >> > > > > you >> > > > > should install its build dependencies. >> > > > > I think you can start building Scilab 6.0.0 (commit >> > > > > 22bd3a5c93489bce74fbaf25d19fe55aefca853c). >> > > > > After successful build of 6.0.0 you can try newer revisions. >> > > > > >> > > > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep >> scilab", "checkinstall" and so on. >> > > > > So I >> > > > > can't offer more. >> > > > > >> > > > > -- >> > > > > With best regards, >> > > > > Ph.D., assistant professor at MPEI, >> > > > > IEEE member, >> > > > > maintainer of Mathieu functions toolbox for Scilab, >> > > > > Nikolay Strelkov. >> > > > > >> > > > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler < >> martin.marmsoler at gmail.com>: >> > > > > > I'm using antergos and cloned the code from scilab website. >> > > > > > GNU Make 4.2.1 >> > > > > > 4.10.3-1-ARCH >> > > > > > >> > > > > > >> > > > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : >> > > > > > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: >> > > > > > > > Hello, >> > > > > > > > >> > > > > > > > I tried to compile scilab, but I get every the the >> following error: >> > > > > > > > >> > > > > > > > File "_none_", line 1: >> > > > > > > > Error: Files ./src/xml2modelica/xMLParser.cmx >> > > > > > > > and ./src/xml2modelica/linenum.cmx >> > > > > > > > make inconsistent assumptions over implementation >> Linenum >> > > > > > > > >> > > > > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc >> > > > > > > > Tried also revision 37f503cc29e63e42902b4de384e9f7 >> c064b76b92 >> > > > > > > >> > > > > > > I do _not_ know the answer, but someone is going to ask you >> for >> > > > > > > platform, operating system, and the version of the tools that >> you're >> > > > > > > using. Then they're going to want to know where you got your >> source >> > > > > > > code (unless it's obvious from the revision numbers). >> > > > > > > >> > > > > > > Sorry I can't offer more... >> > > > > > > >> > > > > > > -- >> > > > > > > >> > > > > > > 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 >> > > > > > >> > > > > >> > > > > _______________________________________________ >> > > > > 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 >> > > >> > >> > _______________________________________________ >> > 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 mathias.magdowski at ovgu.de Tue Mar 28 09:51:46 2017 From: mathias.magdowski at ovgu.de (mathias_magdowski) Date: Tue, 28 Mar 2017 00:51:46 -0700 (MST) Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1472143983231-4034490.post@n3.nabble.com> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> <1462539930722-4034076.post@n3.nabble.com> <1472143983231-4034490.post@n3.nabble.com> Message-ID: <1490687506590-4036055.post@n3.nabble.com> I have extended the given example in a way that the left and right y axis get some kind of intelligent equal scaling, so that a joined grid for both axes would fit. If one of the axes includes the value of y = 0, both axes will also share the same "base line". Here is the function: // Function for plotting a diagram with two y axes // Input: // x - x values -> vector // y1 - y values for the for the left y axis -> vector // y2 - y values for the right y axis -> vector // Output: // a1, a2 - axes -> handle function [a1,a2]=plotyy(x,y1,y2) // example for a diagram with two y axes // see: https://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg // and: http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-td4025895.html // generation of the right y axis a1=newaxes(); a1.tight_limits=["on","off","off"]; // plot of the first function plot(x,y1); // generation of the right y axis a2=newaxes(); // no background for this plot a2.filled="off"; // hide second x axis a2.axes_visible(1)="off"; a2.y_location = "right"; a2.tight_limits = "on"; // plot of the second function plot(x,y2,"r"); // set font size a1.font_size=3; a2.font_size=3; // delete tick marks of the first x axis a1.x_ticks=tlist(["ticks","locations","labels"],[],[]) // add a grid a1.grid=[1,1]; a2.grid=[1,1]; // end of plotting // algorithm to equally scale the axes // minimum of the first function -> scalar y1min=min(y1); // maximum of the first function -> scalar y1max=max(y1); // minimum of the second function -> scalar y2min=min(y2); // maximum of the second function -> scalar y2max=max(y2); // divider for the first function -> scalar division1=find_division(y1min,y1max); // divider for the second function -> scalar division2=find_division(y2min,y2max); // lower axis left y axis the first function (normalized) -> scalar y1axismin=floor(y1min/division1) // upper axis left y axis the first function (normalized) -> scalar y1axismax=ceil(y1max/division1) // lower axis left y axis the second function (normalized) -> scalar y2axismin=floor(y2min/division2) // upper axis left y axis the second function (normalized) -> scalar y2axismax=ceil(y2max/division2) // distinction of cases if y1axismin*y1axismax>0 & y2axismin*y2axismax>0 then // both axes don't go over the value of zero // preset variable addupper=1; // start a loop, until both axes have the same number of dividers while y1axismax-y1axismin>y2axismax-y2axismin // left y axis has more dividers than the right y axis if addupper==1 & y2axismax~=-1 // move the upper limit of the right y axis up y2axismax=y2axismax+1; end if addupper==-1 & y2axismin~=1 // move the lower limit of the right y axis down y2axismin=y2axismin+1; end // toggle variable addupper=adduper*(-1); end // preset variable addupper=1; // start a loop, until both axes have the same number of dividers while y1axismax-y1axismin scalar ymin=min(y1axismin,y2axismin); // find joint upper limit of both axes -> scalar ymax=max(y1axismax,y2axismax); // rescale axes // lower limit of the left y axis a1.data_bounds(1,2)=ymin*division1; // lower limit of the left y axis a1.data_bounds(2,2)=ymax*division1; // lower limit of the left y axis a2.data_bounds(1,2)=ymin*division2; // lower limit of the left y axis a2.data_bounds(2,2)=ymax*division2; end endfunction // Function to find a good division for the grid of a diagram // Input: // axismin: minimum of the data to display -> scalar // axismax: maximum of the data to display -> scalar // Output: // division: optimum rounded divider to divide the axis into 5 to 10 parts function division=find_division(axismin,axismax) // distance between maximum and minimum -> scalar distance=axismax-axismin; // preset exponent -> scalar exponent=0; // loop, until the distance is between 1 and 10 while 1 if distance>10 then // decrease distance -> scalar distance=distance/10; // increase exponent -> scalar exponent=exponent+1; elseif distance<1 then // increase distance -> scalar distance=distance*10; // decrease exponent -> scalar exponent=exponent-1; else // exit loop break; end end // distinction of cases, so that there will be 5 to 10 dividers at the end if distance==1 then // optimum rounded divider -> scalar division=0.1; elseif distance<=2 then // optimum rounded divider -> scalar division=0.2; elseif distance<=5 then // optimum rounded divider -> scalar division=0.5; else // optimum rounded divider -> scalar division=1; end // adjust the scaling -> scalar division=division*10^exponent; endfunction -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036055.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Tue Mar 28 10:21:23 2017 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 28 Mar 2017 10:21:23 +0200 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1490687506590-4036055.post@n3.nabble.com> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> <1462539930722-4034076.post@n3.nabble.com> <1472143983231-4034490.post@n3.nabble.com> <1490687506590-4036055.post@n3.nabble.com> Message-ID: <2155e1a6a45840107a5349e5a1311a73@free.fr> Thanks for sharing it. I've a suggestion I commonly use for such plots (I'm speaking in a general way): the color of the dedicated ordinate axis is the same than the curve in order to immediatly know what are the units and where to look to ... ... just my point of view Paul Le 2017-03-28 09:51, mathias_magdowski a ?crit : > I have extended the given example in a way that the left and right y axis get > some kind of intelligent equal scaling, so that a joined grid for both axes > would fit. If one of the axes includes the value of y = 0, both axes will > also share the same "base line". > > Here is the function: > > // Function for plotting a diagram with two y axes > // Input: > // x - x values -> vector > // y1 - y values for the for the left y axis -> vector > // y2 - y values for the right y axis -> vector > // Output: > // a1, a2 - axes -> handle > function [a1,a2]=plotyy(x,y1,y2) > // example for a diagram with two y axes > // see: > https://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg > // and: > http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-td4025895.html > // generation of the right y axis > a1=newaxes(); > a1.tight_limits=["on","off","off"]; > // plot of the first function > plot(x,y1); > // generation of the right y axis > a2=newaxes(); > // no background for this plot > a2.filled="off"; > // hide second x axis > a2.axes_visible(1)="off"; > a2.y_location = "right"; > a2.tight_limits = "on"; > // plot of the second function > plot(x,y2,"r"); > // set font size > a1.font_size=3; > a2.font_size=3; > // delete tick marks of the first x axis > a1.x_ticks=tlist(["ticks","locations","labels"],[],[]) > // add a grid > a1.grid=[1,1]; > a2.grid=[1,1]; > // end of plotting > // algorithm to equally scale the axes > // minimum of the first function -> scalar > y1min=min(y1); > // maximum of the first function -> scalar > y1max=max(y1); > // minimum of the second function -> scalar > y2min=min(y2); > // maximum of the second function -> scalar > y2max=max(y2); > // divider for the first function -> scalar > division1=find_division(y1min,y1max); > // divider for the second function -> scalar > division2=find_division(y2min,y2max); > // lower axis left y axis the first function (normalized) -> scalar > y1axismin=floor(y1min/division1) > // upper axis left y axis the first function (normalized) -> scalar > y1axismax=ceil(y1max/division1) > // lower axis left y axis the second function (normalized) -> scalar > y2axismin=floor(y2min/division2) > // upper axis left y axis the second function (normalized) -> scalar > y2axismax=ceil(y2max/division2) > // distinction of cases > if y1axismin*y1axismax>0 & y2axismin*y2axismax>0 then > // both axes don't go over the value of zero > // preset variable > addupper=1; > // start a loop, until both axes have the same number of dividers > while y1axismax-y1axismin>y2axismax-y2axismin > // left y axis has more dividers than the right y axis > if addupper==1 & y2axismax~=-1 > // move the upper limit of the right y axis up > y2axismax=y2axismax+1; > end > if addupper==-1 & y2axismin~=1 > // move the lower limit of the right y axis down > y2axismin=y2axismin+1; > end > // toggle variable > addupper=adduper*(-1); > end > // preset variable > addupper=1; > // start a loop, until both axes have the same number of dividers > while y1axismax-y1axismin // left y axis hat weniger optimum rounded divider als right y > axis > if addupper==1 & y1axismax~=-1 > // move the upper limit of the left y axis up > y1axismax=y1axismax+1; > end > if addupper==-1 & y1axismin~=1 > // move the lower limit of the left y axis down > y1axismin=y1axismin+1; > end > // toggle variable > addupper=adduper*(-1); > end > // rescale axes > // lower limit of the left y axis > a1.data_bounds(1,2)=y1axismin*division1; > // lower limit of the left y axis > a1.data_bounds(2,2)=y1axismax*division1; > // lower limit of the left y axis > a2.data_bounds(1,2)=y2axismin*division2; > // lower limit of the left y axis > a2.data_bounds(2,2)=y2axismax*division2; > else > // at least one of the axes goes over zero, or starts or ends at > zero > // find joint lower limit of both axes -> scalar > ymin=min(y1axismin,y2axismin); > // find joint upper limit of both axes -> scalar > ymax=max(y1axismax,y2axismax); > // rescale axes > // lower limit of the left y axis > a1.data_bounds(1,2)=ymin*division1; > // lower limit of the left y axis > a1.data_bounds(2,2)=ymax*division1; > // lower limit of the left y axis > a2.data_bounds(1,2)=ymin*division2; > // lower limit of the left y axis > a2.data_bounds(2,2)=ymax*division2; > end > endfunction > > // Function to find a good division for the grid of a diagram > // Input: > // axismin: minimum of the data to display -> scalar > // axismax: maximum of the data to display -> scalar > // Output: > // division: optimum rounded divider to divide the axis into 5 to 10 parts > function division=find_division(axismin,axismax) > // distance between maximum and minimum -> scalar > distance=axismax-axismin; > // preset exponent -> scalar > exponent=0; > // loop, until the distance is between 1 and 10 > while 1 > if distance>10 then > // decrease distance -> scalar > distance=distance/10; > // increase exponent -> scalar > exponent=exponent+1; > elseif distance<1 then > // increase distance -> scalar > distance=distance*10; > // decrease exponent -> scalar > exponent=exponent-1; > else > // exit loop > break; > end > end > // distinction of cases, so that there will be 5 to 10 dividers at the > end > if distance==1 then > // optimum rounded divider -> scalar > division=0.1; > elseif distance<=2 then > // optimum rounded divider -> scalar > division=0.2; > elseif distance<=5 then > // optimum rounded divider -> scalar > division=0.5; > else > // optimum rounded divider -> scalar > division=1; > end > // adjust the scaling -> scalar > division=division*10^exponent; > endfunction > > -- > View this message in context: > http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036055.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 p.muehlmann at gmail.com Tue Mar 28 10:44:37 2017 From: p.muehlmann at gmail.com (=?UTF-8?Q?Philipp_M=C3=BChlmann?=) Date: Tue, 28 Mar 2017 10:44:37 +0200 Subject: [Scilab-users] scilab crashes at empty p_datatips.data Message-ID: Hallo, playing along with the code example see: [Scilab-users] how to place datatip on one point of polyline clc;clear(); function str=ShowTipsmyfmt(h) pt = h.data; str = 'where is the tip on the red curve?'; endfunction //function TipIx= ShowTips() x1=linspace(0,1,32)'; y1=sinc(10*x1); TipIx = round( length(y1) ./ 2 ); y2=zeros(y1); y2(TipIx-1) = 1.*%nan; y2(TipIx+1) = 1.*%nan; y3=ones(y1) .* %nan ; y3( TipIx-1 : TipIx+1 ) = 0.4; clf(); plot2d(x1,[y1,y2,y3], style=[color("black"), color("red"), color("blue")] ); e=gce(); p_blue=e.children(1); p_blue.mark_style=5;// diamond p_red=e.children(2); p_red.mark_style=1;// + p_red.thickness=2; p_red.mark_foreground=color("red"); if TipIx ~= [] then t_red=datatipCreate(p_red, TipIx); datatipSetOrientation(t_red,"upper left") datatipSetDisplay(t_red,"ShowTipsmyfmt") end //endfunction disp(p_red.datatips.data,'p_red');disp(p_blue.datatips.data,'p_blue'); in Scilab 5.5.1 I get: "error21" which - I guess - is just fine. in Scilab 6.0.0 I just can close Scilab and restart. This done at a 64bit-Windows 7 PC, using - Scilab 5.5.1 64bit version - Scilab 6.0.0 64bit version Why this different behaviour? Thanks, Philipp -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Mar 28 10:45:07 2017 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 28 Mar 2017 08:45:07 +0000 Subject: [Scilab-users] Plots on second Y axis Message-ID: Hello, Thanks for sharing. Just a general comment: > De : mathias_magdowski > Envoy? : mardi 28 mars 2017 09:52 > > while 1 > if distance>10 then > [...] > elseif distance<1 then >[... ] > else > // exit loop > break; > end > end I can admit that break() can spare a lot of unnecessary code lines. Nevertheless, I think it should be avoided when unnecessary and would recommend something like: // ********** testvalue = %t; while testvalue if distance>10 then [...] elseif distance<1 then [...] else testvalue = %f; end end // ********** Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From erhard.glueck.austria at gmail.com Tue Mar 28 12:56:28 2017 From: erhard.glueck.austria at gmail.com (Erhy) Date: Tue, 28 Mar 2017 03:56:28 -0700 (MST) Subject: [Scilab-users] how to place datatip on one point of polyline In-Reply-To: <1289313968.12932110.1490628324251.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1490608789710-4036034.post@n3.nabble.com> <1289313968.12932110.1490628324251.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <1490698588472-4036059.post@n3.nabble.com> Samuel GOUGEON wrote > Let's have the following vector of x or/and y values/nodes: > A B C %nan D %nan E F > > a) A datatip set in C is not displayed => bug > b) But A datatip set in E is displayed: OK > c) A datatip set in D is not displayed = a) case Example code: // test of DataTips suggested by Samuel GOUGEON // datatips in sequence: A B C %nan D %nan E F function str=ShowTip_txt(h) str = h.tag; endfunction function TipIx= ShowTips() x1=linspace(0,1,13)'; y1=sinc(10*x1); TipIx = round( length(y1) ./ 2 ) + 2; // A B C %nan D %nan E F y_red=ones(y1) .* %nan; t_redRang = [(TipIx-4 : TipIx-2), TipIx, (TipIx+2 : TipIx+3)]; t_redPois = 1 : length(t_redRang); y_red(t_redRang) = 0.05 .* t_redPois + 0.5 ; y_blue=ones(y1) .* %nan ; y_blue( TipIx-1 : TipIx+1 ) = -0.35; clf(); hw = gcf(); t_redPois_Interp = %f; figname1="DataTipInterpolation "; if t_redPois_Interp then figname2="True" else figname2="False" end figname3=" on red curve"; figname=figname1+figname2+figname3; hw.figure_name = figname; //e.g."DataTipInterpolation True on red curve" plot2d(x1,[y1,y_red,y_blue], style=[color("black"), color("red"), color("blue")] ); e=gce(); p_blue=e.children(1); p_blue.mark_style=5;// mark with diamond p_red=e.children(2); p_red.mark_style=1;// mark with + p_red.thickness=2; p_red.mark_foreground=color("red"); TipsABC_red = ascii("A"); for i = t_redPois t_reds(i)=datatipCreate( p_red, t_redRang(i)); datatipSetInterp( t_reds(i), t_redPois_Interp); TipsABC_red = TipsABC_red + 1; t_reds(i).tag = char(ascii("A")-1+i); datatipSetDisplay(t_reds(i), "ShowTip_txt") end t_blue=datatipCreate(p_blue, TipIx); t_blue.font_foreground=color("blue"); t_blue.font_size=3; datatipSetOrientation(t_blue,"upper left") t_blue.box_mode="off"; t_blue.tag = "on the red curve each point should show a tip!"; datatipSetDisplay(t_blue,"ShowTip_txt") //pause endfunction -- View this message in context: http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036059.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From michael.benguigui at activeeon.com Tue Mar 28 13:46:40 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Tue, 28 Mar 2017 13:46:40 +0200 Subject: [Scilab-users] Scilab GUI 6 crash In-Reply-To: References: Message-ID: Dear Paul, thank you for your last reply. You will find my answer in the last comment in bug 14698 (copy paste the scilab instructions in a sci file and execute it from Scilab 6 GUI). It seems to be related to this issue since i encounter sometimes the command.temp file access error. Regards Michael 2017-03-20 10:24 GMT+01:00 Paul Bignier : > > Hello Michael, > > It works just fine on my system, could you please tell us more about your > config (OS / other installed toolboxes / result of '-->jre_path()' )? > > Regards, > Paul > > On 03/16/2017 11:14 AM, Michael Benguigui wrote: > > 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'); > > > -- > Paul BIGNIER > Development engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.68 <+33%201%2080%2077%2004%2068>http://www.scilab-enterprises.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- 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 contact at pierre-vuillemin.fr Tue Mar 28 22:20:32 2017 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 28 Mar 2017 22:20:32 +0200 Subject: [Scilab-users] C gateway with scilab api Message-ID: <0147fdcc-d20e-676a-3e27-546d724a02ca@pierre-vuillemin.fr> Hi all, I'm trying to call some C code from Scilab. To understand how the scilab api is working, I've tried to reproduce the example described here: https://help.scilab.org/docs/6.0.0/fr_FR/api_scilab_getting_started.html but it does not work for me. The command [c, d] = foo6([2,%pi], [%t, %f]) displays an error saying that the number of input arguments is wrong, 2 arguments are expected: foo6 : Nombre erron? d'argument(s) d'entr?e : 2 attendu(s). Is there an issue in the example or am I missing something? Besides, I have experienced a lot of seg fault in the process: is the API or this version of Scilab still quite experimental? NB: I am using Scilab 6 on Ubuntu 16.04. Best regards, Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.blachere at uvsq.fr Wed Mar 29 11:07:17 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Wed, 29 Mar 2017 11:07:17 +0200 Subject: [Scilab-users] compiling scilab In-Reply-To: <1490629657.26047.23.camel@esi-group.com> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> <1490629657.26047.23.camel@esi-group.com> Message-ID: <73b7e514-8416-fdea-b546-d06f694b6c8e@uvsq.fr> Hello, The patch allows the build on the master branch but the '-j1' is still needed. Would it be possible to also create a patch for the 6.0.0 tag or release a new version with this bug fixed ? Florian On 27/03/17 17:47, Cl?ment David wrote: > Hello, > > On my machine, with the patch [1] I am able to build scilab. Could you open a bug to track the issue > and confirm that this patch works in your distribution ? > > [1]: https://codereview.scilab.org/#/c/19232 > > -- > Cl?ment > > Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit : >> Hello, >> >> it worked for me to use the --without-modelica option for the config file and -j1 with make. >> >> Best regards, >> >> Martin >> >> 2017-03-24 11:17 GMT+01:00 Florian Blach?re : >>> Hello, >>> I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD from >>> the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with- >>> modelica') the build fails even with the '-j1' option. >>> Regards, >>> Florian >>> On 24/03/17 09:53, Cl?ment David wrote: >>>> Hello all, >>>> >>>> Sorry for answering that late, I can offer more :) . >>>> >>>> The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This is a >>>> known >>>> issue and I currently failed to resolve it : you should compile with `make -j1` to succeed. >>>> >>>> I was only able to reproduce it on system using OCaml 4 and it seems to be related to a wrong >>>> ml/mli >>>> dependency order. Could you confirm that you are using the latest OCaml version ? >>>> >>>> Thanks, >>>> >>>> -- >>>> Cl?ment >>>> >>>> Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : >>>>> Dear Martin! >>>>> >>>>> First of all can't understand why you are trying to compile Scilab. >>>>> You can get binary version, extract and use it. >>>>> >>>>> At second you can get Scilab from AUR. If you still willing to compile Scilab from sources >>>>> you >>>>> should install its build dependencies. >>>>> I think you can start building Scilab 6.0.0 (commit >>>>> 22bd3a5c93489bce74fbaf25d19fe55aefca853c). >>>>> After successful build of 6.0.0 you can try newer revisions. >>>>> >>>>> I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so on. >>>>> So I >>>>> can't offer more. >>>>> >>>>> -- >>>>> With best regards, >>>>> Ph.D., assistant professor at MPEI, >>>>> IEEE member, >>>>> maintainer of Mathieu functions toolbox for Scilab, >>>>> Nikolay Strelkov. >>>>> >>>>> 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : >>>>>> I'm using antergos and cloned the code from scilab website. >>>>>> GNU Make 4.2.1 >>>>>> 4.10.3-1-ARCH >>>>>> >>>>>> >>>>>> 2017-03-22 22:29 GMT+01:00 Tim Wescott : >>>>>>> On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: >>>>>>>> Hello, >>>>>>>> >>>>>>>> I tried to compile scilab, but I get every the the following error: >>>>>>>> >>>>>>>> File "_none_", line 1: >>>>>>>> Error: Files ./src/xml2modelica/xMLParser.cmx >>>>>>>> and ./src/xml2modelica/linenum.cmx >>>>>>>> make inconsistent assumptions over implementation Linenum >>>>>>>> >>>>>>>> It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc >>>>>>>> Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 >>>>>>> I do _not_ know the answer, but someone is going to ask you for >>>>>>> platform, operating system, and the version of the tools that you're >>>>>>> using. Then they're going to want to know where you got your source >>>>>>> code (unless it's obvious from the revision numbers). >>>>>>> >>>>>>> Sorry I can't offer more... >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> 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 >>>>>> >>>>> _______________________________________________ >>>>> 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 >>> >> _______________________________________________ >> 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 michael.benguigui at activeeon.com Wed Mar 29 11:09:17 2017 From: michael.benguigui at activeeon.com (Michael Benguigui) Date: Wed, 29 Mar 2017 11:09:17 +0200 Subject: [Scilab-users] Scilab GUI 6 crash In-Reply-To: References: Message-ID: Ok Paul, thanks again. Do you have in mind a temporary work around for this issue, that I could add in my dev.. Or this can only be tackled on your side..? Regards Michael 2017-03-28 13:46 GMT+02:00 Michael Benguigui < michael.benguigui at activeeon.com>: > Dear Paul, thank you for your last reply. > You will find my answer in the last comment in bug 14698 > (copy paste the > scilab instructions in a sci file and execute it from Scilab 6 GUI). It > seems to be related to this issue since i encounter sometimes the > command.temp file access error. > > Regards > Michael > > 2017-03-20 10:24 GMT+01:00 Paul Bignier enterprises.com>: > >> >> Hello Michael, >> >> It works just fine on my system, could you please tell us more about your >> config (OS / other installed toolboxes / result of '-->jre_path()' )? >> >> Regards, >> Paul >> >> On 03/16/2017 11:14 AM, Michael Benguigui wrote: >> >> 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'); >> >> >> -- >> Paul BIGNIER >> Development engineer >> ----------------------------------------------------------- >> Scilab Enterprises >> 143bis rue Yves Le Coz - 78000 Versailles, France >> Phone: +33.1.80.77.04.68 <+33%201%2080%2077%2004%2068>http://www.scilab-enterprises.com >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > -- > 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 > -- 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 Wed Mar 29 11:26:30 2017 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 29 Mar 2017 09:26:30 +0000 Subject: [Scilab-users] compiling scilab In-Reply-To: <73b7e514-8416-fdea-b546-d06f694b6c8e@uvsq.fr> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> <1490629657.26047.23.camel@esi-group.com> <73b7e514-8416-fdea-b546-d06f694b6c8e@uvsq.fr> Message-ID: <1490779588.2113.10.camel@esi-group.com> Hello, Could you open a bug report please [1] ? To enforce CHANGES.md completeness for 6.0.1 we require that a bug should be opened for each modification. The patch is easily rebase-able on 6.0.0 as there is no ML modification, you could generate it using the `git format-patch` command. [1]: http://bugzilla.scilab.org Thanks, -- Cl?ment Le mercredi 29 mars 2017 ? 11:07 +0200, Florian Blach?re a ?crit?: > Hello, > > The patch allows the build on the master branch but the '-j1' is still > needed. > > Would it be possible to also create a patch for the 6.0.0 tag or release > a new version with this bug fixed ? > > Florian > > > On 27/03/17 17:47, Cl?ment David wrote: > > Hello, > > > > On my machine, with the patch [1] I am able to build scilab. Could you open a bug to track the > > issue > > ?and confirm that this patch works in your distribution ? > > > > [1]: https://codereview.scilab.org/#/c/19232 > > > > -- > > Cl?ment > > > > Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit : > > > Hello, > > > > > > it worked for me to use the --without-modelica option for the config file and -j1 with make. > > > > > > Best regards, > > > > > > Martin > > > > > > 2017-03-24 11:17 GMT+01:00 Florian Blach?re : > > > > Hello, > > > > I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD > > > > from > > > > the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with- > > > > modelica') the build fails even with the '-j1' option. > > > > Regards, > > > > Florian > > > > On 24/03/17 09:53, Cl?ment David wrote: > > > > > Hello all, > > > > > > > > > > Sorry for answering that late, I can offer more :) . > > > > > > > > > > The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This > > > > > is a > > > > > known > > > > > issue and I currently failed to resolve it : you should compile with `make -j1` to > > > > > succeed. > > > > > > > > > > I was only able to reproduce it on system using OCaml 4 and it seems to be related to a > > > > > wrong > > > > > ml/mli > > > > > dependency order. Could you confirm that you are using the latest OCaml version ? > > > > > > > > > > Thanks, > > > > > > > > > > -- > > > > > Cl?ment > > > > > > > > > > Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : > > > > > > Dear Martin! > > > > > > > > > > > > First of all can't understand why you are trying to compile Scilab.? > > > > > > You can get binary version, extract and use it. > > > > > > > > > > > > At second you can get Scilab from AUR. If you still willing to compile Scilab from > > > > > > sources > > > > > > you > > > > > > should install its build dependencies.? > > > > > > I think you can start building Scilab 6.0.0 (commit > > > > > > 22bd3a5c93489bce74fbaf25d19fe55aefca853c). > > > > > > After successful build of 6.0.0 you can try newer revisions. > > > > > > > > > > > > I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so > > > > > > on. > > > > > > So I > > > > > > can't offer more. > > > > > > > > > > > > -- > > > > > > With best regards, > > > > > > Ph.D., assistant professor at MPEI, > > > > > > IEEE member, > > > > > > maintainer of Mathieu functions toolbox for Scilab, > > > > > > Nikolay Strelkov. > > > > > > > > > > > > 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : > > > > > > > I'm using antergos and cloned the code from scilab website. > > > > > > > GNU Make 4.2.1 > > > > > > > 4.10.3-1-ARCH > > > > > > > > > > > > > > > > > > > > > 2017-03-22 22:29 GMT+01:00 Tim Wescott : > > > > > > > > On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > I tried to compile scilab, but I get every the the following error: > > > > > > > > > > > > > > > > > > File "_none_", line 1: > > > > > > > > > Error: Files ./src/xml2modelica/xMLParser.cmx > > > > > > > > > ???????and ./src/xml2modelica/linenum.cmx > > > > > > > > > ???????make inconsistent assumptions over implementation Linenum > > > > > > > > > > > > > > > > > > It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc > > > > > > > > > Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 > > > > > > > > > > > > > > > > I do _not_ know the answer, but someone is going to ask you for > > > > > > > > platform, operating system, and the version of the tools that you're > > > > > > > > using.??Then they're going to want to know where you got your source > > > > > > > > code (unless it's obvious from the revision numbers). > > > > > > > > > > > > > > > > Sorry I can't offer more... > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > 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 > > > > > > > > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From florian.blachere at uvsq.fr Wed Mar 29 11:53:18 2017 From: florian.blachere at uvsq.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Wed, 29 Mar 2017 11:53:18 +0200 Subject: [Scilab-users] compiling scilab In-Reply-To: <1490779588.2113.10.camel@esi-group.com> References: <1490218155.3053.3.camel@wescottdesign.com> <1490345608.2141.29.camel@esi-group.com> <531d04c0-9140-e707-8b6b-d1c81040d0ba@uvsq.fr> <1490629657.26047.23.camel@esi-group.com> <73b7e514-8416-fdea-b546-d06f694b6c8e@uvsq.fr> <1490779588.2113.10.camel@esi-group.com> Message-ID: I opened a bug report : http://bugzilla.scilab.org/show_bug.cgi?id=15107 I managed to rebase the patch by deleting the part about the .depend file, as it is not present in the 6.0.0 archive. The builds of the master branch and the 6.0.0 tag pass with the '-j1' option. Many thanks for the work! Florian On 29/03/17 11:26, Cl?ment David wrote: > Hello, > > Could you open a bug report please [1] ? To enforce CHANGES.md completeness for 6.0.1 we require > that a bug should be opened for each modification. The patch is easily rebase-able on 6.0.0 as there > is no ML modification, you could generate it using the `git format-patch` command. > > [1]: http://bugzilla.scilab.org > > Thanks, > > -- > Cl?ment > > Le mercredi 29 mars 2017 ? 11:07 +0200, Florian Blach?re a ?crit : >> Hello, >> >> The patch allows the build on the master branch but the '-j1' is still >> needed. >> >> Would it be possible to also create a patch for the 6.0.0 tag or release >> a new version with this bug fixed ? >> >> Florian >> >> >> On 27/03/17 17:47, Cl?ment David wrote: >>> Hello, >>> >>> On my machine, with the patch [1] I am able to build scilab. Could you open a bug to track the >>> issue >>> and confirm that this patch works in your distribution ? >>> >>> [1]: https://codereview.scilab.org/#/c/19232 >>> >>> -- >>> Cl?ment >>> >>> Le dimanche 26 mars 2017 ? 21:15 +0200, Martin Marmsoler a ?crit : >>>> Hello, >>>> >>>> it worked for me to use the --without-modelica option for the config file and -j1 with make. >>>> >>>> Best regards, >>>> >>>> Martin >>>> >>>> 2017-03-24 11:17 GMT+01:00 Florian Blach?re : >>>>> Hello, >>>>> I can confirm that with a recent Ocaml compiler (4.04.0) on Archlinux using the PKGBUILD >>>>> from >>>>> the AUR (https://aur.archlinux.org/packages/scilab/) and with modelica activated ('--with- >>>>> modelica') the build fails even with the '-j1' option. >>>>> Regards, >>>>> Florian >>>>> On 24/03/17 09:53, Cl?ment David wrote: >>>>>> Hello all, >>>>>> >>>>>> Sorry for answering that late, I can offer more :) . >>>>>> >>>>>> The error comes from the buggy parallel OCaml compilation of the Modelica compiler. This >>>>>> is a >>>>>> known >>>>>> issue and I currently failed to resolve it : you should compile with `make -j1` to >>>>>> succeed. >>>>>> >>>>>> I was only able to reproduce it on system using OCaml 4 and it seems to be related to a >>>>>> wrong >>>>>> ml/mli >>>>>> dependency order. Could you confirm that you are using the latest OCaml version ? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> -- >>>>>> Cl?ment >>>>>> >>>>>> Le jeudi 23 mars 2017 ? 12:21 +0300, Nikolay Strelkov a ?crit : >>>>>>> Dear Martin! >>>>>>> >>>>>>> First of all can't understand why you are trying to compile Scilab. >>>>>>> You can get binary version, extract and use it. >>>>>>> >>>>>>> At second you can get Scilab from AUR. If you still willing to compile Scilab from >>>>>>> sources >>>>>>> you >>>>>>> should install its build dependencies. >>>>>>> I think you can start building Scilab 6.0.0 (commit >>>>>>> 22bd3a5c93489bce74fbaf25d19fe55aefca853c). >>>>>>> After successful build of 6.0.0 you can try newer revisions. >>>>>>> >>>>>>> I'm on Ubuntu 12.04.5 LTS. Here we use "apt-get build-dep scilab", "checkinstall" and so >>>>>>> on. >>>>>>> So I >>>>>>> can't offer more. >>>>>>> >>>>>>> -- >>>>>>> With best regards, >>>>>>> Ph.D., assistant professor at MPEI, >>>>>>> IEEE member, >>>>>>> maintainer of Mathieu functions toolbox for Scilab, >>>>>>> Nikolay Strelkov. >>>>>>> >>>>>>> 2017-03-23 1:02 GMT+03:00 Martin Marmsoler : >>>>>>>> I'm using antergos and cloned the code from scilab website. >>>>>>>> GNU Make 4.2.1 >>>>>>>> 4.10.3-1-ARCH >>>>>>>> >>>>>>>> >>>>>>>> 2017-03-22 22:29 GMT+01:00 Tim Wescott : >>>>>>>>> On Wed, 2017-03-22 at 22:19 +0100, Martin Marmsoler wrote: >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> I tried to compile scilab, but I get every the the following error: >>>>>>>>>> >>>>>>>>>> File "_none_", line 1: >>>>>>>>>> Error: Files ./src/xml2modelica/xMLParser.cmx >>>>>>>>>> and ./src/xml2modelica/linenum.cmx >>>>>>>>>> make inconsistent assumptions over implementation Linenum >>>>>>>>>> >>>>>>>>>> It's revision: 8e22c1833d5be739f39ca4008582952f2d76cfdc >>>>>>>>>> Tried also revision 37f503cc29e63e42902b4de384e9f7c064b76b92 >>>>>>>>> I do _not_ know the answer, but someone is going to ask you for >>>>>>>>> platform, operating system, and the version of the tools that you're >>>>>>>>> using. Then they're going to want to know where you got your source >>>>>>>>> code (unless it's obvious from the revision numbers). >>>>>>>>> >>>>>>>>> Sorry I can't offer more... >>>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> 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 >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>> >>>> _______________________________________________ >>>> 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 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From j-lan at online.no Wed Mar 29 13:31:00 2017 From: j-lan at online.no (JLan) Date: Wed, 29 Mar 2017 04:31:00 -0700 (MST) Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1490687506590-4036055.post@n3.nabble.com> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> <1462539930722-4034076.post@n3.nabble.com> <1472143983231-4034490.post@n3.nabble.com> <1490687506590-4036055.post@n3.nabble.com> Message-ID: <1490787060086-4036077.post@n3.nabble.com> mathias_magdowski wrote > I have extended the given example.. Good, although it can get a bit messed up when using the "reframe to contents" button. Using the [a1 a2] handles afterwards was not quite successful for me. What about adding some optional labels in the function? function [a1,a2]=plotyyl(x,y1,y2,t,x_l,y1_l,y2_l) if ~exists("t") t=""; end if ~exists("x_l") x_l="X"; end if ~exists("y1_l") y1_l="Y1"; end if ~exists("y2_l") y2_l="Y2"; end .... .... // plot of the first function plot(x,y1); gca().title.text=t; gca().y_label.font_foreground=2; gca().y_label.text=y1_l; .... .... // plot of the second function plot(x,y2,"r"); gca().y_label.font_foreground=5; gca().y_label.text=y2_l; gca().x_label.text=x_l; .... J -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036077.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathias.magdowski at ovgu.de Wed Mar 29 13:54:03 2017 From: mathias.magdowski at ovgu.de (mathias_magdowski) Date: Wed, 29 Mar 2017 04:54:03 -0700 (MST) Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1490787060086-4036077.post@n3.nabble.com> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> <1462539930722-4034076.post@n3.nabble.com> <1472143983231-4034490.post@n3.nabble.com> <1490687506590-4036055.post@n3.nabble.com> <1490787060086-4036077.post@n3.nabble.com> Message-ID: <1490788443912-4036078.post@n3.nabble.com> JLan wrote > Using the [a1 a2] handles afterwards was not quite successful for me. This worked fine for me: [a1,a2]=plotyy(t,uL2,i3) legend(a1,"uL2",2); legend(a2,"i3",1); ylabel(a1,'Spannung, u in V','fontsize',3); xlabel(a2,'Zeit, t in s','fontsize',3); ylabel(a1,'Strom, i in A','fontsize',3); Also see my example at Twitter . JLan wrote > What about adding some optional labels in the function? This is for sure a solution, but I try to avoid having a function with an unreasonable high number of input arguments if there are more flexible solutions. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plots-on-second-Y-axis-tp4025895p4036078.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From youpico at gmail.com Thu Mar 30 15:12:41 2017 From: youpico at gmail.com (Olivier_B) Date: Thu, 30 Mar 2017 06:12:41 -0700 (MST) Subject: [Scilab-users] figure exportation : "permission denied" Message-ID: <1490879561313-4036084.post@n3.nabble.com> Hi, I have a problem with the function "xs2emf". I have this error message, whatever the directory I try to save the file "Unable to create export file, permission denied". Can someone help me? Thanks Olivier -- View this message in context: http://mailinglists.scilab.org/figure-exportation-permission-denied-tp4036084.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Thu Mar 30 17:14:09 2017 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Thu, 30 Mar 2017 17:14:09 +0200 Subject: [Scilab-users] figure exportation : "permission denied" In-Reply-To: <1490879561313-4036084.post@n3.nabble.com> References: <1490879561313-4036084.post@n3.nabble.com> Message-ID: <8F1D40232A0E68409E3FC23A30C326620174545DBFA8@THSONEA01CMS04P.one.grp> Hello, I used to have this message with former versions of SciLab... Are you using version 5.5 or later ? 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 Olivier_B Envoy??: jeudi 30 mars 2017 15:13 ??: users at lists.scilab.org Objet?: [Scilab-users] figure exportation : "permission denied" Hi, I have a problem with the function "xs2emf". I have this error message, whatever the directory I try to save the file "Unable to create export file, permission denied". Can someone help me? Thanks Olivier -- View this message in context: http://mailinglists.scilab.org/figure-exportation-permission-denied-tp4036084.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 youpico at gmail.com Thu Mar 30 17:31:57 2017 From: youpico at gmail.com (Olivier_B) Date: Thu, 30 Mar 2017 08:31:57 -0700 (MST) Subject: [Scilab-users] figure exportation : "permission denied" In-Reply-To: <8F1D40232A0E68409E3FC23A30C326620174545DBFA8@THSONEA01CMS04P.one.grp> References: <1490879561313-4036084.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174545DBFA8@THSONEA01CMS04P.one.grp> Message-ID: <1490887917792-4036086.post@n3.nabble.com> Hi, I'm using Scilab 6.0.0 with Windows 7 Service Pack 1 64 bits I'am login as administrator to this computer. -- View this message in context: http://mailinglists.scilab.org/figure-exportation-permission-denied-tp4036084p4036086.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Mar 30 20:55:23 2017 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 30 Mar 2017 20:55:23 +0200 Subject: [Scilab-users] figure exportation : "permission denied" In-Reply-To: <1490887917792-4036086.post@n3.nabble.com> References: <1490879561313-4036084.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174545DBFA8@THSONEA01CMS04P.one.grp> <1490887917792-4036086.post@n3.nabble.com> Message-ID: Hi, Le 30/03/2017 ? 17:31, Olivier_B a ?crit : > Hi, > > I'm using Scilab 6.0.0 with Windows 7 Service Pack 1 64 bits > I'am login as administrator to this computer. If an exportation error has occurred once for this file name, the output stream might have not been closed properly or/and the file might be kept locked by the OS. So, i would first do the following tests: * Was the file partially exported? * If some "ghost" file has been created, are you able to remove it by hand from the OS? * If not : quit the Scilab session, and then try to remove the file by hand, and to re-export the figure. * Is this bug occurring whatever is the content of the figure? Try with an elementary figure such as: clf xpoly(5,5) HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From youpico at gmail.com Fri Mar 31 08:48:31 2017 From: youpico at gmail.com (Olivier_B) Date: Thu, 30 Mar 2017 23:48:31 -0700 (MST) Subject: [Scilab-users] figure exportation : "permission denied" In-Reply-To: References: <1490879561313-4036084.post@n3.nabble.com> <8F1D40232A0E68409E3FC23A30C326620174545DBFA8@THSONEA01CMS04P.one.grp> <1490887917792-4036086.post@n3.nabble.com> Message-ID: <1490942911733-4036091.post@n3.nabble.com> Hi Samuel, After check, the file xx.emf is actually created but my script crashes during the execution of the function xs2emf. - I can remove the file xx.emf - The figure I try to save is a very basic one - If I remove the file, restart Scilab and try again, nothing changes I tried the function xs2jpg, xs2png, xs2bmp, xs2gif ... : these functions are OK, the files are created. Thanks for your help Olivier -- View this message in context: http://mailinglists.scilab.org/figure-exportation-permission-denied-tp4036084p4036091.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From phillipmobley2 at gmail.com Fri Mar 31 23:02:15 2017 From: phillipmobley2 at gmail.com (phillip mobley) Date: Fri, 31 Mar 2017 17:02:15 -0400 Subject: [Scilab-users] Setting up C-compiler Message-ID: 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: