From jrafaelbguerra at hotmail.com Thu Feb 1 09:07:10 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 1 Feb 2018 08:07:10 +0000 Subject: [Scilab-users] What happened to the Carriage Returns? Message-ID: Hello, Lately, the emails sent to this Scilab users mailing as plain text have several carriage returns omitted. Why is this so and what is the workaround? Sending as html does not seem to be a bullet proof solution either and such emails quickly bounce back if size>100kb, which is a rather low threshold. Thanks and regards, Rafael From wozai at protonmail.ch Thu Feb 1 10:15:01 2018 From: wozai at protonmail.ch (Wozai) Date: Thu, 1 Feb 2018 02:15:01 -0700 (MST) Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> Message-ID: <1517476501391-0.post@n3.nabble.com> Hi, On a Intel(R) Core(TM) i3-3220T CPU @ 2.80GHz (Linux), the following code needs ~8s and it doesn't allocate that much memory. n=20000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1, 'def'); costheta = 1 - 2*grand(n,1, 'def'); radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi),radsintheta.*sin(phi), radius.*costheta]; ONE=ones(n,1); NAN=[%nan,%nan,%nan]; SUM=[1;1;1]; MinDist=zeros(1,n); for i=1:n; XX = X; XX(i,:) = NAN; DIFF = XX - ONE*X(i,:); MinDist(i) = sqrt(min((DIFF.*DIFF)*SUM)); end; Cheers, wozai -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at me.com Thu Feb 1 11:09:48 2018 From: heinznabielek at me.com (Heinz) Date: Thu, 01 Feb 2018 11:09:48 +0100 Subject: [Scilab-users] What happened to the Carriage Returns? In-Reply-To: References: Message-ID: <001a01d39b44$cc6dddb0$65499910$@me.com> MS Outlook gives you a message "We removed extra line breaks from this message".. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 01 February 2018 09:07 To: Users mailing list for Scilab Subject: [Scilab-users] What happened to the Carriage Returns? Hello, Lately, the emails sent to this Scilab users mailing as plain text have several carriage returns omitted. Why is this so and what is the workaround? Sending as html does not seem to be a bullet proof solution either and such emails quickly bounce back if size>100kb, which is a rather low threshold. Thanks and regards, Rafael _______________________________________________ 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: image001.png Type: image/png Size: 2211 bytes Desc: not available URL: From stephane.mottelet at utc.fr Thu Feb 1 17:09:39 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 1 Feb 2018 17:09:39 +0100 Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> Message-ID: <4f27c0f6-e83f-dc03-5871-bad69394ffc4@utc.fr> Hi all, I hope that the following will stop the (useless) competition : if speed is a real bottleneck for this particular computation, using plain C is the only option. The self-contained script (n=20000) given at the end of this message gives the following timings on various hardware (only one processor core is used) : 2,8 GHz Quad-Core Intel Xeon : 1.08 s (OSX) 2.2 GHz Xeon(R) CPU E5-2660 v2 @? : 1.84 s (Linux) Don't use plain Scilab if speed is a crucial issue.... //? start of code source=['#include ' '#define SQR(x) ((x)*(x))' '#define MIN(x, y) (((x) < (y)) ? (x) : (y))' 'void mindist(double d[],double x[],int *n) {' '? int i,j,k;' '? double dist;' '? for (i=0;i<*n;i++) { ' '??? d[i]=INFINITY;' '??? for (j=0;j<*n;j++) if (i!=j) { ' '????? dist=0;' '????? for (k=0;k<3;k++) dist+=SQR(x[j*3+k]-x[i*3+k]);' '????? d[i]=MIN(d[i],dist);' '??? }' '? }' '}'] mputl(source,'mindist.c') ilib_for_link('mindist','mindist.c',[],"c"); exec loader.sce n=20000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1,'def'); costheta = 1 - 2*grand(n,1,'def'); radsintheta = radius.*sin(acos(costheta)); X=[radsintheta.*cos(phi) radsintheta.*sin(phi) radius.*costheta]; n=size(X,1); tic; dist=sqrt(call("mindist",X',2,"d",n,3,"i","out",[1,n],1,"d")); disp(toc()) // end of code Le 31/01/2018 ? 23:31, Rafael Guerra a ?crit?: > Hi Heinz, > > Find herein a vectorised memory hog solution for Scilab 6, which is fast (~30 s for 20K points on Win7 laptop): > > // START OF CODE (Scilab 6) > Clear > n=20000; > r=23; > radius = r*grand(n,1,'def').^(1/3); > phi = 2*%pi*grand(n,1, 'def'); > costheta = 1 - 2*grand(n,1, 'def'); > radsintheta = radius.*sin(acos(costheta)); > X = [radsintheta.*cos(phi), radsintheta.*sin(phi), radius.*costheta]; > tic; > X2 = sum(X.*X, 'c'); > X3 = X2.*.ones(n,1)'; > X3 = X3 + X3'; > D = abs(X3 - 2*(X*X'))'; > D(1:n+1:$) = []; // remove diagonal 0's > D = matrix(D,n-1,n); // reshape D to (n-1) x n size > MinDist1 = sqrt(min(D,'r')); > t1=toc(); > disp(t1) > jj=-0.05:0.1:3.05; > H1 = histc(jj,MinDist1); > disp([0.05+jj(1:$-1)' H1']); > // END OF CODE > > Regards, > Rafael > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From cfuttrup at gmail.com Thu Feb 1 17:50:59 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 1 Feb 2018 17:50:59 +0100 Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: <4f27c0f6-e83f-dc03-5871-bad69394ffc4@utc.fr> References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> <4f27c0f6-e83f-dc03-5871-bad69394ffc4@utc.fr> Message-ID: For me it's fun to see thevarious attempts at improving speed. Thanks to Stephane for the x*x tip being better than x^2. Best regards Claus On Feb 1, 2018 17:11, "St?phane Mottelet" wrote: > Hi all, > > I hope that the following will stop the (useless) competition : if speed > is a real bottleneck for this particular computation, using plain C is the > only option. The self-contained script (n=20000) given at the end of this > message gives the following timings on various hardware (only one processor > core is used) : > > 2,8 GHz Quad-Core Intel Xeon : 1.08 s (OSX) > 2.2 GHz Xeon(R) CPU E5-2660 v2 @ : 1.84 s (Linux) > > Don't use plain Scilab if speed is a crucial issue.... > > // start of code > source=['#include ' > '#define SQR(x) ((x)*(x))' > '#define MIN(x, y) (((x) < (y)) ? (x) : (y))' > 'void mindist(double d[],double x[],int *n) {' > ' int i,j,k;' > ' double dist;' > ' for (i=0;i<*n;i++) { ' > ' d[i]=INFINITY;' > ' for (j=0;j<*n;j++) if (i!=j) { ' > ' dist=0;' > ' for (k=0;k<3;k++) dist+=SQR(x[j*3+k]-x[i*3+k]);' > ' d[i]=MIN(d[i],dist);' > ' }' > ' }' > '}'] > mputl(source,'mindist.c') > ilib_for_link('mindist','mindist.c',[],"c"); > exec loader.sce > > n=20000; > r=23; > radius = r*grand(n,1,'def').^(1/3); > phi = 2*%pi*grand(n,1,'def'); > costheta = 1 - 2*grand(n,1,'def'); > radsintheta = radius.*sin(acos(costheta)); > > X=[radsintheta.*cos(phi) radsintheta.*sin(phi) radius.*costheta]; > > n=size(X,1); > tic; > dist=sqrt(call("mindist",X',2,"d",n,3,"i","out",[1,n],1,"d")); > disp(toc()) > // end of code > > Le 31/01/2018 ? 23:31, Rafael Guerra a ?crit : > >> Hi Heinz, >> >> Find herein a vectorised memory hog solution for Scilab 6, which is fast >> (~30 s for 20K points on Win7 laptop): >> >> // START OF CODE (Scilab 6) >> Clear >> n=20000; >> r=23; >> radius = r*grand(n,1,'def').^(1/3); >> phi = 2*%pi*grand(n,1, 'def'); >> costheta = 1 - 2*grand(n,1, 'def'); >> radsintheta = radius.*sin(acos(costheta)); >> X = [radsintheta.*cos(phi), radsintheta.*sin(phi), radius.*costheta]; >> tic; >> X2 = sum(X.*X, 'c'); >> X3 = X2.*.ones(n,1)'; >> X3 = X3 + X3'; >> D = abs(X3 - 2*(X*X'))'; >> D(1:n+1:$) = []; // remove diagonal 0's >> D = matrix(D,n-1,n); // reshape D to (n-1) x n size >> MinDist1 = sqrt(min(D,'r')); >> t1=toc(); >> disp(t1) >> jj=-0.05:0.1:3.05; >> H1 = histc(jj,MinDist1); >> disp([0.05+jj(1:$-1)' H1']); >> // END OF CODE >> >> Regards, >> Rafael >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > 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 Feb 1 17:53:36 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 1 Feb 2018 17:53:36 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: <5A71A386.3020109@wanadoo.fr> References: <9a940d75-ca9b-f4ba-5fca-b8bbb92ed06c@free.fr> <5A71A386.3020109@wanadoo.fr> Message-ID: Hi JP Thanks. Before asking in the forum I did find the grivet.sce file by Google search. To me the xfpoly solution looked like a 2D plot... I'll check your attached code again, maybe I'll have a revelation :-) Best regards Claus On Jan 31, 2018 12:16, "Jean-Philippe Grivet" < jean-philippe.grivet at wanadoo.fr> wrote: > Hi Claus, Rafeal and Samuel, > Here is another method for stacked plots, which was suggested to me years > ago by Serge Steer. > I used it succssfully for about 12 individual curves. > > Cheers, > JP Grivet > > > > Le 28/01/2018 20:19, Claus Futtrup a ?crit : > > Hi Rafael and Samuel > > Thank you both for great suggestions - and as I thought - I was on the > wrong path. Indeed I looked at plot3d3 and didn't catch that this one is > suitable for what I wish to do. I see clearly with the example by Samuel > that it is quite a smart way. I initially made the mistake to feed vectors > (frequencies + angles), and it complained (and it revealed, it seems, that > plot3d3 is based on param3d1). I see it needs matrices. The example by > Rafael made that clear to me. Thanks Rafael for a very good example to work > with. > > Best regards, > Claus > > On Sun, Jan 28, 2018 at 5:24 PM, Rafael Guerra > wrote: > >> Hi Samuel, >> >> Absolutely, the two param3d functions should be merged. >> >> The vectorised assignment example should also be included in the helpfile. >> >> Regards, >> Rafael >> >> -----Original Message----- >> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel >> Gougeon >> Sent: Sunday, January 28, 2018 5:17 PM >> To: Users mailing list for Scilab >> Subject: Re: [Scilab-users] Stacked 2D plot in 3D >> >> Hello Rafael, >> >> About param3d() and param3d1(): >> In 3 days, it will be the 10th birthday of this report: >> http://bugzilla.scilab.org/6155 >> Shall we make a present to other users? :) By the way, beyond their >> pages, don't you think the functions themselves should be merged? >> >> Le 28/01/2018 ? 16:39, Rafael Guerra a ?crit : >> > .../... >> > for i=1:nf; >> > e.children(i).foreground = color('dark blue'); >> > e.children(i).thickness = 2; >> > end >> >> Or more simply: >> >> e.children.foreground = color('dark blue'); e.children.thickness = 2; >> >> This kind of vectorized assignment (almost always) works. >> >> Cheers >> 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 listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > > Garanti > sans virus. www.avast.com > > <#m_8010707003040316304_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > 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 Feb 1 18:20:30 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Feb 2018 18:20:30 +0100 Subject: [Scilab-users] xget("fpf") xset("fpf") => gca().ticks_format(4)? Message-ID: <9affd59f-cd70-8bc9-0c4c-fea3dfa277ea@free.fr> Please follow up the discussion on the devs@ list only. Dear devs and users, xset() and xget() are obsolete since Scilab 5.0. Yet, they still remain in Scilab 6.0 due to the xget("fpf") and xset("fpf") syntaxes that still have no replacement. These syntaxes respectively gets and sets the floating point C-like format of numbers to be labeled on level curves, as rendered by xstring() within contouring functions like contour2d() : https://help.scilab.org/docs/6.0.0/en_US/contour2d.html The gca().ticks_format property was added in Scilab 5.5.0 and is now available. It is currently a vector of 3 strings being C-like formats specifications for the labels of the x, y, and z axes. So, i am wondering about the possibility to *replace the xget("fpf") and xset("fpf") with a fourth component gca().ticks_format(4) *(to be implemented). Levels are (always?) about z, so in one hand it could be useless to implement .ticks_format(4) instead of using .ticks_format(3) that is already available. In another hand, the special value " " (blank) is presently used in contouring functions to cancel labeling, without canceling labels on the Z axis when contours are drawn in a 3D plot instead of a flat one. Since, in Scilab itself, xget("fpf") and xset("fpf") are used only in leveling macros, *another solution *would be to * simply remove xget("fpf") and xset("fpf") * improve xnumb() in order to make it self-adaptable in term of display format according to values. o i already use and may provide such a version (as well to display complex numbers with their imaginary parts). A SEP may be prepared. o possibly add a formating option. But this is not mandatory if a self-adapting version is available in Scilab. * make contour(), contour2d() and contourf() using xnumb() instead of xstring(). This is trivial. Possibly add a labelling option to them (but it's not mandatory) As a side question, adding a C-like format option to xstring() would be useful as well. The xstring() code already gets such a format from xget("fpf"). It would then be provided as a direct input, instead of from this former environmental variable. I hope that Scilab will, ASAP, actually and properly get rid of these xget() and xset() functions. May this contribution help to this purpose? Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Thu Feb 1 20:20:12 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 1 Feb 2018 20:20:12 +0100 Subject: [Scilab-users] GUI programming In-Reply-To: References: Message-ID: Hi Philippe Thank you for poiting out that your book actually include this. I thought "Fundamental" meant that it would be a bit too fundamental for me, but maybe not. :-) ... I wish to also buy the other books in this series of books, when made available in English. Best regards, Claus On Wed, Jan 31, 2018 at 11:04 PM, philippe wrote: > Hi > > Le 24/01/2018 ? 19:49, Claus Futtrup a ?crit : > > Hi Scilabers > > > > Is there a comprehensive manual or book (in English, or alt German) > > about programming GUI in Scilab? (or a comprehensive web-page) > > programming GUI in scilab relies on a good comprehension of graphics > handles. The 4th chapter of my book is dedicated to graphics and contain > few pages about GUI conception (part 23.4 pages 338 to 353) : > > https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html > > You can find a simple example (with call-back inside) detailed : > > https://www.youtube.com/watch?v=zRXr22VZNJM > > It's sufficient to understand the basis of GUI. > > I think that what I need is not just examples. I need explanations, and > > preferably something coherent that I can combine and work with, into > > something that works. > > That was the aim of my book : giving simple examples with detailed > explanations, well ordered so that you can learn scilab with more > efficiency than jumping from one help page to another. > > Philippe > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Fri Feb 2 00:00:10 2018 From: heinznabielek at me.com (Heinz) Date: Fri, 02 Feb 2018 00:00:10 +0100 Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: <4f27c0f6-e83f-dc03-5871-bad69394ffc4@utc.fr> References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> <4f27c0f6-e83f-dc03-5871-bad69394ffc4@utc.fr> Message-ID: <010801d39bb0$6b04ea70$410ebf50$@me.com> "plain C is the only option": absolutely correct. As a matter of fact, I had programmed the problem in C in the first place. Idea was to probe the possibilty of Scilab, because that would make me more flexible with quick data handling and quick diagram sketches. On my lowly Win10 laptop, the first rewrite from C to Scilab with doubly nested loop took 6h, change to vectorization of the inner loop 6min and further obvious smoothings 4min. I am immensely greatful how to do the SciLab->C handover, all my previous attempts had failed and everything was extremely fast: tictoc=3.02 And the coding results in the correct solution as can be shown with // PLOT COMPARISON TO THEORY dd=gsort(dist,'g','i');yy=(1:n)/(n+1); scf;ii=0:.05:2.2;plot(ii,1-exp(-n*((ii/r).^3)),'r+');plot(dd,yy); xtitle("Nearest Neighbour Distribution in 3d","distance (mm)","cumulative probability"); legend('prediction Prof Paul Hertz 1909','Monte-Carlo simulation of 20,000 points',pos=4); // END OF COMPARISON I can send the diagram if somebody is interested. Thanks a great lot, St?phane... Heinz -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of St?phane Mottelet Sent: 01 February 2018 17:10 To: users at lists.scilab.org Subject: Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome Hi all, I hope that the following will stop the (useless) competition : if speed is a real bottleneck for this particular computation, using plain C is the only option. The self-contained script (n=20000) given at the end of this message gives the following timings on various hardware (only one processor core is used) : 2,8 GHz Quad-Core Intel Xeon : 1.08 s (OSX) 2.2 GHz Xeon(R) CPU E5-2660 v2 @ : 1.84 s (Linux) Don't use plain Scilab if speed is a crucial issue.... // start of code source=['#include ' '#define SQR(x) ((x)*(x))' '#define MIN(x, y) (((x) < (y)) ? (x) : (y))' 'void mindist(double d[],double x[],int *n) {' ' int i,j,k;' ' double dist;' ' for (i=0;i<*n;i++) { ' ' d[i]=INFINITY;' ' for (j=0;j<*n;j++) if (i!=j) { ' ' dist=0;' ' for (k=0;k<3;k++) dist+=SQR(x[j*3+k]-x[i*3+k]);' ' d[i]=MIN(d[i],dist);' ' }' ' }' '}'] mputl(source,'mindist.c') ilib_for_link('mindist','mindist.c',[],"c"); exec loader.sce n=20000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1,'def'); costheta = 1 - 2*grand(n,1,'def'); radsintheta = radius.*sin(acos(costheta)); X=[radsintheta.*cos(phi) radsintheta.*sin(phi) radius.*costheta]; n=size(X,1); tic; dist=sqrt(call("mindist",X',2,"d",n,3,"i","out",[1,n],1,"d")); disp(toc()) // end of code Le 31/01/2018 ? 23:31, Rafael Guerra a ?crit : > Hi Heinz, > > Find herein a vectorised memory hog solution for Scilab 6, which is fast (~30 s for 20K points on Win7 laptop): > > // START OF CODE (Scilab 6) > Clear > n=20000; > r=23; > radius = r*grand(n,1,'def').^(1/3); > phi = 2*%pi*grand(n,1, 'def'); > costheta = 1 - 2*grand(n,1, 'def'); > radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi), > radsintheta.*sin(phi), radius.*costheta]; tic; > X2 = sum(X.*X, 'c'); > X3 = X2.*.ones(n,1)'; > X3 = X3 + X3'; > D = abs(X3 - 2*(X*X'))'; > D(1:n+1:$) = []; // remove diagonal 0's D = matrix(D,n-1,n); // > reshape D to (n-1) x n size > MinDist1 = sqrt(min(D,'r')); > t1=toc(); > disp(t1) > jj=-0.05:0.1:3.05; > H1 = histc(jj,MinDist1); > disp([0.05+jj(1:$-1)' H1']); > // END OF CODE > > Regards, > Rafael > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Feb 2 07:38:50 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Feb 2018 07:38:50 +0100 Subject: [Scilab-users] param3d() and param3d1() pages merged & improved <= Re: Stacked 2D plot in 3D In-Reply-To: <9a940d75-ca9b-f4ba-5fca-b8bbb92ed06c@free.fr> References: <9a940d75-ca9b-f4ba-5fca-b8bbb92ed06c@free.fr> Message-ID: <2a24ffa6-8051-9b3f-ec78-10c310b5c0f7@free.fr> Hello, Le 28/01/2018 ? 17:16, Samuel Gougeon a ?crit : > Hello Rafael, > > About param3d() and param3d1(): > In 3 days, it will be the 10th birthday of this report: > http://bugzilla.scilab.org/6155 > Shall we make a present to other users? :) A new merged and improved version of param3d() and param3d1() pages is commited and is proposed there in PDF: http://bugzilla.scilab.org/attachment.cgi?id=4621 Please tell me about any unclear statement that could be still improved. I hope that this will ease further works with 3D curves. Regards Samuel PS1: new examples scripts are also proposed: former param3d and param3d1 examples (equal): new param3d proposed example new param3d1 example proposed (1D mesh plot): PS2 : Beside being somewhat duplicates, the current pages have various issues: https://help.scilab.org/docs/6.0.0/en_US/param3d.html https://help.scilab.org/docs/6.0.0/en_US/param3d1.html * properties of curves are claimed to be some surface_properties * the point of view is claimed to be a polyline property (instead of an axes one) * etc. Quite misleading, indeed... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 4358 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 9657 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 22239 bytes Desc: not available URL: From paul.carrico at free.fr Fri Feb 2 08:59:40 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 02 Feb 2018 08:59:40 +0100 Subject: [Scilab-users] OpenFEM Message-ID: <47b5f82b8da4bbf7526e79913f32d694@free.fr> Dear All, OpenFEM project seems to be dead ; the links do not work anymore (http://www.openfem.net/ and https://support.sdtools.com/gf/project/openfem). For my culture, does somebody has the latest release in its archives? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Fri Feb 2 10:28:59 2018 From: herozigle at gmail.com (Hermes) Date: Fri, 2 Feb 2018 02:28:59 -0700 (MST) Subject: [Scilab-users] 'ode' returns constant values for the variables In-Reply-To: <1516711720466-0.post@n3.nabble.com> References: <1516711720466-0.post@n3.nabble.com> Message-ID: <1517563739128-0.post@n3.nabble.com> "Stiffness occurs when some components of the solution decay much more rapidly than others." *Stretched energy function Sys(2)=sin(x0.*x1).*sin(exp(x0.*x1)* function Sys=F(x) Sys=[]; x0=x(1);x1=x(2); Sys(1)=x1*x1+x0*x0-8; Sys(2)=sin(x0.*x1).*sin(exp(x0.*x1)); endfunction function Sys=Mp(v,xx) [Sys]=F(v(1:2))-v(3)*F(xx); endfunction function Sys=NF(v) Sys=[]; [Sys]=numderivative(list(Mp,ics),v); endfunction function D=ODEs(ZZ) A=ZZ(:,1:2);b=ZZ(:,$); A1=A;A1(:,1)=b; A2=A;A2(:,2)=b; D=-det(A);//main determinant d(1)=det(A1) ; d(2)=det(A2); d(3)=D; [D]=-d; endfunction ics=[2.784;-0.5]; v0=[ics;1]; function [dxdt]=odes(t,x) [dxdt]=ODEs(NF(x)); endfunction N=200; smin=0.0; smax=15; h=0.000001; step=smax/N; t=smin:step:smax; t0=0; atol=h; LL= ode("stiff",v0,t0,t,atol,odes) disp(timer(),"execution time:"); clf(); subplot(1,2,1); a=get("current_axes")//get the handle of the newly created axes a.axes_visible="on"; // makes the axes visible a.font_size=3; //set the tics label font size a.x_location="middle"; //set the x axis position plot(t,LL(1,1:$),"-cya",t,LL(2,1:$),"-g",t,LL(3,1:$),"-r") subplot(1,2,2); s= LL(3,:); ym= s(1:$-1).*s(2:$); z= find(ym <= 0); t0 = t(z) - s(z).*(t(z+1)-t(z))./(s(z+1)-s(z)); y01 = interpln([t;LL(1,:)],t0); y02 = interpln([t;LL(2,:)],t0); param3d(LL(1,:), LL(2,:), 0 * LL(1,:), alpha=35, theta=45); // circle in the xy plane e = gce(); e.foreground =17; param3d(LL(1,:), LL(2,:), LL(3,:), alpha=35, theta=45) // parametric function in 3d-space param3d(y01, y02, 0*y01, alpha=35, theta=45); // zero-crossings e = gce(); e.line_mode = "off"; e.mark_mode = "on" e.mark_style = 3; e.mark_foreground =5 ; Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jrafaelbguerra at hotmail.com Sat Feb 3 12:41:41 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 3 Feb 2018 04:41:41 -0700 (MST) Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: <1517476501391-0.post@n3.nabble.com> References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> <1517476501391-0.post@n3.nabble.com> Message-ID: <1517658101140-0.post@n3.nabble.com> Hello, Heinz's interesting problem allows testing the Scilab limits and to learn more about Scilab code optimization for very large datasets. In the figure here below the execution times are plotted for the efficient single loop code provided by Wozai and the modified vectorized code provided further below. The execution times seem to increase with N^2 or worse... which does not look very good. Maybe faster algorithms exist but lower level languages seem definitely required for very large number of points. Thanks Stephane for the example in C. Scilab 6.0.0 complains about arrays with more than 2147483647 elements and memory allocation problems are observed in Win7 32GB laptop when doing computations with smaller matrices, far from that limit. A dummy example: --> n=4e4; A = ones(n,1)*ones(1,n) + ones(n,1)*ones(1,n); Can not allocate 12800.00 MB memory. However, >21GB of RAM are available. Are these matrix size constraints going to be lifted in future Scilab 6 releases? // START OF CODE (Scilab 6) clear; n= 30000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1,'def'); costheta = 1 - 2*grand(n,1,'def'); radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi), radsintheta.*sin(phi), radius.*costheta]; Xs = sum(X.*X,'c'); XX = Xs.*.ones(n,1)' + ones(n,1).*.Xs'; // faster than using transpose XX = XX - 2*X*X'; XX(1:n+1:$) = %nan; // remove diagonal 0's MinDist1 = min(XX,'r').^0.5; //min taken along rows is faster clear Xs XX; //END OF CODE Thanks and regards, Rafael -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From heinznabielek at me.com Sat Feb 3 15:57:54 2018 From: heinznabielek at me.com (Heinz) Date: Sat, 03 Feb 2018 15:57:54 +0100 Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: <1517658101140-0.post@n3.nabble.com> References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> <1517476501391-0.post@n3.nabble.com> <1517658101140-0.post@n3.nabble.com> Message-ID: <000e01d39cff$60be15a0$223a40e0$@me.com> Nearest neighbour search of n points requires n.(n+1)/2 comparisons, therefore execution times proportional to n^2. Heinz Same as number of matches between n soccer teams........ -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 03 February 2018 12:42 To: users at lists.scilab.org Subject: Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome Hello, Heinz's interesting problem allows testing the Scilab limits and to learn more about Scilab code optimization for very large datasets. In the figure here below the execution times are plotted for the efficient single loop code provided by Wozai and the modified vectorized code provided further below. The execution times seem to increase with N^2 or worse... which does not look very good. Maybe faster algorithms exist but lower level languages seem definitely required for very large number of points. Thanks Stephane for the example in C. Scilab 6.0.0 complains about arrays with more than 2147483647 elements and memory allocation problems are observed in Win7 32GB laptop when doing computations with smaller matrices, far from that limit. A dummy example: --> n=4e4; A = ones(n,1)*ones(1,n) + ones(n,1)*ones(1,n); Can not allocate 12800.00 MB memory. However, >21GB of RAM are available. Are these matrix size constraints going to be lifted in future Scilab 6 releases? // START OF CODE (Scilab 6) clear; n= 30000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1,'def'); costheta = 1 - 2*grand(n,1,'def'); radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi), radsintheta.*sin(phi), radius.*costheta]; Xs = sum(X.*X,'c'); XX = Xs.*.ones(n,1)' + ones(n,1).*.Xs'; // faster than using transpose XX = XX - 2*X*X'; XX(1:n+1:$) = %nan; // remove diagonal 0's MinDist1 = min(XX,'r').^0.5; //min taken along rows is faster clear Xs XX; //END OF CODE Thanks and regards, Rafael -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From heinznabielek at me.com Sat Feb 3 17:06:27 2018 From: heinznabielek at me.com (Heinz Nabielek) Date: Sat, 03 Feb 2018 17:06:27 +0100 Subject: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome In-Reply-To: <000e01d39cff$60be15a0$223a40e0$@me.com> References: <70916bc8-6ff1-938c-46c9-0682d62eed02@utc.fr> <8362a075-981c-226a-9a96-51a110c7d87f@utc.fr> <016f01d39adc$b7672830$26357890$@me.com> <1517476501391-0.post@n3.nabble.com> <1517658101140-0.post@n3.nabble.com> <000e01d39cff$60be15a0$223a40e0$@me.com> Message-ID: SORRY: n.(n-1)/2 but stll n^2 Sent from Heinz Nabielek > On 03 Feb 2018, at 15:57, Heinz wrote: > > Nearest neighbour search of n points requires n.(n+1)/2 comparisons, > therefore execution times proportional to n^2. > Heinz > > Same as number of matches between n soccer teams........ > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael > Guerra > Sent: 03 February 2018 12:42 > To: users at lists.scilab.org > Subject: Re: [Scilab-users] {EXT} need a more efficient and faster code: > suggestions welcome > > Hello, > > Heinz's interesting problem allows testing the Scilab limits and to learn > more about Scilab code optimization for very large datasets. > In the figure here below the execution times are plotted for the efficient > single loop code provided by Wozai and the modified vectorized code provided > further below. > png> > > The execution times seem to increase with N^2 or worse... which does not > look very good. Maybe faster algorithms exist but lower level languages seem > definitely required for very large number of points. Thanks Stephane for the > example in C. > > Scilab 6.0.0 complains about arrays with more than 2147483647 elements and > memory allocation problems are observed in Win7 32GB laptop when doing > computations with smaller matrices, far from that limit. A dummy example: > --> n=4e4; A = ones(n,1)*ones(1,n) + ones(n,1)*ones(1,n); > Can not allocate 12800.00 MB memory. > However, >21GB of RAM are available. > Are these matrix size constraints going to be lifted in future Scilab 6 > releases? > > > // START OF CODE (Scilab 6) > clear; > n= 30000; > r=23; > radius = r*grand(n,1,'def').^(1/3); > phi = 2*%pi*grand(n,1,'def'); > costheta = 1 - 2*grand(n,1,'def'); > radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi), > radsintheta.*sin(phi), radius.*costheta]; Xs = sum(X.*X,'c'); XX = > Xs.*.ones(n,1)' + ones(n,1).*.Xs'; // faster than using transpose XX = XX - > 2*X*X'; > XX(1:n+1:$) = %nan; // remove diagonal 0's > MinDist1 = min(XX,'r').^0.5; //min taken along rows is faster > clear Xs XX; > //END OF CODE > > Thanks and regards, > Rafael > > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. > html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From cfuttrup at gmail.com Sat Feb 3 18:35:59 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 3 Feb 2018 18:35:59 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: Hi Rafael I've tried to make this code work for me, but ... (code): // START OF CODE frequencies = [201 811 3183 12862 25113]; // Hz; angles = [0 30 60 90]; // deg m_norm = [ 1.0 0.9945629 0.9643959 0.8756431; 1.0 0.9914442 1.0244046 0.9414654; 1.0 0.9910279 0.9670986 0.8932413; 1.0 0.9339808 0.8378147 0.7067978; 1.0 0.8985782 0.7536068 0.5074218]; [nf na] = size(m_norm) A = (angles .*. ones(nf,1))'; F = (frequencies .*. ones(na,1)); M = 20*log10(m_norm'); // dB scale clf(); sp = gca(); param3d1(F,A,M,alpha=50,theta=-110,flag=[2,4]); e = gce(); for i=1:nf; e.children(i).foreground = color('dark blue'); e.children(i).thickness = 2; end xgrid; sp.log_flags = "lnn"; // x-axis log scale (frequencies) sp.cube_scaling = "on"; xlabel("Frequency (Hz)"); ylabel("Angle (deg)"); zlabel("Mag (dB)"); // END OF CODE The above code draws lines in the Y-axis direction. What I intended to do is to draw lines in the frequency-direction (x-axis direction). I see how e.children(i) manipulates the curves, but have failed to find a way to change this (= the direction of the lines). I looked also at the examle that Samuel gave with the plot3d3, where he draws a globe and can turn lines on/off in the two directions ... I also looked at the latest proposal by Samuel to updated param3d(1) and the lines in his last examples are drawn along the x-axis direction. Is the only solution to plot angle on x-axis and frequencies on y-axis? (the rotate the cube differently) ... (it's weird how one can stare at this for days without really understanding what goes on) Best regards, Claus On Sun, Jan 28, 2018 at 4:39 PM, Rafael Guerra wrote: > Claus, > > You can also try param3d1, which needs to be called only once: > > // START OF CODE > frequencies = [201 811 3183 12862 25113]; // Hz; > angles = [0 30 60 90]; // deg > m_norm = [ 1.0 0.9945629 0.9643959 0.8756431; > 1.0 0.9914442 1.0244046 0.9414654; > 1.0 0.9910279 0.9670986 0.8932413; > 1.0 0.9339808 0.8378147 0.7067978; > 1.0 0.8985782 0.7536068 0.5074218]; > [nf na] = size(m_norm) > A = (angles .*. ones(nf,1))'; > F = (frequencies .*. ones(na,1)); > M = 20*log10(m_norm'); // dB scale > clf(); > sp = gca(); > param3d1(F,A,M,alpha=50,theta=-110,flag=[2,4]); > e = gce(); > for i=1:nf; > e.children(i).foreground = color('dark blue'); > e.children(i).thickness = 2; > end > xgrid; > sp.log_flags = "lnn"; // x-axis log scale (frequencies) > sp.cube_scaling = "on"; > xlabel("Frequency (Hz)"); > ylabel("Angle (deg)"); > zlabel("Mag (dB)"); > // END OF CODE > > Regards, > Rafael > _______________________________________________ > 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 Feb 3 19:19:20 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 3 Feb 2018 18:19:20 +0000 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: Hi Claus, On the basis of early code provided, I think you just need to transpose the matrix inputs to param3d1 in order to have the parametric curves plotted at fixed angles along <> frequencies. See below: // START OF CODE frequencies = [201 811 3183 12862 25113]; // Hz; row vector angles = [0 30 60 90]; // off-axis angles, degrees m_norm = [ 1.0 0.9945629 0.9643959 0.8756431; 1.0 0.9914442 1.0244046 0.9414654; 1.0 0.9910279 0.9670986 0.8932413; 1.0 0.9339808 0.8378147 0.7067978; 1.0 0.8985782 0.7536068 0.5074218]; [nf na] = size(m_norm) A = (angles .*. ones(nf,1))'; F = (frequencies .*. ones(na,1)); M = 20*log10(m_norm'); // dB scale clf(); sp = gca(); // Get current axis handle param3d1(F',A',M',alpha=50,theta=-110,flag=[2,4]); e = gce() //the handle on the 3D polyline e.children.foreground = color('dark blue'); e.children.thickness = 2; xgrid; sp.log_flags = "lnn"; // x-axis log scale (frequencies) sp.cube_scaling = "on"; xlabel("Frequency (Hz)"); ylabel("Angle (deg)"); zlabel("Mag (dB)"); // END OF CODE Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 3 20:02:04 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Feb 2018 20:02:04 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: Le 03/02/2018 ? 18:35, Claus Futtrup a ?crit : > .../... > The above code draws lines in the Y-axis direction. What I intended to > do is to draw lines in the frequency-direction (x-axis direction). I > see how e.children(i) manipulates the curves, but have failed to find > a way to change this (= the direction of the lines). I looked also at > the examle that Samuel gave with the plot3d3, where he draws a globe > and can turn lines on/off in the two directions ... I also looked at > the latest proposal by Samuel to updated param3d(1) and the lines in > his last examples are drawn along the x-axis direction. > What I intended to do is to draw lines in the frequency-direction > (x-axis direction). Claus, There are 2 distinct things: a) the law you want to plot: Z(f)_theta or Z(theta)_f b) the direction along which you want to plot the chosen law at the varying parameter The only thing that you can't choose is that param3d1() plots each line from a particular triplet of X,Y,Z *columns*, for all columns. Then, you can do what you want. Here is again the param3d1() example, but in an asymetric version (a long and a short sides): [X, Y] = ndgrid(-11:0.5:9, -5:0.5:6); // x is the long side, y the short one clf subplot(1,2,1) R = sqrt(X.*X + Y.*Y) + %eps; Z = sin(R)./R; param3d1(X, Y, Z, 150, 85, flag=[2,4]) subplot(1,2,2) R = sqrt(X'.*X' + Y'.*Y') + %eps; Z = sin(R)./R; param3d1(X', Y', Z, 150, 85, flag=[2,4]) Since this looks not trivial, i will change the example in the page to better illustrate both cases. Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ljacfihbihjmgjfn.png Type: image/png Size: 14485 bytes Desc: not available URL: From cfuttrup at gmail.com Sat Feb 3 20:09:39 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 3 Feb 2018 20:09:39 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: Hi Rafael ... "bingo" ... this is what I couldn't see. :-) Best regards, Claus On Sat, Feb 3, 2018 at 7:19 PM, Rafael Guerra wrote: > Hi Claus, > > > > On the basis of early code provided, I think you just need to transpose > the matrix inputs to param3d1 in order to have the parametric curves > plotted at fixed angles along <> frequencies. See below: > > > > > > // START OF CODE > > frequencies = [201 811 3183 12862 25113]; // Hz; row vector > > angles = [0 30 60 90]; // off-axis angles, degrees > > m_norm = [ 1.0 0.9945629 0.9643959 0.8756431; > > 1.0 0.9914442 1.0244046 0.9414654; > > 1.0 0.9910279 0.9670986 0.8932413; > > 1.0 0.9339808 0.8378147 0.7067978; > > 1.0 0.8985782 0.7536068 0.5074218]; > > [nf na] = size(m_norm) > > A = (angles .*. ones(nf,1))'; > > F = (frequencies .*. ones(na,1)); > > M = 20*log10(m_norm'); // dB scale > > clf(); > > sp = gca(); // Get current axis handle > > param3d1(F',A',M',alpha=50,theta=-110,flag=[2,4]); > > e = gce() //the handle on the 3D polyline > > e.children.foreground = color('dark blue'); > > e.children.thickness = 2; > > xgrid; > > sp.log_flags = "lnn"; // x-axis log scale (frequencies) > > sp.cube_scaling = "on"; > > xlabel("Frequency (Hz)"); > > ylabel("Angle (deg)"); > > zlabel("Mag (dB)"); > > // END OF CODE > > > > > > Regards, > > Rafael > > _______________________________________________ > 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 Feb 3 20:11:30 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 3 Feb 2018 20:11:30 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: Hi Samuel Thank you. This thing with the direction of the lines is difficult to "discover" by accident. :-) ... And thanks for the good help for param3d(1). I hope Scilab will adopt it. Best regards, Claus On Sat, Feb 3, 2018 at 8:02 PM, Samuel Gougeon wrote: > Le 03/02/2018 ? 18:35, Claus Futtrup a ?crit : > > .../... > The above code draws lines in the Y-axis direction. What I intended to do > is to draw lines in the frequency-direction (x-axis direction). I see how > e.children(i) manipulates the curves, but have failed to find a way to > change this (= the direction of the lines). I looked also at the examle > that Samuel gave with the plot3d3, where he draws a globe and can turn > lines on/off in the two directions ... I also looked at the latest proposal > by Samuel to updated param3d(1) and the lines in his last examples are > drawn along the x-axis direction. > > > What I intended to do is to draw lines in the frequency-direction (x-axis > direction). > > Claus, > > There are 2 distinct things: > a) the law you want to plot: Z(f)_theta or Z(theta)_f > b) the direction along which you want to plot the chosen law at the > varying parameter > > The only thing that you can't choose is that param3d1() plots each line > from a particular triplet of X,Y,Z *columns*, > for all columns. > Then, you can do what you want. > Here is again the param3d1() example, but in an asymetric version (a long > and a short sides): > > [X, Y] = ndgrid(-11:0.5:9, -5:0.5:6); // x is the long side, y the short one > clfsubplot(1,2,1)R = sqrt(X.*X + Y.*Y) + %eps;Z = sin(R)./R;param3d1(X, Y, Z, 150, 85, flag=[2,4]) > subplot(1,2,2)R = sqrt(X'.*X' + Y'.*Y') + %eps;Z = sin(R)./R;param3d1(X', Y', Z, 150, 85, flag=[2,4]) > > > > Since this looks not trivial, i will change the example in the page to > better illustrate both cases. > > Cheers > Samuel > > > _______________________________________________ > 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: ljacfihbihjmgjfn.png Type: image/png Size: 14485 bytes Desc: not available URL: From sgougeon at free.fr Sat Feb 3 21:27:27 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Feb 2018 21:27:27 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: Message-ID: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> Le 03/02/2018 ? 20:11, Claus Futtrup a ?crit : > Hi Samuel > > Thank you. This thing with the direction of the lines is difficult to > "discover" by accident. :-) > > ... And thanks for the good help for param3d(1). I hope Scilab will > adopt it. When parts of curves are behind each others, there is a mess due to the perspective. Here is a way to avoid this (i will also add it in the page): [Xo, Yo] = ndgrid(-10:0.5:10); R = sqrt(Xo.*Xo + Yo.*Yo) + %eps; Zo = sin(R)./R; clf // Simple plot with messed curves in the perspective subplot(1, 3, 1) param3d1(Xo, Yo, Zo, 150, 85, flag=[2,4]) // With a curtain and filled curved (to avoid messed areas) subplot(1,3,2) nc = size(Xo,"c"); zmin = min(Zo); X = [Xo(1,:) ; Xo ; Xo($,:)]; Y = [Yo(1,:) ; Yo ; Yo($,:)]; Z = [zmin*ones(1,nc) ; Zo ; zmin*ones(1,nc)]; param3d1(X, Y, Z, 150, 85, flag=[2,4]) e = gce(); e.children.fill_mode = "on"; // Try to mask the curtain with %nan // =>unsuccessful due to the bug http://bugzilla.scilab.org/11803 subplot(1,3,3) X = [Xo([1 1],:) ; Xo ; Xo([$ $],:)]; Y = [Yo([1 1],:) ; Yo ; Yo([$ $],:)]; Z = [[zmin ; %nan]*ones(1,nc) ; Zo ; [%nan ; zmin]*ones(1,nc)]; param3d1(X, Y, Z, 150, 85, flag=[2,4]) e = gce(); e.children.fill_mode = "on"; -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ienkeelbbkjkgmal.png Type: image/png Size: 18027 bytes Desc: not available URL: From cfuttrup at gmail.com Sat Feb 3 22:51:17 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 3 Feb 2018 22:51:17 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> Message-ID: Hi Samuel You're ahead of my next questions there ... :-) ... it looks very nice. Best regards, Claus On Feb 3, 2018 21:28, "Samuel Gougeon" wrote: > Le 03/02/2018 ? 20:11, Claus Futtrup a ?crit : > > Hi Samuel > > Thank you. This thing with the direction of the lines is difficult to > "discover" by accident. :-) > > ... And thanks for the good help for param3d(1). I hope Scilab will adopt > it. > > > When parts of curves are behind each others, there is a mess due to the > perspective. > Here is a way to avoid this (i will also add it in the page): > > [Xo, Yo] = ndgrid(-10:0.5:10);R = sqrt(Xo.*Xo + Yo.*Yo) + %eps;Zo = sin(R)./R; > clf > // Simple plot with messed curves in the perspectivesubplot(1, 3, 1)param3d1(Xo, Yo, Zo, 150, 85, flag=[2,4]) > // With a curtain and filled curved (to avoid messed areas)subplot(1,3,2)nc = size(Xo,"c");zmin = min(Zo); > X = [Xo(1,:) ; Xo ; Xo($,:)];Y = [Yo(1,:) ; Yo ; Yo($,:)];Z = [zmin*ones(1,nc) ; Zo ; zmin*ones(1,nc)]; > param3d1(X, Y, Z, 150, 85, flag=[2,4])e = gce();e.children.fill_mode = "on"; > // Try to mask the curtain with %nan// => unsuccessful due to the bug http://bugzilla.scilab.org/11803subplot(1,3,3)X = [Xo([1 1],:) ; Xo ; Xo([$ $],:)];Y = [Yo([1 1],:) ; Yo ; Yo([$ $],:)];Z = [[zmin ; %nan]*ones(1,nc) ; Zo ; [%nan ; zmin]*ones(1,nc)]; > param3d1(X, Y, Z, 150, 85, flag=[2,4])e = gce();e.children.fill_mode = "on"; > > > _______________________________________________ > 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: ienkeelbbkjkgmal.png Type: image/png Size: 18027 bytes Desc: not available URL: From cfuttrup at gmail.com Sat Feb 3 23:39:14 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 3 Feb 2018 23:39:14 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> Message-ID: Hi Samuel To be able to execute your example (using Scilab 6.0.0, MS Win7) I had to provide ndgrid with two inputs: [Xo, Yo] = ndgrid(-10:0.5:10,-10:0.5:10); Cheers, Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From ponions37 at gmail.com Sat Feb 3 23:47:09 2018 From: ponions37 at gmail.com (Paul Onions) Date: Sat, 3 Feb 2018 22:47:09 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working Message-ID: The scilab-6.0.0 binary release was working on my xubuntu 17.4 system, then I upgraded to 17.10 and since then I see the following error message when I run the 'scilab' command:- Cannot find this look and feel: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform Segmentation fault (core dumped) I see this issue has also been reported on bugzilla ( http://bugzilla.scilab.org/show_bug.cgi?id=15145 ) but I don't see any workaround there, even though it seems to be marked as resolved. Anyone know anything more? Confused, Paul From adelson.oliveira at gmail.com Sun Feb 4 01:57:27 2018 From: adelson.oliveira at gmail.com (Adelson) Date: Sat, 3 Feb 2018 22:57:27 -0200 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: There seems to be little or no interest at all on this issue by scilab developers. The only reply/workaround was provided by Clement David in the post you mention on Bugzilla, but it did not worked for me. If you can count on a distro's builded version? of scilab 6.0, you have the option to install it. Em 03-02-2018 20:47, Paul Onions escreveu: > The scilab-6.0.0 binary release was working on my xubuntu 17.4 system, > then I upgraded to 17.10 and since then I see the following error > message when I run the 'scilab' command:- > > Cannot find this look and feel: > [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not > supported on this platform > Segmentation fault (core dumped) > > I see this issue has also been reported on bugzilla ( > http://bugzilla.scilab.org/show_bug.cgi?id=15145 ) but I don't see any > workaround there, even though it seems to be marked as resolved. > > Anyone know anything more? Confused, > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From ponions37 at gmail.com Sun Feb 4 14:35:19 2018 From: ponions37 at gmail.com (Paul Onions) Date: Sun, 4 Feb 2018 13:35:19 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: On 4 February 2018 at 00:57, Adelson wrote: > The only reply/workaround was provided by Clement David in the post you > mention on Bugzilla, but it did not worked for me. I tried changing the thirdparty/java link to point to my system java and/or moving the lib/thirdparty/libz* files as suggested in the bugzilla discussion but got exactly the same results as reported by adhefe (is that you?). I also tried completely uninstalling all system java packages and so just relying on the scilab-6.0.0 tarfile java but the error message remains as I reported initially. Reinstalling the system java didn't change anything either (which BTW is 8u151-b12-0ubuntu0.17.10.2). > If you can count on a distro's builded version of scilab 6.0, you have the > option to install it. Unfortunately Ubuntu 17.10 still seems to be on Scilab 5.5.2. I tried compiling the latest source from git but get stuck during ./configure with something else I don't understand:- configure: error: ARPACK library found, but seems not to work properly. Please make sure you are using arpack-ng Not sure if this is a known problem, haven't had chance to go into it yet. Paul From sgougeon at free.fr Sun Feb 4 19:47:40 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 4 Feb 2018 19:47:40 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> Message-ID: <108d0d7c-0603-9a29-4d27-ec905320f433@free.fr> Hi Claus, Indeed, ndgrid(x) standing for ndgrid(x,x) was not yet available in the official 6.0.0 release, while i am using the 6.0.1. It has been implemented in the meantime. Sorry for this misleading situation. Cheers Samuel Le 03/02/2018 ? 23:39, Claus Futtrup a ?crit : > Hi Samuel > > To be able to execute your example (using Scilab 6.0.0, MS Win7) I had > to provide ndgrid with two inputs: > [Xo, Yo] = ndgrid(-10:0.5:10,-10:0.5:10); > > Cheers, > Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 5 10:20:03 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 5 Feb 2018 10:20:03 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: References: <9a940d75-ca9b-f4ba-5fca-b8bbb92ed06c@free.fr> Message-ID: <2cff083e-562a-a2b3-3cae-66e54106a59a@free.fr> Le 28/01/2018 ? 17:24, Rafael Guerra a ?crit : > Absolutely, the two param3d functions should be merged. This wish is now reported there: http://bugzilla.scilab.org/15400 Please do not hesitate to add comments in bugzilla if needed. Regards Samuel From jean-philippe.grivet at wanadoo.fr Mon Feb 5 12:28:45 2018 From: jean-philippe.grivet at wanadoo.fr (Jean-Philippe Grivet) Date: Mon, 5 Feb 2018 12:28:45 +0100 Subject: [Scilab-users] Stacked 2D plot in 3D In-Reply-To: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> Message-ID: <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> Hi Claus, I tried to post an example of a stacked 2D plot but my post was held up due to a too large graphic file (postscript). I have now converted this plot to png format. Here it is. Ypu may still be interested in using the xpoly function, despite seeing Samuel's beautiful examples with param3d. Cheers Jean-Philippe Le 03/02/2018 ? 21:27, Samuel Gougeon a ?crit?: > Le 03/02/2018 ? 20:11, Claus Futtrup a ?crit?: >> Hi Samuel >> >> Thank you. This thing with the direction of the lines is difficult to >> "discover" by accident. :-) >> >> ... And thanks for the good help for param3d(1). I hope Scilab will >> adopt it. > > When parts of curves are behind each others, there is a mess due to > the perspective. > Here is a way to avoid this (i will also add it in the page): > > [Xo, Yo] = ndgrid(-10:0.5:10); > R = sqrt(Xo.*Xo + Yo.*Yo) + %eps; > Zo = sin(R)./R; > > clf > > // Simple plot with messed curves in the perspective > subplot(1, 3, 1) > param3d1(Xo, Yo, Zo, 150, 85, flag=[2,4]) > > // With a curtain and filled curved (to avoid messed areas) > subplot(1,3,2) > nc = size(Xo,"c"); > zmin = min(Zo); > > X = [Xo(1,:) ; Xo ; Xo($,:)]; > Y = [Yo(1,:) ; Yo ; Yo($,:)]; > Z = [zmin*ones(1,nc) ; Zo ; zmin*ones(1,nc)]; > > param3d1(X, Y, Z, 150, 85, flag=[2,4]) > e = gce(); > e.children.fill_mode = "on"; > > // Try to mask the curtain with %nan > // =>unsuccessful due to the bug http://bugzilla.scilab.org/11803 > subplot(1,3,3) > X = [Xo([1 1],:) ; Xo ; Xo([$ $],:)]; > Y = [Yo([1 1],:) ; Yo ; Yo([$ $],:)]; > Z = [[zmin ; %nan]*ones(1,nc) ; Zo ; [%nan ; zmin]*ones(1,nc)]; > > param3d1(X, Y, Z, 150, 85, flag=[2,4]) > e = gce(); > e.children.fill_mode = "on"; > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le logiciel antivirus Avast. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ienkeelbbkjkgmal.png Type: image/png Size: 18027 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ech.png Type: image/png Size: 7582 bytes Desc: not available URL: From n.strelkov at gmail.com Mon Feb 5 12:36:05 2018 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Mon, 5 Feb 2018 14:36:05 +0300 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Dear Paul! Seems to be incompatibility between upstream (Scilab.org) and GNU/Linux distributions. You can install scilab 6.0.0-1 packages from 18.04 LTS to your 17.10 as described on AskUbuntu . -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,maintainer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* 2018-02-04 16:35 GMT+03:00 Paul Onions : > On 4 February 2018 at 00:57, Adelson wrote: > > The only reply/workaround was provided by Clement David in the post you > > mention on Bugzilla, but it did not worked for me. > > I tried changing the thirdparty/java link to point to my system java > and/or moving the lib/thirdparty/libz* files as suggested in the > bugzilla discussion but got exactly the same results as reported by > adhefe (is that you?). I also tried completely uninstalling all > system java packages and so just relying on the scilab-6.0.0 tarfile > java but the error message remains as I reported initially. > Reinstalling the system java didn't change anything either (which BTW > is 8u151-b12-0ubuntu0.17.10.2). > > > If you can count on a distro's builded version of scilab 6.0, you have > the > > option to install it. > > Unfortunately Ubuntu 17.10 still seems to be on Scilab 5.5.2. I tried > compiling the latest source from git but get stuck during ./configure > with something else I don't understand:- > > configure: error: ARPACK library found, but seems not to work > properly. Please make sure you are using arpack-ng > > Not sure if this is a known problem, haven't had chance to go into it yet. > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Mon Feb 5 12:44:06 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Mon, 5 Feb 2018 12:44:06 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> Message-ID: <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> Hi, I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. I would like to know if there is a fix to this situation. Any help would be greatly appreciated. Thanks to all developers and contributors. Philippe DEROGIS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Mon Feb 5 13:02:36 2018 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Mon, 5 Feb 2018 13:02:36 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> Message-ID: <4adad480-dbf6-77fa-a43e-c048ee1382c3@laas.fr> Le 05/02/2018 ? 12:44, Philippe D?rogis a ?crit?: > Hi, > > ? I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 > doesn?t start anymore. I tried to download the nighty build here : > http://www.scilab.org/en/development/nightly_builds/branch60?and I get > the 404 error :?The requested URL > /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not > found on this server. > I would like to know if there is a fix to this situation. Hello, It's the same with the master branch: http://downloadarea.scilab.org/download/2017-08-02/scilab-master-1501146348-x86_64.dmg gives a 404. That's the same for the windows link: http://downloadarea.scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe Antoine > > Any help would be greatly appreciated. > > Thanks to all developers and contributors. > > Philippe DEROGIS. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 5 13:13:33 2018 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 5 Feb 2018 13:13:33 +0100 (CET) Subject: [Scilab-users] macOs High Sierra In-Reply-To: <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> Message-ID: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ Regards Samuel Gougeon ----- Mail original ----- De: "Philippe D?rogis" ?: "Users mailing list for Scilab" Envoy?: Lundi 5 F?vrier 2018 12:44:06 Objet: [Scilab-users] macOs High Sierra Hi, I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. I would like to know if there is a fix to this situation. Any help would be greatly appreciated. Thanks to all developers and contributors. Philippe DEROGIS. From jrafaelbguerra at hotmail.com Mon Feb 5 15:28:17 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 5 Feb 2018 14:28:17 +0000 Subject: [Scilab-users] Leveraging Octave in Scilab Message-ID: Dear Scilaber's, Will Octave be leveraged in Scilab as announced: http://www.scilab.org/community/news/scilab-3Octave ? In particular will some useful Octave functions such as bsxfun, which are compatible with Matlab, become available in Scilab? Thanks and regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From derogis.philippe at gmail.com Mon Feb 5 15:55:12 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Mon, 5 Feb 2018 15:55:12 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hi Samuel, Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It tried to run the stuff in the bin directory but it did not make anything interesting. Is there something that i missed ? Thank you Philippe. > Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : > > Hello, > > You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ > > Regards > Samuel Gougeon > > ----- Mail original ----- > De: "Philippe D?rogis" > ?: "Users mailing list for Scilab" > Envoy?: Lundi 5 F?vrier 2018 12:44:06 > Objet: [Scilab-users] macOs High Sierra > > Hi, > > I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. > I would like to know if there is a fix to this situation. > > Any help would be greatly appreciated. > > Thanks to all developers and contributors. > > Philippe DEROGIS. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Mon Feb 5 16:25:36 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 5 Feb 2018 16:25:36 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> Hello, If you already have scilab-6.0.0 : -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1 -right-click and "Show package content" -navigate to Contents/MacOS folder -drag and drop the files of the scilab-branch-6.0-macosx/ folder into the abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes when prompted for overwriting files) It worked for me. S. Le 05/02/2018 ? 15:55, Philippe D?rogis a ?crit?: > Hi Samuel, > > Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It tried to run the stuff in the bin directory but it did not make anything interesting. Is there something that i missed ? > > Thank you > > Philippe. > > >> Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : >> >> Hello, >> >> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ >> >> Regards >> Samuel Gougeon >> >> ----- Mail original ----- >> De: "Philippe D?rogis" >> ?: "Users mailing list for Scilab" >> Envoy?: Lundi 5 F?vrier 2018 12:44:06 >> Objet: [Scilab-users] macOs High Sierra >> >> Hi, >> >> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. >> I would like to know if there is a fix to this situation. >> >> Any help would be greatly appreciated. >> >> Thanks to all developers and contributors. >> >> Philippe DEROGIS. >> >> _______________________________________________ >> 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 -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From stephane.mottelet at utc.fr Mon Feb 5 16:31:45 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 5 Feb 2018 16:31:45 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> Message-ID: A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app to scilab-6.0.1 app : cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml scilab-6.0.1.app/Contents/MacOS/share/scilab/etc S. Le 05/02/2018 ? 16:25, St?phane Mottelet a ?crit?: > Hello, > > If you already have scilab-6.0.0 : > > -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1 > -right-click and "Show package content" > -navigate to Contents/MacOS folder > -drag and drop the files of the scilab-branch-6.0-macosx/ folder into > the abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes > when prompted for overwriting files) > > It worked for me. > > S. > > Le 05/02/2018 ? 15:55, Philippe D?rogis a ?crit?: >> ????Hi Samuel, >> >> ?? Thank you for your response, I dowloaded >> scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It >> tried to run the stuff in the bin directory but it did not make >> anything interesting. Is there something that i missed ? >> >> Thank you >> >> Philippe. >> >> >>> Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : >>> >>> Hello, >>> >>> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ >>> >>> Regards >>> Samuel Gougeon >>> >>> ----- Mail original ----- >>> De: "Philippe D?rogis" >>> ?: "Users mailing list for Scilab" >>> Envoy?: Lundi 5 F?vrier 2018 12:44:06 >>> Objet: [Scilab-users] macOs High Sierra >>> >>> Hi, >>> >>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 >>> doesn?t start anymore. I tried to download the nighty build here : >>> http://www.scilab.org/en/development/nightly_builds/branch60 and I >>> get the 404 error : The requested URL >>> /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not >>> found on this server. >>> I would like to know if there is a fix to this situation. >>> >>> Any help would be greatly appreciated. >>> >>> Thanks to all developers and contributors. >>> >>> Philippe DEROGIS. >>> >>> _______________________________________________ >>> 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 > > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From derogis.philippe at gmail.com Mon Feb 5 20:17:15 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Mon, 5 Feb 2018 20:17:15 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> Message-ID: <520A1272-7369-4105-BF6D-7BB8548F5477@gmail.com> Thank you Stephane, I will try this tomorrow. Philippe. > Le 5 f?vr. 2018 ? 16:31, St?phane Mottelet a ?crit : > > A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app to scilab-6.0.1 app : > > cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml scilab-6.0.1.app/Contents/MacOS/share/scilab/etc > > S. > > Le 05/02/2018 ? 16:25, St?phane Mottelet a ?crit : >> Hello, >> >> If you already have scilab-6.0.0 : >> >> -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1 >> -right-click and "Show package content" >> -navigate to Contents/MacOS folder >> -drag and drop the files of the scilab-branch-6.0-macosx/ folder into the abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes when prompted for overwriting files) >> >> It worked for me. >> >> S. >> >> Le 05/02/2018 ? 15:55, Philippe D?rogis a ?crit : >>> Hi Samuel, >>> >>> Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It tried to run the stuff in the bin directory but it did not make anything interesting. Is there something that i missed ? >>> >>> Thank you >>> >>> Philippe. >>> >>> >>>> Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : >>>> >>>> Hello, >>>> >>>> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ >>>> >>>> Regards >>>> Samuel Gougeon >>>> >>>> ----- Mail original ----- >>>> De: "Philippe D?rogis" >>>> ?: "Users mailing list for Scilab" >>>> Envoy?: Lundi 5 F?vrier 2018 12:44:06 >>>> Objet: [Scilab-users] macOs High Sierra >>>> >>>> Hi, >>>> >>>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. >>>> I would like to know if there is a fix to this situation. >>>> >>>> Any help would be greatly appreciated. >>>> >>>> Thanks to all developers and contributors. >>>> >>>> Philippe DEROGIS. >>>> >>>> _______________________________________________ >>>> 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 >> >> > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From ponions37 at gmail.com Mon Feb 5 22:03:41 2018 From: ponions37 at gmail.com (Paul Onions) Date: Mon, 5 Feb 2018 21:03:41 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: On 5 February 2018 at 11:36, Nikolay Strelkov wrote: > You can install scilab 6.0.0-1 packages from 18.04 LTS to your 17.10 as > described on AskUbuntu. Hi Nikolay, Thanks for the suggestion. I followed the instructions you linked to, and succeeded in installing 6.0.0 from bionic, but unfortunately I still get the same problem on startup:- Cannot find this look and feel: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform Segmentation fault (core dumped) I also tried 'scilab -nwni' to verify it was 6.0.0 I was running:- Scilab 6.0.0 (Feb 14 2017, 12:49:55) --> quit So now I'm not sure what to try :-( Paul From ponions37 at gmail.com Mon Feb 5 22:28:50 2018 From: ponions37 at gmail.com (Paul Onions) Date: Mon, 5 Feb 2018 21:28:50 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Oops, forget that last message!!! I had accidentally left the old tarfile binary in my path and that's why I was getting the same results (should have guessed that from the -nwni timestamp, grrr). Anyway, after removing it I can now start Scilab 6.0.0 in Ubuntu 17.10 :-) Thanks Nikolay! Paul From pablo_f_7 at hotmail.com Tue Feb 6 14:25:18 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Tue, 6 Feb 2018 13:25:18 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Hi, I also followed the steps in my Ubuntu 17.10 but it just keeps installing scilab 5.5.2. Am i doing something wrong? El lun, 5 de feb 2018 a las 6:28 PM, Paul Onions escribi?: Oops, forget that last message!!! I had accidentally left the old tarfile binary in my path and that's why I was getting the same results (should have guessed that from the -nwni timestamp, grrr). Anyway, after removing it I can now start Scilab 6.0.0 in Ubuntu 17.10 :-) Thanks Nikolay! Paul _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucien.povy at free.fr Tue Feb 6 14:27:17 2018 From: lucien.povy at free.fr (Povy Lucien) Date: Tue, 6 Feb 2018 14:27:17 +0100 Subject: [Scilab-users] Atoms : "This account is not active" Message-ID: Hello I have a account for "atoms", when i want to log on this account we have a return : "This account is not active". I cannot change the password, i cannot delete this account. What can i do ? regards Lucien Povy From ponions37 at gmail.com Tue Feb 6 14:54:11 2018 From: ponions37 at gmail.com (Paul Onions) Date: Tue, 6 Feb 2018 13:54:11 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: On 6 February 2018 at 13:25, Pablo Fonovich wrote: > Hi, > I also followed the steps in my Ubuntu 17.10 but it just keeps installing > scilab 5.5.2. Am i doing something wrong? I seem to remember doing a "sudo apt update" after step 2, before step 3. I also made sure I had removed the 5.5.2 release before trying this, just to make sure things didn't get confused. Though as shown in my last message I still managed to confuse myself a little bit by not removing the tarfile 6.0.0 release I had lying around :-) Hope this helps, Paul From derogis.philippe at gmail.com Tue Feb 6 15:17:44 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Tue, 6 Feb 2018 15:17:44 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <520A1272-7369-4105-BF6D-7BB8548F5477@gmail.com> References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> <520A1272-7369-4105-BF6D-7BB8548F5477@gmail.com> Message-ID: <46D4133D-E9D9-49E8-8B2A-8304D7210999@gmail.com> Hi, Stephane tried your solution but it doesn?t work for me. I am stuck? I use to work a lot with scilab during the last twenty years, it is a great tool. I have a huge library of sci file that I built over those years and use them every days for my work (Acoustics and Signal Processing). But I find that unfortunately this tool is less and less reliable and become more a toy for geeks that love to spend hours on forums trying making things working on their computer. I am very disappointed that the owner (scilab enterprises) of a great application like scilab did not succeeded to maintain a working version of the application. On my side I will continue to check this mailing list daily in order to try to have things back up and running on my computer. Sorry to have to say that. Philippe Derogis > Le 5 f?vr. 2018 ? 20:17, Philippe D?rogis a ?crit : > > Thank you Stephane, > > I will try this tomorrow. > > Philippe. > > >> Le 5 f?vr. 2018 ? 16:31, St?phane Mottelet a ?crit : >> >> A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app to scilab-6.0.1 app : >> >> cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml scilab-6.0.1.app/Contents/MacOS/share/scilab/etc >> >> S. >> >> Le 05/02/2018 ? 16:25, St?phane Mottelet a ?crit : >>> Hello, >>> >>> If you already have scilab-6.0.0 : >>> >>> -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1 >>> -right-click and "Show package content" >>> -navigate to Contents/MacOS folder >>> -drag and drop the files of the scilab-branch-6.0-macosx/ folder into the abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes when prompted for overwriting files) >>> >>> It worked for me. >>> >>> S. >>> >>> Le 05/02/2018 ? 15:55, Philippe D?rogis a ?crit : >>>> Hi Samuel, >>>> >>>> Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It tried to run the stuff in the bin directory but it did not make anything interesting. Is there something that i missed ? >>>> >>>> Thank you >>>> >>>> Philippe. >>>> >>>> >>>>> Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : >>>>> >>>>> Hello, >>>>> >>>>> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ >>>>> >>>>> Regards >>>>> Samuel Gougeon >>>>> >>>>> ----- Mail original ----- >>>>> De: "Philippe D?rogis" >>>>> ?: "Users mailing list for Scilab" >>>>> Envoy?: Lundi 5 F?vrier 2018 12:44:06 >>>>> Objet: [Scilab-users] macOs High Sierra >>>>> >>>>> Hi, >>>>> >>>>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. >>>>> I would like to know if there is a fix to this situation. >>>>> >>>>> Any help would be greatly appreciated. >>>>> >>>>> Thanks to all developers and contributors. >>>>> >>>>> Philippe DEROGIS. >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >> >> -- >> St?phane Mottelet >> Ing?nieur de recherche >> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable >> D?partement G?nie des Proc?d?s Industriels >> Sorbonne Universit?s - Universit? de Technologie de Compi?gne >> CS 60319, 60203 Compi?gne cedex >> Tel : +33(0)344234688 >> http://www.utc.fr/~mottelet >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > From Clement.David at esi-group.com Tue Feb 6 17:28:03 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 16:28:03 +0000 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <46D4133D-E9D9-49E8-8B2A-8304D7210999@gmail.com> References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> <520A1272-7369-4105-BF6D-7BB8548F5477@gmail.com> <46D4133D-E9D9-49E8-8B2A-8304D7210999@gmail.com> Message-ID: <1517934481.2145.24.camel@esi-group.com> Hello Philippe, Not really a technical point, but about your comment on : > I am very disappointed that the owner (scilab enterprises) of a great application like scilab did > not succeeded to maintain a working version of the application. As you may probably know, free software is a hard business and most of the Scilab team employees are currently providing support and services around the software for customers. The Windows and Linux builds (from the CI on build.scilab.org) are used daily by the team and are improving from commits to commits and, thanks to the contributors, we also validate the MacOS X version from time to time. As you noted, your issue appeared after upgrading macOs; please take a look at the existing macOs Sierra issues and write comment there. If you can contribute, do not hesitate to build Scilab from source and help us getting a good quality MacOs support. Thanks, -- Cl?ment From Clement.David at esi-group.com Tue Feb 6 17:34:11 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 16:34:11 +0000 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <4adad480-dbf6-77fa-a43e-c048ee1382c3@laas.fr> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> <4adad480-dbf6-77fa-a43e-c048ee1382c3@laas.fr> Message-ID: <1517934848.2145.28.camel@esi-group.com> Hello Antoine, hello all, The www.scilab.org website have not been updated yet but the nightly builds might be removed in favor of the Continuous Integration builds [1]. The MacOs build [2] is a bit unreliable but might provide your the latest binaries. [1]: https://build.scilab.org/view/Scilab%20binaries/ [2]: https://build.scilab.org/view/Scilab%20binaries/job/scilab-6.0-macosx/ Thanks, -- Cl?ment Le lundi 05 f?vrier 2018 ? 13:02 +0100, amonmayr at laas.fr a ?crit : > Le 05/02/2018 ? 12:44, Philippe D?rogis a ?crit : > > Hi, > > > > I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I > > tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/br > > anch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0- > > 1500821730-x86_64.dmg was not found on this server. > > I would like to know if there is a fix to this situation. > Hello, > > It's the same with the master branch: http://downloadarea.scilab.org/download/2017-08-02/scilab-ma > ster-1501146348-x86_64.dmg gives a 404. That's the same for the windows link: http://downloadarea. > scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe > > Antoine > > Any help would be greatly appreciated. > > > > Thanks to all developers and contributors. > > > > Philippe DEROGIS. > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Tue Feb 6 17:35:48 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 16:35:48 +0000 Subject: [Scilab-users] Atoms : "This account is not active" In-Reply-To: References: Message-ID: <1517934946.2145.31.camel@esi-group.com> Hello Lucien, Your account might have been deactivated for some reason. I will take a look, what's your username ? -- Cl?ment Le mardi 06 f?vrier 2018 ? 14:27 +0100, Povy Lucien a ?crit : > Hello > > I have a account for "atoms", when i want to log on this account we have > a return : > > "This account is not active". I cannot change the password, i cannot > delete this account. > > What can i do ? > > regards > > > Lucien Povy > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Tue Feb 6 17:37:20 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 16:37:20 +0000 Subject: [Scilab-users] OpenFEM In-Reply-To: <47b5f82b8da4bbf7526e79913f32d694@free.fr> References: <47b5f82b8da4bbf7526e79913f32d694@free.fr> Message-ID: <1517935035.2145.32.camel@esi-group.com> Hello Paul, May be at INRIA GForge [1] ? [1]: https://gforge.inria.fr/projects/openfem/ -- Cl?ment Le vendredi 02 f?vrier 2018 ? 08:59 +0100, paul.carrico at free.fr a ?crit : > Dear All, > OpenFEM project seems to be dead ; the links do not work anymore (http://www.openfem.net/t/ and ht > tps://support.sdtools.com/gf/project/openfem). > For my culture, does somebody has the latest release in its archives? > Thanks > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rfabbri at gmail.com Tue Feb 6 17:48:28 2018 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Tue, 6 Feb 2018 14:48:28 -0200 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <1517934848.2145.28.camel@esi-group.com> References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> <4adad480-dbf6-77fa-a43e-c048ee1382c3@laas.fr> <1517934848.2145.28.camel@esi-group.com> Message-ID: Phillippe, I am not sure if you have seen this work around listed in another thread: Scilab 6.0.0 (the standar distribution, not the nightly build) worked for me with Mac OS high sierra 10.13.3 by removing these files: /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libz.* That may work for you while you wait for an updated Mac OS build to be contributed. -- Ricardo Fabbri Professor of Computer Engineering IPRJ/UERJ Nova Friburgo Graduate Program ? CAPES 6 rfabbri.github.io On Tue, Feb 6, 2018 at 2:34 PM, Cl?ment David wrote: > Hello Antoine, hello all, > > The www.scilab.org website have not been updated yet but the nightly builds might be removed in > favor of the Continuous Integration builds [1]. The MacOs build [2] is a bit unreliable but might > provide your the latest binaries. > > [1]: https://build.scilab.org/view/Scilab%20binaries/ > [2]: https://build.scilab.org/view/Scilab%20binaries/job/scilab-6.0-macosx/ > > Thanks, > > -- > Cl?ment > > Le lundi 05 f?vrier 2018 ? 13:02 +0100, amonmayr at laas.fr a ?crit : >> Le 05/02/2018 ? 12:44, Philippe D?rogis a ?crit : >> > Hi, >> > >> > I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I >> > tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/br >> > anch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0- >> > 1500821730-x86_64.dmg was not found on this server. >> > I would like to know if there is a fix to this situation. >> Hello, >> >> It's the same with the master branch: http://downloadarea.scilab.org/download/2017-08-02/scilab-ma >> ster-1501146348-x86_64.dmg gives a 404. That's the same for the windows link: http://downloadarea. >> scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe >> >> Antoine >> > Any help would be greatly appreciated. >> > >> > Thanks to all developers and contributors. >> > >> > Philippe DEROGIS. >> > >> > >> > >> > _______________________________________________ >> > 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 derogis.philippe at gmail.com Tue Feb 6 17:56:15 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Tue, 6 Feb 2018 17:56:15 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: <1517934481.2145.24.camel@esi-group.com> References: <1452322805.265677701.1517832813907.JavaMail.root@zimbra75-e12.priv.proxad.net> <784c8384-e0b3-eea0-1ef5-7d57fea7a321@utc.fr> <520A1272-7369-4105-BF6D-7BB8548F5477@gmail.com> <46D4133D-E9D9-49E8-8B2A-8304D7210999@gmail.com> <1517934481.2145.24.camel@esi-group.com> Message-ID: Hi Cl?ment, I totally understand your point and I am sure that all the employees are doing their best in order to have things working at their best. The thing that make me sade is that this great project initially from INRIA (I thing) do not succeed to become a profitable enterprise even it have the same potential as Matlab. I know that this have nothing to do with you guys but with the management of the company. Thank you, for the clues for trying to run the application, I will try to mess around with that? one more time I?m note a software engineer but simply a guy that need a scientific computation software. Philippe. > Le 6 f?vr. 2018 ? 17:28, Cl?ment David a ?crit : > > Hello Philippe, > > Not really a technical point, but about your comment on : > >> I am very disappointed that the owner (scilab enterprises) of a great application like scilab did >> not succeeded to maintain a working version of the application. > > As you may probably know, free software is a hard business and most of the Scilab team employees are > currently providing support and services around the software for customers. The Windows and Linux > builds (from the CI on build.scilab.org) are used daily by the team and are improving from commits > to commits and, thanks to the contributors, we also validate the MacOS X version from time to time. > > As you noted, your issue appeared after upgrading macOs; please take a look at the existing macOs > Sierra issues and write comment there. If you can contribute, do not hesitate to build Scilab > from source and help us getting a good quality MacOs support. > > Thanks, > > -- > Cl?ment > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Clement.David at esi-group.com Tue Feb 6 17:57:20 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 16:57:20 +0000 Subject: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux) In-Reply-To: References: <1512403509.17393.9.camel@esi-group.com> <267f8c33-b083-c6da-9746-762a120f445a@laas.fr> <1516566703.2749.0.camel@wescottdesign.com> Message-ID: <1517936237.2145.38.camel@esi-group.com> Hello Antoine, Tim, Yep, for such issue, having a cross posting between a scilab bug and the ubuntu bug is a good idea. This issue are sometimes possible to fix on Scilab side (but not relying for some GL features). -- Cl?ment Le mardi 23 janvier 2018 ? 13:51 +0100, amonmayr at laas.fr a ?crit : > Le 21/01/2018 ? 21:31, Tim Wescott a ?crit : > > There's a known bug, at least in Ubuntu's bug base. > > OK, do you have the link to the Ubuntu bug page? > It's maybe still a good idea to open a scilab bug report, pointing at > the Ubuntu bug page and listing the workaround, no? > > Antoine > > It appears to vary by hardware -- it doesn't work on this machine, but > > it works on at least one of my laptops. > > > > On Sat, 2018-01-20 at 08:45 +0100, antoine monmayrant wrote: > > > I just noticed that I did not fill a bug report for that. > > > I have 3 of my colleagues running Scilab on Ubuntu 17.04 /17.10 that > > > are > > > also affected. > > > Should I fill a bug report or it corresponds to a known one? > > > > > > > > > Antoine > > > > > > > > > Le 04/12/2017 ? 17:05, Cl?ment David a ?crit : > > > > Hi all, > > > > > > > > Nice catch Antoine ! From my understanding of the crash and > > > > depending on your graphic card, you > > > > could switch the actual GL implementation to a well supported one > > > > rather than relying on the latest > > > > GL. For example, using mesa on my Intel i965 system, I can tweak > > > > the used Profile through > > > > MESA_GL_VERSION_OVERRIDE and MESA_EXTENSION_OVERRIDE [https://www.m > > > > esa3d.org/envvars.html]. > > > > > > > > Regards, > > > > > > > > -- > > > > Cl?ment > > > > > > > > Le lundi 04 d?cembre 2017 ? 16:38 +0100, Antoine Monmayrant a ?crit > > > > : > > > > > Hi all, > > > > > > > > > > Answering my own post: it was a graphic driver issue, as usual. > > > > > I switch to another driver and now scilab starts, but all the > > > > > graphics windows are empty! > > > > > > > > > > Antoine > > > > > > > > > > > > > > > On Monday, December 04, 2017 16:12 CET, "Antoine Monmayrant" > > > > nmayr at laas.fr> wrote: > > > > > > > > > > > Hi everyone, > > > > > > > > > > > > It seems that some automatic update have broken scilab on my > > > > > > linux station (16.04.3 64bits). > > > > > > Any java related feature is broken and only scilab-cli is > > > > > > working. > > > > > > As any of you any idea on how to investigate this issue? > > > > > > > > > > > > Thanks in advance, > > > > > > > > > > > > Antoine > > > > > > > > > > > > PS: Here is the crash log: > > > > > > > > > > > > > > > > > > $ scilab > > > > > > Could not create a Scilab main class. Error: > > > > > > Exception in thread "main" java.lang.InternalError: XXX0 > > > > > > profile[1]: GL3bc -> profileImpl GL4bc > > > > > > !!! not mapped > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:20 > > > > > > 71) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLPro > > > > > > file.java:1954) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.jav > > > > > > a:1875) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLPro > > > > > > file.java:1842) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) > > > > > > at java.security.AccessController.doPrivileged(Native > > > > > > Method) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) > > > > > > at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722) > > > > > > at > > > > > > com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733) > > > > > > at org.scilab.modules.gui.SwingView.(Unknown > > > > > > Source) > > > > > > at > > > > > > org.scilab.modules.gui.SwingView.registerSwingView(Unknown > > > > > > Source) > > > > > > at org.scilab.modules.core.Scilab.(Unknown > > > > > > Source) > > > > > > > > > > > > Scilab cannot create Scilab Java Main-Class (we have not been > > > > > > able to find the main Scilab > > > > > > class. Check if the Scilab and thirdparty packages are > > > > > > available). > > > > > > > > > > > > _______________________________________________ > > > > > > 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 amonmayr at laas.fr Tue Feb 6 17:58:59 2018 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 06 Feb 2018 17:58:59 +0100 Subject: [Scilab-users] =?utf-8?b?Pz09P3V0Zi04P3E/ICBtYWNPcyBIaWdoIFNpZXJy?= =?utf-8?q?a?= In-Reply-To: <46D4133D-E9D9-49E8-8B2A-8304D7210999@gmail.com> Message-ID: <5f74-5a79df00-3f-3331c200@244553836> Hello Philippe, I agree with you that any regression when Scilab, your graphic drivers or your OS gets updated is a real pain in the beep. It's also clear that Scilab has some stability issues, in particular concerning its oversensitivity to graphic drivers?. However, from my (limited) experience, I think you blame the wrong guy here: I ditched macos ages ago just because most of my daily open source softs were buggy and unreliable (scilab, inkscape, gimp, vlc, ...). The situation is much better under linux or windows for most of them. I'm not judging here the merits of macos, I just noticed that too many of the softs I depended on were working way better somewhere else... As for the general trend for Scilab becoming less reliable over time, well I remember the good old times of Scilab 2.6. I don't miss it and think 6.0 is way more stable! :-) Cheers, Antoine ? I know that graphic drivers tend to be a big bundle of bugs, but when Scilab crashes because of graphic drivers issues, matlab, julia, and other java or openGL softs like paraview seem unaffected. Le Mardi, F?vrier 06, 2018 15:17 CET, Philippe D?rogis a ?crit: > Hi, > > Stephane tried your solution but it doesn?t work for me. I am stuck? > > I use to work a lot with scilab during the last twenty years, it is a great tool. I have a huge library of sci file that I built over those years and use them every days for my work (Acoustics and Signal Processing). But I find that unfortunately this tool is less and less reliable and become more a toy for geeks that love to spend hours on forums trying making things working on their computer. I am very disappointed that the owner (scilab enterprises) of a great application like scilab did not succeeded to maintain a working version of the application. > > On my side I will continue to check this mailing list daily in order to try to have things back up and running on my computer. > > Sorry to have to say that. > > Philippe Derogis > > > > Le 5 f?vr. 2018 ? 20:17, Philippe D?rogis a ?crit : > > > > Thank you Stephane, > > > > I will try this tomorrow. > > > > Philippe. > > > > > >> Le 5 f?vr. 2018 ? 16:31, St?phane Mottelet a ?crit : > >> > >> A last (but not least) detail, copy the classpath.xml from scilab-6.0.0 app to scilab-6.0.1 app : > >> > >> cp scilab-6.0.0.app/Contents/MacOS/share/scilab/etc/classpath.xml scilab-6.0.1.app/Contents/MacOS/share/scilab/etc > >> > >> S. > >> > >> Le 05/02/2018 ? 16:25, St?phane Mottelet a ?crit : > >>> Hello, > >>> > >>> If you already have scilab-6.0.0 : > >>> > >>> -duplicate the scilab-6.0.0 app and rename it scilab.6.0.1 > >>> -right-click and "Show package content" > >>> -navigate to Contents/MacOS folder > >>> -drag and drop the files of the scilab-branch-6.0-macosx/ folder into the abovementioned folder (scilab-6.0.1.app/Contents/MacOS (say yes when prompted for overwriting files) > >>> > >>> It worked for me. > >>> > >>> S. > >>> > >>> Le 05/02/2018 ? 15:55, Philippe D?rogis a ?crit : > >>>> Hi Samuel, > >>>> > >>>> Thank you for your response, I dowloaded scilab-branch-6.0-macosx.tar but I didn't find any .dmg in it. It tried to run the stuff in the bin directory but it did not make anything interesting. Is there something that i missed ? > >>>> > >>>> Thank you > >>>> > >>>> Philippe. > >>>> > >>>> > >>>>> Le 5 f?vr. 2018 ? 13:13, sgougeon at free.fr a ?crit : > >>>>> > >>>>> Hello, > >>>>> > >>>>> You may try there: https://build.scilab.org/job/scilab-6.0-macosx/ > >>>>> > >>>>> Regards > >>>>> Samuel Gougeon > >>>>> > >>>>> ----- Mail original ----- > >>>>> De: "Philippe D?rogis" > >>>>> ?: "Users mailing list for Scilab" > >>>>> Envoy?: Lundi 5 F?vrier 2018 12:44:06 > >>>>> Objet: [Scilab-users] macOs High Sierra > >>>>> > >>>>> Hi, > >>>>> > >>>>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/branch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0-1500821730-x86_64.dmg was not found on this server. > >>>>> I would like to know if there is a fix to this situation. > >>>>> > >>>>> Any help would be greatly appreciated. > >>>>> > >>>>> Thanks to all developers and contributors. > >>>>> > >>>>> Philippe DEROGIS. > >>>>> > >>>>> _______________________________________________ > >>>>> 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 > >>> > >>> > >> > >> -- > >> St?phane Mottelet > >> Ing?nieur de recherche > >> EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > >> D?partement G?nie des Proc?d?s Industriels > >> Sorbonne Universit?s - Universit? de Technologie de Compi?gne > >> CS 60319, 60203 Compi?gne cedex > >> Tel : +33(0)344234688 > >> http://www.utc.fr/~mottelet > >> > >> _______________________________________________ > >> users mailing list > >> users at lists.scilab.org > >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Clement.David at esi-group.com Tue Feb 6 18:13:30 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Tue, 6 Feb 2018 17:13:30 +0000 Subject: [Scilab-users] Dump the output of a function In-Reply-To: References: <1487002393.166958070.1516108320251.JavaMail.root@zimbra75-e12.priv.proxad.net> <1834a2f4-8cad-da2a-55c8-4a2496a56869@laas.fr> Message-ID: <1517937208.2145.47.camel@esi-group.com> Le mercredi 17 janvier 2018 ? 20:36 +0100, Samuel Gougeon a ?crit : > Le 17/01/2018 ? 20:26, Samuel Gougeon a ?crit : > > Le 17/01/2018 ? 18:16, antoine monmayrant a ?crit : > > > Hello all, > > > > > > > > > I might say something really stupid, but can't we define a special variable like %eps, %i, etc > > > to act as a black hole ? > > > Something like %null (like piping to /dev/null or a null pointer) or a better name > > > (%blackhole, %lostforever, %byebye, ;-) ). > > > The idea being that no memory is allocated when someone try to affect some value to it: > > > > > > [%null,%null,kb] = intersect(grand(1,10,"uin",0,9), grand(1,10,"uin",0,9)); > > > > A true black hole has even no name :) > > Otherwise, the shorter the better, and "_" would be nice after deprecating _() (*). > > > > Anyway, IMO this black hole feature has a very low priority compared to some other ones, like > > some big regressions (bug 13808 = 14881, sparse() with repeated indices, etc etc) or some very > > and longly expected ones like a varprot()... > > > > Samuel > > > > (*) it could be renamed something like _tr() (standing for translate). > > The number of occurrences of _() to be converted in the Scilab native code is very important, > > but the conversion might be automated (since the gettext() scanner has a reliable detection > > criterium, and only .sci, .sce, .tst and .dia.ref files are targeted > > sorry, that's wrong. Other files in C, C++ etc, and xml have _() occurences as well. > But it's possible to parse them with no issue, since the scanner does it. Exact the `_ = gettext` has been stolen from the C usage of gettext. In C the '_' is defined as a macro for gettext and is used for the same purpose: how to have the simplest identifier possible for some hidden purpose ? To me, Samuel proposition to deprecate "_" usage is really good; having "_" defined by default is weird as there is two usage for this symbol (think from Go/Python users and from C users). Thanks, -- Cl?ment From pablo_f_7 at hotmail.com Tue Feb 6 18:18:29 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Tue, 6 Feb 2018 17:18:29 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Thanks, I solved it updating too. Anyway, that version is the one with input command bugged. I wish i could use a nigthly build where that bug is fixed. Also, trying to download a nigthly build lead me to 404 http error. El mar, 6 de feb 2018 a las 10:54 AM, Paul Onions escribi?: On 6 February 2018 at 13:25, Pablo Fonovich > wrote: Hi, I also followed the steps in my Ubuntu 17.10 but it just keeps installing scilab 5.5.2. Am i doing something wrong? I seem to remember doing a "sudo apt update" after step 2, before step 3. I also made sure I had removed the 5.5.2 release before trying this, just to make sure things didn't get confused. Though as shown in my last message I still managed to confuse myself a little bit by not removing the tarfile 6.0.0 release I had lying around :-) Hope this helps, Paul _______________________________________________ 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 Tue Feb 6 18:47:35 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 06 Feb 2018 18:47:35 +0100 Subject: [Scilab-users] OpenFEM In-Reply-To: <1517935035.2145.32.camel@esi-group.com> References: <47b5f82b8da4bbf7526e79913f32d694@free.fr> <1517935035.2145.32.camel@esi-group.com> Message-ID: <1f5d4594fb9d3d8761d45cf703792be8@free.fr> Thanks Cl?ment I saw it, but I've been thinking that a more recent release may exist (in some personal archives?) Paul e 2018-02-06 17:37, Cl?ment David a ?crit : > Hello Paul, > > May be at INRIA GForge [1 [1]] ? > > [1]: https://gforge.inria.fr/projects/openfem/ > > -- > Cl?ment > > Le vendredi 02 f?vrier 2018 ? 08:59 +0100, paul.carrico at free.fr a ?crit : > >> Dear All, >> OpenFEM project seems to be dead ; the links do not work anymore (http://www.openfem.net/t/ and ht >> tps://support.sdtools.com/gf/project/openfem). >> For my culture, does somebody has the latest release in its archives? >> Thanks >> Paul >> _______________________________________________ >> 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://gforge.inria.fr/projects/openfem/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ilja-ilja1990 at mail.ru Wed Feb 7 11:04:48 2018 From: ilja-ilja1990 at mail.ru (=?UTF-8?B?0JjQu9GM0Y8g0JjQu9GM0Y8=?=) Date: Wed, 07 Feb 2018 13:04:48 +0300 Subject: [Scilab-users] =?utf-8?q?How_to_convert_=2Ewav_to_formula=3F?= Message-ID: <1517997888.476729308@f171.i.mail.ru> How to convert .wav to formula? In scilab I can write like: t=soundsec(0.5); s=[sin(2*%pi*440*t)]; savewave('foo.wav', s); and by this convert formula to .wav. But how can I convert .wav to formula? If I use analyze(loadwave('foo.wav')); I only got graphic? What to do? From derogis.philippe at gmail.com Wed Feb 7 12:49:58 2018 From: derogis.philippe at gmail.com (=?utf-8?Q?Philippe_D=C3=A9rogis?=) Date: Wed, 7 Feb 2018 12:49:58 +0100 Subject: [Scilab-users] macOs High Sierra In-Reply-To: References: <695ca3e5-21c3-6c4a-e07d-2d641da1df2f@free.fr> <5a497e88-303e-8d12-ff2c-2495d5cd187b@wanadoo.fr> <21FAB75A-A439-491F-A6DB-16C0B9AC312F@gmail.com> <4adad480-dbf6-77fa-a43e-c048ee1382c3@laas.fr> <1517934848.2145.28.camel@esi-group.com> Message-ID: <1170C982-FEB6-4C46-92CB-9C31C879968B@gmail.com> Hi Ricardo, I tried your fix, then scilab was able to show up a window saying to install an old java package. I installed it and TADA? it worked. Thank to all of you guys for your help. Philippe DEROGIS > Le 6 f?vr. 2018 ? 17:48, Ricardo Fabbri a ?crit : > > Phillippe, > > I am not sure if you have seen this work around listed in another thread: > > Scilab 6.0.0 (the standar distribution, not the nightly build) worked > for me with Mac OS high sierra 10.13.3 by > removing these files: > > /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib > /Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/libz.* > > That may work for you while you wait for an updated Mac OS build to be > contributed. > > -- > Ricardo Fabbri > Professor of Computer Engineering > IPRJ/UERJ Nova Friburgo Graduate Program ? CAPES 6 > rfabbri.github.io > > > On Tue, Feb 6, 2018 at 2:34 PM, Cl?ment David > wrote: >> Hello Antoine, hello all, >> >> The www.scilab.org website have not been updated yet but the nightly builds might be removed in >> favor of the Continuous Integration builds [1]. The MacOs build [2] is a bit unreliable but might >> provide your the latest binaries. >> >> [1]: https://build.scilab.org/view/Scilab%20binaries/ >> [2]: https://build.scilab.org/view/Scilab%20binaries/job/scilab-6.0-macosx/ >> >> Thanks, >> >> -- >> Cl?ment >> >> Le lundi 05 f?vrier 2018 ? 13:02 +0100, amonmayr at laas.fr a ?crit : >>> Le 05/02/2018 ? 12:44, Philippe D?rogis a ?crit : >>>> Hi, >>>> >>>> I upgraded my mac to High Sierra 10.13.3 last week and Scilab 6.0.0 doesn?t start anymore. I >>>> tried to download the nighty build here : http://www.scilab.org/en/development/nightly_builds/br >>>> anch60 and I get the 404 error : The requested URL /download/2017-08-02/scilab-branch-6.0- >>>> 1500821730-x86_64.dmg was not found on this server. >>>> I would like to know if there is a fix to this situation. >>> Hello, >>> >>> It's the same with the master branch: http://downloadarea.scilab.org/download/2017-08-02/scilab-ma >>> ster-1501146348-x86_64.dmg gives a 404. That's the same for the windows link: http://downloadarea. >>> scilab.org/download/2017-07-28/scilab-master-1501146348_x64.exe >>> >>> Antoine >>>> Any help would be greatly appreciated. >>>> >>>> Thanks to all developers and contributors. >>>> >>>> Philippe DEROGIS. >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 stephane.mottelet at utc.fr Wed Feb 7 18:03:18 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 7 Feb 2018 18:03:18 +0100 Subject: [Scilab-users] Scilab dmg images for OSX Sierra (macOS 10.12) and High Sierra (macOS 10.13) Message-ID: Hello all, As you probably now, running Scilab on recent versions of OSX is not straightforward and althought the fixes are not that complicated, some users are reluctant to use the command line. The aim of this modest page http://www.utc.fr/~mottelet/Darwin/ is to provide OSX applications were the interfering bundled libraries have been removed. The only remaining thing to do is to install the legacy Java 6 runtime (https://support.apple.com/kb/DL1572). If something goes wrong please post a message on the mailing-list. S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From jrafaelbguerra at hotmail.com Wed Feb 7 22:40:45 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 7 Feb 2018 21:40:45 +0000 Subject: [Scilab-users] How to convert .wav to formula? In-Reply-To: <1517997888.476729308@f171.i.mail.ru> References: <1517997888.476729308@f171.i.mail.ru> Message-ID: Hi, Q: "I only got graphic? What to do?" A: look at Fourier synthesis of periodic waveforms. For the toy example provided of a monochromatic wave, the simple code here below finds the approximate solution. More general waveform case, needs much more programming effort. // START OF CODE clear; clf; fs = 22050; // default sampling rate (Hz) t=soundsec(0.5,fs); s=[sin(2*%pi*440*t)]; savewave('foo.wav', s); y = loadwave('foo.wav'); y = [y zeros(y)]; // make #samples even & increase spectral resolution Yf = abs(fftshift(fft(y))); N = length(Yf); Yf = Yf(N/2+1:$); f = linspace(0,fs/2-fs/N,N/2); [y0 k] = max(Yf); plot(f,Yf,'blue',f(k),Yf(k),'*red') xlabel("Frequency [Hz]") printf("sinusoid frequency = %.1f Hz",f(k)) // END OF CODE Regards, Rafael From heinznabielek at me.com Wed Feb 7 23:13:04 2018 From: heinznabielek at me.com (Heinz) Date: Wed, 07 Feb 2018 23:13:04 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Message-ID: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> Friends: I need to compute the spatial correlation coefficient of my x,y,z data in 3d. Question 1: Is the MATLAB corrcoef function doing the job? Question 2: How do I get corrcoef running in SciLab or C? Heinz From jrafaelbguerra at hotmail.com Thu Feb 8 18:55:11 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 8 Feb 2018 17:55:11 +0000 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> Message-ID: Hi Heinz, Scilab computes the covariance matrix and from which the correlation matrix can be obtained using formula in https://en.wikipedia.org/wiki/Covariance_matrix Check implementation below: //START OF CODE // https://en.wikipedia.org/wiki/Covariance_matrix function Y=corrmatrix(M) C = cov(M); // covariance matrix D = sqrt(diag(C)); // standard deviations D = inv(diag(D)); Y = D*C*D; // correlation matrix endfunction M = grand(9,3,"def") M(:,2) = M(:,1)*2; Y = corrmatrix(M); disp(M,"M") disp(Y,"Y") // END OF CODE Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Feb 8 19:18:35 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 8 Feb 2018 19:18:35 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> Message-ID: <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> Hello Heinz, Le 07/02/2018 ? 23:13, Heinz a ?crit : > Friends: > > I need to compute the spatial correlation coefficient of my x,y,z data in 3d. > > Question 1: Is the MATLAB corrcoef function doing the job? > Question 2: How do I get corrcoef running in SciLab or C? Do you mean the autocorrelation of a data(x,y,z) sampled distribution? Or the intercorrelation of data(x,y,z) with a mask(x,y,z) function sampled on the same grid? Or anything else? Samuel From stephane.mottelet at utc.fr Thu Feb 8 20:02:48 2018 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Thu, 8 Feb 2018 20:02:48 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> Message-ID: <9E94ED86-AB6C-4935-B0ED-B5C265532B99@utc.fr> Yes, a precise math formula would disambiguate the denomination. S. > Le 8 f?vr. 2018 ? 19:18, Samuel Gougeon a ?crit : > > Hello Heinz, > >> Le 07/02/2018 ? 23:13, Heinz a ?crit : >> Friends: >> >> I need to compute the spatial correlation coefficient of my x,y,z data in 3d. >> >> Question 1: Is the MATLAB corrcoef function doing the job? >> Question 2: How do I get corrcoef running in SciLab or C? > > Do you mean the autocorrelation of a data(x,y,z) sampled distribution? > Or the intercorrelation of data(x,y,z) with a mask(x,y,z) function sampled on the same grid? > Or anything else? > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From heinznabielek at me.com Thu Feb 8 20:13:26 2018 From: heinznabielek at me.com (Heinz) Date: Thu, 08 Feb 2018 20:13:26 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> Message-ID: <003a01d3a110$e7141cc0$b53c5640$@me.com> Thanks. While not giving me ONE number, the analysis shows that my random generated xyz positions are uncorrelated as they should. Can one estimate the error bars for the xy xz and yz correlations? Now, I can use this approach for actual measurements in real objects. Heinz //START function Y=corrmatrix(M) C = cov(M); // covariance matrix D = sqrt(diag(C)); // standard deviations D = inv(diag(D)); Y = D*C*D; // correlation matrix endfunction n=10000; r=23; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1, 'def'); costheta = 1 - 2*grand(n,1, 'def'); radsintheta = radius.*sin(acos(costheta)); X = [radsintheta.*cos(phi),radsintheta.*sin(phi), radius.*costheta]; Y = corrmatrix(X) 1. 0.0058073 0.0078778 0.0058073 1. 0.0014375 0.0078778 0.0014375 1. //END From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 08 February 2018 18:55 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Hi Heinz, Scilab computes the covariance matrix and from which the correlation matrix can be obtained using formula in https://en.wikipedia.org/wiki/Covariance_matrix Check implementation below: //START OF CODE // https://en.wikipedia.org/wiki/Covariance_matrix function Y=corrmatrix(M) C = cov(M); // covariance matrix D = sqrt(diag(C)); // standard deviations D = inv(diag(D)); Y = D*C*D; // correlation matrix endfunction M = grand(9,3,"def") M(:,2) = M(:,1)*2; Y = corrmatrix(M); disp(M,"M") disp(Y,"Y") // END OF CODE Regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Thu Feb 8 20:16:29 2018 From: heinznabielek at me.com (Heinz) Date: Thu, 08 Feb 2018 20:16:29 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> Message-ID: <004701d3a111$547c8900$fd759b00$@me.com> Sorry, I am lost. I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random. The concept of a mask does not come up at all... Best greetings Heinz What do you suggest should be used here? -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: 08 February 2018 19:19 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Hello Heinz, Le 07/02/2018 ? 23:13, Heinz a ?crit : > Friends: > > I need to compute the spatial correlation coefficient of my x,y,z data in 3d. > > Question 1: Is the MATLAB corrcoef function doing the job? > Question 2: How do I get corrcoef running in SciLab or C? Do you mean the autocorrelation of a data(x,y,z) sampled distribution? Or the intercorrelation of data(x,y,z) with a mask(x,y,z) function sampled on the same grid? Or anything else? Samuel From heinznabielek at me.com Thu Feb 8 22:38:35 2018 From: heinznabielek at me.com (Heinz) Date: Thu, 08 Feb 2018 22:38:35 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> Message-ID: <004d01d3a125$2e2a91c0$8a7fb540$@me.com> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 08 February 2018 18:55 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Hi Heinz, Scilab computes the covariance matrix and from which the correlation matrix can be obtained using formula in https://en.wikipedia.org/wiki/Covariance_matrix Check implementation below: //START OF CODE // https://en.wikipedia.org/wiki/Covariance_matrix function Y=corrmatrix(M) C = cov(M); // covariance matrix D = sqrt(diag(C)); // standard deviations D = inv(diag(D)); Y = D*C*D; // correlation matrix endfunction M = grand(9,3,"def") M(:,2) = M(:,1)*2; Y = corrmatrix(M); disp(M,"M") disp(Y,"Y") // END OF CODE For random generated xyz positions, I get the matrix below and this looks fine with me: 1.000 -0.009 -0.003 -0.009 1.000 -0.001 -0.003 -0.001 1.000 But this here is a manufactured object and every singly xyz-value is obtained from X-ray tomography https://www.dropbox.com/s/87osn38agn8jfzo/Measured%2016867%20data%20points%2 0in%203d.png?dl=0 and looks much more regular than the Monte-Carlo. However, the correlation analysis suggested here, gives much the same numbers. 1.000 -0.009 0.008 -0.009 1.000 -0.001 0.008 -0.001 1.000 Perhaps, I have asked the wrong question: -->what I need is one single figures that summarizes the spatial correlation. Heinz -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Feb 9 09:11:09 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 9 Feb 2018 09:11:09 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <004701d3a111$547c8900$fd759b00$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> Message-ID: <439c8961-5931-46f1-c7b0-714e9ec84de7@free.fr> Le 08/02/2018 ? 20:16, Heinz a ?crit : > Sorry, I am lost. > > I have 10,000 xyz data and want to know, if there is some regularity in them > or if they are more or less random. So you need and are speaking about the 3D autocorrelation of data(x,y,z). Usually we compute it through a 3D convolution, that is easy to compute through the FFT, noting that for an autocorrelation we just flip one of both data array along x,y, and z before computing its FFT and going on with the algorithm. Finally we use the inverse FFT to come back to the direct x,y,z space. You may find good references on the web about the keyword 3D autocorrelation. In scilab, you will mainly need fft(A,sign,dims,incr[,option] ) since xcorr(), conv() conv2() convol2d() .. work only in 1D or 2D (with too often duplicates to do the same thing, without "simple" extension to do more...) Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Feb 9 09:47:05 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 9 Feb 2018 09:47:05 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <004701d3a111$547c8900$fd759b00$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> Message-ID: Hello, There seems to be some statistical tests related to this, namely Moran?s or Mantel tests : https://stats.idre.ucla.edu/other/mult-pkg/faq/general/faq-how-can-i-detectaddress-spatial-autocorrelation-in-my-data/ http://www.petrkeil.com/?p=1050 hth S. Le 08/02/2018 ? 20:16, Heinz a ?crit : > Sorry, I am lost. > > I have 10,000 xyz data and want to know, if there is some regularity in them > or if they are more or less random. The concept of a mask does not come up > at all... > Best greetings > Heinz > > What do you suggest should be used here? > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel > Gougeon > Sent: 08 February 2018 19:19 > To: Users mailing list for Scilab > Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB > corrcoef function doing the job? > > Hello Heinz, > > Le 07/02/2018 ? 23:13, Heinz a ?crit : >> Friends: >> >> I need to compute the spatial correlation coefficient of my x,y,z data in > 3d. >> Question 1: Is the MATLAB corrcoef function doing the job? >> Question 2: How do I get corrcoef running in SciLab or C? > Do you mean the autocorrelation of a data(x,y,z) sampled distribution? > Or the intercorrelation of data(x,y,z) with a mask(x,y,z) function sampled > on the same grid? > Or anything else? > > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From jrafaelbguerra at hotmail.com Fri Feb 9 10:17:17 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 9 Feb 2018 09:17:17 +0000 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <004701d3a111$547c8900$fd759b00$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> Message-ID: Q: "I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random" A: look for tests of spatial randomness (https://en.wikipedia.org/wiki/Complete_spatial_randomness ) . If The experimental nearest neighbor distribution obtained previously can be compared to the expected Poisson distribution. From heinznabielek at me.com Fri Feb 9 19:43:35 2018 From: heinznabielek at me.com (Heinz) Date: Fri, 09 Feb 2018 19:43:35 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> Message-ID: <005101d3a1d5$e62f93a0$b28ebae0$@me.com> 1 The nearest neighbour distribution of N points in a 3d-Volume with radius R is given by W(r) = 1 - exp[ - N (r/r)^3] and this is a Weibull distribution and not a Poisson distribution. The WIKI article, while correct, is a typical case where high level statisticians are trying to make simple things look very complicated. 2 Comparing the experimental distribution with the above prediction is made complicated as the manufactured object has small hard spheres that push each other apart in the manufacturing process and the Weibull is modified anyway. 3 I am sill searching for a 3d spatial characterization coefficient that differentiates between purely random arrangements and gradual regular arrangements. Heinz -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 09 February 2018 10:17 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Q: "I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random" A: look for tests of spatial randomness (https://en.wikipedia.org/wiki/Complete_spatial_randomness ) . If The experimental nearest neighbor distribution obtained previously can be compared to the expected Poisson distribution. From jrafaelbguerra at hotmail.com Fri Feb 9 21:57:56 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 9 Feb 2018 20:57:56 +0000 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: <005101d3a1d5$e62f93a0$b28ebae0$@me.com> References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> <005101d3a1d5$e62f93a0$b28ebae0$@me.com> Message-ID: You may want to study this article: https://pdfs.semanticscholar.org/574f/8f7347a258f6431fb8316716ca51b9b7eacb.pdf it should give you a clue or two of what you may want to implement. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Heinz Sent: Friday, February 09, 2018 7:44 PM To: 'Users mailing list for Scilab' Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? 1 The nearest neighbour distribution of N points in a 3d-Volume with radius R is given by W(r) = 1 - exp[ - N (r/r)^3] and this is a Weibull distribution and not a Poisson distribution. The WIKI article, while correct, is a typical case where high level statisticians are trying to make simple things look very complicated. 2 Comparing the experimental distribution with the above prediction is made complicated as the manufactured object has small hard spheres that push each other apart in the manufacturing process and the Weibull is modified anyway. 3 I am sill searching for a 3d spatial characterization coefficient that differentiates between purely random arrangements and gradual regular arrangements. Heinz -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 09 February 2018 10:17 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Q: "I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random" A: look for tests of spatial randomness (https://en.wikipedia.org/wiki/Complete_spatial_randomness ) . If The experimental nearest neighbor distribution obtained previously can be compared to the expected Poisson distribution. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From heinznabielek at me.com Sat Feb 10 00:37:26 2018 From: heinznabielek at me.com (Heinz) Date: Sat, 10 Feb 2018 00:37:26 +0100 Subject: [Scilab-users] spatial correlation coefficient Message-ID: <006001d3a1fe$f2c617f0$d85247d0$@me.com> Looks interesting, but --uff-- difficult... Thanks the lot Heinz -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 09 February 2018 21:58 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? You may want to study this article: https://pdfs.semanticscholar.org/574f/8f7347a258f6431fb8316716ca51b9b7eacb.p df it should give you a clue or two of what you may want to implement. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Heinz Sent: Friday, February 09, 2018 7:44 PM To: 'Users mailing list for Scilab' Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? 1 The nearest neighbour distribution of N points in a 3d-Volume with radius R is given by W(r) = 1 - exp[ - N (r/r)^3] and this is a Weibull distribution and not a Poisson distribution. The WIKI article, while correct, is a typical case where high level statisticians are trying to make simple things look very complicated. 2 Comparing the experimental distribution with the above prediction is made complicated as the manufactured object has small hard spheres that push each other apart in the manufacturing process and the Weibull is modified anyway. 3 I am sill searching for a 3d spatial characterization coefficient that differentiates between purely random arrangements and gradual regular arrangements. Heinz -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael Guerra Sent: 09 February 2018 10:17 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Q: "I have 10,000 xyz data and want to know, if there is some regularity in them or if they are more or less random" A: look for tests of spatial randomness (https://en.wikipedia.org/wiki/Complete_spatial_randomness ) . If The experimental nearest neighbor distribution obtained previously can be compared to the expected Poisson distribution. _______________________________________________ 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 jrafaelbguerra at hotmail.com Mon Feb 12 21:03:55 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 12 Feb 2018 13:03:55 -0700 (MST) Subject: [Scilab-users] How to convert .wav to formula? In-Reply-To: References: <1517997888.476729308@f171.i.mail.ru> Message-ID: <1518465835053-0.post@n3.nabble.com> ?????????? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Mon Feb 12 21:30:11 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Feb 2018 21:30:11 +0100 Subject: [Scilab-users] implicit polynomial / implicitlist Message-ID: Dear ESI devs, In Scilab < 6, typeof(1:$) was "|size implicit"| In Scilab 6.0, typeof(1:$) has become "implicitlist" Why not. The issue is that the overloading code is still "ip" standing for "implicit polynomial", not"il". And in practical, this object is actually made of polynomial(s) So, in one hand, for the same object, we refer to lists. On the other one, we refer to polynomials. I don't know what was the motivation in renaming "|size implicit"| into "implicitlist". If it was to remove an inconsistency somewhere, it apparently adds another one elsewhere. So: why nottypeof(1:$,"overlaod")=="il" ? It may still be the time to make the change consistent... Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 12 21:36:48 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Feb 2018 21:36:48 +0100 Subject: [Scilab-users] implicit polynomial / implicitlist In-Reply-To: References: Message-ID: Le 12/02/2018 ? 21:30, Samuel Gougeon a ?crit : > > Dear ESI devs, > > In Scilab < 6, typeof(1:$) was "|size implicit"| > > In Scilab 6.0, typeof(1:$) has become "implicitlist" > > Why not. > The issue is that the overloading code is still "ip" standing for > "implicit polynomial", not"il". > And in practical, this object is actually made of polynomial(s) > > So, in one hand, for the same object, we refer to lists. On the other > one, we refer to polynomials. > I don't know what was the motivation in renaming "|size implicit"| > into "implicitlist". > If it was to remove an inconsistency somewhere, it apparently adds > another one elsewhere. > > So: why nottypeof(1:$,"overlaod")=="il" ? Actually, i think that "implicitlist" is right. "Size implicit" emphasized one usage (among other possible ones) : indexation. "implicit polynomial" points to the components of the object, more than the object itself. So this renaming is rather welcome and relevant. But now it would be even better to get a consistent overloading code. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Tue Feb 13 09:32:10 2018 From: heinznabielek at me.com (Heinz) Date: Tue, 13 Feb 2018 09:32:10 +0100 Subject: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? In-Reply-To: References: <000f01d3a060$dfb3bf40$9f1b3dc0$@me.com> <351eeb33-0dbc-835b-90b7-d3ae2914d8b6@free.fr> <004701d3a111$547c8900$fd759b00$@me.com> Message-ID: <004401d3a4a5$25af2230$710d6690$@me.com> Thanks for the many pointers. At this stage, although R is installed on my computer, I would hesitate learning R just to run the Nathan Mantel test. Can someone give me a helping hand in defining a spatial coordination index? Using - in the first place - the random xyz coordinates below that we had been using before for the nearest neighbour distribution which had worked out very well in accordance theoretical predictions. Apllication of covariance/correlance analysis turned out to be useless, because this investigates a search into linear dependencies of the x, y, z vectors and this is not of interest. Now, with the numbers generated below, the spatial coordination index looking for clusters and holes in 3d space should come out near zero. Somebody trying to run the numbers? For an xy projection, see < https://www.dropbox.com/s/0sv1ak9zwk5f8rv/16%2C867%20points%20in%203d%20spac e.pptx?dl=0>. Heinz // START OF CODE FOR RANDOM x, y, z NUMBER GENERATION n=16867; r=25046; radius = r*grand(n,1,'def').^(1/3); phi = 2*%pi*grand(n,1, 'def'); costheta = 1 - 2*grand(n,1, 'def'); radsintheta = radius.*sin(acos(costheta)); x=radsintheta.*cos(phi); y=radsintheta.*sin(phi); z=radius.*costheta; // END OF CODE -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of St?phane Mottelet Sent: 09 February 2018 09:47 To: Users mailing list for Scilab Subject: Re: [Scilab-users] spatial correlation coefficient: Is the MATLAB corrcoef function doing the job? Hello, There seems to be some statistical tests related to this, namely Moran?s or Mantel tests : https://stats.idre.ucla.edu/other/mult-pkg/faq/general/faq-how-can-i-detecta ddress-spatial-autocorrelation-in-my-data/ http://www.petrkeil.com/?p=1050 hth S. Le 08/02/2018 ? 20:16, Heinz a ?crit : > Sorry, I am lost. > > I have 10,000 xyz data and want to know, if there is some regularity > in them or if they are more or less random. The concept of a mask does > not come up at all... > Best greetings > Heinz > > What do you suggest should be used here? > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of > Samuel Gougeon > Sent: 08 February 2018 19:19 > To: Users mailing list for Scilab > Subject: Re: [Scilab-users] spatial correlation coefficient: Is the > MATLAB corrcoef function doing the job? > > Hello Heinz, > > Le 07/02/2018 ? 23:13, Heinz a ?crit : >> Friends: >> >> I need to compute the spatial correlation coefficient of my x,y,z >> data in > 3d. >> Question 1: Is the MATLAB corrcoef function doing the job? >> Question 2: How do I get corrcoef running in SciLab or C? > Do you mean the autocorrelation of a data(x,y,z) sampled distribution? > Or the intercorrelation of data(x,y,z) with a mask(x,y,z) function > sampled on the same grid? > Or anything else? > > 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 sgougeon at free.fr Tue Feb 13 16:42:11 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 13 Feb 2018 16:42:11 +0100 Subject: [Scilab-users] graphics .uid : usage (& display) Message-ID: <0fc4c02f-b09d-fa49-9d3e-7849d3f40a31@free.fr> Dear co-scilabers, I am wondering about the hidden "uid" property of all graphical objects : --> plot() --> gcf().uid ans = 581. --> gca().uid ans = 628. --> gce().uid ans = 675. It is a protected property, and it's OK: --> gca().uid=500 Unknown property: uid. *Question #1*: this property is not displayed. Is it on purpose? *Question #2*: What can we do with this property? In particular, can we call directly some java routines with it, and then: How (example)? I was digging around this uid, because i am searching for a robust -- and if possible built-in -- way to declare that a graphical component relies on another one. Examples : * a label of a contour line is "ascribed" to this line * a colorbar (that is an axes in its own) is related to a given other axes * etc. Of course, it is possible to use the .tag property of the "parent" object (the line, the colored axes,..), and register it in the .userdata property of the "child" (the label, the colorbar..). And may be i will finally do things in this way. But since there is this ".uid" that has the main advantage to be unique, with which we are sure that there was no id collision, i was wondering about it. From here to there, i was wondering about the robustness of these uid values when saving in a file a figure or a graphical component, and then reloading it 2 months later. It comes that .uid values ascribed to the reloaded objects are NOT the original ones. So, unfortunately, referring to uid to link objects is not robust... So, if anyone knows * something about questions #1 and #2 * how to avoid using the .tag to declare robust links between graphical objects Hope reading you. Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Wed Feb 14 10:22:13 2018 From: herozigle at gmail.com (Hermes) Date: Wed, 14 Feb 2018 02:22:13 -0700 (MST) Subject: [Scilab-users] How to convert .wav to formula? In-Reply-To: <1518465835053-0.post@n3.nabble.com> References: <1517997888.476729308@f171.i.mail.ru> <1518465835053-0.post@n3.nabble.com> Message-ID: <1518600133758-0.post@n3.nabble.com> another way to get the graph clear; [x,S,bits]=wavread("foo.wav") analyze(x); mclose('all'); How to use the variables of the weer function analyze:fmin, fmax, rate, points? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Wed Feb 14 10:35:25 2018 From: herozigle at gmail.com (Hermes) Date: Wed, 14 Feb 2018 02:35:25 -0700 (MST) Subject: [Scilab-users] How to convert .wav to formula? In-Reply-To: <1518465835053-0.post@n3.nabble.com> References: <1517997888.476729308@f171.i.mail.ru> <1518465835053-0.post@n3.nabble.com> Message-ID: <1518600925808-0.post@n3.nabble.com> another way to get the graph clear; [x,S,bits]=wavread("foo.wav") analyze(x); mclose('all'); How to use the variables of the function analyze:fmin, fmax, rate, points? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From perrichon.pierre at wanadoo.fr Wed Feb 14 12:36:10 2018 From: perrichon.pierre at wanadoo.fr (perrichon) Date: Wed, 14 Feb 2018 12:36:10 +0100 Subject: [Scilab-users] Shift indices In-Reply-To: References: <1510150051523-0.post@n3.nabble.com> Message-ID: Dear, this instruction is exactly the one I wanted It allows me on a PELTON 6 jet machine to get a rotating pilot injector Pierre. De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : jeudi 9 novembre 2017 00:31 ? : Users mailing list for Scilab Objet : Re: [Scilab-users] Shift indices Le 08/11/2017 ? 15:07, Richard llom a ?crit : Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. If you need to shift i = 1:n indices by any p -- not necessarily n/2 --, you may do si = modulo(i+p-1, n)+1 // with n = length(i); Example: i = 1:10, p = 2; si = modulo(i+p-1, length(i))+1 --> i = 1:10, p = 2; i = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. --> si = modulo(i+p-1, length(i))+1 si = 3. 4. 5. 6. 7. 8. 9. 10. 1. 2. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 14 13:40:26 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 Feb 2018 13:40:26 +0100 Subject: [Scilab-users] Curing scf() & figure() slowliness: a good target for Scilab 6.0.1 In-Reply-To: <1488196699.2002.3.camel@scilab-enterprises.com> References: <0b84b337-7106-a05e-66db-c728778cc762@free.fr> <1488196699.2002.3.camel@scilab-enterprises.com> Message-ID: <347859e0-0ead-f81d-1f89-ba9b541ec1ac@free.fr> Le 27/02/2017 ? 12:58, Cl?ment David a ?crit : > Hi Samuel, > > This is clearly a regression : there probably some synchronization issue (CPUs are not busy at all), > could you report a bug on it please ? Done here: http://bugzilla.scilab.org/15035 All regressions -- especially coming from Scilab 5.4.0 up to now, but even before -- would be excellent targets for the GSOC 2018. I have started making a list of them. I will put it on the Wiki. It is somewhat vain to add new features to Scilab if useful or even mandatory existing ones are slowly but surely getting eroded, sometimes in a blocking way. Samuel From sgougeon at free.fr Wed Feb 14 14:12:52 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 Feb 2018 14:12:52 +0100 Subject: [Scilab-users] A new smarter default grid style for Scilab 6.1.0 (SEP) Message-ID: <9db4d179-650e-6678-f3b5-2607cb1ff053@free.fr> Dear co-users, New smart lines styles #7 to #10 were defined 3-4 years ago: https://help.scilab.org/docs/6.0.0/fr_FR/polyline_properties_3.png However, the default grid_style == #3 has not been improved. Being aware that better styles are available, this makes me setting by hand the grid_style almost every time that i need it. Somewhat boring... I propose to change the default style to one of the new values #7 to #9. The full rational for this proposal is posted as bug http://bugzilla.scilab.org/15421 where a piece of code is available, to test and compare. The related screen shot is here: http://bugzilla.scilab.org/attachment.cgi?id=4637 Comments are welcome Best regards Samuel From fujimoto2005 at gmail.com Wed Feb 14 14:35:38 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 06:35:38 -0700 (MST) Subject: [Scilab-users] More rapid calculation Message-ID: <1518615338745-0.post@n3.nabble.com> I am using 6.00 for windows. I am doing a simulation using a random number matrix with a huge size. The size of the random matrix is 10 ^ 4 x 25000. I am using a PC equipped with 8 cores and 16 threads. It takes a considerable time to finish the simulation, but CPU utilization is as low as 10-20%. Is there any way to increase the CPU usage and finish the calculation sooner? The loop is not used. I am using matrix functions. I also considered parallel computing, but it is said that it can not be used on windows. Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed Feb 14 15:07:02 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 Feb 2018 15:07:02 +0100 Subject: [Scilab-users] More rapid calculation In-Reply-To: <1518615338745-0.post@n3.nabble.com> References: <1518615338745-0.post@n3.nabble.com> Message-ID: <680e5eea-1af1-31b6-83e9-73e696444779@free.fr> Le 14/02/2018 ? 14:35, fujimoto2005 a ?crit : > I am using 6.00 for windows. > I am doing a simulation using a random number matrix with a huge size. The > size of the random matrix is 10 ^ 4 x 25000. > I am using a PC equipped with 8 cores and 16 threads. > It takes a considerable time to finish the simulation, but CPU utilization > is as low as 10-20%. Is there any way to increase the CPU usage and finish > the calculation sooner? So may be it's a RAM issue. If you need a lot of intermediate memory and you don't have it (here you need 2GB per copy, if you are using decimal numbers), it usually goes to the disk space.. which is unbearably slow. My two cents.. Samuel From fujimoto2005 at gmail.com Wed Feb 14 17:00:59 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 09:00:59 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <680e5eea-1af1-31b6-83e9-73e696444779@free.fr> References: <1518615338745-0.post@n3.nabble.com> <680e5eea-1af1-31b6-83e9-73e696444779@free.fr> Message-ID: <1518624059753-0.post@n3.nabble.com> Dear Samuel Thanks for your reply. My PC is equipped with 64GB SDRAM. Isn't it enough? Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Wed Feb 14 18:00:59 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 14 Feb 2018 18:00:59 +0100 Subject: [Scilab-users] More rapid calculation In-Reply-To: <1518615338745-0.post@n3.nabble.com> References: <1518615338745-0.post@n3.nabble.com> Message-ID: <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> Hello, A priori, there is no reason why your calculation should use more than one CPU core, which explains why you see only 1/8=12,5% CPU use. S. Le 14/02/2018 ? 14:35, fujimoto2005 a ?crit : > I am using 6.00 for windows. > I am doing a simulation using a random number matrix with a huge size. The > size of the random matrix is 10 ^ 4 x 25000. > I am using a PC equipped with 8 cores and 16 threads. > It takes a considerable time to finish the simulation, but CPU utilization > is as low as 10-20%. Is there any way to increase the CPU usage and finish > the calculation sooner? > The loop is not used. I am using matrix functions. > I also considered parallel computing, but it is said that it can not be used > on windows. > > Best regards. > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From antoine.monmayrant at laas.fr Wed Feb 14 18:12:30 2018 From: antoine.monmayrant at laas.fr (antoine monmayrant) Date: Wed, 14 Feb 2018 18:12:30 +0100 Subject: [Scilab-users] More rapid calculation In-Reply-To: <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> Message-ID: <597abe98-6318-d47b-80b9-a7b176e517cd@laas.fr> Hello, If your problem is embarrassingly parallel (ie you run your simulations many times independently for different random matrices), you might speed up the overall simulation by running more than one instance of scilab in parallel. Antoine Le 14/02/2018 ? 18:00, St?phane Mottelet a ?crit?: > Hello, > > A priori, there is no reason why your calculation should use more than > one CPU core, which explains why you see only 1/8=12,5% CPU use. > > S. > > > Le 14/02/2018 ? 14:35, fujimoto2005 a ?crit : >> I am using 6.00 for windows. >> I am doing a simulation using a random number matrix with a huge >> size. The >> size of the random matrix is 10 ^ 4 x 25000. >> I am using a PC equipped with 8 cores and 16 threads. >> It takes a considerable time to finish the simulation, but CPU >> utilization >> is as low as 10-20%. Is there any way to increase the CPU usage and >> finish >> the calculation sooner? >> The loop is not used. I am using matrix functions. >> I also considered parallel computing, but it is said that it can not >> be used >> on windows. >> >> Best regards. >> >> >> >> -- >> Sent from: >> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From fujimoto2005 at gmail.com Wed Feb 14 19:07:04 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 11:07:04 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> Message-ID: <1518631624856-0.post@n3.nabble.com> Dear Mottellet But there is an explanation "If we use the Intel MKL on Windows, then Scilab use all the cores available on the processor. " https://wiki.scilab.org/Documentation/ParallelComputingInScilab So I expected there are some ways to increase the usage of cpu. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Wed Feb 14 19:15:00 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Wed, 14 Feb 2018 18:15:00 +0000 Subject: [Scilab-users] More rapid calculation In-Reply-To: <1518631624856-0.post@n3.nabble.com> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> Message-ID: <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> If your program does not take advantage of the MKL Intel library, it means that its CPU usage is not dominated by linear algebra stuff. If you don't tell us more we won't be able to help... S. Quoting fujimoto2005 : > Dear Mottellet > > But there is an explanation "If we use the Intel MKL on Windows, then Scilab > use all the cores available on the processor. " > https://wiki.scilab.org/Documentation/ParallelComputingInScilab > > So I expected there are some ways to increase the usage of cpu. > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 14 19:40:02 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 14 Feb 2018 19:40:02 +0100 Subject: [Scilab-users] More rapid calculation In-Reply-To: <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> Message-ID: Le 14/02/2018 ? 19:15, stephane.mottelet at utc.fr a ?crit : > > If your program does not take advantage of the MKL Intel library, it > means that its CPU usage is not dominated by linear algebra stuff. > I was actually wondering that the bootle neck is not the CPU. This is why i was thinking about the RAM. But with 64 GB, this means that more than <32 copies are simultaneously defined/reserved (internally and/or in the Scilab program). Fujimoto2005, couldn't it be the case, in your Scilab code? Are you cleaning properly all intermediate variables after usage? Samuel PS: What a powerful PC! :) From stephane.mottelet at utc.fr Wed Feb 14 21:03:52 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Wed, 14 Feb 2018 20:03:52 +0000 Subject: [Scilab-users] More rapid calculation In-Reply-To: <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> Message-ID: <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> Here is an example (pure linear algebra) using 100% cpu (4 cores) : http://www.utc.fr/~mottelet/Images/cpu.png S. Quoting stephane.mottelet at utc.fr: > If your program does not take advantage of the MKL Intel library, it > means that its CPU usage is not dominated by linear algebra stuff. > If you don't tell us more we won't be able to help... > > S. > > Quoting fujimoto2005 : > >> Dear Mottellet >> >> But there is an explanation "If we use the Intel MKL on Windows, then Scilab >> use all the cores available on the processor. " >> https://wiki.scilab.org/Documentation/ParallelComputingInScilab >> >> So I expected there are some ways to increase the usage of cpu. >> >> -- >> Sent from: >> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Wed Feb 14 23:39:45 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 15:39:45 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> Message-ID: <1518647985067-0.post@n3.nabble.com> Dear all Thak for your replies. I attach my code and snapshot of task manager. corSmplebaseZ1andZ2.sce snapshot_of_task_manager.png The snapshot shows typical situation. The CPU usage is usually between 10% and 20%. There are 3 or 4 times when the utilization rate instantaneously reaches between 40% and 50%. Memory usage does not exceed 20 GB. There is always at least 40 GB of free memory. Best ragards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fujimoto2005 at gmail.com Wed Feb 14 23:50:13 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 15:50:13 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> Message-ID: <1518648613976-0.post@n3.nabble.com> Dear all Thank you for your replies. I attached my code and a snapshot of task manager. The snapshot shows a typical situation. CPU utilization is usually between 10 and 20%. There are about 3 times when the CPU utilization instantaneously reaches from 40% to 50%. The memory usage does not exceed 20 GB. Always at least 40 GB is free. Thank you. corSmplebaseZ1andZ2.sce snapshot_of_task_manager.png -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From fujimoto2005 at gmail.com Thu Feb 15 00:02:48 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 14 Feb 2018 16:02:48 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <1518648613976-0.post@n3.nabble.com> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> Message-ID: <1518649368521-0.post@n3.nabble.com> Sorry, my code contains line "exec user file " I attached revised version which contains the line as a user function. Please see it. Best regards corSmplebaseZ1andZ2_with_UserFunc.sce -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Thu Feb 15 11:45:07 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 15 Feb 2018 11:45:07 +0100 Subject: [Scilab-users] More rapid calculation In-Reply-To: <1518649368521-0.post@n3.nabble.com> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> <1518649368521-0.post@n3.nabble.com> Message-ID: <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> Le 15/02/2018 ? 00:02, fujimoto2005 a ?crit?: > Sorry, my code contains line "exec user file " > I attached revised version which contains the line as a user function. > Please see it. > > Best regards > > corSmplebaseZ1andZ2_with_UserFunc.sce > > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hello, In your code, most of the cpu time is spent between lines 40-54 (random generation of big matrices), then between lines 54-60, where one of the bottlenecks is the use of repmat (and you use it twice) and the "cumsum".In previous posts of Heinz Nabielek related to code optimization, you may have noticed that using matrix multiplication by a vector of ones gives the same result BUT uses the BLAS ! For example, compare these timings, with size(timePoints_V)=[1 25000] and sample=5000) : tic;repmat(timePoints_V,2*sample,1);disp(toc()) ?? 12.372273 tic;ones(2*sample,1)*timePoints_V;disp(toc()) ?? 1.823105 On my machine (MacPro, OSX, Scilab 6.0.0), this last piece of code uses 100% cpu (four cores). S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From pablo_f_7 at hotmail.com Thu Feb 15 15:55:19 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Thu, 15 Feb 2018 14:55:19 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Hi, I'm still having trouble to use scilab 6.0.0 in Ubuntu 17.10. As i stated in previous mail, i managed ton install ubuntu 18.04 version, but it has the well known input function bug. I can live without input, despite i use scilab for teaching numerical methods and input is very useful. But then i realized atoms is also not working, at least in my pc. I get the error So, i thought i could compile scilab myself, but when running configure file, i get this error: configure: error: curl : library missing. (Cannot find symbol curl_easy_setopt). Check if curl is installed and if the version is correct Curl is installed: curl -V curl 7.55.1 (x86_64-pc-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.2g zlib/1.2.11 libidn2/2.0.2 libpsl/0.18.0 (+libidn2/2.0.2) librtmp/2.3 Release-Date: 2017-08-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy PSL So i wen to config.log and found this: configure:31521: $CURL_CONFIG --checkfor $CURL_REQUIRED_VERSION configure:31524: $? = 0 configure:31626: checking for curl_easy_setopt in -lcurl configure:31659: gcc -o conftest -I/home/pablo/scilab/scilab/usr/include -g -O2 -Wl,--no-as-needed conftest.c -lcurl -L/home/pablo/scilab/scilab/usr/lib -lcurl -L/home/scilab/work/linux-prer$ /usr/bin/ld: warning: libssl.so.0.9.8, needed by /home/pablo/scilab/scilab/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libssl.so, may conflict with libcrypto.so.0.9.8 /home/pablo/scilab/scilab/usr/lib/libcurl.so: undefined reference to `SSLv2_client_method' collect2: error: ld returned 1 exit status I have libssl and libcrypto, but i think i have newer versions. I could not manage to install those versions. Is this the problem? how can i solve this? Thanks El mar, 6 de feb 2018 a las 2:18 PM, Pablo Fonovich escribi?: Thanks, I solved it updating too. Anyway, that version is the one with input command bugged. I wish i could use a nigthly build where that bug is fixed. Also, trying to download a nigthly build lead me to 404 http error. El mar, 6 de feb 2018 a las 10:54 AM, Paul Onions escribi?: On 6 February 2018 at 13:25, Pablo Fonovich > wrote: Hi, I also followed the steps in my Ubuntu 17.10 but it just keeps installing scilab 5.5.2. Am i doing something wrong? I seem to remember doing a "sudo apt update" after step 2, before step 3. I also made sure I had removed the 5.5.2 release before trying this, just to make sure things didn't get confused. Though as shown in my last message I still managed to confuse myself a little bit by not removing the tarfile 6.0.0 release I had lying around :-) Hope this helps, Paul _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Thu Feb 15 16:03:45 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Thu, 15 Feb 2018 15:03:45 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Sorry, this is the error i'm having with atoms: No ATOMS module is available. Please, check your Internet connection or make sure that your OS is compatible with ATOMS. If i do atomsSystemUpdate() i get: Scanning repository http://atoms.scilab.org/6.0 ... Done at line 265 of function atomsDESCRIPTIONget ( /usr/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci line 284 ) at line 16 of function atomsSystemUpdate ( /usr/share/scilab/modules/atoms/macros/atomsSystemUpdate.sci line 33 ) atomsDESCRIPTIONget: save ('/home/pablo/.Scilab/scilab-6.0.0/.atoms/packages') has failed. Thanks El jue, 15 de feb 2018 a las 11:55 AM, Pablo Fonovich escribi?: Hi, I'm still having trouble to use scilab 6.0.0 in Ubuntu 17.10. As i stated in previous mail, i managed ton install ubuntu 18.04 version, but it has the well known input function bug. I can live without input, despite i use scilab for teaching numerical methods and input is very useful. But then i realized atoms is also not working, at least in my pc. I get the error So, i thought i could compile scilab myself, but when running configure file, i get this error: configure: error: curl : library missing. (Cannot find symbol curl_easy_setopt). Check if curl is installed and if the version is correct Curl is installed: curl -V curl 7.55.1 (x86_64-pc-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.2g zlib/1.2.11 libidn2/2.0.2 libpsl/0.18.0 (+libidn2/2.0.2) librtmp/2.3 Release-Date: 2017-08-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy PSL So i wen to config.log and found this: configure:31521: $CURL_CONFIG --checkfor $CURL_REQUIRED_VERSION configure:31524: $? = 0 configure:31626: checking for curl_easy_setopt in -lcurl configure:31659: gcc -o conftest -I/home/pablo/scilab/scilab/usr/include -g -O2 -Wl,--no-as-needed conftest.c -lcurl -L/home/pablo/scilab/scilab/usr/lib -lcurl -L/home/scilab/work/linux-prer$ /usr/bin/ld: warning: libssl.so.0.9.8, needed by /home/pablo/scilab/scilab/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libssl.so, may conflict with libcrypto.so.0.9.8 /home/pablo/scilab/scilab/usr/lib/libcurl.so: undefined reference to `SSLv2_client_method' collect2: error: ld returned 1 exit status I have libssl and libcrypto, but i think i have newer versions. I could not manage to install those versions. Is this the problem? how can i solve this? Thanks El mar, 6 de feb 2018 a las 2:18 PM, Pablo Fonovich escribi?: Thanks, I solved it updating too. Anyway, that version is the one with input command bugged. I wish i could use a nigthly build where that bug is fixed. Also, trying to download a nigthly build lead me to 404 http error. El mar, 6 de feb 2018 a las 10:54 AM, Paul Onions escribi?: On 6 February 2018 at 13:25, Pablo Fonovich > wrote: Hi, I also followed the steps in my Ubuntu 17.10 but it just keeps installing scilab 5.5.2. Am i doing something wrong? I seem to remember doing a "sudo apt update" after step 2, before step 3. I also made sure I had removed the 5.5.2 release before trying this, just to make sure things didn't get confused. Though as shown in my last message I still managed to confuse myself a little bit by not removing the tarfile 6.0.0 release I had lying around :-) Hope this helps, Paul _______________________________________________ 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 Thu Feb 15 16:28:51 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Thu, 15 Feb 2018 15:28:51 +0000 Subject: [Scilab-users] Release of Scilab 6.0.1 Message-ID: <1518708523.2380.4.camel@esi-group.com> Dear Scilab users, We are pleased to announce the release of Scilab 6.0.1! Scilab 6.0.1 is the first revision of the 6.0 development branch. It fixes bugs and implements missing features from the 5.5.2 version especially : * fix crashes on corner cases (syntax, graphics, functions, etc..) * improve Xcos model transformation and edition * add help pages and demos For the complete list of changes and bugs fixed, please take a look at the CHANGES file. Download this brand new version at https://www.scilab.org/download/6.0.1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Thu Feb 15 16:55:20 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Thu, 15 Feb 2018 15:55:20 +0000 Subject: [Scilab-users] Scilab-6.0.0 stopped working In-Reply-To: References: Message-ID: Hi, The 6.0.1 release that was just announced solved all the problems! Thanks a lot to everyone. El jue, 15 de feb 2018 a las 12:03 PM, Pablo Fonovich escribi?: Sorry, this is the error i'm having with atoms: No ATOMS module is available. Please, check your Internet connection or make sure that your OS is compatible with ATOMS. If i do atomsSystemUpdate() i get: Scanning repository http://atoms.scilab.org/6.0 ... Done at line 265 of function atomsDESCRIPTIONget ( /usr/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci line 284 ) at line 16 of function atomsSystemUpdate ( /usr/share/scilab/modules/atoms/macros/atomsSystemUpdate.sci line 33 ) atomsDESCRIPTIONget: save ('/home/pablo/.Scilab/scilab-6.0.0/.atoms/packages') has failed. Thanks El jue, 15 de feb 2018 a las 11:55 AM, Pablo Fonovich escribi?: Hi, I'm still having trouble to use scilab 6.0.0 in Ubuntu 17.10. As i stated in previous mail, i managed ton install ubuntu 18.04 version, but it has the well known input function bug. I can live without input, despite i use scilab for teaching numerical methods and input is very useful. But then i realized atoms is also not working, at least in my pc. I get the error So, i thought i could compile scilab myself, but when running configure file, i get this error: configure: error: curl : library missing. (Cannot find symbol curl_easy_setopt). Check if curl is installed and if the version is correct Curl is installed: curl -V curl 7.55.1 (x86_64-pc-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.2g zlib/1.2.11 libidn2/2.0.2 libpsl/0.18.0 (+libidn2/2.0.2) librtmp/2.3 Release-Date: 2017-08-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy PSL So i wen to config.log and found this: configure:31521: $CURL_CONFIG --checkfor $CURL_REQUIRED_VERSION configure:31524: $? = 0 configure:31626: checking for curl_easy_setopt in -lcurl configure:31659: gcc -o conftest -I/home/pablo/scilab/scilab/usr/include -g -O2 -Wl,--no-as-needed conftest.c -lcurl -L/home/pablo/scilab/scilab/usr/lib -lcurl -L/home/scilab/work/linux-prer$ /usr/bin/ld: warning: libssl.so.0.9.8, needed by /home/pablo/scilab/scilab/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libssl.so, may conflict with libcrypto.so.0.9.8 /home/pablo/scilab/scilab/usr/lib/libcurl.so: undefined reference to `SSLv2_client_method' collect2: error: ld returned 1 exit status I have libssl and libcrypto, but i think i have newer versions. I could not manage to install those versions. Is this the problem? how can i solve this? Thanks El mar, 6 de feb 2018 a las 2:18 PM, Pablo Fonovich escribi?: Thanks, I solved it updating too. Anyway, that version is the one with input command bugged. I wish i could use a nigthly build where that bug is fixed. Also, trying to download a nigthly build lead me to 404 http error. El mar, 6 de feb 2018 a las 10:54 AM, Paul Onions escribi?: On 6 February 2018 at 13:25, Pablo Fonovich > wrote: Hi, I also followed the steps in my Ubuntu 17.10 but it just keeps installing scilab 5.5.2. Am i doing something wrong? I seem to remember doing a "sudo apt update" after step 2, before step 3. I also made sure I had removed the 5.5.2 release before trying this, just to make sure things didn't get confused. Though as shown in my last message I still managed to confuse myself a little bit by not removing the tarfile 6.0.0 release I had lying around :-) Hope this helps, Paul _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From witczenko at gmail.com Wed Feb 14 10:23:13 2018 From: witczenko at gmail.com (Witczenko) Date: Wed, 14 Feb 2018 02:23:13 -0700 (MST) Subject: [Scilab-users] How to change/update XCOS block Message-ID: <1518600193567-0.post@n3.nabble.com> Hi everyone, I have few XCOS schemes with a custom block inside. Then I changed block definition by changing some properties. Is there any way to replace that block in scheme without manual interference by using some kind of existing tool? e.g 'magicFunctionToUpdateBlocks('sample.zcos');' Regards, Lukas -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From g.thiele at campus.tu-berlin.de Wed Feb 14 17:48:39 2018 From: g.thiele at campus.tu-berlin.de (Thiele, Gregor) Date: Wed, 14 Feb 2018 16:48:39 +0000 Subject: [Scilab-users] Scilab-Crash while building FMI-Wrapper Message-ID: <1518626905597.10603@campus.tu-berlin.de> Hello everyone, i have a critical problem with scilab. I described the issue here: https://stackoverflow.com/questions/47836339/scilab-crash-while-building-fmi-wrapper I would be very grateful for any help. Regards, Gregor -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Feb 14 20:59:48 2018 From: stephane.mottelet at utc.fr (stephane.mottelet at utc.fr) Date: Wed, 14 Feb 2018 19:59:48 +0000 Subject: [Scilab-users] More rapid calculation In-Reply-To: <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> Message-ID: <20180214195948.Horde.NKVzfAWk_RQMB52hTGLlX6I@webmail.utc.fr> Here is an example where 100% CPU is used (4 cores) with pure linear algebra. S. Quoting stephane.mottelet at utc.fr: > If your program does not take advantage of the MKL Intel library, it > means that its CPU usage is not dominated by linear algebra stuff. > If you don't tell us more we won't be able to help... > > S. > > Quoting fujimoto2005 : > >> Dear Mottellet >> >> But there is an explanation "If we use the Intel MKL on Windows, then Scilab >> use all the cores available on the processor. " >> https://wiki.scilab.org/Documentation/ParallelComputingInScilab >> >> So I expected there are some ways to increase the usage of cpu. >> >> -- >> Sent from: >> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cpu.png Type: image/png Size: 77285 bytes Desc: not available URL: From fujimoto2005 at gmail.com Thu Feb 15 23:46:19 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 15 Feb 2018 15:46:19 -0700 (MST) Subject: [Scilab-users] More rapid calculation In-Reply-To: <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> <1518649368521-0.post@n3.nabble.com> <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> Message-ID: <1518734779756-0.post@n3.nabble.com> Dear Mottelet Thank you for your useful advice. 1, By changing repmat(timePoints_V,2*sample,1) to timePoints_M=ones(2*sample,1)*timePoints_V and using it, calculation time is improved by 25 seconds. 2, "cumsum" is not a bottleneck because it takes only 2 seconds to finish. Also, if I change cumsum(wY1_M,'c') to linear algebra version wY1_M*triu(ones(time_step,time_step)), calculation time increases to 2 minutes although CPU usage rate rose greatly. "cumsum" function seems efficient function. 3, Is there any way to improve random number matrices generation? The attached file is a snapshot of the task manager when generating random matrices. It shows the CPU utilization remains low despite using many slots. What is the cause? snapshot_of_task_manager2.png 4, If I can generate multiple random matrices with smaller row size at the same time and integrate them at the end, I expect the processing time will be shorter, but can not I do such a thing? Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Fri Feb 16 07:48:54 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 16 Feb 2018 07:48:54 +0100 Subject: [Scilab-users] repmat() slow compared to .* and .*. <= Re: More rapid calculation In-Reply-To: <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> <1518649368521-0.post@n3.nabble.com> <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> Message-ID: <597eeeb6-cdcc-396c-c72b-af69066d6dbd@free.fr> Le 15/02/2018 ? 11:45, St?phane Mottelet a ?crit : > Le 15/02/2018 ? 00:02, fujimoto2005 a ?crit : >> .../... > > Hello, > > In your code, most of the cpu time is spent between lines 40-54 > (random generation of big matrices), then between lines 54-60, where > one of the bottlenecks is the use of repmat (and you use it twice) and > the "cumsum".In previous posts of Heinz Nabielek related to code > optimization, you may have noticed that using matrix multiplication by > a vector of ones gives the same result BUT uses the BLAS ! For > example, compare these timings, with size(timePoints_V)=[1 25000] and > sample=5000) : > > tic;repmat(timePoints_V,2*sample,1);disp(toc()) > > 12.372273 > > tic;ones(2*sample,1)*timePoints_V;disp(toc()) > > 1.823105 > > On my machine (MacPro, OSX, Scilab 6.0.0), this last piece of code > uses 100% cpu (four cores). Thank you St?phane for having pointed out the repmat() slowness. Additional tests show that the Kronecker product is even slightly faster than .* A new version of repmat() is proposed on review: https://codereview.scilab.org/19782 It is rewritten mainly using .*., which simplifies a lot the code. This version is more than 7x faster than the current one, and uses both CPU of my PC. It is roughly the ratio 12.37/1.82 ~ 6.8 that you give here-above. Best regards Samuel From stephane.mottelet at utc.fr Fri Feb 16 08:24:06 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 16 Feb 2018 08:24:06 +0100 Subject: [Scilab-users] repmat() slow compared to .* and .*. <= Re: More rapid calculation In-Reply-To: <597eeeb6-cdcc-396c-c72b-af69066d6dbd@free.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> <1518649368521-0.post@n3.nabble.com> <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> <597eeeb6-cdcc-396c-c72b-af69066d6dbd@free.fr> Message-ID: <04f14e63-6657-02c7-07fb-669d13566da6@utc.fr> Hello Samuel, It is a good initiative. Looking at your proposed code, I see that you use "execstr" on strings which are forged on the fly. Although the obtained expression will be faster (this was the goal), AFAIK such constructs are not "compilable" the same way as the straight expression. For the time being, Scilab does not use JIT compilation, but I think that such constructs are typically not optimal and that it/then/else constructs should be used instead. S. Le 16/02/2018 ? 07:48, Samuel Gougeon a ?crit : > Le 15/02/2018 ? 11:45, St?phane Mottelet a ?crit : >> Le 15/02/2018 ? 00:02, fujimoto2005 a ?crit : >>> .../... >> >> Hello, >> >> In your code, most of the cpu time is spent between lines 40-54 >> (random generation of big matrices), then between lines 54-60, where >> one of the bottlenecks is the use of repmat (and you use it twice) >> and the "cumsum".In previous posts of Heinz Nabielek related to code >> optimization, you may have noticed that using matrix multiplication >> by a vector of ones gives the same result BUT uses the BLAS ! For >> example, compare these timings, with size(timePoints_V)=[1 25000] and >> sample=5000) : >> >> tic;repmat(timePoints_V,2*sample,1);disp(toc()) >> >> 12.372273 >> >> tic;ones(2*sample,1)*timePoints_V;disp(toc()) >> >> 1.823105 >> >> On my machine (MacPro, OSX, Scilab 6.0.0), this last piece of code >> uses 100% cpu (four cores). > > Thank you St?phane for having pointed out the repmat() slowness. > > Additional tests show that the Kronecker product is even slightly > faster than .* > > A new version of repmat() is proposed on review: > https://codereview.scilab.org/19782 > It is rewritten mainly using .*., which simplifies a lot the code. > > This version is more than 7x faster than the current one, and uses > both CPU of my PC. > It is roughly the ratio 12.37/1.82 ~ 6.8 that you give here-above. > > Best regards > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From herozigle at gmail.com Fri Feb 16 10:44:49 2018 From: herozigle at gmail.com (Hermes) Date: Fri, 16 Feb 2018 02:44:49 -0700 (MST) Subject: [Scilab-users] Scilab closes when I try to execute a code Message-ID: <1518774289220-0.post@n3.nabble.com> When I try "save and execute" Scilab closes and does not declare any information. This happens to me with this particular file. I attached the file Reprenons_le_son_sinusoidal_a_440Hz.sce -->ver Scilab Version: 6.0.1.1518683525 Operating System: Windows 7 6.1 Java version: 1.8.0_151 Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java Virtual Machine information: Java HotSpot(TM) Client VM (build 25.151-b12, mixed mode) Vendor specification: Oracle Corporation -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Fri Feb 16 11:10:46 2018 From: herozigle at gmail.com (Hermes) Date: Fri, 16 Feb 2018 03:10:46 -0700 (MST) Subject: [Scilab-users] Scilab closes when I try to execute a code In-Reply-To: <1518774289220-0.post@n3.nabble.com> References: <1518774289220-0.post@n3.nabble.com> Message-ID: <1518775846815-0.post@n3.nabble.com> Running on the console line by line of the code, everything went fine until the code: "y = abs (fft (s));" Closing Scilab again Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From amit2rockpower at gmail.com Fri Feb 16 12:57:03 2018 From: amit2rockpower at gmail.com (amit2rockon) Date: Fri, 16 Feb 2018 04:57:03 -0700 (MST) Subject: [Scilab-users] Gsoc 2018 toolbox in scilab Message-ID: <1518782223306-0.post@n3.nabble.com> Hello everyone, Myself Amit Kumar, new to this community, I have completed machine learning course by Andrew Ng and completed my assignment with Matlab. I think I could have done with Scilab. I want to contribute to this organization and also want to participate in GSoC 2018. So can anybody here help me from where i can start? i want to implement machine learning functions in toolboxes. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From herozigle at gmail.com Fri Feb 16 15:53:45 2018 From: herozigle at gmail.com (Hermes) Date: Fri, 16 Feb 2018 07:53:45 -0700 (MST) Subject: [Scilab-users] Scilab closes when I try to execute a code In-Reply-To: <1518775846815-0.post@n3.nabble.com> References: <1518774289220-0.post@n3.nabble.com> <1518775846815-0.post@n3.nabble.com> Message-ID: <1518792825190-0.post@n3.nabble.com> Hello, this problem was repeated on another PC. -->ver: Scilab Version: 6.0.1.1518683525 Operating System: Windows 7 6.1 Java version: 1.8.0_151 Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java Virtual Machine information: Java HotSpot(TM) Client VM (build 25.151-b12, mixed mode) Vendor specification: Oracle Corporation On both PCs uninstall Scilab. And install again. This time I leave the installation by default. And solution achieved! In the figure, its marked in red the option I selected in the previous installation, and apparently the cause of not running the script. the reasons are far from my knowledge of scilab. Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From Clement.David at esi-group.com Fri Feb 16 16:50:34 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Fri, 16 Feb 2018 15:50:34 +0000 Subject: [Scilab-users] Gsoc 2018 toolbox in scilab In-Reply-To: <1518782223306-0.post@n3.nabble.com> References: <1518782223306-0.post@n3.nabble.com> Message-ID: <1518796233.5078.2.camel@esi-group.com> Hello Amit, It would be nice to have a machine learning however you could start by taking a look at what's already exists in http://atoms.scilab.org and on http://scilab.io/category/machine-learning . Could you try to improve what's already existing ? Thanks, -- Cl?ment Le vendredi 16 f?vrier 2018 ? 04:57 -0700, amit2rockon a ?crit : > Hello everyone, Myself Amit Kumar, new to this community, I have completed > machine learning course by Andrew Ng and completed my assignment with > Matlab. I think I could have done with Scilab. I want to contribute to this > organization and also want to participate in GSoC 2018. So can anybody here > help me from where i can start? i want to implement machine learning > functions in toolboxes. > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Feb 16 21:31:00 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 16 Feb 2018 21:31:00 +0100 Subject: [Scilab-users] Scilab closes when I try to execute a code In-Reply-To: <1518792825190-0.post@n3.nabble.com> References: <1518774289220-0.post@n3.nabble.com> <1518775846815-0.post@n3.nabble.com> <1518792825190-0.post@n3.nabble.com> Message-ID: <57977342-fe39-4316-f312-48cfc49c2ca6@free.fr> Le 16/02/2018 ? 15:53, Hermes a ?crit : > Hello, > this problem was repeated on another PC. > -->ver: > Scilab Version: 6.0.1.1518683525 > Operating System: Windows 7 6.1 > Java version: 1.8.0_151 > Java runtime information: Java(TM) SE Runtime Environment (build > 1.8.0_151-b12) > Java Virtual Machine information: Java HotSpot(TM) Client VM (build > 25.151-b12, mixed mode) > Vendor specification: Oracle Corporation > > On both PCs uninstall Scilab. And install again. This time I leave the > installation by default. And solution achieved! > In the figure, its marked in red the option I selected in the previous > installation, and apparently the cause of not running the script. > > > > the reasons are far from my knowledge of scilab. > Gracias --> uman fft wb SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From amit2rockpower at gmail.com Sat Feb 17 03:36:17 2018 From: amit2rockpower at gmail.com (Amit) Date: Fri, 16 Feb 2018 19:36:17 -0700 (MST) Subject: [Scilab-users] Gsoc 2018 toolbox in scilab In-Reply-To: <1518796233.5078.2.camel@esi-group.com> References: <1518782223306-0.post@n3.nabble.com> <1518796233.5078.2.camel@esi-group.com> Message-ID: <1518834977977-0.post@n3.nabble.com> i checked https://wiki.scilab.org/Machine%20Learning%20Toolbox%20in%20Scilab and improvement areas are mentioned in "Ideas/Direction To Work in Future" . i would really like to work in it. How to proceed? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From chinluh at tritytech.com Sat Feb 17 09:47:00 2018 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sat, 17 Feb 2018 16:47:00 +0800 Subject: [Scilab-users] Gsoc 2018 toolbox in scilab In-Reply-To: <1518796233.5078.2.camel@esi-group.com> References: <1518782223306-0.post@n3.nabble.com> <1518796233.5078.2.camel@esi-group.com> Message-ID: <954b4075-b292-39a6-fc05-eed7681309ad@tritytech.com> Hi? Amit, Greeting. I am Chin Luh, the author for Neural Network module in atoms portal (https://atoms.scilab.org/toolboxes/neuralnetwork/2.0). Thlde module is base on the book "Neural Network Design" by Hagan Martin (1st version) and the codes are following the pseudo code given in the book. If you are interested, you could look into this module and implement the "Regularization" into the algorithms for all the FFBP? in the module, which is highlighted in one of the session in Andrew Ng's? machine learning course. One thing you might need to be careful: In Machine Learning Course you attended, Prof Andrew using the notation where the training dataset arranged in rows, and the features arranged in columns. This is the reverse with this module, the book this module referred to, as well as the standard way python used. However, In Prof Andrew first course in Deep Learning specialization, he used the same notation with this module. As this module is totally in Scilab code, I personally believe that it is easy to start. Just my 2 cents, hope this helps. Thanks. Regards, Chin Luh On 16/2/2018 11:50 PM, Cl?ment David wrote: > Hello Amit, > > It would be nice to have a machine learning however you could start by taking a look at what's > already exists in http://atoms.scilab.org and on http://scilab.io/category/machine-learning . Could > you try to improve what's already existing ? > > Thanks, > > -- > Cl?ment > > Le vendredi 16 f?vrier 2018 ? 04:57 -0700, amit2rockon a ?crit : >> Hello everyone, Myself Amit Kumar, new to this community, I have completed >> machine learning course by Andrew Ng and completed my assignment with >> Matlab. I think I could have done with Scilab. I want to contribute to this >> organization and also want to participate in GSoC 2018. So can anybody here >> help me from where i can start? i want to implement machine learning >> functions in toolboxes. >> >> >> >> -- >> Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From klaus-rohe at t-online.de Sun Feb 18 17:54:32 2018 From: klaus-rohe at t-online.de (Klaus Rohe) Date: Sun, 18 Feb 2018 17:54:32 +0100 Subject: [Scilab-users] Scilab 6 Release In-Reply-To: <58A4716F.9070506@scilab-enterprises.com> References: <58A4716F.9070506@scilab-enterprises.com> Message-ID: <001201d3a8d9$26bb3910$7431ab30$@t-online.de> I tried to download Scilab 6.0.1 but ended up in an endless loop which requested my data (email ?). Kind regards Klaus Dipl.-Phys. Klaus Rohe Adolf-Kolping-Str. 10a 85625 Glonn Email: klaus-rohe at t-online.de Telefon: +49 (0) 8093 5402 Mobil: +49 (0) 170 8133634 Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Scilab Team Gesendet: Mittwoch, 15. Februar 2017 16:19 An: Users mailing list for Scilab Betreff: [Scilab-users] Scilab 6 Release Dear Scilab users, We are very happy to announce the release of Scilab 6.0.0. The Scilab Team invested significant development efforts for the past years in order to release Scilab 6. The goal with Scilab 6 is to address technological evolutions and new needs in terms of modeling and simulation from the scientific & engineering community. This led our team to completely redevelop the computation core of Scilab in order to build a solid base combining performance and evolutivity. The new aspects of Scilab 6 worth notifying are the following: * New language parser & new core, * New utilities for development productivity, * Xcos block diagram improvement, * Newsfeed - a communication channel with the users Download it on Scilab.org Scientifically yours -- The Scilab Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Tue Feb 20 14:23:42 2018 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Tue, 20 Feb 2018 13:23:42 +0000 Subject: [Scilab-users] Scilab 6 Release In-Reply-To: <001201d3a8d9$26bb3910$7431ab30$@t-online.de> References: <58A4716F.9070506@scilab-enterprises.com> <001201d3a8d9$26bb3910$7431ab30$@t-online.de> Message-ID: Hi, As far as i know, scilab asks for your information after the download has started. At least, that's my case. Perhaps your browser is blocking the download? El dom, 18 de feb 2018 a las 1:54 PM, Klaus Rohe escribi?: I tried to download Scilab 6.0.1 but ended up in an endless loop which requested my data (email ?). Kind regards Klaus Dipl.-Phys. Klaus Rohe Adolf-Kolping-Str. 10a 85625 Glonn Email: klaus-rohe at t-online.de Telefon: +49 (0) 8093 5402 Mobil: +49 (0) 170 8133634 Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Scilab Team Gesendet: Mittwoch, 15. Februar 2017 16:19 An: Users mailing list for Scilab Betreff: [Scilab-users] Scilab 6 Release Dear Scilab users, We are very happy to announce the release of Scilab 6.0.0. The Scilab Team invested significant development efforts for the past years in order to release Scilab 6. The goal with Scilab 6 is to address technological evolutions and new needs in terms of modeling and simulation from the scientific & engineering community. This led our team to completely redevelop the computation core of Scilab in order to build a solid base combining performance and evolutivity. The new aspects of Scilab 6 worth notifying are the following: * New language parser & new core, * New utilities for development productivity, * Xcos block diagram improvement, * Newsfeed - a communication channel with the users Download it on Scilab.org Scientifically yours -- The Scilab Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Tue Feb 20 17:31:16 2018 From: herozigle at gmail.com (Hermes) Date: Tue, 20 Feb 2018 09:31:16 -0700 (MST) Subject: [Scilab-users] Reduce order of differential equations to 1 Message-ID: <1519144276990-0.post@n3.nabble.com> Hi, exists in Scilaba the function that Reduce order of differential equations to 1 Similar to the function of MATLAB *odeToVectorField* Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From oferpade at 013net.net Wed Feb 21 08:29:00 2018 From: oferpade at 013net.net (Offer Pade) Date: Wed, 21 Feb 2018 09:29:00 +0200 Subject: [Scilab-users] image processing Message-ID: <000101d3aae5$a44b7e40$ece27ac0$@013net.net> I need to convert several image processing programs I have written in matlab, to scilab. Is there an image processing toolbox in scilab and how do I get it. Regards Offer Pade -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.blachere at utt.fr Wed Feb 21 08:41:31 2018 From: florian.blachere at utt.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Wed, 21 Feb 2018 08:41:31 +0100 Subject: [Scilab-users] compilation with OCaml 4.06 Message-ID: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> Hello, Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using OCaml 4.06 because this release remove the Num library (https://ocaml.org/releases/4.06.html#Changes, https://github.com/ocaml/ocaml/pull/1178), do you have any advice to build Scilab with recent OCaml: integrate Num in Scilab, build Num oustside of Scilab and link against it, ... ? Thanks by advance, Florian From antoine.monmayrant at laas.fr Wed Feb 21 10:59:33 2018 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 21 Feb 2018 10:59:33 +0100 Subject: [Scilab-users] surf & isoview: bug or unexpected "feature" Message-ID: Hi all, I am a bit surprised by the way isoview acts on a surf plot. It seems to just scale the x,y,z axis so that the plot is inside an isometric 3D cube. I was expecting an aspect ratio that depends on the Z matrix value and size or on the X,Y coordinate vectors and the Z matrix value. Here is an example: //without X,Y axis: expecting an aspect ratio in the (x,y) plan corresponding to the dimensions of the Z matrix Z=rand(10,30); h=scf(); surf(Z); isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but we have square //trying with X,Y coordinates: expecting an the plot to fit inside a "cube" with aspect ratios along the x,y & z directions //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z) Z=rand(10,30); X=1:size(Z,2); Y=1:size(Z,1); h=scf(); surf(X,Y,Z); isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but we have square Am I the only one to expect this behaviour? Antoine -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From antoine.monmayrant at laas.fr Wed Feb 21 11:06:17 2018 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 21 Feb 2018 11:06:17 +0100 Subject: [Scilab-users] surf & isoview: bug or unexpected "feature" In-Reply-To: References: Message-ID: <91aa43f0-f41c-5754-83dc-6fad5050af07@laas.fr> OK, answering my own question: It seems that when calling surf(), the cube_scaling property of the current axis is set to "on", which results in the observed behaviour. Manually resetting to its default value "off", gives me the expected behaviour. Should I fill a bug about the absence of cube_scaling mention on the help pages of surf() and isoview() ? Antoine Le 21/02/2018 ? 10:59, Antoine Monmayrant a ?crit?: > Hi all, > > > I am a bit surprised by the way isoview acts on a surf plot. > It seems to just scale the x,y,z axis so that the plot is inside an > isometric 3D cube. > I was expecting an aspect ratio that depends on the Z matrix value and > size or on the X,Y coordinate vectors and the Z matrix value. > Here is an example: > > //without X,Y axis: expecting an aspect ratio in the (x,y) plan > corresponding to the dimensions of the Z matrix > Z=rand(10,30); > h=scf(); > surf(Z); > isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but > we have square > > //trying with X,Y coordinates: expecting an the plot to fit inside a > "cube" with aspect ratios along the x,y & z directions > //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z) > Z=rand(10,30); > X=1:size(Z,2); > Y=1:size(Z,1); > h=scf(); > surf(X,Y,Z); > isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but > we have square > > > Am I the only one to expect this behaviour? > > > Antoine > > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From Clement.David at esi-group.com Wed Feb 21 11:51:29 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Wed, 21 Feb 2018 10:51:29 +0000 Subject: [Scilab-users] compilation with OCaml 4.06 In-Reply-To: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> References: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> Message-ID: <1519210288.2211.11.camel@esi-group.com> Hello Florian, The easier would be to depend on the external Num library for the 6.0.x family as far as this library remains available; statically build against it is the way to go for OCaml code. Num might also be packaged in your system, use ocamlfind to look for it. Thanks, -- Cl?ment Le mercredi 21 f?vrier 2018 ? 08:41 +0100, Florian Blach?re a ?crit : > Hello, > > Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using > OCaml 4.06 because this release remove the Num library > (https://ocaml.org/releases/4.06.html#Changes , > https://github.com/ocaml/ocaml/pull/1178), do you have any advice to > build Scilab with recent OCaml: integrate Num in Scilab, build Num > oustside of Scilab and link against it, ... ? > > Thanks by advance, > > Florian > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Wed Feb 21 12:05:56 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 21 Feb 2018 12:05:56 +0100 Subject: [Scilab-users] surf & isoview: bug or unexpected "feature" In-Reply-To: <91aa43f0-f41c-5754-83dc-6fad5050af07@laas.fr> References: <91aa43f0-f41c-5754-83dc-6fad5050af07@laas.fr> Message-ID: <98256e3d-9110-e818-7456-d7dc1d601c77@utc.fr> Hello, The cube_scaling appeared with version 5.2 or 5.3 (I don't remember) because the previous default behavior, which corresponds to cube_scaling="off" could produce surfaces which were very hard to visualize with default angles and hard to homogeneously "rotate" in the elevation angle, when the surface is very flat. See this example: clf [x,y]=meshgrid(-1:0.1:1,-2:0.1:2); surf(x,y,x.*y*1e-5) gca().cube_scaling="off"; The default combination cube_scaling="on" and isoview="off" corresponds to the default behavior in Matlab. Introducing the cube_scaling property and its default value helps "migrating users" as they obtain the same thing in both softwares. Anyway, I don't think that the combination cube_scaling="off" and isoview="off" has still an interest as it can produce the annoying behavior of the above example. The default combination cube_scaling="on" and isoview="off" allows the 3D object to fill the whole 3D box whatever the proportions of the enclosing 2D canvas, which is the expected default behavior. Antoine's remark points out that cube_scaling="on" and isoview="on" produces a plot whose proportions are completely wrong with respect of the value of isoview="on". Adding in the help page of "axes_properties/isoview " a sentence such as If you want *real* isometric scales on all axes in 3D you have to set cube_scaling property to 'off' is not admissible.Setting the value of cube_scaling? to the opposite of the isoview value when the latter is changed could be a solution. At least, when the high level isoview *command* is used. S. Le 21/02/2018 ? 11:06, Antoine Monmayrant a ?crit?: > OK, answering my own question: > > It seems that when calling surf(), the cube_scaling property of the > current axis is set to "on", which results in the observed behaviour. > Manually resetting to its default value "off", gives me the expected > behaviour. > Should I fill a bug about the absence of cube_scaling mention on the > help pages of surf() and isoview() ? > > Antoine > > Le 21/02/2018 ? 10:59, Antoine Monmayrant a ?crit?: >> Hi all, >> >> >> I am a bit surprised by the way isoview acts on a surf plot. >> It seems to just scale the x,y,z axis so that the plot is inside an >> isometric 3D cube. >> I was expecting an aspect ratio that depends on the Z matrix value >> and size or on the X,Y coordinate vectors and the Z matrix value. >> Here is an example: >> >> //without X,Y axis: expecting an aspect ratio in the (x,y) plan >> corresponding to the dimensions of the Z matrix >> Z=rand(10,30); >> h=scf(); >> surf(Z); >> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but >> we have square >> >> //trying with X,Y coordinates: expecting an the plot to fit inside a >> "cube" with aspect ratios along the x,y & z directions >> //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z) >> Z=rand(10,30); >> X=1:size(Z,2); >> Y=1:size(Z,1); >> h=scf(); >> surf(X,Y,Z); >> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but >> we have square >> >> >> Am I the only one to expect this behaviour? >> >> >> Antoine >> >> >> > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From sgougeon at free.fr Wed Feb 21 13:37:59 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 21 Feb 2018 13:37:59 +0100 Subject: [Scilab-users] surf & isoview: bug or unexpected "feature" In-Reply-To: References: Message-ID: <9d780bce-0cc1-229d-ffa5-71357640b029@free.fr> Hi Antoine and St?phane, Please look at https://codereview.scilab.org/#/c/18857/ and its header, and try --> uman isoview! @ Samuel Le 21/02/2018 ? 10:59, Antoine Monmayrant a ?crit : > Hi all, > > > I am a bit surprised by the way isoview acts on a surf plot. > It seems to just scale the x,y,z axis so that the plot is inside an > isometric 3D cube. > I was expecting an aspect ratio that depends on the Z matrix value and > size or on the X,Y coordinate vectors and the Z matrix value. > Here is an example: > > //without X,Y axis: expecting an aspect ratio in the (x,y) plan > corresponding to the dimensions of the Z matrix > Z=rand(10,30); > h=scf(); > surf(Z); > isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but > we have square > > //trying with X,Y coordinates: expecting an the plot to fit inside a > "cube" with aspect ratios along the x,y & z directions > //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z) > Z=rand(10,30); > X=1:size(Z,2); > Y=1:size(Z,1); > h=scf(); > surf(X,Y,Z); > isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but > we have square > > > Am I the only one to expect this behaviour? > > > Antoine > > > From stephane.mottelet at utc.fr Wed Feb 21 13:47:13 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 21 Feb 2018 13:47:13 +0100 Subject: [Scilab-users] surf & isoview: bug or unexpected "feature" In-Reply-To: <9d780bce-0cc1-229d-ffa5-71357640b029@free.fr> References: <9d780bce-0cc1-229d-ffa5-71357640b029@free.fr> Message-ID: <5500d27f-12bc-c505-2a09-7b27ec28307c@utc.fr> Great ! But in this case I would add also isoview('off') missed switching .cube_scaling='on' S. Le 21/02/2018 ? 13:37, Samuel Gougeon a ?crit?: > Hi Antoine and St?phane, > > Please look at https://codereview.scilab.org/#/c/18857/ and its header, > and try > --> uman isoview! @ > > Samuel > > Le 21/02/2018 ? 10:59, Antoine Monmayrant a ?crit : >> Hi all, >> >> >> I am a bit surprised by the way isoview acts on a surf plot. >> It seems to just scale the x,y,z axis so that the plot is inside an >> isometric 3D cube. >> I was expecting an aspect ratio that depends on the Z matrix value >> and size or on the X,Y coordinate vectors and the Z matrix value. >> Here is an example: >> >> //without X,Y axis: expecting an aspect ratio in the (x,y) plan >> corresponding to the dimensions of the Z matrix >> Z=rand(10,30); >> h=scf(); >> surf(Z); >> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but >> we have square >> >> //trying with X,Y coordinates: expecting an the plot to fit inside a >> "cube" with aspect ratios along the x,y & z directions >> //that depends on max(X)-min(X), max(Y)-min(Y) & max(Z)-min(Z) >> Z=rand(10,30); >> X=1:size(Z,2); >> Y=1:size(Z,1); >> h=scf(); >> surf(X,Y,Z); >> isoview("on");//we should see a 3/1 aspect ratio in the x/Y plane but >> we have square >> >> >> Am I the only one to expect this behaviour? >> >> >> Antoine >> >> >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From florian.blachere at utt.fr Thu Feb 22 09:35:39 2018 From: florian.blachere at utt.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Thu, 22 Feb 2018 09:35:39 +0100 Subject: [Scilab-users] compilation with OCaml 4.06 In-Reply-To: <1519210288.2211.11.camel@esi-group.com> References: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> <1519210288.2211.11.camel@esi-group.com> Message-ID: <69424bb2-0dd6-bd8e-d003-edcbd0336022@utt.fr> Hello Cl?ment, Thanks for the answer, I installed num and changed the compilation line to use ocamlfind but now the compilation fails with : ocamlfind ocamlopt -package num -I ./src/modelica_compiler -I ./src/xml2modelica -c src/modelica_compiler/optimization.ml File "src/modelica_compiler/optimization.ml", line 166, characters 21-22: Error: This expression has type string but an expression was expected of type ???????? bytes Is it link to the uodate to OCaml 4.06 ? Florian On 21/02/18 11:51, Cl?ment David wrote: > Hello Florian, > > The easier would be to depend on the external Num library for the 6.0.x family as far as this > library remains available; statically build against it is the way to go for OCaml code. Num might > also be packaged in your system, use ocamlfind to look for it. > > Thanks, > > -- > Cl?ment > > Le mercredi 21 f?vrier 2018 ? 08:41 +0100, Florian Blach?re a ?crit : >> Hello, >> >> Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using >> OCaml 4.06 because this release remove the Num library >> (https://ocaml.org/releases/4.06.html#Changes , >> https://github.com/ocaml/ocaml/pull/1178), do you have any advice to >> build Scilab with recent OCaml: integrate Num in Scilab, build Num >> oustside of Scilab and link against it, ... ? >> >> Thanks by advance, >> >> Florian >> >> _______________________________________________ >> 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 Clement.David at esi-group.com Thu Feb 22 10:41:48 2018 From: Clement.David at esi-group.com (=?utf-8?B?Q2zDqW1lbnQgRGF2aWQ=?=) Date: Thu, 22 Feb 2018 09:41:48 +0000 Subject: [Scilab-users] compilation with OCaml 4.06 In-Reply-To: <69424bb2-0dd6-bd8e-d003-edcbd0336022@utt.fr> References: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> <1519210288.2211.11.camel@esi-group.com> <69424bb2-0dd6-bd8e-d003-edcbd0336022@utt.fr> Message-ID: <1519292507.2211.25.camel@esi-group.com> Hello Florian, Please find attached a patch that fix this issue; it comes from a OCaml 4.0.4 change which distinguish String and Bytes implementations and the unsafe-string flag. Quoting the documentation [1]: > OCaml strings used to be modifiable in place, for instance via the String.set and String.blit > functions described below. This usage is deprecated and only possible when the compiler is put > in "unsafe-string" mode by giving the -unsafe-string command-line option [1]: https://caml.inria.fr/pub/docs/manual-ocaml/libref/String.html Regards, -- Cl?ment Le jeudi 22 f?vrier 2018 ? 09:35 +0100, Florian Blach?re a ?crit : > Hello Cl?ment, > > Thanks for the answer, I installed num and changed the compilation line to use ocamlfind but now > the compilation fails with : > > ocamlfind ocamlopt -package num -I ./src/modelica_compiler -I ./src/xml2modelica -c > src/modelica_compiler/optimization.ml > File "src/modelica_compiler/optimization.ml", line 166, characters 21-22: > Error: This expression has type string but an expression was expected of type > bytes > > Is it link to the uodate to OCaml 4.06 ? > > Florian > > On 21/02/18 11:51, Cl?ment David wrote: > > Hello Florian, > > > > The easier would be to depend on the external Num library for the 6.0.x family as far as this > > library remains available; statically build against it is the way to go for OCaml code. Num > > might > > also be packaged in your system, use ocamlfind to look for it. > > > > Thanks, > > > > -- > > Cl?ment > > > > Le mercredi 21 f?vrier 2018 ? 08:41 +0100, Florian Blach?re a ?crit : > > > Hello, > > > > > > Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using > > > OCaml 4.06 because this release remove the Num library > > > (https://ocaml.org/releases/4.06.html#Changes class="Apple-tab-span" style="white-space:pre"> > > > , > > > https://github.com/ocaml/ocaml/pull/1178), do you have any advice to > > > build Scilab with recent OCaml: integrate Num in Scilab, build Num > > > oustside of Scilab and link against it, ... ? > > > > > > Thanks by advance, > > > > > > Florian > > > > > > _______________________________________________ > > > 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: scilab-0004-Fix-build-with-ocaml-4.0.4.patch Type: text/x-patch Size: 1282 bytes Desc: scilab-0004-Fix-build-with-ocaml-4.0.4.patch URL: From fujimoto2005 at gmail.com Thu Feb 22 14:19:26 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 22 Feb 2018 06:19:26 -0700 (MST) Subject: [Scilab-users] "intg" and i"ntegrate" Message-ID: <1519305566188-0.post@n3.nabble.com> I want to integrate a user function f(x,y1,y2) from a to b with respect to x. 1, I don't see the difference between "integrate" and "intg". I saw help file and find "integrate" can manage multi upper limits. Except it, I can't find any differences between two functions. Is there a difference in the accuracy or calculation method? "intg" has a fixed number of partitions. Does "integrate" increase the number of partitions automatically until the accuracy is not improved? I do not understand the difference with the help file. 2, I could use "intg" with "intg (a, b, list (f, y1, y2))", but I could't use "integrate" with "integrate (list ("f", y1, y2), "x", a, b)" or "integrate (list (f, y1, y2), "x", a, b)". What is wrong with the syntax? Best regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From cfuttrup at gmail.com Thu Feb 22 19:26:20 2018 From: cfuttrup at gmail.com (Claus Futtrup) Date: Thu, 22 Feb 2018 19:26:20 +0100 Subject: [Scilab-users] image processing In-Reply-To: <000101d3aae5$a44b7e40$ece27ac0$@013net.net> References: <000101d3aae5$a44b7e40$ece27ac0$@013net.net> Message-ID: Hi Offer Pade Please see : https://atoms.scilab.org/categories/image_Processing I hope you find here what you need. Best regards, Claus On Wed, Feb 21, 2018 at 8:29 AM, Offer Pade wrote: > I need to convert several image processing programs I have written in > matlab, to scilab. > > Is there an image processing toolbox in scilab and how do I get it. > > Regards > > Offer Pade > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herozigle at gmail.com Thu Feb 22 20:10:34 2018 From: herozigle at gmail.com (Hermes) Date: Thu, 22 Feb 2018 12:10:34 -0700 (MST) Subject: [Scilab-users] SCILAB ODE solvers: bookes or notes about it. Message-ID: <1519326634235-0.post@n3.nabble.com> Hello colleagues, I would like to know if there is a more recent version of the document: *Ordinary Differential Equations with Scilab WATS Lectures Provisional notes Universit'e de Saint-Louis 2004 G. Sallet * Or if I can find the scripts of the examples developed in the document. In the reading that I do of the document I have been developing these examples. In some cases I get the expected results and in others I do not. Is there any other similar document !? Gracias -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Fri Feb 23 13:45:54 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 23 Feb 2018 13:45:54 +0100 Subject: [Scilab-users] Overflow convention for integer types Message-ID: Hello, I would like to point out the conventions used by Scilab and Matlab when an integer number is subject to overflow: Scilab 6.0.1: --> uint8(255)+1 ?ans? = ? 0 Matlab R2017b >> uint8(255)+1 ans = ? uint8 ?? 255 Do you see any reason in favor of one of each ? S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From stephane.mottelet at utc.fr Fri Feb 23 14:06:05 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 23 Feb 2018 14:06:05 +0100 Subject: [Scilab-users] Overflow convention for integer types In-Reply-To: References: Message-ID: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> Le 23/02/2018 ? 13:45, St?phane Mottelet a ?crit?: > Hello, > > I would like to point out the conventions used by Scilab and Matlab > when an integer number is subject to overflow: > > Scilab 6.0.1: > > --> uint8(255)+1 > ?ans? = > > ? 0 > > Matlab R2017b > > >> uint8(255)+1 > > ans = > > ? uint8 > > ?? 255 > > Do you see any reason in favor of one of each ? > > S. > > Maybe monotonicity, but it should be discussed anyway. S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From jrafaelbguerra at hotmail.com Fri Feb 23 14:19:54 2018 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 23 Feb 2018 13:19:54 +0000 Subject: [Scilab-users] Overflow convention for integer types In-Reply-To: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> References: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> Message-ID: See some advantages of saturation overflow in article: https://en.wikipedia.org/wiki/Saturation_arithmetic -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of St?phane Mottelet Sent: Friday, February 23, 2018 2:06 PM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Overflow convention for integer types Le 23/02/2018 ? 13:45, St?phane Mottelet a ?crit?: > Hello, > > I would like to point out the conventions used by Scilab and Matlab > when an integer number is subject to overflow: > > Scilab 6.0.1: > > --> uint8(255)+1 > ?ans? = > > ? 0 > > Matlab R2017b > > >> uint8(255)+1 > > ans = > > ? uint8 > > ?? 255 > > Do you see any reason in favor of one of each ? > > S. > > Maybe monotonicity, but it should be discussed anyway. S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Fri Feb 23 15:50:44 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 23 Feb 2018 15:50:44 +0100 Subject: [Scilab-users] Overflow convention for integer types In-Reply-To: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> References: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> Message-ID: Le 23/02/2018 ? 14:06, St?phane Mottelet a ?crit : > Le 23/02/2018 ? 13:45, St?phane Mottelet a ?crit : >> Hello, >> >> I would like to point out the conventions used by Scilab and Matlab >> when an integer number is subject to overflow: >> >> Scilab 6.0.1: >> >> --> uint8(255)+1 >> ans = >> >> 0 >> >> Matlab R2017b >> >> >> uint8(255)+1 >> >> ans = >> >> uint8 >> >> 255 >> >> Do you see any reason in favor of one of each ? >> >> S. >> >> > Maybe monotonicity, but it should be discussed anyway. This has been already done here or/and on Bugzilla, quite extensively. Anyway, it can't be changed without breaking completely Scilab and external modules. It is the same for 1.2 * int8(3) that yields an int8 and not a double. The fact that all these optimizations with a global impact were not discussed and decided to prepare the 6.0.0 is indeed a HUGE pity. There are many ways to kill a software. Breaking things with a global impact like this []+num again, and next minor release again, and next minor release again on another point... is an excellent one. So, sorry, but this kind of (re)discussion and changes must be done when targeting a major release for which all things must be rewritten. And decided and announced to all authors ASAP, not just 1 year before the release. And since you put this on the table while the 6.0.1 is just released and we had not the chance to read you here about that before looks rather strange to me. Best regards Samuel From stephane.mottelet at utc.fr Fri Feb 23 17:18:40 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Fri, 23 Feb 2018 17:18:40 +0100 Subject: [Scilab-users] Overflow convention for integer types In-Reply-To: References: <304b8150-096a-57df-8478-b6cbe7bea777@utc.fr> Message-ID: <515b5b3f-705a-0e12-f8c9-eb2d48b745dc@utc.fr> Le 23/02/2018 ? 15:50, Samuel Gougeon a ?crit?: > Le 23/02/2018 ? 14:06, St?phane Mottelet a ?crit : >> Le 23/02/2018 ? 13:45, St?phane Mottelet a ?crit : >>> Hello, >>> >>> I would like to point out the conventions used by Scilab and Matlab >>> when an integer number is subject to overflow: >>> >>> Scilab 6.0.1: >>> >>> --> uint8(255)+1 >>> ?ans? = >>> >>> ? 0 >>> >>> Matlab R2017b >>> >>> >> uint8(255)+1 >>> >>> ans = >>> >>> ? uint8 >>> >>> ?? 255 >>> >>> Do you see any reason in favor of one of each ? >>> >>> S. >>> >>> >> Maybe monotonicity, but it should be discussed anyway. > > This has been already done here or/and on Bugzilla, quite extensively. > > Anyway, it can't be changed without breaking completely Scilab and > external modules. > It is the same for 1.2 * int8(3) that yields an int8 and not a double. > > The fact that all these optimizations with a global impact were not > discussed and decided > to prepare the 6.0.0 is indeed a HUGE pity. > There are many ways to kill a software. Breaking things with a global > impact like this []+num again, > and next minor release again, and next minor release again on another > point... is an excellent one. > > So, sorry, but this kind of (re)discussion and changes must be done > when targeting a major release > for which all things must be rewritten. > And decided and announced to all authors ASAP, not just 1 year before > the release. > > And since you put this on the table while the 6.0.1 is just released > and we had not the chance > to read you here about that before looks rather strange to me. No strangeness at all. I was just *asking* why Scilab's behavior is the one observed. No judgement at all, no claim. Because of a recent change in my professionnal position I have now enough time to spent a bit of it about Scilab (many years ago I spent *a lot* of time about it). Sorry for my "fresh" view of some facts that were discussed a long time ago, when I did not have time to read the mailing lists... S. > > Best regards > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From oferpade at 013net.net Sat Feb 24 07:26:45 2018 From: oferpade at 013net.net (Offer Pade) Date: Sat, 24 Feb 2018 08:26:45 +0200 Subject: [Scilab-users] image processing In-Reply-To: References: <000101d3aae5$a44b7e40$ece27ac0$@013net.net> Message-ID: <001601d3ad38$71776420$54662c60$@013net.net> Thank you, I loaded IPCV. When I tried to execute a program from a gui screen, scilab 6.01 stopped working. I will have to see whats wrong. Regards Offer From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Claus Futtrup Sent: Thursday, February 22, 2018 8:26 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] image processing Hi Offer Pade Please see : https://atoms.scilab.org/categories/image_Processing I hope you find here what you need. Best regards, Claus On Wed, Feb 21, 2018 at 8:29 AM, Offer Pade wrote: I need to convert several image processing programs I have written in matlab, to scilab. Is there an image processing toolbox in scilab and how do I get it. Regards Offer Pade _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rlandersen at gmail.com Sun Feb 25 02:02:48 2018 From: rlandersen at gmail.com (rlandersen) Date: Sat, 24 Feb 2018 18:02:48 -0700 (MST) Subject: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7 In-Reply-To: <925214a3-0191-4fd9-cabf-3daf359cb799@durietz.se> References: <1440326479863-4032713.post@n3.nabble.com> <1498411303270-4036657.post@n3.nabble.com> <5012af39-429a-6ef3-5b6c-3ab518c158d2@durietz.se> <4496DE0B-0F3F-4EFD-A89F-40D9E0AA5615@gmail.com> <1504378688686-0.post@n3.nabble.com> <28f995c6-b009-1026-1acf-df6ae7bf4270@free.fr> <4e65a046-2ab7-2811-60ef-602a97a4650c@durietz.se> <925214a3-0191-4fd9-cabf-3daf359cb799@durietz.se> Message-ID: <1519520568577-0.post@n3.nabble.com> Hi guys, I think I finally solved the problem here. The steps that worked for me: 1) Uninstall Scilab 6.0 completely using Revo Uninstaller. Standard uninstallation plus deleting files left that were found by Revo. 2) Restart computer. 3) Clean full installation of the latest Scilab 6.0.1. Done! Scilab is working again! Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From florian.blachere at utt.fr Mon Feb 26 09:01:11 2018 From: florian.blachere at utt.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Mon, 26 Feb 2018 09:01:11 +0100 Subject: [Scilab-users] compilation with OCaml 4.06 In-Reply-To: <1519292507.2211.25.camel@esi-group.com> References: <689a5855-8580-4833-5a44-7c2a39ba6456@utt.fr> <1519210288.2211.11.camel@esi-group.com> <69424bb2-0dd6-bd8e-d003-edcbd0336022@utt.fr> <1519292507.2211.25.camel@esi-group.com> Message-ID: Hello, Thanks for this patch, but it seems not enough to build as there is still some errors with Bytes/Strings: File "src/modelica_compiler/optimization.ml", line 168, characters 49-50: Error: This expression has type bytes but an expression was expected of type ???????? string Florian On 22/02/18 10:41, Cl?ment David wrote: > Hello Florian, > > Please find attached a patch that fix this issue; it comes from a OCaml 4.0.4 change which > distinguish String and Bytes implementations and the unsafe-string flag. > > Quoting the documentation [1]: >> OCaml strings used to be modifiable in place, for instance via the String.set and String.blit >> functions described below. This usage is deprecated and only possible when the compiler is put >> in "unsafe-string" mode by giving the -unsafe-string command-line option > [1]:https://caml.inria.fr/pub/docs/manual-ocaml/libref/String.html > > Regards, > > -- > Cl?ment > > Le jeudi 22 f?vrier 2018 ? 09:35 +0100, Florian Blach?re a ?crit : >> Hello Cl?ment, >> >> Thanks for the answer, I installed num and changed the compilation line to use ocamlfind but now >> the compilation fails with : >> >> ocamlfind ocamlopt -package num -I ./src/modelica_compiler -I ./src/xml2modelica -c >> src/modelica_compiler/optimization.ml >> File "src/modelica_compiler/optimization.ml", line 166, characters 21-22: >> Error: This expression has type string but an expression was expected of type >> bytes >> >> Is it link to the uodate to OCaml 4.06 ? >> >> Florian >> >> On 21/02/18 11:51, Cl?ment David wrote: >>> Hello Florian, >>> >>> The easier would be to depend on the external Num library for the 6.0.x family as far as this >>> library remains available; statically build against it is the way to go for OCaml code. Num >>> might >>> also be packaged in your system, use ocamlfind to look for it. >>> >>> Thanks, >>> >>> -- >>> Cl?ment >>> >>> Le mercredi 21 f?vrier 2018 ? 08:41 +0100, Florian Blach?re a ?crit : >>>> Hello, >>>> >>>> Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using >>>> OCaml 4.06 because this release remove the Num library >>>> (https://ocaml.org/releases/4.06.html#Changes class="Apple-tab-span" style="white-space:pre"> >>>> , >>>> https://github.com/ocaml/ocaml/pull/1178), do you have any advice to >>>> build Scilab with recent OCaml: integrate Num in Scilab, build Num >>>> oustside of Scilab and link against it, ... ? >>>> >>>> Thanks by advance, >>>> >>>> Florian >>>> >>>> _______________________________________________ >>>> 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 sgougeon at free.fr Mon Feb 26 11:15:03 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 26 Feb 2018 11:15:03 +0100 Subject: [Scilab-users] repmat() slow compared to .* and .*. <= Re: More rapid calculation In-Reply-To: <04f14e63-6657-02c7-07fb-669d13566da6@utc.fr> References: <1518615338745-0.post@n3.nabble.com> <46fbee01-dbcf-104b-aa1f-d9c6d2bd32b1@utc.fr> <1518631624856-0.post@n3.nabble.com> <20180214181500.Horde.6noFgwETGwdsbK9FITULam6@webmail.utc.fr> <20180214200352.Horde.lsHYFRpjelt8p_GJ1NTzzuQ@webmail.utc.fr> <1518648613976-0.post@n3.nabble.com> <1518649368521-0.post@n3.nabble.com> <4357d52a-986b-7e11-c0f3-bf993acb14ba@utc.fr> <597eeeb6-cdcc-396c-c72b-af69066d6dbd@free.fr> <04f14e63-6657-02c7-07fb-669d13566da6@utc.fr> Message-ID: <4986a586-827f-fe3d-2d66-2f2260fd5fcb@free.fr> Hello St?phane, Le 16/02/2018 ? 08:24, St?phane Mottelet a ?crit : > Hello Samuel, > > It is a good initiative. Looking at your proposed code, I see that you > use "execstr" on strings which are forged on the fly. Although the > obtained expression will be faster (this was the goal), AFAIK such > constructs are not "compilable" the same way as the straight > expression. For the time being, Scilab does not use JIT compilation, > but I think that such constructs are typically not optimal and that > it/then/else constructs should be used instead. Here, an if/then/else or rather select/case construct is not possible, since the number of cases is unknown, open, not limited. So the construct would anyway include a final /else/ including an /execstr() /instruction. But, even if avoiding execstr() is not a priority, there is here another solution, that is now implemented. The final execstr() for the overloading routing can't be avoided. This is typically the case of the processing of open unknown cases. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Feb 26 11:52:42 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 26 Feb 2018 11:52:42 +0100 Subject: [Scilab-users] "intg" and i"ntegrate" In-Reply-To: <1519305566188-0.post@n3.nabble.com> References: <1519305566188-0.post@n3.nabble.com> Message-ID: Hello Fujimoto2005, Le 22/02/2018 ? 14:19, fujimoto2005 a ?crit : > I want to integrate a user function f(x,y1,y2) from a to b with respect to x. > > 1, I don't see the difference between "integrate" and "intg". I saw help > file and find "integrate" can manage multi upper limits. Except it, I can't > find any differences between two functions. Is there a difference in the > accuracy or calculation method? No, since integrate() actually calls intg() to proceed. integrate() is a wrapper for intg(). > "intg" has a fixed number of partitions. Its algorithm is adaptative. The partition is dynamically refined when some local variations of the function are detected and fast. > Does "integrate" increase the > number of partitions automatically until the accuracy is not improved? Yes, since intg() does it and is called by integrate(). > I do not understand the difference with the help file. > 2, I could use "intg" with "intg (a, b, list (f, y1, y2))", but I could't > use "integrate" with "integrate (list ("f", y1, y2), "x", a, b)" or > "integrate (list (f, y1, y2), "x", a, b)". What is wrong with the syntax? You are right. This integrate (list (f, y1, y2), "x", a, b) syntax could be added. But it is possible to use "local" parameters, like this: a = 3; x1 = 0:0.1:2*%pi; X = integrate('sin(a*x)', 'x', 0, x1); // Checking norm((1-cos(a*x1))/a -X) --> norm((1-cos(a*x1))/a -X) ans = 2.491D-15 The only thing is that the name of "local" parameters must not collide an internal parameter of integrate: --> edit integrate The list() feature specific to intg() could be included into integrate(). Then intg() could be undocumented as an internal function of integrate(). If you agree and wish such a merge, would you mind filling in a wish report on Bugzilla? Best regards Samuel From j_holland at msn.com Mon Feb 26 16:20:40 2018 From: j_holland at msn.com (James Holland) Date: Mon, 26 Feb 2018 08:20:40 -0700 (MST) Subject: [Scilab-users] uicontrol tab Message-ID: <1519658440146-0.post@n3.nabble.com> I'm trying to incorporate the 'tab' function in a GUI but I don't see any tab control when I execute the code. I can't find a tutorial for this either. can someone please give me an example of how this is done. My code is below: f=figure('figure_position',[400,50],'figure_size',[859,752],'auto_resize','on','background',[33],'figure_name','VISA Interface number %d',... 'dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','on','default_axes','on','visible','off'); ////////// handles.dummy = 0; handles.tabframe = uicontrol (f,'Style','tab','Position',[0.05625,0.0541667,0.7921875,0.8729167],'Visible','on','String','tab1'); I also have button controls but they work OK. TIA James -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From stephane.mottelet at utc.fr Mon Feb 26 16:26:54 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Mon, 26 Feb 2018 16:26:54 +0100 Subject: [Scilab-users] uicontrol tab In-Reply-To: <1519658440146-0.post@n3.nabble.com> References: <1519658440146-0.post@n3.nabble.com> Message-ID: <296c84f1-5b1e-fa4f-7537-2753d98cc497@utc.fr> Le 26/02/2018 ? 16:20, James Holland a ?crit?: > I'm trying to incorporate the 'tab' function in a GUI but I don't see any tab > control when I execute the code. I can't find a tutorial for this either. > can someone please give me an example of how this is done. My code is below: > > > f=figure('figure_position',[400,50],'figure_size',[859,752],'auto_resize','on','background',[33],'figure_name','VISA > Interface number %d',... > 'dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','on','default_axes','on','visible','off'); > ////////// > handles.dummy = 0; > > handles.tabframe = uicontrol > (f,'Style','tab','Position',[0.05625,0.0541667,0.7921875,0.8729167],'Visible','on','String','tab1'); > > > I also have button controls but they work OK. > > TIA James > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hello, there is an example in the tests of gui module : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) 2014 - Scilab Enterprises - Antoine ELIAS // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt function tabs= createTab(uiType) f= figure("dockable", "off" ,"infobar_visible", "off", "toolbar_visible", "off", "menubar_visible", "off", "default_axes", "off", "layout", "border") f.axes_size = [470, 410]; tabs= uicontrol(f, "style", uiType, "tag" ,"tab", "constraints", createConstraints("border", "center")); tab1= uicontrol(tabs, "style", "frame", "tag", "tab 1", "string", "tab 1", "layout", "border"); uicontrol(tab1, "string", "button 1"); tab2= uicontrol(tabs, "style", "frame", "tag", "tab 2", "string", "tab 2", "layout", "border"); uicontrol(tab2, "string", "button 2"); tab3= uicontrol(tabs, "style", "frame", "tag", "tab 3", "string", "tab 3", "layout", "border"); uicontrol(tab3, "string", "button 3"); endfunction //tab tab= createTab("tab"); S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.elias at scilab-enterprises.com Mon Feb 26 17:08:01 2018 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Mon, 26 Feb 2018 17:08:01 +0100 Subject: [Scilab-users] uicontrol tab In-Reply-To: <296c84f1-5b1e-fa4f-7537-2753d98cc497@utc.fr> References: <1519658440146-0.post@n3.nabble.com> <296c84f1-5b1e-fa4f-7537-2753d98cc497@utc.fr> Message-ID: <760c1d4f-a559-d7d0-9fb8-74554214b423@scilab-enterprises.com> Hello James 'Position',[0.05625,0.0541667,0.7921875,0.8729167] seems to be normalized values. So don't forget to set units property. //figure f=figure(... ??? 'figure_position', [400,50], ... ??? 'figure_size', [859,752], ... ??? 'auto_resize', 'on', ... ??? 'background', 33, ... ??? 'figure_name', 'VISA Interface number %d',... ??? 'dockable', 'off', ... ??? 'infobar_visible', 'off', ... ??? 'toolbar_visible', 'off', ... ??? 'menubar_visible', 'on', ... ??? 'default_axes', 'on', ... ??? 'visible', 'off'); handles.dummy = 0; //tab container handles.tabframe = uicontrol(f, ... ??? 'style', 'tab', ... ??? 'position', [0.05625,0.0541667,0.7921875,0.8729167]); //set "units" property handles.tabframe.units = "normalized"; //3rd tab handles.tab3 = uicontrol(handles.tabframe, ... ??? "style", "frame", ... ??? "backgroundcolor", [1 0 1], ... ??? "string", "magenta") //2nd tab handles.tab2 = uicontrol(handles.tabframe, ... ??? "style", "frame", ... ??? "backgroundcolor", [1 1 0], ... ??? "string", "yellow") //1st tab handles.tab1 = uicontrol(handles.tabframe, ... ??? "style", "frame", ... ??? "backgroundcolor", [0 1 1], ... ??? "string", "cyan") //show figure f.visible = 'on'; Le 26/02/2018 ? 16:26, St?phane Mottelet a ?crit?: > Le 26/02/2018 ? 16:20, James Holland a ?crit?: >> I'm trying to incorporate the 'tab' function in a GUI but I don't see any tab >> control when I execute the code. I can't find a tutorial for this either. >> can someone please give me an example of how this is done. My code is below: >> >> >> f=figure('figure_position',[400,50],'figure_size',[859,752],'auto_resize','on','background',[33],'figure_name','VISA >> Interface number %d',... >> 'dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','on','default_axes','on','visible','off'); >> ////////// >> handles.dummy = 0; >> >> handles.tabframe = uicontrol >> (f,'Style','tab','Position',[0.05625,0.0541667,0.7921875,0.8729167],'Visible','on','String','tab1'); >> >> >> I also have button controls but they work OK. >> >> TIA James >> >> >> >> -- >> Sent from:http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > Hello, > > there is an example in the tests of gui module : > > 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 > > // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab > // Copyright (C) 2014 - Scilab Enterprises - Antoine ELIAS > // > // This file must be used under the terms of the CeCILL. > // This source file is licensed as described in the file COPYING, which > // you should have received as part of this distribution. The terms > // are also available at > // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt > > function tabs= createTab(uiType) > f= figure("dockable", "off" ,"infobar_visible", "off", "toolbar_visible", "off", "menubar_visible", "off", "default_axes", "off", "layout", "border") > f.axes_size = [470, 410]; > > tabs= uicontrol(f, "style", uiType, "tag" ,"tab", "constraints", createConstraints("border", "center")); > > tab1= uicontrol(tabs, "style", "frame", "tag", "tab 1", "string", "tab 1", "layout", "border"); > uicontrol(tab1, "string", "button 1"); > > tab2= uicontrol(tabs, "style", "frame", "tag", "tab 2", "string", "tab 2", "layout", "border"); > uicontrol(tab2, "string", "button 2"); > > tab3= uicontrol(tabs, "style", "frame", "tag", "tab 3", "string", "tab 3", "layout", "border"); > uicontrol(tab3, "string", "button 3"); > endfunction > > //tab > tab= createTab("tab"); > > S. > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > > _______________________________________________ > 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_holland at msn.com Tue Feb 27 10:07:20 2018 From: j_holland at msn.com (James Holland) Date: Tue, 27 Feb 2018 02:07:20 -0700 (MST) Subject: [Scilab-users] uicontrol tab In-Reply-To: <760c1d4f-a559-d7d0-9fb8-74554214b423@scilab-enterprises.com> References: <1519658440146-0.post@n3.nabble.com> <296c84f1-5b1e-fa4f-7537-2753d98cc497@utc.fr> <760c1d4f-a559-d7d0-9fb8-74554214b423@scilab-enterprises.com> Message-ID: <1519722440378-0.post@n3.nabble.com> Hello Antoine That code was originally created by guibuilder. I will change it because I don't find that to be very intuitive, thank you. Hello Stephane The example code works, thank you. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From pascal.buehler at ch.sauter-bc.com Tue Feb 27 10:17:35 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 10:17:35 +0100 Subject: [Scilab-users] Problem with solving this elegantly Message-ID: Hello there, i searched in scilab a macro, that can solve me this in an elegantly matrix way? I've really searched something similar to A*X=0, but no linsolver gave me the right answer? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 9144 bytes Desc: not available URL: From paul.carrico at free.fr Tue Feb 27 11:00:14 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 27 Feb 2018 11:00:14 +0100 Subject: [Scilab-users] Dark theme Message-ID: Dear All, White background involves eye fatigue (for me at least) and I'm wondering if a "dark theme" exists .. I had a look in scinote - maybe I'm missing something (of course one can change the color in sconotre preferences, but it's not convinient in my mind). Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Feb 27 10:33:55 2018 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 27 Feb 2018 09:33:55 +0000 Subject: [Scilab-users] [EXTERNAL] Problem with solving this elegantly In-Reply-To: References: Message-ID: <3A6B7233274DB449A2A0053A47684F953F8F8D4A@BGS-EX01.auxitrol.ad> Maybe I'm mistaken, but the first matrix sounds like an eigenvalue problem, isn't it ? (I'm not familiar with German ... If so, did you tried "eigs"? Paul EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Pascal Buehler Envoy? : mardi 27 f?vrier 2018 10:18 ? : users Objet : [EXTERNAL] [Scilab-users] Problem with solving this elegantly Hello there, i searched in scilab a macro, that can solve me this in an elegantly matrix way? I've really searched something similar to A*X=0, but no linsolver gave me the right answer? [cid:image001.gif at 01D3AFB6.6DF1FB00] with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 9144 bytes Desc: image001.gif URL: From pascal.buehler at ch.sauter-bc.com Tue Feb 27 11:20:29 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 11:20:29 +0100 Subject: [Scilab-users] Antwort: Re: [EXTERNAL] Problem with solving this elegantly In-Reply-To: <3A6B7233274DB449A2A0053A47684F953F8F8D4A@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F953F8F8D4A@BGS-EX01.auxitrol.ad> Message-ID: not really in this case, here you have already the eigenvalues lambda1=7 and lambda2=3. Now for lambda1, insert the number to the matrix, where sigmaxx =-1, sigmayy =5 and tauxy=4 already known is, as a stress tensor you will get two linear equation like -8*v1x+4*v1x=0 4*v1x-2*v1y=0 normaly an trivial solution, but non of the sovers gave me the correct answer? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: "Carrico, Paul" An: 'Users mailing list for Scilab' , Datum: 27.02.2018 11:09 Betreff: Re: [Scilab-users] [EXTERNAL] Problem with solving this elegantly Gesendet von: "users" Maybe I?m mistaken, but the first matrix sounds like an eigenvalue problem, isn?t it ? (I?m not familiar with German ? If so, did you tried ?eigs?? Paul EXPORT CONTROL : Cet email ne contient pas de donn?es techniques This email does not contain technical data De : users [mailto:users-bounces at lists.scilab.org] De la part de Pascal Buehler Envoy? : mardi 27 f?vrier 2018 10:18 ? : users Objet : [EXTERNAL] [Scilab-users] Problem with solving this elegantly Hello there, i searched in scilab a macro, that can solve me this in an elegantly matrix way? I've really searched something similar to A*X=0, but no linsolver gave me the right answer? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. _______________________________________________ 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: not available Type: image/gif Size: 9144 bytes Desc: not available URL: From Christophe.Dang at sidel.com Tue Feb 27 11:30:39 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 27 Feb 2018 10:30:39 +0000 Subject: [Scilab-users] {EXT} Antwort: Re: [EXTERNAL] Problem with solving this elegantly In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F8F8D4A@BGS-EX01.auxitrol.ad> Message-ID: Hello, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 11:20 > > Now for lambda1, insert the number to the matrix, where sigmaxx =-1, sigmayy =5 and tauxy=4 already known is, as a stress tensor > you will get two linear equation like > > -8*v1x+4*v1y=0 > 4*v1x-2*v1y=0 > > normaly an trivial solution, but non of the sovers gave me the correct answer? A=[-8 4 ; 4 -2] b = [0 ; 0] [x0, kerA] = linsolve(A, b) kerA = 0.4472136 0.8944272 x0 = 0. 0. You notice that kerA(2)/kerA(1) = 2 which means that the result is similar to kerA = 1 2 x0 = 0. 0. Which is the excepted solution. Or? -- 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 wozai at protonmail.ch Tue Feb 27 11:30:52 2018 From: wozai at protonmail.ch (Wozai) Date: Tue, 27 Feb 2018 03:30:52 -0700 (MST) Subject: [Scilab-users] Problem with solving this elegantly In-Reply-To: References: Message-ID: <1519727452254-0.post@n3.nabble.com> Hi, [R,diagevals]=spec(A) Cheers, wozai -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From pascal.buehler at ch.sauter-bc.com Tue Feb 27 11:37:59 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 11:37:59 +0100 Subject: [Scilab-users] Antwort: Re: {EXT} Antwort: Re: [EXTERNAL] Problem with solving this elegantly In-Reply-To: References: <3A6B7233274DB449A2A0053A47684F953F8F8D4A@BGS-EX01.auxitrol.ad> Message-ID: not really when i do it with my pencil, i get to the real values directly, i mean i can turn it like i want till i get the right answers that i need, try it with lambda2? imean it could work but is it mathematical correct? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: "Dang Ngoc Chan, Christophe" An: Users mailing list for Scilab , Datum: 27.02.2018 11:31 Betreff: Re: [Scilab-users] {EXT} Antwort: Re: [EXTERNAL] Problem with solving this elegantly Gesendet von: "users" Hello, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 11:20 > > Now for lambda1, insert the number to the matrix, where sigmaxx =-1, sigmayy =5 and tauxy=4 already known is, as a stress tensor > you will get two linear equation like > > -8*v1x+4*v1y=0 > 4*v1x-2*v1y=0 > > normaly an trivial solution, but non of the sovers gave me the correct answer? A=[-8 4 ; 4 -2] b = [0 ; 0] [x0, kerA] = linsolve(A, b) kerA = 0.4472136 0.8944272 x0 = 0. 0. You notice that kerA(2)/kerA(1) = 2 which means that the result is similar to kerA = 1 2 x0 = 0. 0. Which is the excepted solution. Or? -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal.buehler at ch.sauter-bc.com Tue Feb 27 11:41:34 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 11:41:34 +0100 Subject: [Scilab-users] Antwort: Re: Problem with solving this elegantly In-Reply-To: <1519727452254-0.post@n3.nabble.com> References: <1519727452254-0.post@n3.nabble.com> Message-ID: I get as answer same as kernel, but not [1,2] with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: Wozai An: users at lists.scilab.org, Datum: 27.02.2018 11:31 Betreff: Re: [Scilab-users] Problem with solving this elegantly Gesendet von: "users" Hi, [R,diagevals]=spec(A) Cheers, wozai -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2076 bytes Desc: not available URL: From Christophe.Dang at sidel.com Tue Feb 27 12:57:56 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 27 Feb 2018 11:57:56 +0000 Subject: [Scilab-users] Antwort: Re: Problem with solving this elegantly Message-ID: Hello, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 11:42 > > when i do it with my pencil, i get to the real values directly There is no "real" value as they are defined up to a factor. [0.4472136 ; 0.8944272] is as correct as [2 ; 4], [0.5 ; 1] ou [? ; 2?]. Scilab performs numerical resolutions. What you would like is symbolic resolution. You might have a look at other softwares such as Maxima for this stuff. 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 pascal.buehler at ch.sauter-bc.com Tue Feb 27 13:03:31 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 13:03:31 +0100 Subject: [Scilab-users] Antwort: Re: Antwort: Re: Problem with solving this elegantly In-Reply-To: References: Message-ID: OK., by the way, is there any new toolbox for OPC or BACnet? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: "Dang Ngoc Chan, Christophe" An: Users mailing list for Scilab , Datum: 27.02.2018 12:59 Betreff: Re: [Scilab-users] Antwort: Re: Problem with solving this elegantly Gesendet von: "users" Hello, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 11:42 > > when i do it with my pencil, i get to the real values directly There is no "real" value as they are defined up to a factor. [0.4472136 ; 0.8944272] is as correct as [2 ; 4], [0.5 ; 1] ou [? ; 2?]. Scilab performs numerical resolutions. What you would like is symbolic resolution. You might have a look at other softwares such as Maxima for this stuff. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pascal.buehler at ch.sauter-bc.com Tue Feb 27 14:00:00 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 14:00:00 +0100 Subject: [Scilab-users] Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly In-Reply-To: References: Message-ID: So, file exchange doesn't work so i try this way. So this is my attempt for the Mohrscher Spannungskreis. Please impruve the code. with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: Pascal Buehler An: Users mailing list for Scilab , Datum: 27.02.2018 13:15 Betreff: [Scilab-users] Antwort: Re: Antwort: Re: Problem with solving this elegantly Gesendet von: "users" OK., by the way, is there any new toolbox for OPC or BACnet? with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: "Dang Ngoc Chan, Christophe" An: Users mailing list for Scilab , Datum: 27.02.2018 12:59 Betreff: Re: [Scilab-users] Antwort: Re: Problem with solving this elegantly Gesendet von: "users" Hello, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 11:42 > > when i do it with my pencil, i get to the real values directly There is no "real" value as they are defined up to a factor. [0.4472136 ; 0.8944272] is as correct as [2 ; 4], [0.5 ; 1] ou [? ; 2?]. Scilab performs numerical resolutions. What you would like is symbolic resolution. You might have a look at other softwares such as Maxima for this stuff. 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 _______________________________________________ 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: Mohr'scher_Spannungskreis.sce Type: application/octet-stream Size: 2423 bytes Desc: not available URL: From Christophe.Dang at sidel.com Tue Feb 27 14:35:07 2018 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 27 Feb 2018 13:35:07 +0000 Subject: [Scilab-users] Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly Message-ID: Hello Pascal, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 14:00 > > So this is my attempt for the Mohrscher Spannungskreis. > > Please impruve the code. Well, first improvement would be to comment your code, especially if you want other people to read it :-) Apart from this, here are a few things: You create a matrix called Tensor but you barely use it as a matrix; sometimes you use elements of it, e.g. Tensor(1,1), sometimes you use the values with their original name, e.g. Sigmaxx. This has probably no influence considering the memory needed and calculation time but some consistency would not hurt. When you compute several times the same value, you should create a variable for it, e.g. cdS = cosd(Schnittwinkel) sdS = sind(Schnittwinkel) TKomponenten= Schnittspannungsvektor*[cdS ; sdS] TKoordinatenkomponenten=[cdS, sdS ; -sdS, cdS]*TKomponenten Foo = 2*Tauxy/(Sigmaxx - Sigmayy) aFoo = 0.5*atand(foo) bFoo = 0.5*atand(-foo) Richtungen1 = [0, 90, 180] + aFoo*[1, 1, 1] Richtungen2 = [0, 90, 180] + bFoo*[1, 1, 1] Hope this helps -- 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 pascal.buehler at ch.sauter-bc.com Tue Feb 27 14:42:19 2018 From: pascal.buehler at ch.sauter-bc.com (Pascal Buehler) Date: Tue, 27 Feb 2018 14:42:19 +0100 Subject: [Scilab-users] Antwort: Re: Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly In-Reply-To: References: Message-ID: OK, i will try. with best regards / mit freundlichen Gr?ssen / cordialement Pascal B?hler Qualit?t-Hardware / Pr?fingenieur SAUTER HeadOffice Fr. Sauter AG Im Surinam 55, CH-4016 Basel Telefon +41 (0)61 695 5646 Telefax +41 (0)61 695 5619 http://www.sauter-controls.com DISCLAIMER: This communication, and the information it contains is for the sole use of the intended recipient. It is confidential, may be legally privileged and protected by law. Unauthorized use, copying or disclosure of any part thereof may be unlawful. If you have received this communication in error, please destroy all copies and kindly notify the sender. Before printing out this e-mail or its attachments, please consider whether it is really necessary to do so. Using less paper helps the environment. Von: "Dang Ngoc Chan, Christophe" An: Users mailing list for Scilab , Datum: 27.02.2018 14:35 Betreff: Re: [Scilab-users] Antwort: Antwort: Re: Antwort: Re: Problem with solving this elegantly Gesendet von: "users" Hello Pascal, > De : Pascal Buehler > Envoy? : mardi 27 f?vrier 2018 14:00 > > So this is my attempt for the Mohrscher Spannungskreis. > > Please impruve the code. Well, first improvement would be to comment your code, especially if you want other people to read it :-) Apart from this, here are a few things: You create a matrix called Tensor but you barely use it as a matrix; sometimes you use elements of it, e.g. Tensor(1,1), sometimes you use the values with their original name, e.g. Sigmaxx. This has probably no influence considering the memory needed and calculation time but some consistency would not hurt. When you compute several times the same value, you should create a variable for it, e.g. cdS = cosd(Schnittwinkel) sdS = sind(Schnittwinkel) TKomponenten= Schnittspannungsvektor*[cdS ; sdS] TKoordinatenkomponenten=[cdS, sdS ; -sdS, cdS]*TKomponenten Foo = 2*Tauxy/(Sigmaxx - Sigmayy) aFoo = 0.5*atand(foo) bFoo = 0.5*atand(-foo) Richtungen1 = [0, 90, 180] + aFoo*[1, 1, 1] Richtungen2 = [0, 90, 180] + bFoo*[1, 1, 1] Hope this helps -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Wed Feb 28 11:39:58 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Wed, 28 Feb 2018 11:39:58 +0100 Subject: [Scilab-users] Scilab and hdf5 format (small survey) Message-ID: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> Hi All I'm playing with hdf5 format into Scilab (I'm currently in an early stage that consists in understanding what the structures are); the goal is to deal with huge amount of data coming from Finite Element Analyses, and to perform additional calculations. I'm wondering if there are a lot of people working with Hdf5 file into Scilab? in what fields? (behind this, a goal among others is to get feedbacks from them on advantages and disadvantages). Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Feb 28 14:52:00 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 28 Feb 2018 14:52:00 +0100 Subject: [Scilab-users] clone a function in a library In-Reply-To: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> References: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> Message-ID: Hello, With the new library system, it is no longer possible to clone a function in a library. This feature is still documented in the help page of "lib" but is not working anymore since saving a user-defined scilab function uses the sod/hdf5 format. Maybe one can ask why such a feature is needed ? Sometimes it can be usefull to have a function which is callable by different names but actually does the same thing. The different calling names can come from the adaptation for different types of data, which can sometimes lead to the same treatment, hence to the same function. Instead of writing two functions with the same source code but a different calling name, cloning the original one was an interesting feature. I admit that the way it worked under scilab<6.x was not clean at all *but* officially documented in the "lib" help page. For example, imagine that a library has just been built (e.g. the plotlib...) genlib('plotlib','macros') I need to add to this library %axesData_i_h which is a clone of generic_i_h (in overloadinglib), which can be done in scilab<6.x by: %axesData_i_h=generic_i_h; save('macros/%axesData_i_h.bin',%axesData_i_h) mputl([mgetl('macros/names');'%axesData_i_h'],'macros/names') I said above "not clean at all", because the binary file "macros/lib" (which is created by the genlib call) does not need to be updated, as a subsequent plotlib=lib("macros") loads all functions, including %axesData_i_h Doing things like this is not possible any more. It was was also to add persistent variables in libraries, with the same mechanism. By the way, under scilab 6.0.1, the "macros/lib" is now an XML file with a clear syntax, e.g. ? ? ... It does not seem to be documented either. S. -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From fujimoto2005 at gmail.com Wed Feb 28 15:04:58 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 28 Feb 2018 07:04:58 -0700 (MST) Subject: [Scilab-users] "intg" and i"ntegrate" In-Reply-To: References: <1519305566188-0.post@n3.nabble.com> Message-ID: <1519826698238-0.post@n3.nabble.com> Dear Samuel. Thank for your advice. I will fill in a wish report on Bugzilla. Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Wed Feb 28 15:09:42 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 15:09:42 +0100 Subject: [Scilab-users] clone a function in a library In-Reply-To: References: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> Message-ID: <7fa5524f-cc29-0485-5da0-ded11de067ac@free.fr> Hello St?phane, I would try the following: After genlibing the set of regular .sci files, * save the clone with save('macros/%axesData_i_h.bin', "%axesData_i_h") * add a line in the lib file The MD5 hash is of the content of the .sci file, that here does not exist. It is use by genlib to check whether the .sci must be recompiled or not. You may try to set any md5 (or the cloned one). As long as you don't recompile the lib with genlib -- just loading it with load() or lib() --, this should work. My 2 cents.. Samuel Le 28/02/2018 ? 14:52, St?phane Mottelet a ?crit : > Hello, > > With the new library system, it is no longer possible to clone a > function in a library. This feature is still documented in the help > page of "lib" but is not working anymore since saving a user-defined > scilab function uses the sod/hdf5 format. Maybe one can ask why such a > feature is needed ? Sometimes it can be usefull to have a function > which is callable by different names but actually does the same thing. > The different calling names can come from the adaptation for different > types of data, which can sometimes lead to the same treatment, hence > to the same function. Instead of writing two functions with the same > source code but a different calling name, cloning the original one was > an interesting feature. > > I admit that the way it worked under scilab<6.x was not clean at all > *but* officially documented in the "lib" help page. For example, > imagine that a library has just been built (e.g. the plotlib...) > > genlib('plotlib','macros') > > I need to add to this library %axesData_i_h which is a clone of > generic_i_h (in overloadinglib), which can be done in scilab<6.x by: > > %axesData_i_h=generic_i_h; > save('macros/%axesData_i_h.bin',%axesData_i_h) > mputl([mgetl('macros/names');'%axesData_i_h'],'macros/names') > > I said above "not clean at all", because the binary file "macros/lib" > (which is created by the genlib call) does not need to be updated, as > a subsequent > > plotlib=lib("macros") > > loads all functions, including %axesData_i_h > > > Doing things like this is not possible any more. It was was also to > add persistent variables in libraries, with the same mechanism. > > By the way, under scilab 6.0.1, the "macros/lib" is now an XML file > with a clear syntax, e.g. > > > > md5="d0966468b335a69681a29d84c99feb5c"/> > md5="a1ebda57a1607b28095def2e415e2ec1"/> > ... > > > It does not seem to be documented either. > > S. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 15:17:36 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 15:17:36 +0100 Subject: [Scilab-users] clone a function in a library In-Reply-To: References: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> Message-ID: <989306f5-83bd-55d5-253e-c0f3f033fb80@free.fr> Another way would be to clone the source file with a hard link with your OS. It is possible with Linux. It should be possible with powershell under Windows. With MacOS, i don't know. Likely possible as well. Could you confirm? Then, try genlib() and see if it considers such a link.. In Linux, it should : all inodes are equal In Windows: I will try, when updating the lib() and genlib() pages Samuel Le 28/02/2018 ? 14:52, St?phane Mottelet a ?crit : > Hello, > > With the new library system, it is no longer possible to clone a > function in a library. This feature is still documented in the help > page of "lib" but is not working anymore since saving a user-defined > scilab function uses the sod/hdf5 format. Maybe one can ask why such a > feature is needed ? Sometimes it can be usefull to have a function > which is callable by different names but actually does the same thing. > The different calling names can come from the adaptation for different > types of data, which can sometimes lead to the same treatment, hence > to the same function. Instead of writing two functions with the same > source code but a different calling name, cloning the original one was > an interesting feature. > > I admit that the way it worked under scilab<6.x was not clean at all > *but* officially documented in the "lib" help page. For example, > imagine that a library has just been built (e.g. the plotlib...) > > genlib('plotlib','macros') > > I need to add to this library %axesData_i_h which is a clone of > generic_i_h (in overloadinglib), which can be done in scilab<6.x by: > > %axesData_i_h=generic_i_h; > save('macros/%axesData_i_h.bin',%axesData_i_h) > mputl([mgetl('macros/names');'%axesData_i_h'],'macros/names') > > I said above "not clean at all", because the binary file "macros/lib" > (which is created by the genlib call) does not need to be updated, as > a subsequent > > plotlib=lib("macros") > > loads all functions, including %axesData_i_h > > > Doing things like this is not possible any more. It was was also to > add persistent variables in libraries, with the same mechanism. > > By the way, under scilab 6.0.1, the "macros/lib" is now an XML file > with a clear syntax, e.g. > > > > md5="d0966468b335a69681a29d84c99feb5c"/> > md5="a1ebda57a1607b28095def2e415e2ec1"/> > ... > > > It does not seem to be documented either. > > S. > > From sgougeon at free.fr Wed Feb 28 15:23:05 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 15:23:05 +0100 Subject: [Scilab-users] clone a function in a library In-Reply-To: <989306f5-83bd-55d5-253e-c0f3f033fb80@free.fr> References: <573b912f84c6c7c8b7f73879f4e2c34e@free.fr> <989306f5-83bd-55d5-253e-c0f3f033fb80@free.fr> Message-ID: <6ed2fd7b-4070-5441-b9a2-86015d123b58@free.fr> Le 28/02/2018 ? 15:17, Samuel Gougeon a ?crit : > Another way would be to clone the source file with a hard link with > your OS. > It is possible with Linux. It should be possible with powershell under > Windows. > With MacOS, i don't know. Likely possible as well. Could you confirm? > Then, try genlib() and see if it considers such a link.. > In Linux, it should : all inodes are equal > In Windows: I will try, when updating the lib() and genlib() pages But it should be portable. I don't think that hard links are so.. As long as the library is not recompiled by the user, it should work. Otherwise, hard links should be set in the module builder, before building the library, and according to the OS... From stephane.mottelet at utc.fr Wed Feb 28 16:30:19 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 28 Feb 2018 16:30:19 +0100 Subject: [Scilab-users] Clone a function, continued Message-ID: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can be copy/pasted), a library is built, the "fun1" function is saved in sod format, then the reference to "fun1.bin" is replaced by "fun1.sod" in the lib file : path=TMPDIR+'/test/'; mkdir(path) mputl('function y=fun1(x), y=x, end',path+'fun1.sci'); genlib('test',path) save(path+'fun1.sod','fun1') doc=xmlRead(path+'lib'); doc.root.children(1).attributes.file='fun1.sod'; disp(xmlDump(doc)) xmlWrite(doc,path+'lib'); clear lib(TMPDIR+'/test/') The following output is obtained: !???????????????????????? ! ! ! ! ! ! ! !? ? ! ! ! ! ! Emplacement des fichiers des fonctions : /. fun1 --> Unfortunately, calling fun1 crashes scilab... S. Le 28/02/2018 ? 15:09, Samuel Gougeon a ?crit?: > Hello St?phane, > > I would try the following: > After genlibing the set of regular .sci files, > * save the clone with > ?? save('macros/%axesData_i_h.bin', "%axesData_i_h") > * add a line in the lib file > > The MD5 hash is of the content of the .sci file, that here does not > exist. It is use by genlib to check whether the .sci must be > recompiled or not. You may try to set any md5 (or the cloned one). As > long as you don't recompile the lib with genlib -- just loading it > with load() or lib() --, this should work. > > My 2 cents.. > > Samuel > > > Le 28/02/2018 ? 14:52, St?phane Mottelet a ?crit?: >> Hello, >> >> With the new library system, it is no longer possible to clone a >> function in a library. This feature is still documented in the help >> page of "lib" but is not working anymore since saving a user-defined >> scilab function uses the sod/hdf5 format. Maybe one can ask why such >> a feature is needed ? Sometimes it can be usefull to have a function >> which is callable by different names but actually does the same >> thing. The different calling names can come from the adaptation for >> different types of data, which can sometimes lead to the same >> treatment, hence to the same function. Instead of writing two >> functions with the same source code but a different calling name, >> cloning the original one was an interesting feature. >> >> I admit that the way it worked under scilab<6.x was not clean at all >> *but* officially documented in the "lib" help page. For example, >> imagine that a library has just been built (e.g. the plotlib...) >> >> genlib('plotlib','macros') >> >> I need to add to this library %axesData_i_h which is a clone of >> generic_i_h (in overloadinglib), which can be done in scilab<6.x by: >> >> %axesData_i_h=generic_i_h; >> save('macros/%axesData_i_h.bin',%axesData_i_h) >> mputl([mgetl('macros/names');'%axesData_i_h'],'macros/names') >> >> I said above "not clean at all", because the binary file "macros/lib" >> (which is created by the genlib call) does not need to be updated, as >> a subsequent >> >> plotlib=lib("macros") >> >> loads all functions, including %axesData_i_h >> >> >> Doing things like this is not possible any more. It was was also to >> add persistent variables in libraries, with the same mechanism. >> >> By the way, under scilab 6.0.1, the "macros/lib" is now an XML file >> with a clear syntax, e.g. >> >> >> >> ? > md5="d0966468b335a69681a29d84c99feb5c"/> >> ? > md5="a1ebda57a1607b28095def2e415e2ec1"/> >> ... >> >> >> It does not seem to be documented either. >> >> S. >> >> > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 17:21:09 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 17:21:09 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> Message-ID: Le 28/02/2018 ? 16:30, St?phane Mottelet a ?crit : > Thanks Samuel, the problem is that > > save('macros/%axesData_i_h.bin', '%axesData_i_h') > > will produce a .sod file with a .bin extension. Both formats cannot be > used indifferently for compiled macros of a library : in the following > code (that can be copy/pasted), a library is built, the "fun1" > function is saved in sod format, then the reference to "fun1.bin" is > replaced by "fun1.sod" in the lib file : > > path=TMPDIR+'/test/'; > mkdir(path) > mputl('function y=fun1(x), y=x, end',path+'fun1.sci'); > genlib('test',path) > save(path+'fun1.sod','fun1') > doc=xmlRead(path+'lib'); > doc.root.children(1).attributes.file='fun1.sod'; > disp(xmlDump(doc)) > xmlWrite(doc,path+'lib'); > clear > lib(TMPDIR+'/test/') > > The following output is obtained: > > ! standalone="no"?> ! > ! ! > ! ! > ! ! > ! md5="a50d8a8cda2cd6036306e08e61ffcbeb"/> ! > ! ! > ! ! > > Emplacement des fichiers des fonctions : /. > > fun1 > > --> > > Unfortunately, calling fun1 crashes scilab... On my side, with the following lib file: it is possible to load the library, but then, first issue, only fun2 is reported: --> lib ./ ans = Functions files location : TMPDIR\test. fun2 And then, also in this case, calling fun2(1) crashes Scilab... -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 17:43:59 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 17:43:59 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> Message-ID: <737e9b80-eaf1-f33a-4ff4-b3c3c6454f33@free.fr> Le 28/02/2018 ? 17:21, Samuel Gougeon a ?crit : > > On my side, with the following lib file: > > > > > > it is possible to load the library, but then, first issue, only fun2 > is reported: > --> lib ./ > ans = > Functions files location : TMPDIR\test. > > fun2 > > And then, also in this case, calling fun2(1) crashes Scilab... After http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037721.html : When on Windows making a *symbolic link* --> host("mklink test2.sci test1.sci") // mklink copy source and then running genlib (=> no complain), genlib yields the following lib file: ! Then, running fun2(1) crashes Scilab (at least this unstability is... constant ;) Let's try making and using a hard link... -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 18:11:41 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 18:11:41 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: <737e9b80-eaf1-f33a-4ff4-b3c3c6454f33@free.fr> References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> <737e9b80-eaf1-f33a-4ff4-b3c3c6454f33@free.fr> Message-ID: Le 28/02/2018 ? 17:43, Samuel Gougeon a ?crit : > Le 28/02/2018 ? 17:21, Samuel Gougeon a ?crit : >> >> On my side, with the following lib file: >> >> >> >> >> >> it is possible to load the library, but then, first issue, only fun2 >> is reported: >> --> lib ./ >> ans = >> Functions files location : TMPDIR\test. >> >> fun2 >> >> And then, also in this case, calling fun2(1) crashes Scilab... > > After > http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037721.html > : > > When on Windows making a *symbolic link* > --> host("mklink test2.sci test1.sci") // mklink copy source > > and then running genlib (=> no complain), genlib yields the following > lib file: > > > > > ! > Then, running fun2(1) crashes Scilab (at least this unstability is... > constant ;) > Let's try making and using a hard link... If in the file /myfun.sci/ genlib() does not find any function named "myfun", then genlib ignores it and add no entry to the lib file. Unless bypassing genlib(), this somewhat prevents using soft or hard links for the targeted purpose... Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 18:21:32 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 18:21:32 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> Message-ID: <7eef23bf-9649-a37b-17d1-d0a31456b025@free.fr> About http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037718.html : Le 28/02/2018 ? 14:52, St?phane Mottelet a ?crit : > .../... > Doing things like this is not possible any more. It was was also to > add persistent variables in libraries, with the same mechanism. External libraries are not persistent . They are also erased by the so-loved-by-matlabers clear instruction... -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Feb 28 18:48:49 2018 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 28 Feb 2018 18:48:49 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> Message-ID: <3bec9f76-17c1-074a-d171-9f751e9bcac6@free.fr> Le 28/02/2018 ? 16:30, St?phane Mottelet a ?crit : > Thanks Samuel, the problem is that > > save('macros/%axesData_i_h.bin', '%axesData_i_h') > > will produce a .sod file with a .bin extension. Both formats cannot be > used indifferently for compiled macros of a library : in the following > code (that can be copy/pasted), a library is built, the "fun1" > function is saved in sod format, then the reference to "fun1.bin" is > replaced by "fun1.sod" in the lib file : > > path=TMPDIR+'/test/'; > mkdir(path) > mputl('function y=fun1(x), y=x, end',path+'fun1.sci'); > genlib('test',path) > save(path+'fun1.sod','fun1') > doc=xmlRead(path+'lib'); > doc.root.children(1).attributes.file='fun1.sod'; > disp(xmlDump(doc)) > xmlWrite(doc,path+'lib'); > clear > lib(TMPDIR+'/test/') > > The following output is obtained: > > ! standalone="no"?> ! > ! ! > ! ! > ! ! > ! md5="a50d8a8cda2cd6036306e08e61ffcbeb"/> ! > ! ! > ! ! > > Emplacement des fichiers des fonctions : /. > > fun1 > > --> > > Unfortunately, calling fun1 crashes scilab... Last trial for today: * Define fun1() in fun1.sci. * Compile fun1.sci with genlib(): OK => fun1.bin available * Create fun2.bin as a hard link to fun1.bin: host("mklink /H fun2.bin fun1.bin") // Windows * Update (by hand or code, not with genlib) the lib file: * load the library (OK : both fun1 and fun2 are loaded): --> lib ./ ans = Functions files location : TMPDIR\test. fun1 fun2 * fun1(1) //=> OK * fun2(1) // .... => crash A bad end. It is likeky vain to go on fighting without Antoine Elias advices and comments :) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Feb 28 18:55:41 2018 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 28 Feb 2018 18:55:41 +0100 Subject: [Scilab-users] Clone a function, continued In-Reply-To: <3bec9f76-17c1-074a-d171-9f751e9bcac6@free.fr> References: <6613d71e-24e3-713b-a861-2c46802ff5ac@utc.fr> <3bec9f76-17c1-074a-d171-9f751e9bcac6@free.fr> Message-ID: Le 28/02/2018 ? 18:48, Samuel Gougeon a ?crit?: > Le 28/02/2018 ? 16:30, St?phane Mottelet a ?crit?: >> Thanks Samuel, the problem is that >> >> save('macros/%axesData_i_h.bin', '%axesData_i_h') >> >> will produce a .sod file with a .bin extension. Both formats cannot >> be used indifferently for compiled macros of a library : in the >> following code (that can be copy/pasted), a library is built, the >> "fun1" function is saved in sod format, then the reference to >> "fun1.bin" is replaced by "fun1.sod" in the lib file : >> >> path=TMPDIR+'/test/'; >> mkdir(path) >> mputl('function y=fun1(x), y=x, end',path+'fun1.sci'); >> genlib('test',path) >> save(path+'fun1.sod','fun1') >> doc=xmlRead(path+'lib'); >> doc.root.children(1).attributes.file='fun1.sod'; >> disp(xmlDump(doc)) >> xmlWrite(doc,path+'lib'); >> clear >> lib(TMPDIR+'/test/') >> >> The following output is obtained: >> >> !> standalone="no"?>???????????????????????? ! >> ! ! >> ! ! >> ! ! >> !? > md5="a50d8a8cda2cd6036306e08e61ffcbeb"/>? ! >> ! ! >> ! ! >> >> Emplacement des fichiers des fonctions : /. >> >> fun1 >> >> --> >> >> Unfortunately, calling fun1 crashes scilab... > > Last trial for today: > > * Define fun1() in fun1.sci. > * Compile fun1.sci with genlib(): OK => fun1.bin available > * Create fun2.bin as a hard link to fun1.bin: > host("mklink /H fun2.bin fun1.bin")? // Windows > * Update (by hand or code, not with genlib) the lib file: > > > > > > * load the library (OK : both fun1 and fun2 are loaded): > --> lib ./ > ?ans? = > Functions files location : TMPDIR\test. > fun1? fun2 > > * fun1(1)?? //=> OK > * fun2(1)? ? // .... => crash > Already tried this one with fun2.bin as a copy of fun1.bin. I noticed that under scilab 5.5.2, * Define fun1() * fun2=fun1 * save("fun1.bin",fun1) * save('fun2.bin',fun2) gives a fun2.bin different from fun1.bin as the string "fun1" appears in fun1.bin and "fun2" appears in fun2.bin S. > A bad end. > It is likeky vain to go on fighting without Antoine Elias advices and > comments :) > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Wed Feb 28 22:13:34 2018 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Wed, 28 Feb 2018 22:13:34 +0100 Subject: [Scilab-users] hdf5 format and Message-ID: Hi In the following example, I'm digging into the Scilab help pages in order to understand how I can use hdf5 format; nevertheless I'm still wondering how I can have access to the sub-structure (sub-groups and datasets on them) ? (I'm thinking in programming recursive search ...) Thanks Paul ####### mode(0) PATH = get_absolute_file_path("test_hdf5.sce"); // the new file is created a = h5open(PATH + "/tests.h5", "w"); // a basic group is created group_name = "MyGroup"; h5group(a, group_name); // sub-groups creation (using a loop) for i = 1 : 10 s = group_name + "/sub_group" + string(i); h5group(a,s) end // specific groups & sub-groups h5group(a, "FEM"); h5group(a, "FEM/NODES"); h5group(a, "FEM/ELEMENTS"); // dataset creation using a data matrix n = 1E3; i = (1:n)'; A = rand(n,3); Nodes = zeros(n,4); Nodes(:,1) = i; Nodes(:,2:4) = A; h5write(a,"NODES",Nodes'); // dataset name is NODES here - do not confuse with the sub-group h5write(a,"FEM/NODES2",Nodes'); // dataset name is NODE2 in FEM group h5write(a,"FEM/NODES/new_nodes",Nodes'); // add of a new dataset names "new_nodes" in the subgroup NODES in FEM // tests on the contect of the file (see H objects) // it's expected to find sub-groups and dataset into them a.root // list of the groups / datasets and so on at the root a.root.datasets // specifically list of the datasets a.root.NODES // provides information's of the "NODES" dataset a("/FEM") a("/FEM").datasets a("/FEM/NODES").datasets //pause h5close(a); -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Wed Feb 28 23:17:11 2018 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Wed, 28 Feb 2018 15:17:11 -0700 (MST) Subject: [Scilab-users] int2d Message-ID: <1519856231321-0.post@n3.nabble.com> In order to calculate the expected value of a certain two-variable function, I have created a density function of two-dimensional normal distribution. I created a code like the attached file to check the correctness of the function, but it does not work. Where is the code wrong? I have been confirmed int2D supports list format for a function call. Furthermore running the code doesn't show "called multNormDensFunc1". This means it fails to call "multNormDensFunc" function. Best regards. test_multNorm.sce -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html