From jaundreventer at gmail.com Mon Aug 1 10:08:36 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Mon, 1 Aug 2011 10:08:36 +0200 Subject: Error Message-ID: Hi > > To whom it may concern > > I am currently experiencing ERROR problems with SCILAB. I am busy using > SCILAB for my final year project in Chemical Engineering and it is a very > good program but I am experiencing some problems. > > Can someone please assist me with problems? > > Thank you > Regards > Jaundre Venter -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Aug 1 10:11:23 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 01 Aug 2011 10:11:23 +0200 Subject: [scilab-Users] Error In-Reply-To: References: Message-ID: <1312186283.15915.6.camel@korcula.inria.fr> Le lundi 01 ao?t 2011 ? 10:08 +0200, Jaundre Venter a ?crit : > Hi > > > > To whom it may concern > > > > I am currently experiencing ERROR problems with SCILAB. I am busy > using > > SCILAB for my final year project in Chemical Engineering and it is a > very > > good program but I am experiencing some problems. > > > > Can someone please assist me with problems? Please ask your questions directly on the mailing... It is the goal of it. Sylvestre From jaundreventer at gmail.com Mon Aug 1 10:21:22 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Mon, 1 Aug 2011 10:21:22 +0200 Subject: [scilab-Users] Error In-Reply-To: <1312186283.15915.6.camel@korcula.inria.fr> References: <1312186283.15915.6.camel@korcula.inria.fr> Message-ID: Okay Thanks I am busy doing simulation of the production of penicillin inside a fed batch reactor and I have problems with error messages when I program ordinary differential equations. The error I am getting after programming Dx(6) = F+ Fab- Floss is ?INVALID INDEX? now I am not familiar of this error message and I have tried reading SCILAB help but I am still struggling. Can you please advise me why this is happening and how I can solve this error. Another error I am getting is ? WAITING for the right PARENTHESIS? Please note this is my first time using a simulation program thus I am still learning and trust me I want to learn as it is very interesting. Rergards On Mon, Aug 1, 2011 at 10:11 AM, Sylvestre Ledru wrote: > Le lundi 01 ao?t 2011 ? 10:08 +0200, Jaundre Venter a ?crit : > > Hi > > > > > > To whom it may concern > > > > > > I am currently experiencing ERROR problems with SCILAB. I am busy > > using > > > SCILAB for my final year project in Chemical Engineering and it is a > > very > > > good program but I am experiencing some problems. > > > > > > Can someone please assist me with problems? > Please ask your questions directly on the mailing... It is the goal of > it. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaundreventer at gmail.com Mon Aug 1 11:11:41 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Mon, 1 Aug 2011 11:11:41 +0200 Subject: [scilab-Users] Error In-Reply-To: <1312186283.15915.6.camel@korcula.inria.fr> References: <1312186283.15915.6.camel@korcula.inria.fr> Message-ID: Hi Just want to make sure is this the right email address to send questions directly? On Mon, Aug 1, 2011 at 10:11 AM, Sylvestre Ledru wrote: > Le lundi 01 ao?t 2011 ? 10:08 +0200, Jaundre Venter a ?crit : > > Hi > > > > > > To whom it may concern > > > > > > I am currently experiencing ERROR problems with SCILAB. I am busy > > using > > > SCILAB for my final year project in Chemical Engineering and it is a > > very > > > good program but I am experiencing some problems. > > > > > > Can someone please assist me with problems? > Please ask your questions directly on the mailing... It is the goal of > it. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Aug 1 11:16:59 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 01 Aug 2011 11:16:59 +0200 Subject: [scilab-Users] Error In-Reply-To: References: <1312186283.15915.6.camel@korcula.inria.fr> Message-ID: <1312190220.15915.17.camel@korcula.inria.fr> CF: http://www.scilab.org/communities/developer_zone/tools/mailing_list "User mailing list for Scilab. Please post all usage questions here." ;) About your questions, please show an example which reproduce your problem (less than 5 lines) Le lundi 01 ao?t 2011 ? 11:11 +0200, Jaundre Venter a ?crit : > Hi Just want to make sure is this the right email address to send > questions directly? > > On Mon, Aug 1, 2011 at 10:11 AM, Sylvestre Ledru > wrote: > Le lundi 01 ao?t 2011 ? 10:08 +0200, Jaundre Venter a ?crit : > > Hi > > > > > > To whom it may concern > > > > > > I am currently experiencing ERROR problems with SCILAB. I > am busy > > using > > > SCILAB for my final year project in Chemical Engineering > and it is a > > very > > > good program but I am experiencing some problems. > > > > > > Can someone please assist me with problems? > > Please ask your questions directly on the mailing... It is the > goal of > it. > > Sylvestre > > > From jaundreventer at gmail.com Mon Aug 1 11:28:19 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Mon, 1 Aug 2011 11:28:19 +0200 Subject: [scilab-Users] Error In-Reply-To: <1312190220.15915.17.camel@korcula.inria.fr> References: <1312186283.15915.6.camel@korcula.inria.fr> <1312190220.15915.17.camel@korcula.inria.fr> Message-ID: This is the error message "--error 21 Invalid index. at line 66 of function f called by : y=ode(x0,0,t,f); at line 85 of exec file called by : " I get this by programming 9 ordinary differential equations. When I program the first 6 ODE's then I still get graphs but when programming the last 3 that has a effect on the other 6 graphs I then get a error message. Here is the sequence I used. Funcprot Function dx=f(t,x) Constant values ordinary differential equations endfunction initial values y=ode(xo,0,t,f) now here is ordinary differential equation 6 - dx(6) = F+Fab-Floss (up to here the model works) please note this is on line 66 corresponding to error message as soon as I type dx(7) = dx(7) = ((rq1(dx_1)*x(6))+(rq2*(x(1))*(x(6)))) I get the error. Do you want me to send you the SCILAB file? On Mon, Aug 1, 2011 at 11:16 AM, Sylvestre Ledru wrote: > CF: > http://www.scilab.org/communities/developer_zone/tools/mailing_list > "User mailing list for Scilab. Please post all usage questions here." > ;) > > About your questions, please show an example which reproduce your > problem (less than 5 lines) > > > Le lundi 01 ao?t 2011 ? 11:11 +0200, Jaundre Venter a ?crit : > > Hi Just want to make sure is this the right email address to send > > questions directly? > > > > On Mon, Aug 1, 2011 at 10:11 AM, Sylvestre Ledru > > wrote: > > Le lundi 01 ao?t 2011 ? 10:08 +0200, Jaundre Venter a ?crit : > > > Hi > > > > > > > > To whom it may concern > > > > > > > > I am currently experiencing ERROR problems with SCILAB. I > > am busy > > > using > > > > SCILAB for my final year project in Chemical Engineering > > and it is a > > > very > > > > good program but I am experiencing some problems. > > > > > > > > Can someone please assist me with problems? > > > > Please ask your questions directly on the mailing... It is the > > goal of > > it. > > > > Sylvestre > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Aug 1 11:26:30 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 1 Aug 2011 11:26:30 +0200 Subject: how to corectly activate anti-aliasing option to "16x" ? Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48A@exchsrv.AUXITROL1> Everything is in the object name !! Please find herebellow the Scilab code and the resulting picture ! Thanks Paul #############################################" mode(0) omega = 30; t=linspace(0,1,1000); function y=sinus(t) y = sin(omega*t) endfunction y = sinus(t); scf(1); drawlater(); f = gcf(); f.background = color(245,245,245); a = gca(); a.line_style = 1; a.anti_aliasing = "16x"; // d?but des courbes plot(t,y,"b-"); e1 = gce() p1 = e1.children p1.thickness = 4 p1.line_style = 0 p1.foreground = 2 drawnow(); xs2gif(1,'sinus.gif'); ----------------------------------------------------------------- PAUL CARRICO Design Engineer / Material expert Temperature Department Esterline | Advanced Sensors 5, all?e Charles Path? 18941 BOURGES cedex 9 FRANCE Phone : +33 (0) 2 48 66 78 50 Fax : +33 (0) 2 48 66 78 55 www.esterline.com Featuring AUXITROL, NORWICH, and WESTON Products Please come and visit us on our stand B242 Hall 5 at Le Bourget Airshow 20th -26th June. ----------------------------------------------------------------- P Please consider the environment before printing this e-mail -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sinus.gif Type: image/gif Size: 4287 bytes Desc: sinus.gif URL: From sylvestre.ledru at scilab.org Mon Aug 1 11:45:04 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 01 Aug 2011 11:45:04 +0200 Subject: [scilab-Users] how to corectly activate anti-aliasing option to "16x" ? In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48A@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48A@exchsrv.AUXITROL1> Message-ID: <1312191904.15915.22.camel@korcula.inria.fr> Le lundi 01 ao?t 2011 ? 11:26 +0200, Carrico, Paul a ?crit : > Everything is in the object name !! > a.anti_aliasing = "16x"; Replace a. by f. and here is the result Sylvestre -------------- next part -------------- A non-text attachment was scrubbed... Name: sinus.gif Type: image/gif Size: 14641 bytes Desc: not available URL: From paul.carrico at esterline.com Mon Aug 1 11:48:51 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 1 Aug 2011 11:48:51 +0200 Subject: [scilab-Users] how to corectly activate anti-aliasing option to "16x" ? In-Reply-To: <1312191904.15915.22.camel@korcula.inria.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48A@exchsrv.AUXITROL1> <1312191904.15915.22.camel@korcula.inria.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48B@exchsrv.AUXITROL1> Thanks Paul -----Message d'origine----- De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Envoy? : lundi 1 ao?t 2011 11:45 ? : users at lists.scilab.org Objet : Re: [scilab-Users] how to corectly activate anti-aliasing option to "16x" ? Le lundi 01 ao?t 2011 ? 11:26 +0200, Carrico, Paul a ?crit : > Everything is in the object name !! > a.anti_aliasing = "16x"; Replace a. by f. and here is the result Sylvestre -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From jaundreventer at gmail.com Mon Aug 1 12:08:51 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Mon, 1 Aug 2011 12:08:51 +0200 Subject: [scilab-Users] how to corectly activate anti-aliasing option to "16x" ? In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48B@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48A@exchsrv.AUXITROL1> <1312191904.15915.22.camel@korcula.inria.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0498B48B@exchsrv.AUXITROL1> Message-ID: Thanks Paul is it possible to send you a SCILAB file of my model? i think you will then see better where the problem is as it stil gives me a error. I dont really understand where my problem was. i am very new to simulation programs. On Mon, Aug 1, 2011 at 11:48 AM, Carrico, Paul wrote: > Thanks > > Paul > > > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Envoy? : lundi 1 ao?t 2011 11:45 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] how to corectly activate anti-aliasing option to > "16x" ? > > > Le lundi 01 ao?t 2011 ? 11:26 +0200, Carrico, Paul a ?crit : > > Everything is in the object name !! > > a.anti_aliasing = "16x"; > Replace a. by f. > > and here is the result > > Sylvestre > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la > personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail > par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le > message de votre syst?me. Toute divulgation, copie ou distribution de cet > e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error, please contact the sender and > delete the email from your system. If you are not the named addressee you > should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit.adhikari at gmail.com Tue Aug 2 10:38:10 2011 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 2 Aug 2011 10:38:10 +0200 Subject: Reg :: Issues with Filter Designing in SciLab Message-ID: Dear All, I am designing an IIR filter scilab, in which the quantized filter response is as follows: ########################################################################### FLDN :: Designed Filter := Hiir_q 2 3 4 5 6 7 8 9 10 11 12 13 14 15 139 - 208z + 7920z - 25291z + 55974z - 66935z + 46643z + 26354z - 95388z + 136947z - 100619z + 33947z + 39939z - 63176z + 54471z - 24951z 16 + 7607z ----------------------------------------------------------------------------------------------------------------------------------------------- 2 3 4 5 6 7 8 9 10 14419729 - 2.352D+08z + 1.827D+09z - 8.997D+09z + 3.148D+10z - 8.305D+10z + 1.710D+11z - 2.806D+11z + 3.709D+11z - 3.965D+11z + 3.420D+11z 11 12 13 14 15 16 - 2.358D+11z + 1.275D+11z - 5.233D+10z + 1.541D+10z - 2.917D+09z + 2.684D+08z ########################################################################### Hiir_q is stable and I tested this filter with quantized input for 16-bits. So, when I was satisfied I got the filter coefficients like as follows : -->getArray(invert(a)) B(01) = 268435456 B(02) = 1377518686 B(03) = -1768307133 B(04) = -786674615 B(05) = -1379482255 B(06) = 441572766 B(07) = -1550825035 B(08) = -1373807840 B(09) = 1486413132 B(10) = -1394174588 B(11) = -787299224 B(12) = -1440621730 B(13) = 1413056441 B(14) = -406911246 B(15) = 1826903011 B(16) = -235150099 B(17) = 14419729 -->getArray(invert(b)) B(01) = 7607 B(02) = -24951 B(03) = 54471 B(04) = -63176 B(05) = 39939 B(06) = 33947 B(07) = -100619 B(08) = 136947 B(09) = -95388 B(10) = 26354 B(11) = 46643 B(12) = -66935 B(13) = 55974 B(14) = -25291 B(15) = 7920 B(16) = -208 B(17) = 139 --> and then tried to implement it using a double precision C++/SystemC model. I found that the filter output is unstable. While I was debugging, as a check I copied and pasted these coefficients in MATLAB so that I can be sure what is going wrong. With my surprise I found that the MATLAB is showing completely different response and a completely unstable filter. I think I am doing some mistake. Can anybody please point out where ? Regards, -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gu?hausstra?e 27-29,1040 Vienna -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaundreventer at gmail.com Tue Aug 2 11:01:30 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Tue, 2 Aug 2011 11:01:30 +0200 Subject: Model not running Message-ID: Hi all I am busy programming a penicillin growth inside a fed batch reactor model in SCILAB. Now I have 9 ordinary differential equations where i am supposed to get 6 graphs from the 9 ordinary differential equations. Now when using only the 6 main ordinary differential equations, then i am getting six graphs but the graphs is wrong because the other 3 ordinary differential equations is going to have a impact on the six graphs. As soon as i am programming the other 3 ordinary differential equations my model doesnt want to run graph 7 till 9. it runs but only shows title name and y label and x label. the error i am getting says the following. "plot2d(t,y(7,:)) !--error 21 Invalid index. t line 58 of function f called by : y=ode(x0, 0, t, f);" i am not familiar with SCILAB so can someone assist me and explaining if i should programm the last 3 ordinary differential equations differently? the 9 equations are as follows. dx(1) = (((mu)*(x(1)))-((x(1))/(x(6)))*(dx_6)); // biomass concentration X dx(2) = z*(mu*x(1)-(F*x(1))/x(6))+QQ; // hydrogen ion concentration H+ dx(3) = mupp*(x(1))-(K)*(x(3))-((x(3))/x(6))*(dx_6); // Penicilin concentration P dx(4) = -mu/Yxs*x(1)-mupp/Yps*x(1)-mx*x(1)+Fsf/x(6)-x(4)/x(6)*dx_6; // Substrate concentration S dx(5) = -mu/Yxo*x(1)-mupp/Ypo*x(1)-mo*x(1)+kla*(cll-x(5))-x(5)/x(6)*dx_6; //dissolved oxygen concentration Cl dx(6) = F+Fab+Floss; //Culture Volume V dx(7) = ((rq1(x(1))*x(6))+(rq2*(x(1))*(x(6)))); // Heat of reaction Qrxn dx(8) = ((((F/sf)(Tf-(x(8))))+(1/(x(6)*pcp)))*(QT)); // Temperature T dx(9) = (a1*(dx_1)+a2*x(1)+a3); // CO2 evolution, CO2 As you can see that eqaution 7 till 9 has some effects on other ordinary differential eqautions. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graph.bmp Type: image/bmp Size: 2877422 bytes Desc: not available URL: From sumit.adhikari at gmail.com Tue Aug 2 16:04:09 2011 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 2 Aug 2011 16:04:09 +0200 Subject: Reg :: Issues with Filter Designing in SciLab In-Reply-To: References: Message-ID: Okay I did reduce the problem. Attached is the script! When I run with show_issue = 0 (Line 12) I have everything perfect. With that I try to get the filter coefficients using the commands : getArray(invert(a)) getArray(invert(b)) The coefficient obtained in this way shows stability problem and has completely different response in MATLAB. In order to debug this enable show_issue = 1 (line 12), by which I enter coefficient to re-construct the filter and this time it is completely different and in agreement with MATLAB result! Hope I am missing something while I am printing a and b. Can anybody tell me what is the issue with my printing of a and b ? Regards, -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gu?hausstra?e 27-29,1040 Vienna On Tue, Aug 2, 2011 at 10:38 AM, Sumit Adhikari wrote: > Dear All, > > I am designing an IIR filter scilab, in which the quantized filter response > is as follows: > > ########################################################################### > FLDN :: Designed Filter := Hiir_q > > 2 3 4 5 6 7 > 8 9 10 11 12 13 14 15 > 139 - 208z + 7920z - 25291z + 55974z - 66935z + 46643z + 26354z - > 95388z + 136947z - 100619z + 33947z + 39939z - 63176z + 54471z - 24951z > > 16 > > + 7607z > > > ----------------------------------------------------------------------------------------------------------------------------------------------- > > 2 3 4 > 5 6 7 8 9 10 > 14419729 - 2.352D+08z + 1.827D+09z - 8.997D+09z + 3.148D+10z - > 8.305D+10z + 1.710D+11z - 2.806D+11z + 3.709D+11z - 3.965D+11z + 3.420D+11z > > 11 12 13 14 15 > 16 > - 2.358D+11z + 1.275D+11z - 5.233D+10z + 1.541D+10z - 2.917D+09z + > 2.684D+08z > > > ########################################################################### > > > Hiir_q is stable and I tested this filter with quantized input for 16-bits. > So, when I was satisfied I got the filter coefficients like as follows : > > > -->getArray(invert(a)) > B(01) = 268435456 > B(02) = 1377518686 > B(03) = -1768307133 > B(04) = -786674615 > B(05) = -1379482255 > B(06) = 441572766 > B(07) = -1550825035 > B(08) = -1373807840 > B(09) = 1486413132 > B(10) = -1394174588 > B(11) = -787299224 > B(12) = -1440621730 > B(13) = 1413056441 > B(14) = -406911246 > B(15) = 1826903011 > B(16) = -235150099 > B(17) = 14419729 > > -->getArray(invert(b)) > B(01) = 7607 > B(02) = -24951 > B(03) = 54471 > B(04) = -63176 > B(05) = 39939 > B(06) = 33947 > B(07) = -100619 > B(08) = 136947 > B(09) = -95388 > B(10) = 26354 > B(11) = 46643 > B(12) = -66935 > B(13) = 55974 > B(14) = -25291 > B(15) = 7920 > B(16) = -208 > B(17) = 139 > > --> > > and then tried to implement it using a double precision C++/SystemC model. > I found that the filter output is unstable. While I was debugging, > as a check I copied and pasted these coefficients in MATLAB so that I can > be sure what is going wrong. With my surprise I found that > the MATLAB is showing completely different response and a completely > unstable filter. > > I think I am doing some mistake. Can anybody please point out where ? > > Regards, > > > -- > Sumit Adhikari, > Institute of Computer Technology, > Faculty of Electrical Engineering, > Vienna University of Technology, > Gu?hausstra?e 27-29,1040 Vienna > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FIRFilterProblem.sci Type: application/octet-stream Size: 3147 bytes Desc: not available URL: From jdacuddy at gmail.com Tue Aug 2 16:36:30 2011 From: jdacuddy at gmail.com (donihue) Date: Tue, 2 Aug 2011 07:36:30 -0700 (PDT) Subject: COM Automation client support Message-ID: <1312295790596-3219137.post@n3.nabble.com> Does Scilab have COM Automation client support? If so, could someone indicate how to access it? Many thanks Donihue -- View this message in context: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219137.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Tue Aug 2 17:01:37 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 2 Aug 2011 17:01:37 +0200 Subject: [scilab-Users] COM Automation client support In-Reply-To: <1312295790596-3219137.post@n3.nabble.com> References: <1312295790596-3219137.post@n3.nabble.com> Message-ID: <003d01cc5125$13ea8c40$3bbfa4c0$@scilab.org> Hi, http://forge.scilab.org/index.php/p/ole/ Allan -----Message d'origine----- De?: donihue [mailto:jdacuddy at gmail.com] Envoy??: mardi 2 ao?t 2011 16:37 ??: users at lists.scilab.org Objet?: [scilab-Users] COM Automation client support Does Scilab have COM Automation client support? If so, could someone indicate how to access it? Many thanks Donihue -- View this message in context: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p32191 37.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jdacuddy at gmail.com Tue Aug 2 17:23:39 2011 From: jdacuddy at gmail.com (donihue) Date: Tue, 2 Aug 2011 08:23:39 -0700 (PDT) Subject: COM Automation client support In-Reply-To: <003d01cc5125$13ea8c40$3bbfa4c0$@scilab.org> References: <1312295790596-3219137.post@n3.nabble.com> <003d01cc5125$13ea8c40$3bbfa4c0$@scilab.org> Message-ID: Many thanks! Do you know if it is possible to call Scilab from another programme (eg, EViews) using this method? [EViews can call Matlab and R.] Thank you Donihue On 2 August 2011 17:02, Allan CORNET [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hi, > > http://forge.scilab.org/index.php/p/ole/ > > Allan > > -----Message d'origine----- > De : donihue [mailto:[hidden email]] > > Envoy? : mardi 2 ao?t 2011 16:37 > ? : [hidden email] > Objet : [scilab-Users] COM Automation client support > > Does Scilab have COM Automation client support? If so, could someone > indicate how to access it? > > Many thanks > Donihue > > -- > View this message in context: > > http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p32191 > 37.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > > Nabble.com. > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219235.html > To unsubscribe from COM Automation client support, click here. > > -- View this message in context: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219298.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Tue Aug 2 19:00:59 2011 From: paul.carrico at free.fr (Paul CARRICO) Date: Tue, 2 Aug 2011 19:00:59 +0200 Subject: OLE package Message-ID: <001901cc5135$c149d660$43dd8320$@carrico@free.fr> Dear all, How can I install OLE package (Windows OS package on my working station) ? http://forge.scilab.org/index.php/p/ole/ Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgjohnson at srcinc.com Tue Aug 2 19:32:38 2011 From: dgjohnson at srcinc.com (danjohn83) Date: Tue, 2 Aug 2011 10:32:38 -0700 (PDT) Subject: compiling Scilab/Xcos applications in actionscript Message-ID: <1312306358694-3219635.post@n3.nabble.com> I am writing an application that I want to webdeploy. Do you know of anyway to compile Scilab/Xcos software to Java or other actionscript code for webdeployment? -- View this message in context: http://mailinglists.scilab.org/compiling-Scilab-Xcos-applications-in-actionscript-tp3219635p3219635.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Tue Aug 2 19:53:31 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 2 Aug 2011 19:53:31 +0200 Subject: [scilab-Users] Re: COM Automation client support In-Reply-To: References: <1312295790596-3219137.post@n3.nabble.com> <003d01cc5125$13ea8c40$3bbfa4c0$@scilab.org> Message-ID: <002301cc513d$17519820$45f4c860$@scilab.org> Hi, There are many ways to interact with Scilab You can call Scilab engine from C/C++, java, C# See http://help.scilab.org/docs/5.3.2/en_US/section_0b209c9ffb9f256780f4b18be7e0ebc7.html http://help.scilab.org/docs/5.3.2/en_US/javasci.html If you want to call scilab with COM : See http://forge.scilab.org/index.php/p/com-application-server/ Do not hesitate, if you have some questions Allan De : donihue [mailto:jdacuddy at gmail.com] Envoy? : mardi 2 ao?t 2011 17:24 ? : users at lists.scilab.org Objet : [scilab-Users] Re: COM Automation client support Many thanks! Do you know if it is possible to call Scilab from another programme (eg, EViews) using this method? [EViews can call Matlab and R.] Thank you Donihue On 2 August 2011 17:02, Allan CORNET [via Scilab / Xcos - Mailing Lists Archives] <[hidden email]> wrote: Hi, http://forge.scilab.org/index.php/p/ole/ Allan -----Message d'origine----- De : donihue [mailto:[hidden email] ] Envoy? : mardi 2 ao?t 2011 16:37 ? : [hidden email] Objet : [scilab-Users] COM Automation client support Does Scilab have COM Automation client support? If so, could someone indicate how to access it? Many thanks Donihue -- View this message in context: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p32191 37.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _____ If you reply to this email, your message will be added to the discussion below: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219235.html To unsubscribe from COM Automation client support, click here. _____ View this message in context: Re: COM Automation client support Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From iai at axelspace.com Wed Aug 3 00:27:15 2011 From: iai at axelspace.com (Iai Masafumi ax) Date: Wed, 03 Aug 2011 07:27:15 +0900 Subject: Scilab ignores SciNotes' cancellation of the closing event. In-Reply-To: References: Message-ID: <4E3879C3.30500@axelspace.com> Hi Suppose you have some unsaved text on SciNotes. Then you close the main window of Scilab by typing "exit" or by pressing [x] button on the window. You'll see a message box popped up by SciNotes saying " has been modified since last save save it?" Now when you press "Cancel" button, this cancellation is ignored. Scilab closes SciNote and itself anyway. Unsaved text is lost. I think this behavior upsets users, and would like to see it fixed. Scilab 5.3.3 (32bit) on Windows 7 64bit. Iai (2011/08/02 18:01), Jaundre Venter wrote: > Hi all > > I am busy programming a penicillin growth inside a fed batch reactor > model in SCILAB. > > Now I have 9 ordinary differential equations where i am supposed to get > 6 graphs from the 9 ordinary differential equations. > > Now when using only the 6 main ordinary differential equations, then i > am getting six graphs but the graphs is wrong because the other 3 > ordinary differential equations is going to have a impact on the six > graphs. As soon as i am programming the other 3 ordinary differential > equations my model doesnt want to run graph 7 till 9. > > it runs but only shows title name and y label and x label. > > the error i am getting says the following. > > "plot2d(t,y(7,:)) > !--error 21 > Invalid index. > t line 58 of function f called by : > y=ode(x0, 0, t, f);" > > i am not familiar with SCILAB so can someone assist me and explaining if > i should programm the last 3 ordinary differential equations differently? > > > the 9 equations are as follows. > > > dx(1) = (((mu)*(x(1)))-((x(1))/(x(6)))*(dx_6)); // biomass concentration X > dx(2) = z*(mu*x(1)-(F*x(1))/x(6))+QQ; // hydrogen ion concentration H+ > dx(3) = mupp*(x(1))-(K)*(x(3))-((x(3))/x(6))*(dx_6); // Penicilin > concentration P > dx(4) = -mu/Yxs*x(1)-mupp/Yps*x(1)-mx*x(1)+Fsf/x(6)-x(4)/x(6)*dx_6; // > Substrate concentration S > dx(5) = > -mu/Yxo*x(1)-mupp/Ypo*x(1)-mo*x(1)+kla*(cll-x(5))-x(5)/x(6)*dx_6; > //dissolved oxygen concentration Cl > dx(6) = F+Fab+Floss; //Culture Volume V > dx(7) = ((rq1(x(1))*x(6))+(rq2*(x(1))*(x(6)))); // Heat of reaction Qrxn > > dx(8) = ((((F/sf)(Tf-(x(8))))+(1/(x(6)*pcp)))*(QT)); // Temperature T > > dx(9) = (a1*(dx_1)+a2*x(1)+a3); // CO2 evolution, CO2 > > > As you can see that eqaution 7 till 9 has some effects on other ordinary > differential eqautions. > > > From allan.cornet at scilab.org Wed Aug 3 07:55:59 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 3 Aug 2011 07:55:59 +0200 Subject: [scilab-Users] Scilab ignores SciNotes' cancellation of the closing event. In-Reply-To: <4E3879C3.30500@axelspace.com> References: <4E3879C3.30500@axelspace.com> Message-ID: <000301cc51a2$04ca2450$0e5e6cf0$@scilab.org> Hi, See: http://bugzilla.scilab.org/show_bug.cgi?id=9797 Allan -----Message d'origine----- De?: Iai Masafumi ax [mailto:iai at axelspace.com] Envoy??: mercredi 3 ao?t 2011 00:27 ??: users at lists.scilab.org Objet?: [scilab-Users] Scilab ignores SciNotes' cancellation of the closing event. Hi Suppose you have some unsaved text on SciNotes. Then you close the main window of Scilab by typing "exit" or by pressing [x] button on the window. You'll see a message box popped up by SciNotes saying " has been modified since last save save it?" Now when you press "Cancel" button, this cancellation is ignored. Scilab closes SciNote and itself anyway. Unsaved text is lost. I think this behavior upsets users, and would like to see it fixed. Scilab 5.3.3 (32bit) on Windows 7 64bit. Iai (2011/08/02 18:01), Jaundre Venter wrote: > Hi all > > I am busy programming a penicillin growth inside a fed batch reactor > model in SCILAB. > > Now I have 9 ordinary differential equations where i am supposed to > get > 6 graphs from the 9 ordinary differential equations. > > Now when using only the 6 main ordinary differential equations, then i > am getting six graphs but the graphs is wrong because the other 3 > ordinary differential equations is going to have a impact on the six > graphs. As soon as i am programming the other 3 ordinary differential > equations my model doesnt want to run graph 7 till 9. > > it runs but only shows title name and y label and x label. > > the error i am getting says the following. > > "plot2d(t,y(7,:)) > !--error 21 > Invalid index. > t line 58 of function f called by : > y=ode(x0, 0, t, f);" > > i am not familiar with SCILAB so can someone assist me and explaining > if i should programm the last 3 ordinary differential equations differently? > > > the 9 equations are as follows. > > > dx(1) = (((mu)*(x(1)))-((x(1))/(x(6)))*(dx_6)); // biomass > concentration X > dx(2) = z*(mu*x(1)-(F*x(1))/x(6))+QQ; // hydrogen ion concentration > H+ > dx(3) = mupp*(x(1))-(K)*(x(3))-((x(3))/x(6))*(dx_6); // Penicilin > concentration P > dx(4) = -mu/Yxs*x(1)-mupp/Yps*x(1)-mx*x(1)+Fsf/x(6)-x(4)/x(6)*dx_6; > // Substrate concentration S > dx(5) = > -mu/Yxo*x(1)-mupp/Ypo*x(1)-mo*x(1)+kla*(cll-x(5))-x(5)/x(6)*dx_6; > //dissolved oxygen concentration Cl > dx(6) = F+Fab+Floss; //Culture Volume V > dx(7) = ((rq1(x(1))*x(6))+(rq2*(x(1))*(x(6)))); // Heat of reaction > Qrxn > > dx(8) = ((((F/sf)(Tf-(x(8))))+(1/(x(6)*pcp)))*(QT)); // Temperature > T > > dx(9) = (a1*(dx_1)+a2*x(1)+a3); // CO2 evolution, CO2 > > > As you can see that eqaution 7 till 9 has some effects on other > ordinary differential eqautions. > > > From jaundreventer at gmail.com Wed Aug 3 09:56:25 2011 From: jaundreventer at gmail.com (Jaundre Venter) Date: Wed, 3 Aug 2011 09:56:25 +0200 Subject: Check code on SCILAB`` Message-ID: Hi all I am busy with 9 ordinary differential equations and are getting the wrong values and results and a few errors. Now I just want to know is there like a "Check code/step in run or a debug run" you can insert or do in SCILAB, to ask SCILAB to run the model and to stop if there is a error or to give you where you inserted the "Check code/step in run or a debug run" the results and if you are happy you just hit enter and then it goes to next line? I know visual basics can do that as I heard so I was just wondering if SCILAB can do it as well. Then I am getting confuse with when to use a "comma, a semi comma, brackets or square brackets" What and when do you normaly use "comma, a semi comma, brackets or square brackets" because I think I am not using it correctly? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdacuddy at gmail.com Wed Aug 3 10:28:07 2011 From: jdacuddy at gmail.com (donihue) Date: Wed, 3 Aug 2011 01:28:07 -0700 (PDT) Subject: COM Automation client support In-Reply-To: <002301cc513d$17519820$45f4c860$@scilab.org> References: <1312295790596-3219137.post@n3.nabble.com> <003d01cc5125$13ea8c40$3bbfa4c0$@scilab.org> <002301cc513d$17519820$45f4c860$@scilab.org> Message-ID: Hello again Allan, and many thanks for your reply, which I forwarded to the EViews developers since I am trying to get a COM link from EViews to Scilab (they can open a link to Matlab now, but not Scilab) so that I can use Scilab functions and transmit the results to EViews for further processing. Unfortunately the reply I got from them was " - - Re: COM Automation client support [image: Unread post] by *EViews Gareth * on Tue Aug 02, 2011 11:03 pm That COM server page is woefully low on information...". Is there any possibilty of obtaining more "information" which would help them? (Sorry, I know nothing about how all this works, so can't help them myself.) Apologies for this imposition. Regards Donihue On 2 August 2011 19:54, Allan CORNET [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hi,**** > > ** ** > > There are many ways to interact with Scilab**** > > ** ** > > You can call Scilab engine from C/C++, java, C#**** > > ** ** > > See > http://help.scilab.org/docs/5.3.2/en_US/section_0b209c9ffb9f256780f4b18be7e0ebc7.html > **** > > http://help.scilab.org/docs/5.3.2/en_US/javasci.html**** > > ** ** > > If you want to call scilab with COM :**** > > ** ** > > See http://forge.scilab.org/index.php/p/com-application-server/**** > > ** ** > > Do not hesitate, if you have some questions**** > > ** ** > > Allan**** > > ** ** > > ** ** > > *De :* donihue [mailto:[hidden email]] > > *Envoy? :* mardi 2 ao?t 2011 17:24 > *? :* [hidden email] > *Objet :* [scilab-Users] Re: COM Automation client support**** > > ** ** > > Many thanks!**** > > ** ** > > Do you know if it is possible to call Scilab from another programme (eg, > EViews) using this method? [EViews can call Matlab and R.]**** > > ** ** > > Thank you**** > > Donihue**** > > On 2 August 2011 17:02, Allan CORNET [via Scilab / Xcos - Mailing Lists > Archives] <[hidden email]> > wrote:**** > > Hi, > > http://forge.scilab.org/index.php/p/ole/ > > Allan > > -----Message d'origine----- > De : donihue [mailto:[hidden email]] > > Envoy? : mardi 2 ao?t 2011 16:37 > ? : [hidden email] > Objet : [scilab-Users] COM Automation client support > > Does Scilab have COM Automation client support? If so, could someone > indicate how to access it? > > Many thanks > Donihue > > -- > View this message in context: > > http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p32191 > 37.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at > > Nabble.com. > > > **** > ------------------------------ > > *If you reply to this email, your message will be added to the discussion > below:* > > > http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219235.html > **** > > To unsubscribe from COM Automation client support, click here. **** > > ** ** > > ** ** > ------------------------------ > > View this message in context: Re: COM Automation client support > > Sent from the Scilab users - Mailing Lists Archives mailing list archiveat Nabble.com. > **** > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3219683.html > To unsubscribe from COM Automation client support, click here. > > -- View this message in context: http://mailinglists.scilab.org/COM-Automation-client-support-tp3219137p3221639.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank at photonita.com.br Wed Aug 3 17:14:55 2011 From: frank at photonita.com.br (Frank Hrebabetzky) Date: Wed, 03 Aug 2011 12:14:55 -0300 Subject: SSE2 Message-ID: <4E3965EF.6010206@photonita.com.br> When I tried to install scilab-5.3.3 (32 bit) on an AMD Athlon XP 2200+ running Windows XP Service Pack 3 I got the error message that CPU SSE2 instructions are required. There are sites which offer SSE2 installation software, but they seemed somewhat dubious to me. I could simply try older versions but with the internet speed here every attempt takes a couple of days (connection reset). So somebody could tell me: Which version is compatible with my platform? Or some additional piece of software solves the problem? Or something? -- Frank Hrebabetzky Tel. (48) 3239 2258 Photonita Ltda. http://www.photonita.com.br Brazil From pierre.pineau at eurodecision.com Wed Aug 3 12:39:59 2011 From: pierre.pineau at eurodecision.com (PierreP) Date: Wed, 3 Aug 2011 03:39:59 -0700 (PDT) Subject: Concatenate strings with a tabulation Message-ID: <1312367999992-3221904.post@n3.nabble.com> Hello everybody, I'm trying to concatenate two strings with a tabulation: results = sprintf('%s\t%s',results,reponse); or results = msprintf('%s\t%s',results,reponse); But none works. How can i do that? Regards, Pierre -- View this message in context: http://mailinglists.scilab.org/Concatenate-strings-with-a-tabulation-tp3221904p3221904.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From calixte.denizet at scilab.org Wed Aug 3 18:24:42 2011 From: calixte.denizet at scilab.org (Calixte Denizet) Date: Wed, 03 Aug 2011 18:24:42 +0200 Subject: [scilab-Users] Concatenate strings with a tabulation In-Reply-To: <1312367999992-3221904.post@n3.nabble.com> References: <1312367999992-3221904.post@n3.nabble.com> Message-ID: <4E39764A.2040802@scilab.org> Hi Pierre, It works for me: ___________________________________________ scilab-5.3.3 Consortium Scilab (DIGITEO) Copyright (c) 1989-2011 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->a=sprintf("%s\t%s","a","b") a = a b -->a=sprintf("%s\t\t%s","a","b") a = a b -->a=sprintf("%s\t\t\t%s","a","b") a = a b What is the 'results' string ? Calixte On 03/08/2011 12:39, PierreP wrote: > Hello everybody, > > I'm trying to concatenate two strings with a tabulation: > > results = sprintf('%s\t%s',results,reponse); > or > results = msprintf('%s\t%s',results,reponse); > > But none works. > > How can i do that? > > Regards, > > Pierre > > -- > View this message in context: http://mailinglists.scilab.org/Concatenate-strings-with-a-tabulation-tp3221904p3221904.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Wed Aug 3 18:31:10 2011 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Wed, 03 Aug 2011 18:31:10 +0200 Subject: [scilab-Users] SSE2 In-Reply-To: <4E3965EF.6010206@photonita.com.br> References: <4E3965EF.6010206@photonita.com.br> Message-ID: Hi, Scilab 5.2.2 http://www.scilab.org/communities/developer_zone/scilab_versions/old_versions/scilab_5.2.2 Allan On Wed, 03 Aug 2011 12:14:55 -0300, Frank Hrebabetzky wrote: > When I tried to install scilab-5.3.3 (32 bit) on an AMD Athlon XP > 2200+ running Windows XP Service Pack 3 I got the error message that > CPU SSE2 instructions are required. There are sites which offer SSE2 > installation software, but they seemed somewhat dubious to me. > > I could simply try older versions but with the internet speed here > every attempt takes a couple of days (connection reset). So somebody > could tell me: > > Which version is compatible with my platform? > > Or some additional piece of software solves the problem? > > Or something? From byronw_1980 at hotmail.com Thu Aug 4 08:30:49 2011 From: byronw_1980 at hotmail.com (byron wyatt) Date: Thu, 4 Aug 2011 17:00:49 +1030 Subject: need help Message-ID: Hello I have a copy of the signal processing with scilab manual and am enjoying learning from it but I can not find a copy of all the example codes that the manual talk about to learn about how the examples look if u could send me a link to a site to download a copy of it or if you could send me the examples. Thank you Byron Wyatt -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.pineau at eurodecision.com Thu Aug 4 08:42:48 2011 From: pierre.pineau at eurodecision.com (PierreP) Date: Wed, 3 Aug 2011 23:42:48 -0700 (PDT) Subject: Concatenate strings with a tabulation In-Reply-To: <4E39764A.2040802@scilab.org> References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> Message-ID: <1312440168629-3224608.post@n3.nabble.com> All right, then it seems that it is because of the version (i'm using 5.2, i will upgrade). I tried your commands but they do not work in my environnment. I'll post after the upgrade to confirm that. Thank you for your answer Calixte, Regards, Pierre -- View this message in context: http://mailinglists.scilab.org/Concatenate-strings-with-a-tabulation-tp3221904p3224608.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From pierre.pineau at eurodecision.com Thu Aug 4 09:08:26 2011 From: pierre.pineau at eurodecision.com (PierreP) Date: Thu, 4 Aug 2011 00:08:26 -0700 (PDT) Subject: Concatenate strings with a tabulation In-Reply-To: <4E39764A.2040802@scilab.org> References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> Message-ID: <1312441706658-3224644.post@n3.nabble.com> Ok it works fine with the latest verison of scilab. thank you very much, have a great day! Pierre -- View this message in context: http://mailinglists.scilab.org/Concatenate-strings-with-a-tabulation-tp3221904p3224644.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From frank at photonita.com.br Thu Aug 4 15:34:14 2011 From: frank at photonita.com.br (Frank Hrebabetzky) Date: Thu, 04 Aug 2011 10:34:14 -0300 Subject: [scilab-Users] SSE2 In-Reply-To: References: <4E3965EF.6010206@photonita.com.br> Message-ID: <4E3A9FD6.70106@photonita.com.br> Thanks, it works. -- Frank Hrebabetzky Tel. (48) 3239 2258 Photonita Ltda. http://www.photonita.com.br Brazil On 8/3/2011 1:31 PM, allan.cornet at scilab.org wrote: > Hi, > > Scilab 5.2.2 > > http://www.scilab.org/communities/developer_zone/scilab_versions/old_versions/scilab_5.2.2 > > > > Allan > > > On Wed, 03 Aug 2011 12:14:55 -0300, Frank Hrebabetzky wrote: >> When I tried to install scilab-5.3.3 (32 bit) on an AMD Athlon XP >> 2200+ running Windows XP Service Pack 3 I got the error message that >> CPU SSE2 instructions are required. There are sites which offer SSE2 >> installation software, but they seemed somewhat dubious to me. >> >> I could simply try older versions but with the internet speed here >> every attempt takes a couple of days (connection reset). So somebody >> could tell me: >> >> Which version is compatible with my platform? >> >> Or some additional piece of software solves the problem? >> >> Or something? > > From serge.steer at inria.fr Thu Aug 4 18:06:44 2011 From: serge.steer at inria.fr (Serge Steer) Date: Thu, 4 Aug 2011 18:06:44 +0200 (CEST) Subject: [scilab-Users] Check code on SCILAB`` In-Reply-To: Message-ID: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> To help debugging a Scilab code you may use: - the pause instruction at the point where an error is detected (editing the code) - the setbpt command that can create a breakpoint at the specified line of the specified code. Quite similar to "pause" but do not requires to modify the source code. - the errcatch(errn,'pause') instruction, that will make the code pause just after the error with number errn arises. - finally you may also use the copy paste technic (copy one source code instruction at a time and paste it into the console) I hope this will help you. Serge Steer INRIA ----- Mail original ----- De: "Jaundre Venter" ?: users at lists.scilab.org Envoy?: Mercredi 3 Ao?t 2011 09:56:25 Objet: [scilab-Users] Check code on SCILAB`` Hi all I am busy with 9 ordinary differential equations and are getting the wrong values and results and a few errors. Now I just want to know is there like a "Check code/step in run or a debug run" you can insert or do in SCILAB, to ask SCILAB to run the model and to stop if there is a error or to give you where you inserted the "Check code/step in run or a debug run" the results and if you are happy you just hit enter and then it goes to next line? I know visual basics can do that as I heard so I was just wondering if SCILAB can do it as well. Then I am getting confuse with when to use a "comma, a semi comma, brackets or square brackets" What and when do you normaly use "comma, a semi comma, brackets or square brackets" because I think I am not using it correctly? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Fri Aug 5 21:27:03 2011 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 05 Aug 2011 21:27:03 +0200 Subject: [ANN]: Scipad-8.66 Message-ID: <4E3C4407.3040008@free.fr> ANNOUNCE: Scipad version 8.66 ============================= A new version of the Scipad text editor for Scilab and Scicoslab is available. CHANGES SINCE PREVIOUS VERSION ============================== NEW: * URLs are clickable and get displayed in any available external web browser * It is now possible to have more than one results window for find in files * Added a new line numbers display scheme which is identical to logical line numbers but continued lines are counted the same as any other line. This is the same as physical line numbers that would be reset at each function start. The debugger is not touched by this change, only the margin and the status line displaying line numbers, and the goto line feature. Error lines reported in error messages correspond to this new line numbering scheme (this is aka "whereami scheme") * Added new edit actions: turn single quote string delimiters into double quotes, to lower case, to upper case, switch case of first letter of words, and capitalize words * Expanded the editor() macro to support filepaths, linenumbers and function names (same prototype as in Scilab 5) FIXED BUGS: * Fixed bug introduced in r265 (Scipad 8.65): restoring the previous sessionlayout did not correctly close the temporary buffer when there was hidden files * Fixed bug introduced in r58 (Scipad 8.59): search/replace in multiple files did no longer work * Fixed: double clicking for selecting a word, followed by keyboard arrows produced unexpected selection adjustment * Fixed bug when commenting a single empty selected line * Fixed messages about invalid internal links in the Scipad help files that showed up when installing Scipad in Scilab 5.3 Other changes (minor): * Added bindings: - Control-W for close all files overall - Alt-F4 for exit Scipad * Usability: When there is exactly one function among the buffers, then preselect it in the gotoline dialog * Added right-click action on pane titles showing a popup menu proposing to copy the pathname to the clipboard * Added convenient entries in the Help menu for reaching useful web sites * Files with mixed line endings or with line endings not matching the user preference in the Options menu are flagged as modified on opening * The user can prevent the line endings dialog from displaying for each file, which is especially useful during drag and drop of a directory or large number of files WHAT IS SCIPAD ? ================ Scipad is a powerful editor and graphical debugger for programs written in Scilab language. It is a mature and highly configurable programmer's editor, including features like syntax colorization, regexp search/replace, parentheses matching, logical/physical line numbering, peer windows, line and block text editing, and much more. Scipad can be used along with Scicoslab or Scilab, but even as a standalone text editor. Used as internal Sci(cos)lab editor, it interacts tightly with the interpreter, allowing - Scilab code execution control - conditional breakpointing - variable retrieval and tooltip display - Scilab help lookup - access to source code of Scilab library function - control of Scilab facilities for Matlab code and creation of help documents - and much more Scipad also includes basic Modelica and XML syntax colorization; it is currently localized in 13 languages and further localizations can easily be added. Scipad is entirely written in Tcl/Tk and Scilab language. It has been tested and developed under various versions of Windows and Linux. WHERE CAN SCIPAD BE FOUND? ========================== Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ Direct download: - for Scilab: http://sourceforge.net/projects/scipad/files/scipad/8.66/scipad-8.66-Scilab5.zip/download - for Scicoslab: http://sourceforge.net/projects/scipad/files/scipad-8.66/scipad-8.66-Scicoslab.zip/download Installation instructions: http://sourceforge.net/p/scipad/wiki/Installation/ Details regarding the tested platforms: http://sourceforge.net/p/scipad/wiki/Tested%20on/ LICENSE ======= Scipad is a free software distributed under the terms of the GPL (V2) license. From fvogelnew1 at free.fr Fri Aug 5 22:05:22 2011 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 05 Aug 2011 22:05:22 +0200 Subject: [scilab-Users] Check code on SCILAB`` In-Reply-To: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> References: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> Message-ID: <4E3C4D02.1060502@free.fr> Another way to debug scripts written in Scilab language is the graphical debugger integrated in the Scipad editor. You can get Scipad from here: http://sourceforge.net/p/scipad Version 8.66 was just released today: http://permalink.gmane.org/gmane.comp.mathematics.scilab.user/4693 However, please note that the debugger cannot work with Scilab 5, but it works with Scicoslab: http://www.scicoslab.org/ Best regards, Francois Serge Steer said on 04/08/2011 18:06: > To help debugging a Scilab code you may use: > > - the pause instruction at the point where an error is detected > (editing the code) > - the setbpt command that can create a breakpoint at the specified > line of the specified code. Quite similar to "pause" but do not > requires to modify the source code. > - the errcatch(errn,'pause') instruction, that will make the code > pause just after the error with number errn arises. > - finally you may also use the copy paste technic (copy one source > code instruction at a time and paste it into the console) > I hope this will help you. > > Serge Steer > INRIA > > ---------------------------------------------------------------------- > > *De: *"Jaundre Venter" > *?: *users at lists.scilab.org > *Envoy?: *Mercredi 3 Ao?t 2011 09:56:25 > *Objet: *[scilab-Users] Check code on SCILAB`` > > Hi all > I am busy with 9 ordinary differential equations and are getting > the wrong values and results and a few errors. > Now I just want to know is there like a "Check code/step in run or > a debug run" you can insert or do in SCILAB, to ask SCILAB to run > the model and to stop if there is a error or to give you where you > inserted the "Check code/step in run or a debug run" the results > and if you are happy you just hit enter and then it goes to next > line? I know visual basics can do that as I heard so I was just > wondering if SCILAB can do it as well. > Then I am getting confuse with when to use a "comma, a semi comma, > brackets or square brackets" > What and when do you normaly use "comma, a semi comma, brackets or > square brackets" because I think I am not using it correctly? > Thanks > > From jaundreventer at gmail.com Fri Aug 5 22:18:20 2011 From: jaundreventer at gmail.com (jaundreventer at gmail.com) Date: Fri, 5 Aug 2011 20:18:20 +0000 Subject: [scilab-Users] Check code on SCILAB`` In-Reply-To: <4E3C4D02.1060502@free.fr> References: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr><4E3C4D02.1060502@free.fr> Message-ID: <2004759042-1312575472-cardhu_decombobulator_blackberry.rim.net-481181767-@b14.c18.bise7.blackberry> Thank you will try that Sent via my BlackBerry from Vodacom - let your email find you! -----Original Message----- From: Fran?ois Vogel Date: Fri, 05 Aug 2011 22:05:22 To: Reply-To: users at lists.scilab.org Subject: Re: [scilab-Users] Check code on SCILAB`` Another way to debug scripts written in Scilab language is the graphical debugger integrated in the Scipad editor. You can get Scipad from here: http://sourceforge.net/p/scipad Version 8.66 was just released today: http://permalink.gmane.org/gmane.comp.mathematics.scilab.user/4693 However, please note that the debugger cannot work with Scilab 5, but it works with Scicoslab: http://www.scicoslab.org/ Best regards, Francois Serge Steer said on 04/08/2011 18:06: > To help debugging a Scilab code you may use: > > - the pause instruction at the point where an error is detected > (editing the code) > - the setbpt command that can create a breakpoint at the specified > line of the specified code. Quite similar to "pause" but do not > requires to modify the source code. > - the errcatch(errn,'pause') instruction, that will make the code > pause just after the error with number errn arises. > - finally you may also use the copy paste technic (copy one source > code instruction at a time and paste it into the console) > I hope this will help you. > > Serge Steer > INRIA > > ---------------------------------------------------------------------- > > *De: *"Jaundre Venter" > *?: *users at lists.scilab.org > *Envoy?: *Mercredi 3 Ao?t 2011 09:56:25 > *Objet: *[scilab-Users] Check code on SCILAB`` > > Hi all > I am busy with 9 ordinary differential equations and are getting > the wrong values and results and a few errors. > Now I just want to know is there like a "Check code/step in run or > a debug run" you can insert or do in SCILAB, to ask SCILAB to run > the model and to stop if there is a error or to give you where you > inserted the "Check code/step in run or a debug run" the results > and if you are happy you just hit enter and then it goes to next > line? I know visual basics can do that as I heard so I was just > wondering if SCILAB can do it as well. > Then I am getting confuse with when to use a "comma, a semi comma, > brackets or square brackets" > What and when do you normaly use "comma, a semi comma, brackets or > square brackets" because I think I am not using it correctly? > Thanks > > From jaundreventer at gmail.com Fri Aug 5 22:18:46 2011 From: jaundreventer at gmail.com (jaundreventer at gmail.com) Date: Fri, 5 Aug 2011 20:18:46 +0000 Subject: [scilab-Users] Check code on SCILAB`` In-Reply-To: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> References: <884645667.55870.1312474004585.JavaMail.root@zmbs3.inria.fr> Message-ID: <1822621458-1312575499-cardhu_decombobulator_blackberry.rim.net-1201291776-@b14.c18.bise7.blackberry> Thanks will try and see if it works Many thanks Sent via my BlackBerry from Vodacom - let your email find you! -----Original Message----- From: Serge Steer Date: Thu, 4 Aug 2011 18:06:44 To: Reply-To: users at lists.scilab.org Subject: Re: [scilab-Users] Check code on SCILAB`` To help debugging a Scilab code you may use: - the pause instruction at the point where an error is detected (editing the code) - the setbpt command that can create a breakpoint at the specified line of the specified code. Quite similar to "pause" but do not requires to modify the source code. - the errcatch(errn,'pause') instruction, that will make the code pause just after the error with number errn arises. - finally you may also use the copy paste technic (copy one source code instruction at a time and paste it into the console) I hope this will help you. Serge Steer INRIA ----- Mail original ----- De: "Jaundre Venter" ?: users at lists.scilab.org Envoy?: Mercredi 3 Ao?t 2011 09:56:25 Objet: [scilab-Users] Check code on SCILAB`` Hi all I am busy with 9 ordinary differential equations and are getting the wrong values and results and a few errors. Now I just want to know is there like a "Check code/step in run or a debug run" you can insert or do in SCILAB, to ask SCILAB to run the model and to stop if there is a error or to give you where you inserted the "Check code/step in run or a debug run" the results and if you are happy you just hit enter and then it goes to next line? I know visual basics can do that as I heard so I was just wondering if SCILAB can do it as well. Then I am getting confuse with when to use a "comma, a semi comma, brackets or square brackets" What and when do you normaly use "comma, a semi comma, brackets or square brackets" because I think I am not using it correctly? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Sun Aug 7 23:01:49 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sun, 07 Aug 2011 23:01:49 +0200 Subject: [scilab-Users] unsuscribtion In-Reply-To: <4E15BC28.2020507@scilab.org> References: <4E15BC28.2020507@scilab.org> Message-ID: <20110807230149.23296x25tnr8uf8k@webmail1.univ-lemans.fr> Simon GARESTE a ?crit?: > Hi, > Sending a mail to users-info at lists.scilab.org will show you how to do this. > You also received a mail when you subscribed indicating how to unsub. None of these work for me, yet from the same email account and with the same identity than the one from which i have subscribed. Same thing for dev at . SG From fweiss at ac-toulouse.fr Mon Aug 8 12:49:18 2011 From: fweiss at ac-toulouse.fr (Francois WEISS) Date: Mon, 8 Aug 2011 12:49:18 +0200 Subject: don't understand error message with Xcos scheme References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> Message-ID: Hello, i am tring to draw a proportionnal derivate filter with Xcos (Scilab 5.3) ; and i don't understand the error message that occurs when i am connecting the source bloc : "le port de sortie de donn?es explicite doit ?tre connect? ? un port d'entr?es de donn?es explicite". see screenshot below. Could somebody help me to understand what appends ? Thanks for attention. Fran?ois WEISS PS : une r?ponse avec traduction en fran?ais serait tr?s aimable -------------- next part -------------- A non-text attachment was scrubbed... Name: super-bloc-correcteur-PD-2.jpg Type: image/jpeg Size: 73496 bytes Desc: not available URL: From coolnish2k at hotmail.com Mon Aug 8 16:48:42 2011 From: coolnish2k at hotmail.com (nishnish) Date: Mon, 8 Aug 2011 07:48:42 -0700 (PDT) Subject: plotting an input D contour in scilab Message-ID: <1312814922131-3235779.post@n3.nabble.com> Hi does anybody here know how to plot an input D contour in scilab for nyquist stability questions ? Also , does anybody know how to draw a MODIFIED input D contour such that it bypasses the origin by a bit ? I googled alot but still cant find it ! Any help will be appreciated ! thanks !! -- View this message in context: http://mailinglists.scilab.org/plotting-an-input-D-contour-in-scilab-tp3235779p3235779.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From coolnish2k at hotmail.com Mon Aug 8 17:02:35 2011 From: coolnish2k at hotmail.com (nishnish) Date: Mon, 8 Aug 2011 08:02:35 -0700 (PDT) Subject: plotting an input D contour in scilab In-Reply-To: <1312814922131-3235779.post@n3.nabble.com> References: <1312814922131-3235779.post@n3.nabble.com> Message-ID: <1312815755074-3235840.post@n3.nabble.com> I am able to draw the "diameter" of the input nyquist contour as frequency varies from negative infinity to positive infinity but am not able to draw the "curved part" of the nyquist contour as frequcies vary from positive infinity to negative infinity . Any help would be appreciated ! thanks ! -- View this message in context: http://mailinglists.scilab.org/plotting-an-input-D-contour-in-scilab-tp3235779p3235840.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fweiss at ac-toulouse.fr Tue Aug 9 01:14:47 2011 From: fweiss at ac-toulouse.fr (Francois WEISS) Date: Tue, 9 Aug 2011 01:14:47 +0200 Subject: [scilab-Users] don't understand error message with Xcos scheme References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> Message-ID: <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> I answer to myself : two mistakes in the scheme : 1- superposed link between two blocks (i think it is the trouble for the error message) ; 2- derivator instead of integrator in the drawing of the compensator. Thanks for those who tried to look for answer. Fran?ois WEISS en fran?ais : je me r?ponds ? moi-m?me : deux erreurs dans le sch?ma : 1- deux liens du sch?ma ?taient trac?s superpos?s (s?rement la principale cause du message d'erreur) ; 2- un d?rivateur ?tait plac? ? la place d'un int?grateur dans le sch?ma du correcteur proportionnel d?riv?. Merci ? ceux qui ont cherch? une r?ponse au probl?me. Un petit mot pour compl?ter mes observations : L'?ducation Nationale est en train d'?quiper ? grands frais les lyc?es et les nouvelles sections STI2D, du logiciel concurrent Matlab+simulink. M?me si la ma?trise de l'anglais fait partie des comp?tences ? atteindre par les ?l?ves de ces classes, je vous assure que la compr?hension du vocabulaire technique associ? aux listes de diffusion r?dig?es en anglais est un frein ? l'utilisation de Scilab+Xcos. Ne serait-il pas possible de traduire en fran?ais les questions et les r?ponses de cette liste de diffusion ?? Le contribuable fran?ais n'est-il pas sollicit? pour financer certains d?veloppements de Scilab+Xcos ? Cordialement. Fran?ois WEISS - professeur de Sciences Industrielles - lyc?e Pierre de Fermat - Toulouse ----- Original Message ----- From: "Francois WEISS" To: Sent: Monday, August 08, 2011 12:49 PM Subject: [scilab-Users] don't understand error message with Xcos scheme > Hello, > i am tring to draw a proportionnal derivate filter with Xcos (Scilab 5.3) > ; > and i don't understand the error message that occurs when i am connecting > the source bloc : > "le port de sortie de donn?es explicite doit ?tre connect? ? un port > d'entr?es de donn?es explicite". > see screenshot below. > Could somebody help me to understand what appends ? > Thanks for attention. > Fran?ois WEISS > > PS : une r?ponse avec traduction en fran?ais serait tr?s aimable > From sylvestre.ledru at scilab.org Tue Aug 9 01:17:58 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 09 Aug 2011 01:17:58 +0200 Subject: French mailing list [was: don't understand error message with Xcos scheme] In-Reply-To: <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> Message-ID: <1312845478.4174.12.camel@losinj.inria.fr> Le mardi 09 ao?t 2011 ? 01:14 +0200, Francois WEISS a ?crit : > I answer to myself : > two mistakes in the scheme : > 1- superposed link between two blocks (i think it is the trouble for the > error message) ; > 2- derivator instead of integrator in the drawing of the compensator. > Thanks for those who tried to look for answer. > Fran?ois WEISS > Un petit mot pour compl?ter mes observations : > L'?ducation Nationale est en train d'?quiper ? grands frais les lyc?es et > les nouvelles sections STI2D, du logiciel concurrent Matlab+simulink. > M?me si la ma?trise de l'anglais fait partie des comp?tences ? atteindre par > les ?l?ves de ces classes, je vous assure que la compr?hension du > vocabulaire technique associ? aux listes de diffusion r?dig?es en anglais > est un frein ? l'utilisation de Scilab+Xcos. > Ne serait-il pas possible de traduire en fran?ais les questions et les > r?ponses de cette liste de diffusion ?? We are going to open a French mailing list in the next few weeks. We will send an announcement. Sylvestre From fweiss at ac-toulouse.fr Tue Aug 9 01:20:36 2011 From: fweiss at ac-toulouse.fr (Francois WEISS) Date: Tue, 9 Aug 2011 01:20:36 +0200 Subject: [scilab-Users] French mailing list [was: don't understand error message with Xcos scheme] References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> <1312845478.4174.12.camel@losinj.inria.fr> Message-ID: Many thanks. Merci beaucoup. Fran?ois WEISS ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Tuesday, August 09, 2011 1:17 AM Subject: [scilab-Users] French mailing list [was: don't understand error message with Xcos scheme] Le mardi 09 ao?t 2011 ? 01:14 +0200, Francois WEISS a ?crit : > I answer to myself : > two mistakes in the scheme : > 1- superposed link between two blocks (i think it is the trouble for the > error message) ; > 2- derivator instead of integrator in the drawing of the compensator. > Thanks for those who tried to look for answer. > Fran?ois WEISS > Un petit mot pour compl?ter mes observations : > L'?ducation Nationale est en train d'?quiper ? grands frais les lyc?es et > les nouvelles sections STI2D, du logiciel concurrent Matlab+simulink. > M?me si la ma?trise de l'anglais fait partie des comp?tences ? atteindre > par > les ?l?ves de ces classes, je vous assure que la compr?hension du > vocabulaire technique associ? aux listes de diffusion r?dig?es en anglais > est un frein ? l'utilisation de Scilab+Xcos. > Ne serait-il pas possible de traduire en fran?ais les questions et les > r?ponses de cette liste de diffusion ?? We are going to open a French mailing list in the next few weeks. We will send an announcement. Sylvestre From sylvestre.ledru at scilab.org Tue Aug 9 11:04:44 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 09 Aug 2011 11:04:44 +0200 Subject: [scilab-Users] French mailing list [was: don't understand error message with Xcos scheme] In-Reply-To: References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> <1312845478.4174.12.camel@losinj.inria.fr> Message-ID: <1312880684.4174.20.camel@losinj.inria.fr> You can thanks Samuel Gougeon. He is the one who has been pushing this idea for a while. ;) Le mardi 09 ao?t 2011 ? 01:20 +0200, Francois WEISS a ?crit : > Many thanks. > > Merci beaucoup. > > Fran?ois WEISS > > > ----- Original Message ----- > From: "Sylvestre Ledru" > To: > Sent: Tuesday, August 09, 2011 1:17 AM > Subject: [scilab-Users] French mailing list [was: don't understand error > message with Xcos scheme] > > > Le mardi 09 ao?t 2011 ? 01:14 +0200, Francois WEISS a ?crit : > > I answer to myself : > > two mistakes in the scheme : > > 1- superposed link between two blocks (i think it is the trouble for the > > error message) ; > > 2- derivator instead of integrator in the drawing of the compensator. > > Thanks for those who tried to look for answer. > > Fran?ois WEISS > > > Un petit mot pour compl?ter mes observations : > > L'?ducation Nationale est en train d'?quiper ? grands frais les lyc?es et > > les nouvelles sections STI2D, du logiciel concurrent Matlab+simulink. > > M?me si la ma?trise de l'anglais fait partie des comp?tences ? atteindre > > par > > les ?l?ves de ces classes, je vous assure que la compr?hension du > > vocabulaire technique associ? aux listes de diffusion r?dig?es en anglais > > est un frein ? l'utilisation de Scilab+Xcos. > > Ne serait-il pas possible de traduire en fran?ais les questions et les > > r?ponses de cette liste de diffusion ?? > We are going to open a French mailing list in the next few weeks. We > will send an announcement. > > Sylvestre > > > From fweiss at ac-toulouse.fr Tue Aug 9 23:16:37 2011 From: fweiss at ac-toulouse.fr (Francois WEISS) Date: Tue, 9 Aug 2011 23:16:37 +0200 Subject: [scilab-Users] French mailing list [was: don't understand error message with Xcos scheme] References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> <489BB5E5CCFC429BB7E9936FD45F5849@weiss7ec94d186> <1312845478.4174.12.camel@losinj.inria.fr> <1312880684.4174.20.camel@losinj.inria.fr> Message-ID: Thanks to Samuel Gougeon. Fran?ois WEISS ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Tuesday, August 09, 2011 11:04 AM Subject: Re: [scilab-Users] French mailing list [was: don't understand error message with Xcos scheme] You can thanks Samuel Gougeon. He is the one who has been pushing this idea for a while. ;) Le mardi 09 ao?t 2011 ? 01:20 +0200, Francois WEISS a ?crit : > Many thanks. > > Merci beaucoup. > > Fran?ois WEISS > > > ----- Original Message ----- > From: "Sylvestre Ledru" > To: > Sent: Tuesday, August 09, 2011 1:17 AM > Subject: [scilab-Users] French mailing list [was: don't understand error > message with Xcos scheme] > > > Le mardi 09 ao?t 2011 ? 01:14 +0200, Francois WEISS a ?crit : > > I answer to myself : > > two mistakes in the scheme : > > 1- superposed link between two blocks (i think it is the trouble for the > > error message) ; > > 2- derivator instead of integrator in the drawing of the compensator. > > Thanks for those who tried to look for answer. > > Fran?ois WEISS > > > Un petit mot pour compl?ter mes observations : > > L'?ducation Nationale est en train d'?quiper ? grands frais les lyc?es > > et > > les nouvelles sections STI2D, du logiciel concurrent Matlab+simulink. > > M?me si la ma?trise de l'anglais fait partie des comp?tences ? atteindre > > par > > les ?l?ves de ces classes, je vous assure que la compr?hension du > > vocabulaire technique associ? aux listes de diffusion r?dig?es en > > anglais > > est un frein ? l'utilisation de Scilab+Xcos. > > Ne serait-il pas possible de traduire en fran?ais les questions et les > > r?ponses de cette liste de diffusion ?? > We are going to open a French mailing list in the next few weeks. We > will send an announcement. > > Sylvestre > > > From sumit.adhikari at gmail.com Wed Aug 10 08:19:53 2011 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Wed, 10 Aug 2011 08:19:53 +0200 Subject: Reg :: Display Error Message-ID: Hello All, After I updated by Ubuntu to Kubuntu I am getting following error on DISPLAY: (process:2845): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". ___________________________________________ scilab-branch-5.3 Consortium Scilab (DIGITEO) Copyright (c) 1989-2011 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Startup execution: loading initial environment An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". WARNING: Due to your video card drivers limitations, that are not able to mana ge OpenGL, Scilab will not be able to draw any graphics. Please update yo ur driver. An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries Xlib: extension "GLX" missing on display ":0". Xlib: extension "GLX" missing on display ":0". An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code Unknown error code 6 If an exception about java.lang.UnsatisfiedLinkError has been thrown, check if etc/librarypath.xml contains the path to gluegen and jogl libraries How do I fix this ? Regards, -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gu?hausstra?e 27-29,1040 Vienna -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.pineau at eurodecision.com Mon Aug 8 13:19:41 2011 From: pierre.pineau at eurodecision.com (PierreP) Date: Mon, 8 Aug 2011 04:19:41 -0700 (PDT) Subject: don't understand error message with Xcos scheme In-Reply-To: References: <1312367999992-3221904.post@n3.nabble.com> <4E39764A.2040802@scilab.org> <1312441706658-3224644.post@n3.nabble.com> Message-ID: <1312802381389-3235271.post@n3.nabble.com> Hi, Sorry i can't help you with this error, you should create a new topic. Regards, Pierre -- View this message in context: http://mailinglists.scilab.org/Concatenate-strings-with-a-tabulation-tp3221904p3235271.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From d_boutard2000 at yahoo.fr Mon Aug 8 07:58:42 2011 From: d_boutard2000 at yahoo.fr (boutardd) Date: Sun, 7 Aug 2011 22:58:42 -0700 (PDT) Subject: Problem with function fscanfMat In-Reply-To: <001b01cc4c6c$bf786860$3e693920$@scilab.org> References: <3198D327C5A4DE45A489D0212B93CD5F0697A21A@owa.sodern.fr> <27281_1311693401_4E2EDA59_27281_2599_1_908CBC9017354841B2F32BBEC70A05A101C357687329@THSONEA01CMS01P.one.grp> <1311755468482-3202835.post@n3.nabble.com> <4E2FFCC5.6040501@laas.fr> <001b01cc4c6c$bf786860$3e693920$@scilab.org> Message-ID: <1312783122428-3234616.post@n3.nabble.com> Thanks for all. David -- View this message in context: http://mailinglists.scilab.org/Problem-with-function-fscanfMat-tp3200598p3234616.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab.org Wed Aug 10 10:19:31 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 10 Aug 2011 10:19:31 +0200 Subject: [scilab-Users] Reg :: Display Error In-Reply-To: References: Message-ID: <1312964371.18414.42.camel@korcula.inria.fr> Le mercredi 10 ao?t 2011 ? 08:19 +0200, Sumit Adhikari a ?crit : > Hello All, > > > After I updated by Ubuntu to Kubuntu I am getting following error on > DISPLAY: > > > > > (process:2845): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale. > Xlib: extension "GLX" missing on display ":0". Usually, your problem is due to a badly configured (or too old) graphic drivers. Sylvestre From Pierpaolo.Bubbio at panini.com Wed Aug 10 14:27:48 2011 From: Pierpaolo.Bubbio at panini.com (Bubbio Pierpaolo) Date: Wed, 10 Aug 2011 12:27:48 +0000 Subject: Symbolic variables in a XCOS Cblock Message-ID: <4CC25C33FA8C334D80229709AB77EBB804120060@SVR-MAIL01.paninispa.local> All Thank you for considering this question I cannot get rid of and that is possibly very simple to answer to. I built a simple XCOS scheme in SCILAB 5.3.3, Windows environment. I used some contest parameters (one is for example "MotorVoltage" that is used by some blocks inside the XCOS scheme). At a certain point, I had the need to define an XCOS block to apply a certain modification and the change the value of MotorVoltage. I decided to write a CBLOCK2 block where I am called with the known proto: void ChangeVoltage(scicos_block *block,int flag) { ... } and where the structure scicos_block handles a lot of parameters coming inside the function body. Well, the question is: between those input parameters, can I find somewhere the XCOS contest parameters (so MotorVoltage I look for) and, if yes, where? Obviously I would need a reference to them (and not a copy) to change their value when needed. Thank you for any help coming. Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From nweddy33 at gmail.com Wed Aug 10 16:12:35 2011 From: nweddy33 at gmail.com (Nicholas Eddy) Date: Wed, 10 Aug 2011 10:12:35 -0400 Subject: Scilab for Mac 10.7 Lion Message-ID: I am new Scilab user (just downloaded and installed today). Is there a plan to write a new version that will be compatible with Mac 10.7 Lion? When will that be available? Thank You, Nick Eddy -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Aug 10 16:18:07 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 10 Aug 2011 16:18:07 +0200 Subject: [scilab-Users] Scilab for Mac 10.7 Lion In-Reply-To: References: Message-ID: <003c01cc5768$53d958b0$fb8c0a10$@scilab.org> Hi, See http://bugzilla.scilab.org/show_bug.cgi?id=9766 You can try Scilab nightly build: http://www.scilab.org/communities/developer_zone/scilab_versions/development _version/nightly_builds/branch_master Allan De : Nicholas Eddy [mailto:nweddy33 at gmail.com] Envoy? : mercredi 10 ao?t 2011 16:13 ? : users at lists.scilab.org Objet : [scilab-Users] Scilab for Mac 10.7 Lion I am new Scilab user (just downloaded and installed today). Is there a plan to write a new version that will be compatible with Mac 10.7 Lion? When will that be available? Thank You, Nick Eddy -------------- next part -------------- An HTML attachment was scrubbed... URL: From bazcor at metronet.co.uk Wed Aug 10 19:40:56 2011 From: bazcor at metronet.co.uk (bazcor) Date: Wed, 10 Aug 2011 10:40:56 -0700 (PDT) Subject: newbie question-probably an easy answer! Message-ID: <1312998056724-3243360.post@n3.nabble.com> Hello and thanks for reading this, I've been playing around with scilab,(nothing very deep,just starting out). The problem I have that needs explanation is this :- -->a=[2,3,4,5,5]; -->b=[2,3,4,5] -->fre=[1,1,1,2] -->variance(a) ans= 1.7 //ok here -->variancef(b,fre) ans= 1.7 // also ok -->stdev(a) ans = 1.3038405 //good to here -->stdevf(b,fre) ans = 0 //?? thought it should be the above answer! I'll just bet there's a easy answer to this, but I'm stumped. Any comment gratefully received. -- View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3243360.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From hinow at uwm.edu Wed Aug 10 22:09:50 2011 From: hinow at uwm.edu (Peter Hinow) Date: Wed, 10 Aug 2011 15:09:50 -0500 (CDT) Subject: the strangest bug I ever experienced In-Reply-To: <1391579700.109711.1313006614729.JavaMail.root@mail06.pantherlink.uwm.edu> Message-ID: <137731744.109798.1313006990721.JavaMail.root@mail06.pantherlink.uwm.edu> Dear fellows, can somebody please try to run the little code below? The function fff should take a 7-dimensional vector and return another 7-dimensional vector, namely - 0.4 - 0.3 - 0.5 - 0.28 - 0.07 - 0.07 - 0.0796 . But what it does it returns a 9-dimensional vector - 0.4 - 0.3 0.5 - 1. 0.72 - 1. - 0.07 - 0.07 - 0.0796 where for example -0.5 is written as "0.5 - 1". Of course then the fsolve does not work. What could be the cause of this? Thank you and best regards, Peter function y=fff(X) // X = [d1 h1 d2 h2 d3 h3 r] y=[2*X(7) + X(1) + 2*X(3)-1, .. 4*X(7) + X(2) - 1, .. 2*X(7) + X(4) + X(6) -1, .. 4*X(7) + X(3) + X(5) -1, .. X(1)^2+X(2)^2-4*X(7)^2, .. X(3)^2+X(4)^2-4*X(7)^2, .. X(5)^2+X(6)^2-4*X(7)^2]; endfunction X = [0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15]; fff(X) xx = fsolve([0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15],fff); d1 = xx(1); h1 = xx(2); d2 = xx(3); h2 = xx(4); d3 = xx(5); h3 = xx(6); r = xx(7) -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From fvogelnew1 at free.fr Thu Aug 11 00:17:28 2011 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Thu, 11 Aug 2011 00:17:28 +0200 Subject: [scilab-Users] the strangest bug I ever experienced In-Reply-To: <137731744.109798.1313006990721.JavaMail.root@mail06.pantherlink.uwm.edu> References: <137731744.109798.1313006990721.JavaMail.root@mail06.pantherlink.uwm.edu> Message-ID: <4E430378.2020209@free.fr> I would suggest you start here: http://bugzilla.scilab.org/show_bug.cgi?id=3835 More specifically, look at this: -->[4*X(7) + X(2) - 1] ans = - 0.3 -->[4*X(7) + X(2) -1] ans = 0.7 - 1. (see the difference? the space was removed between the minus sign and the 1) I'm not saying this behavior is wrong or fine, just explaining what you're seeing. F. Peter Hinow said on 10/08/2011 22:09: > Dear fellows, > > can somebody please try to run the little code below? The function fff should take a 7-dimensional vector and return another 7-dimensional vector, > namely > - 0.4 - 0.3 - 0.5 - 0.28 - 0.07 - 0.07 - 0.0796 . > But what it does it returns a 9-dimensional vector > - 0.4 - 0.3 0.5 - 1. 0.72 - 1. - 0.07 - 0.07 - 0.0796 > where for example -0.5 is written as "0.5 - 1". Of course then the fsolve does not work. > What could be the cause of this? > Thank you and best regards, > Peter > > function y=fff(X) // X = [d1 h1 d2 h2 d3 h3 r] > y=[2*X(7) + X(1) + 2*X(3)-1, .. > 4*X(7) + X(2) - 1, .. > 2*X(7) + X(4) + X(6) -1, .. > 4*X(7) + X(3) + X(5) -1, .. > X(1)^2+X(2)^2-4*X(7)^2, .. > X(3)^2+X(4)^2-4*X(7)^2, .. > X(5)^2+X(6)^2-4*X(7)^2]; > endfunction > X = [0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15]; > fff(X) > > xx = fsolve([0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15],fff); > d1 = xx(1); h1 = xx(2); d2 = xx(3); h2 = xx(4); > d3 = xx(5); h3 = xx(6); r = xx(7) > From hinow at uwm.edu Thu Aug 11 00:21:41 2011 From: hinow at uwm.edu (Peter Hinow) Date: Wed, 10 Aug 2011 17:21:41 -0500 (CDT) Subject: [scilab-Users] the strangest bug I ever experienced In-Reply-To: <4E430378.2020209@free.fr> Message-ID: <1003036372.111749.1313014901065.JavaMail.root@mail06.pantherlink.uwm.edu> Dear Francois, thank you for your help. I really should have thought about it myself. Regards, Peter ----- Original Message ----- From: "Fran?ois Vogel" To: users at lists.scilab.org Sent: Wednesday, August 10, 2011 5:17:28 PM Subject: Re: [scilab-Users] the strangest bug I ever experienced I would suggest you start here: http://bugzilla.scilab.org/show_bug.cgi?id=3835 More specifically, look at this: -->[4*X(7) + X(2) - 1] ans = - 0.3 -->[4*X(7) + X(2) -1] ans = 0.7 - 1. (see the difference? the space was removed between the minus sign and the 1) I'm not saying this behavior is wrong or fine, just explaining what you're seeing. F. Peter Hinow said on 10/08/2011 22:09: > Dear fellows, > > can somebody please try to run the little code below? The function fff should take a 7-dimensional vector and return another 7-dimensional vector, > namely > - 0.4 - 0.3 - 0.5 - 0.28 - 0.07 - 0.07 - 0.0796 . > But what it does it returns a 9-dimensional vector > - 0.4 - 0.3 0.5 - 1. 0.72 - 1. - 0.07 - 0.07 - 0.0796 > where for example -0.5 is written as "0.5 - 1". Of course then the fsolve does not work. > What could be the cause of this? > Thank you and best regards, > Peter > > function y=fff(X) // X = [d1 h1 d2 h2 d3 h3 r] > y=[2*X(7) + X(1) + 2*X(3)-1, .. > 4*X(7) + X(2) - 1, .. > 2*X(7) + X(4) + X(6) -1, .. > 4*X(7) + X(3) + X(5) -1, .. > X(1)^2+X(2)^2-4*X(7)^2, .. > X(3)^2+X(4)^2-4*X(7)^2, .. > X(5)^2+X(6)^2-4*X(7)^2]; > endfunction > X = [0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15]; > fff(X) > > xx = fsolve([0.1, 0.1, 0.1, 0.1, 0.02, 0.1, 0.15],fff); > d1 = xx(1); h1 = xx(2); d2 = xx(3); h2 = xx(4); > d3 = xx(5); h3 = xx(6); r = xx(7) > -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From mathieu.dubois at limsi.fr Thu Aug 11 09:12:01 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Aug 2011 09:12:01 +0200 Subject: [scilab-Users] newbie question-probably an easy answer! In-Reply-To: <1312998056724-3243360.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> Message-ID: <4E4380C1.5070509@limsi.fr> Hello, Le 10/08/2011 19:40, bazcor a ?crit : > Hello and thanks for reading this, I've been playing around with > scilab,(nothing very deep,just starting out). > > The problem I have that needs explanation is this > :- > -->a=[2,3,4,5,5]; > -->b=[2,3,4,5] > -->fre=[1,1,1,2] > -->variance(a) ans= 1.7 //ok here > -->variancef(b,fre) ans= 1.7 // also ok > -->stdev(a) ans = 1.3038405 //good to here > -->stdevf(b,fre) ans = 0 //?? thought it should be the above answer! > > I'll just bet there's a easy answer to this, but I'm stumped. Any comment > gratefully received. > I think you're right: the result should be similar and they are not. Playing a bit with your example, I came to the conclusion that there is a bug stdevf function. More precisely from the file SCI/modules/statistics/macros/stdevf.sci lines 56-60: if size(x,1)==1 then s=0*sum((y.^2).*fre,o) else s=sqrt(sum((y.^2).*fre,o)./(sum(fre,o)-1)); end The purpose of the test is clear: if x contains only one element, the standard deviation is null. Two points here: - I think that the test is wrong: it should test size(x,o)==1 to take into account the orientation specified by the user - The test can be done before (for instance line 44: if size(x,o)==1 then s=0; return, end) Therefore the end of the function becomes: s=sqrt(sum((y.^2).*fre,o)./(sum(fre,o)-1)); Attached is the diff file and some work on your example. AFAI, it works. Can someone (scilab developers) confirm this? HTH, Mathieu > -- > View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3243360.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- A non-text attachment was scrubbed... Name: stdevf.sci.patch Type: text/x-patch Size: 239 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_bazcor.sce Type: application/x-scilab Size: 728 bytes Desc: not available URL: From mathieu.dubois at limsi.fr Thu Aug 11 09:15:53 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Aug 2011 09:15:53 +0200 Subject: [scilab-Users] newbie question-probably an easy answer! In-Reply-To: <1312998056724-3243360.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> Message-ID: <4E4381A9.5090308@limsi.fr> I forgot to say how you can use my example (provided you know some basic UNIX tools): 0) save the attached files in some directory (e.g.: your desktop) 1) copy SCI/modules/statistics/macros/stdevf.sci to the same directory 2) outside scilab, apply the patch to stdevf.sci (or modify it by hand in scilab editor) 3) check that I didn't make a mistake :) 4) open and run the file test_bazor.sce Le 10/08/2011 19:40, bazcor a ?crit : > Hello and thanks for reading this, I've been playing around with > scilab,(nothing very deep,just starting out). > > The problem I have that needs explanation is this > :- > -->a=[2,3,4,5,5]; > -->b=[2,3,4,5] > -->fre=[1,1,1,2] > -->variance(a) ans= 1.7 //ok here > -->variancef(b,fre) ans= 1.7 // also ok > -->stdev(a) ans = 1.3038405 //good to here > -->stdevf(b,fre) ans = 0 //?? thought it should be the above answer! > > I'll just bet there's a easy answer to this, but I'm stumped. Any comment > gratefully received. > > -- > View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3243360.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathieu.dubois at limsi.fr Thu Aug 11 09:24:09 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Aug 2011 09:24:09 +0200 Subject: [scilab-Users] newbie question-probably an easy answer! In-Reply-To: <4E4381A9.5090308@limsi.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4381A9.5090308@limsi.fr> Message-ID: <4E438399.3080109@limsi.fr> Hum, just to mention that if size(x, o) == 1 we should return a vector not just a scalar. Le 11/08/2011 09:15, Mathieu Dubois a ?crit : > I forgot to say how you can use my example (provided you know some basic > UNIX tools): > 0) save the attached files in some directory (e.g.: your desktop) > 1) copy SCI/modules/statistics/macros/stdevf.sci to the same directory > 2) outside scilab, apply the patch to stdevf.sci (or modify it by hand > in scilab editor) > 3) check that I didn't make a mistake :) > 4) open and run the file test_bazor.sce > > Le 10/08/2011 19:40, bazcor a ?crit : >> Hello and thanks for reading this, I've been playing around with >> scilab,(nothing very deep,just starting out). >> >> The problem I have that needs explanation is this >> :- >> -->a=[2,3,4,5,5]; >> -->b=[2,3,4,5] >> -->fre=[1,1,1,2] >> -->variance(a) ans= 1.7 //ok here >> -->variancef(b,fre) ans= 1.7 // also ok >> -->stdev(a) ans = 1.3038405 //good to here >> -->stdevf(b,fre) ans = 0 //?? thought it should be the above answer! >> >> I'll just bet there's a easy answer to this, but I'm stumped. Any comment >> gratefully received. >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3243360.html >> >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. From paul.carrico at free.fr Thu Aug 11 12:08:28 2011 From: paul.carrico at free.fr (Paul CARRICO) Date: Thu, 11 Aug 2011 12:08:28 +0200 Subject: Add labels on plot figure Message-ID: <000001cc580e$9e214a30$da63de90$@carrico@free.fr> Hi All, Is there a way to "automatically" add labels on a curve (corresponding to the y values => see red numbers in the attachment) ? I add a look in "labels_properties" but I haven't found anything . of course I can use xstring, nevertheless I've to manually change the coordinates for each (different) figures . Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: labels.jpg Type: image/jpeg Size: 43167 bytes Desc: not available URL: From denis.crete at thalesgroup.com Thu Aug 11 12:14:49 2011 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Thu, 11 Aug 2011 12:14:49 +0200 Subject: problem with clause "double" of sum function ? In-Reply-To: <4E438399.3080109@limsi.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4381A9.5090308@limsi.fr> <4E438399.3080109@limsi.fr> Message-ID: <10704_1313057695_4E43AB9F_10704_18096_1_908CBC9017354841B2F32BBEC70A05A101C357B208DC@THSONEA01CMS01P.one.grp> Hello, I am puzzled by the behaviour of this piece of code: N=21;M=4; A=floor(256*rand(N,M)); // Build random matrix B=uint8(A); // Conversion to integer max(abs(sum(B,2,"double")-sum(A,2))) // Should return 0 It returns 0 for specific values of (N,M), e.g. when (N<14,M<4) and when (N<7*M-7,M>=4) !?! (I am using Scilab 5.3.2 on PC/Windows XP) The manual says that the first argument of "sum" is an array of real, complex, boolean, polynoms or rational fractions: does it mean that integers are excluded ? Why ? Thanks for any explanation Denis From Serge.Steer at inria.fr Thu Aug 11 12:22:26 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Aug 2011 12:22:26 +0200 Subject: [scilab-Users] Add labels on plot figure In-Reply-To: <000001cc580e$9e214a30$da63de90$@carrico@free.fr> References: <000001cc580e$9e214a30$da63de90$@carrico@free.fr> Message-ID: <4E43AD62.3070006@inria.fr> I think the datatips tool can help you (note that you can customize the string displayed) Serge Steer INRIA Le 11/08/2011 12:08, Paul CARRICO a ?crit : > > Hi All, > > > > Is there a way to "automatically" add labels on a curve (corresponding > to the y values => see red numbers in the attachment) ? > > > > I add a look in "labels_properties" but I haven't found anything ... > of course I can use xstring, nevertheless I've to manually change the > coordinates for each (different) figures ... > > > > Regards > > > > Paul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bazcor at metronet.co.uk Thu Aug 11 12:39:52 2011 From: bazcor at metronet.co.uk (bazcor) Date: Thu, 11 Aug 2011 03:39:52 -0700 (PDT) Subject: newbie question-probably an easy answer! In-Reply-To: <4E4380C1.5070509@limsi.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> Message-ID: <1313059192055-3245536.post@n3.nabble.com> Thanks very much for the reply Mathieu, it is very informative,I'm surprised to be the first to find a bug! Guess everyone else is using multidimensional matrix. Not had any luck with the patch, I inserted the line 'if size(x,o)==1 then s=0; return, end' at line 44, but there does not seem to be any difference in the lines quoted at line 59? 'if size(x,o)==1 then s=0; return, end', is this a typo'? I'm sure this a fault on my part, I am very much just a beginner with Scilab, but I did manage to apply the patch, but the result was the same. I was unable to run the file 'test_bazcor.sce' as I basically don't know how, but my original script behaved exactly the same producing the zero result in stdevf. Thanks for the info again and for your time in looking into this. ..Barry -- View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3245536.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Thu Aug 11 15:02:30 2011 From: paul.carrico at free.fr (Paul CARRICO) Date: Thu, 11 Aug 2011 15:02:30 +0200 Subject: [scilab-Users] Add labels on plot figure In-Reply-To: <4E43AD62.3070006@inria.fr> References: <000001cc580e$9e214a30$da63de90$@carrico@free.fr> <4E43AD62.3070006@inria.fr> Message-ID: <000001cc5826$ee25d4c0$ca717e40$@carrico@free.fr> Thanks Based on the provided examples, I?m near to succeed I just need to know how I can modify the tips/text features (bolt, colors, size and so on) ! Regards Paul ############################################################################ ######### mode(0); PATH_FILE = get_absolute_file_path("test_datatips.sce"); // function to specify the output format (integer / double / etc. ...) // only the y values are plotted (double) function str=mydisplay(curve, pt, index) str = msprintf('%g',pt(2)) endfunction A = [ 1 15.36; 2 20.02; 3 50.89; 4 14.2; 5 5.05; 6 9.78; 7 23.005; 8 17.99; 9 16.78; 10 6.065 ]; [nl,nc] = size(A); scf(1); drawlater(); xgrid(3); f = gcf(); f.figure_size = [1000, 1000]; f.background = color(245,245,245); a = gca(); a.font_size = 2; a.x_label.font_size = 4; a.Y_label.font_size = 4; a.title.font_size = 5; a.title.text = "DataTips"; a.line_style = 1; id = [ color(0,0,176); color(0,176,0); color(176,0,0); color(208,0,208); color(184,134,11); color(72,118,255); color(255,215,0); color(84,255,159); color(238,0,0)]; plot(A(:,1),A(:,2)) ; e1 = gce() ; e1 = e1.children ; e1.thickness = 2 ; e1.line_style = 0 ; e1.foreground = id(1) ; for i = 1 : nl t = datatipCreate(e1,A(i,1)); datatipSetDisplay(e1,mydisplay) datatipSetOrientation(t,"upper right") end drawnow(); xs2gif(1,PATH_FILE + '/DataTips.gif') De : Serge Steer [mailto:Serge.Steer at inria.fr] Envoy? : jeudi 11 ao?t 2011 12:22 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Add labels on plot figure I think the datatips tool can help you (note that you can customize the string displayed) Serge Steer INRIA Le 11/08/2011 12:08, Paul CARRICO a ?crit : Hi All, Is there a way to ?automatically? add labels on a curve (corresponding to the y values => see red numbers in the attachment) ? I add a look in ?labels_properties? but I haven?t found anything of course I can use xstring, nevertheless I?ve to manually change the coordinates for each (different) figures Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Aug 11 15:06:02 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Aug 2011 15:06:02 +0200 Subject: [scilab-Users] problem with clause "double" of sum function ? In-Reply-To: <10704_1313057695_4E43AB9F_10704_18096_1_908CBC9017354841B2F32BBEC70A05A101C357B208DC@THSONEA01CMS01P.one.grp> References: <1312998056724-3243360.post@n3.nabble.com> <4E4381A9.5090308@limsi.fr> <4E438399.3080109@limsi.fr> <10704_1313057695_4E43AB9F_10704_18096_1_908CBC9017354841B2F32BBEC70A05A101C357B208DC@THSONEA01CMS01P.one.grp> Message-ID: <4E43D3BA.1030600@inria.fr> Le 11/08/2011 12:14, CRETE Denis a ?crit : > Hello, > I am puzzled by the behaviour of this piece of code: > > N=21;M=4; > A=floor(256*rand(N,M)); // Build random matrix > B=uint8(A); // Conversion to integer > max(abs(sum(B,2,"double")-sum(A,2))) // Should return 0 > > It returns 0 for specific values of (N,M), e.g. when (N<14,M<4) and when (N<7*M-7,M>=4) !?! > Strange... I made the following test on my Linux box with Scilab-5.3.2 and encountered no problem: M=100;N=100; R=ones(M,N); for m=1:M; for n=1:N; A=floor(256*rand(n,m)); B=uint8(A); R(m,n)=max(abs(sum(B,2,"double")-sum(A,2))); end end find(R<>0) Should it be a windows specific problem? > (I am using Scilab 5.3.2 on PC/Windows XP) > > The manual says that the first argument of "sum" is an array of real, complex, boolean, polynoms or rational fractions: does it mean that integers are excluded ? It is a bug in the manual > Why ? > Thanks for any explanation > Denis > > From mathieu.dubois at limsi.fr Thu Aug 11 15:20:17 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Aug 2011 15:20:17 +0200 Subject: [scilab-Users] Re: newbie question-probably an easy answer! In-Reply-To: <1313059192055-3245536.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> Message-ID: <4E43D711.1010400@limsi.fr> Hello, Le 11/08/2011 12:39, bazcor a ?crit : > Thanks very much for the reply Mathieu, it is very informative,I'm surprised > to be the first to find a bug! Guess everyone else is using multidimensional > matrix. > I'm surprised too! > Not had any luck with the patch, I inserted the line 'if size(x,o)==1 then > s=0; return, end' at line 44, but there does not seem to be any difference > in the lines quoted at line 59? 'if size(x,o)==1 then s=0; return, end', is > this a typo'? > > I'm sure this a fault on my part, I am very much just a beginner with > Scilab, but I did manage to apply the patch, but the result was the same. > Hum, did it work or not? If not, here is the file I have modified. Save it in the same folder as 'test_bazcor.sce' (sorry I didn't find a better name :). The patch was mainly for scilab developers. > I was unable to run the file 'test_bazcor.sce' as I basically don't know > how, but my original script behaved exactly the same producing the zero > result in stdevf. > Under scilab, click on Applications -> SciNotes: the editor will open. You can then open the file 'test_bazcor.sce' and click on the execute icon Note that you must be in the directory in which you downloaded the files (see help("cwd")). Otherwise the script won't work. My advice: if you don't understand something, you can look into the doc directly from the editor: right click on the function and then on "help about ...". Again I don't think that my modification of stdevf.sci definitely solves the problem. > Thanks for the info again and for your time in looking into this. > You may try a simple workaround for your case: use row vectors instead of column vectors. b=[2,3,4,5]' fre=[1,1,1,2]' should work (' is the transpose operator in scilab). See attached file (test_stdevf.sce). > ..Barry > > -- > View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3245536.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- A non-text attachment was scrubbed... Name: test_stdevf.sce Type: application/x-scilab Size: 210 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: stdevf.sci Type: application/x-scilab Size: 2254 bytes Desc: not available URL: From Serge.Steer at inria.fr Thu Aug 11 15:22:29 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Aug 2011 15:22:29 +0200 Subject: [scilab-Users] Add labels on plot figure In-Reply-To: <000001cc5826$ee25d4c0$ca717e40$@carrico@free.fr> References: <000001cc580e$9e214a30$da63de90$@carrico@free.fr> <4E43AD62.3070006@inria.fr> <000001cc5826$ee25d4c0$ca717e40$@carrico@free.fr> Message-ID: <4E43D795.2080003@inria.fr> The current version do not allow more without code modification (a more flexible one has been developped, but is currently in validation process) If you want it possible to modify the modules/graphics/datatips/datatipCreate.sci file to customize your plot. See the attached file as an example. Serge Le 11/08/2011 15:02, Paul CARRICO a ?crit : > > Thanks > > > > Based on the provided examples, I'm near to succeed ... I just need to > know how I can modify the tips/text features (bolt, colors, size and > so on) ! > > > > Regards > > > > Paul > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: datatipCreate.sci URL: From Serge.Steer at inria.fr Thu Aug 11 15:24:22 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Aug 2011 15:24:22 +0200 Subject: [scilab-Users] Re: newbie question-probably an easy answer! In-Reply-To: <1313059192055-3245536.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> Message-ID: <4E43D806.60305@inria.fr> Le 11/08/2011 12:39, bazcor a ?crit : > Thanks very much for the reply Mathieu, it is very informative,I'm surprised > to be the first to find a bug! Guess everyone else is using multidimensional > matrix. > > Not had any luck with the patch, I inserted the line 'if size(x,o)==1 then > s=0; return, end' at line 44, but there does not seem to be any difference > in the lines quoted at line 59? 'if size(x,o)==1 then s=0; return, end', is > this a typo'? > > I'm sure this a fault on my part, I am very much just a beginner with > Scilab, but I did manage to apply the patch, but the result was the same. > > I was unable to run the file 'test_bazcor.sce' as I basically don't know > how, but my original script behaved exactly the same producing the zero > result in stdevf. > > Thanks for the info again and for your time in looking into this. > > ..Barry > > -- > View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3245536.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > Please could you open a bug report on this? Thanks Serge Steer From bazcor at metronet.co.uk Thu Aug 11 15:50:12 2011 From: bazcor at metronet.co.uk (bazcor) Date: Thu, 11 Aug 2011 06:50:12 -0700 (PDT) Subject: newbie question-probably an easy answer! In-Reply-To: <4E43D711.1010400@limsi.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> <4E43D711.1010400@limsi.fr> Message-ID: <1313070612714-3245970.post@n3.nabble.com> Thanks again for that, I copied the stdevf.sci to /usr/share/scilab/modules/statistics/macros and the result was the same, a zero result. It works for a matrix of 2 rows or more "stddevf(b,fre,'c')" and for the inverted single column matrices that you suggested. I will use the inverted matrices as a work around for now, and hope someone comes up with a cure in time. PS my version of Scilab is 5.3 and running on 64bit mint11 linux. Many thanks again for your help it is really appreciated. Barry -- View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3245970.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From d_boutard2000 at yahoo.fr Thu Aug 11 16:10:17 2011 From: d_boutard2000 at yahoo.fr (boutardd) Date: Thu, 11 Aug 2011 07:10:17 -0700 (PDT) Subject: Save a matrix of string Message-ID: <1313071817692-3246029.post@n3.nabble.com> Hi, I got some files called Full_abcde1.txt, Full_abcde2.txt,.....to read. The *.txt files is a matrix of double element like [1, 2,3, 4] I would like to be able to create a matrix or something similar in which the first column is a part of the name of the files "abcde1" and the second column is the 3rd row in my files (=3). My problem is that I do not know the format (matrix or other) to save string and double in the same object. So I convert double to string and get a matrix of string but I did not find the right function save or right syntax to record data into .txt file. I copy my file if someone got a solution for me :) Thanks in advanced David My file is : a=length('full_') FichTxt=uigetfile(["*.txt"],"","Fichier texte",%t) NbFiles=size(FichTxt,2) for i = 1:NbFiles temp1=fscanfMat(FichTxt(i)) pos(i,1)=strindex(FichTxt(i), 'full_') pos(i,2)=strindex(FichTxt(i), '.txt') index(i)=part(FichTxt(i),(pos(i,1)+a):pos(i,2)) Matrice(i,1)=index(i) Matrice(i,2)=string(temp1(1,3)) Matrice(:,:) // Allow me to see what is int the matrix end //My problem start now because I do not know function to save "Matrice", I have tried savematfile, fprintfmat or save but nothing work or I have not got the right syntax. save('max.txt',Matrice) -- View this message in context: http://mailinglists.scilab.org/Save-a-matrix-of-string-tp3246029p3246029.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Thu Aug 11 16:17:01 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Aug 2011 16:17:01 +0200 Subject: [scilab-Users] Re: newbie question-probably an easy answer! In-Reply-To: <1313070612714-3245970.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> <4E43D711.1010400@limsi.fr> <1313070612714-3245970.post@n3.nabble.com> Message-ID: <4E43E45D.2050201@inria.fr> Le 11/08/2011 15:50, bazcor a ?crit : > Thanks again for that, I copied the stdevf.sci to > /usr/share/scilab/modules/statistics/macros and the result was the same, a > zero result. > > It works for a matrix of 2 rows or more "stddevf(b,fre,'c')" and for the > inverted single column matrices that you suggested. > > I will use the inverted matrices as a work around for now, and hope someone > comes up with a cure in time. > > PS my version of Scilab is 5.3 and running on 64bit mint11 linux. > > Many thanks again for your help it is really appreciated. > > Barry > > -- > View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3245970.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > In fact the bug had already be reported under bugzilla: http://bugzilla.scilab.org/show_bug.cgi?id=9357 Serge Steer From bazcor at metronet.co.uk Thu Aug 11 16:18:07 2011 From: bazcor at metronet.co.uk (bazcor) Date: Thu, 11 Aug 2011 07:18:07 -0700 (PDT) Subject: newbie question-probably an easy answer! In-Reply-To: <4E43D806.60305@inria.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> <4E43D806.60305@inria.fr> Message-ID: <1313072287273-3246050.post@n3.nabble.com> I have posted a bug report on this to the best of my ability, it is not a deal breaker of a bug, and a work around has been suggested. Thanks for the messages .. Barry -- View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3246050.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Thu Aug 11 17:23:38 2011 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Thu, 11 Aug 2011 17:23:38 +0200 Subject: [scilab-Users] problem with clause "double" of sum function ? In-Reply-To: <4E43D3BA.1030600@inria.fr> References: <1312998056724-3243360.post@n3.nabble.com> <4E4381A9.5090308@limsi.fr> <4E438399.3080109@limsi.fr> <10704_1313057695_4E43AB9F_10704_18096_1_908CBC9017354841B2F32BBEC70A05A101C357B208DC@THSONEA01CMS01P.one.grp> <4E43D3BA.1030600@inria.fr> Message-ID: <9191_1313076221_4E43F3FD_9191_17665_1_908CBC9017354841B2F32BBEC70A05A101C357B791DF@THSONEA01CMS01P.one.grp> Hello again, I can add bits of information: I modified (to only change presentation of results) the code you provided : M=100;N=100; R=ones(M,N); for m=1:M; for n=1:N; A=floor(256*rand(n,m)); B=uint8(A); R(m,n)=max(abs(sum(B,2,"double")-sum(A,2))); end end Map=R<>0; size(find(Map),'c') On all the 3 PC/XP that I tried (with Scilab 5.3.2 or 5.3.3 + Blas,Lapak library), I get the same strange result: 417 cells where Map is TRUE, more or less lying in a triangular zone as indicated in my previous mail (N<7*M-7,M>=4). This zone contains a few cells for which R=0. Changing the line R(m,n)=max(abs(sum(B,2,"double")-sum(A,2))); to R(m,n)=max(abs(sum(B,1,"double")-sum(A,1))); results in the transposition of the results (symmetry with respect to the matrix diagonal). I keep investigating on this problem. Regards Denis -----Message d'origine----- De?: Serge Steer [mailto:Serge.Steer at inria.fr] Envoy??: jeudi 11 ao?t 2011 15:06 ??: users at lists.scilab.org Objet?: Re: [scilab-Users] problem with clause "double" of sum function ? Le 11/08/2011 12:14, CRETE Denis a ?crit : > Hello, > I am puzzled by the behaviour of this piece of code: > > N=21;M=4; > A=floor(256*rand(N,M)); // Build random matrix > B=uint8(A); // Conversion to integer > max(abs(sum(B,2,"double")-sum(A,2))) // Should return 0 > > It returns 0 for specific values of (N,M), e.g. when (N<14,M<4) and when (N<7*M-7,M>=4) !?! > Strange... I made the following test on my Linux box with Scilab-5.3.2 and encountered no problem: M=100;N=100; R=ones(M,N); for m=1:M; for n=1:N; A=floor(256*rand(n,m)); B=uint8(A); R(m,n)=max(abs(sum(B,2,"double")-sum(A,2))); end end find(R<>0) Should it be a windows specific problem? > (I am using Scilab 5.3.2 on PC/Windows XP) > > The manual says that the first argument of "sum" is an array of real, complex, boolean, polynoms or rational fractions: does it mean that integers are excluded ? It is a bug in the manual > Why ? > Thanks for any explanation > Denis > > From bazcor at metronet.co.uk Thu Aug 11 18:32:07 2011 From: bazcor at metronet.co.uk (bazcor) Date: Thu, 11 Aug 2011 09:32:07 -0700 (PDT) Subject: newbie question-probably an easy answer! In-Reply-To: <1313072287273-3246050.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> <4E43D806.60305@inria.fr> <1313072287273-3246050.post@n3.nabble.com> Message-ID: <1313080327759-3246457.post@n3.nabble.com> Oh silly, silly me! Didn't realise that I had to compile the stdevf.sci file before it would make a difference. Now working 100%. Well I did warn you I was a newbie! Again thanks for all the help .. Barry -- View this message in context: http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3246457.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathieu.dubois at limsi.fr Thu Aug 11 19:39:34 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 11 Aug 2011 19:39:34 +0200 Subject: [scilab-Users] Re: newbie question-probably an easy answer! In-Reply-To: <1313080327759-3246457.post@n3.nabble.com> References: <1312998056724-3243360.post@n3.nabble.com> <4E4380C1.5070509@limsi.fr> <1313059192055-3245536.post@n3.nabble.com> <4E43D806.60305@inria.fr> <1313072287273-3246050.post@n3.nabble.com> <1313080327759-3246457.post@n3.nabble.com> Message-ID: <94966ca0991566b392082e79f40f661c@limsi.fr> On Thu, 11 Aug 2011 09:32:07 -0700 (PDT), bazcor wrote: > Oh silly, silly me! Didn't realise that I had to compile the > stdevf.sci file > before it would make a difference. > > Now working 100%. > > Well I did warn you I was a newbie! > Hey, it's actually an interesting discovery for me too! When editing stdevf.sci I noticed the bin files but I never had to compile them (because I use exec). I guess you used the comp function (with root privilege). That's probably not very careful but it's nice to know that. Congratulations you have raised a bug and pointed to the list's attention the existence of comp! That's why new(bies|comers) questions are so important! > Again thanks for all the help .. Barry > Mathieu P.S.: nevertheless be careful with my modified file P.S. 2: modifying system files (in /usr/share/..) may cause problem when updating the packages (because the package manager will notice that some files where modified). > -- > View this message in context: > > http://mailinglists.scilab.org/newbie-question-probably-an-easy-answer-tp3243360p3246457.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. From vogt at centre-cired.fr Thu Aug 11 22:22:54 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 11 Aug 2011 22:22:54 +0200 Subject: [scilab-Users] Save a matrix of string In-Reply-To: <1313071817692-3246029.post@n3.nabble.com> References: <1313071817692-3246029.post@n3.nabble.com> Message-ID: <4E443A1E.3060409@centre-cired.fr> hi did you try write_csv(Matrice,"max.txt") ? On 11/08/2011 16:10, boutardd wrote: > Hi, > > I got some files called Full_abcde1.txt, Full_abcde2.txt,.....to read. > The *.txt files is a matrix of double element like [1, 2,3, 4] > > I would like to be able to create a matrix or something similar in which the > first column is a part of the name of the files "abcde1" and the second > column is the 3rd row in my files (=3). > My problem is that I do not know the format (matrix or other) to save string > and double in the same object. So I convert double to string and get a > matrix of string but I did not find the right function save or right syntax > to record data into .txt file. I copy my file if someone got a solution for > me :) > > Thanks in advanced > David > > My file is : > > a=length('full_') > > FichTxt=uigetfile(["*.txt"],"","Fichier texte",%t) > > NbFiles=size(FichTxt,2) > > for i = 1:NbFiles > > temp1=fscanfMat(FichTxt(i)) > pos(i,1)=strindex(FichTxt(i), 'full_') > pos(i,2)=strindex(FichTxt(i), '.txt') > index(i)=part(FichTxt(i),(pos(i,1)+a):pos(i,2)) > > Matrice(i,1)=index(i) > Matrice(i,2)=string(temp1(1,3)) > Matrice(:,:) // Allow me to see what is int the matrix > end > > //My problem start now because I do not know function to save "Matrice", I > have tried savematfile, fprintfmat or save but nothing work or I have not > got the right syntax. > > save('max.txt',Matrice) > > > > -- > View this message in context: http://mailinglists.scilab.org/Save-a-matrix-of-string-tp3246029p3246029.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From tundevictor at gmail.com Fri Aug 12 01:32:40 2011 From: tundevictor at gmail.com (Tunde Ojumu) Date: Fri, 12 Aug 2011 01:32:40 +0200 Subject: Scilab 5.3.3 is not compatible with Mac Os X Lion Message-ID: <2CDBC567-7061-4BD5-9254-59DD833E8874@gmail.com> Dear All, I cannot get my Scilab to run on my new machine, it came with Mac OS X 10.7. Please help. Regards, Tunde From sylvestre.ledru at scilab.org Thu Aug 11 23:40:09 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 11 Aug 2011 23:40:09 +0200 Subject: [scilab-Users] Scilab 5.3.3 is not compatible with Mac Os X Lion In-Reply-To: <2CDBC567-7061-4BD5-9254-59DD833E8874@gmail.com> References: <2CDBC567-7061-4BD5-9254-59DD833E8874@gmail.com> Message-ID: <1313098809.27752.123.camel@losinj.inria.fr> Le vendredi 12 ao?t 2011 ? 01:32 +0200, Tunde Ojumu a ?crit : > Dear All, > I cannot get my Scilab to run on my new machine, it came with Mac OS X 10.7. > Please help. Please see Allan's answer on: http://mailinglists.scilab.org/Scilab-for-Mac-10-7-Lion-td3242695.html Sylvestre From allan.cornet at scilab.org Fri Aug 12 06:11:31 2011 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Fri, 12 Aug 2011 06:11:31 +0200 Subject: [scilab-Users] Scilab 5.3.3 is not compatible with Mac Os X Lion In-Reply-To: <2CDBC567-7061-4BD5-9254-59DD833E8874@gmail.com> References: <2CDBC567-7061-4BD5-9254-59DD833E8874@gmail.com> Message-ID: <5e0a7fbd9363265fa50d9c5d866350ca@scilab.org> Hi, Can you try Scilab nightly build ? http://www.scilab.org/communities/developer_zone/scilab_versions/development_version/nightly_builds/branch_master http://bugzilla.scilab.org/show_bug.cgi?id=9766 Thanks Allan On Fri, 12 Aug 2011 01:32:40 +0200, Tunde Ojumu wrote: > Dear All, > I cannot get my Scilab to run on my new machine, it came with Mac OS > X 10.7. > Please help. > Regards, > Tunde From d_boutard2000 at yahoo.fr Fri Aug 12 07:37:11 2011 From: d_boutard2000 at yahoo.fr (boutardd) Date: Thu, 11 Aug 2011 22:37:11 -0700 (PDT) Subject: Save a matrix of string In-Reply-To: <4E443A1E.3060409@centre-cired.fr> References: <1313071817692-3246029.post@n3.nabble.com> <4E443A1E.3060409@centre-cired.fr> Message-ID: <1313127431622-3248363.post@n3.nabble.com> Thanks a lot. It works !! :))) -- View this message in context: http://mailinglists.scilab.org/Save-a-matrix-of-string-tp3246029p3248363.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bazcor at metronet.co.uk Sun Aug 14 13:09:51 2011 From: bazcor at metronet.co.uk (bazcor) Date: Sun, 14 Aug 2011 04:09:51 -0700 (PDT) Subject: linsolve - is this a bug Message-ID: <1313320191350-3253406.post@n3.nabble.com> -->a=[1 3 2;2 1 -1;5 2 1];b=[2;3;4]; -->inv(a)*b ans = 0.55 1.05 - 0.85 //correct result -->-linsolve(a,b) ans = 0.55 1.05 - 0.85 // inverted signs! I have checked the bug list and there's nothing there, am I using linsolve correctly? This example comes from a book on scilab but the results of the operations are not printed in the book. Any info' appreciated .. Barry -- View this message in context: http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253406p3253406.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bazcor at metronet.co.uk Sun Aug 14 13:14:33 2011 From: bazcor at metronet.co.uk (bazcor) Date: Sun, 14 Aug 2011 04:14:33 -0700 (PDT) Subject: linsolve - is this a bug Message-ID: <1313320473406-3253410.post@n3.nabble.com> -->a=[1 3 2;2 1 -1;5 2 1];b=[2;3;4] -->inv(a)*b ans = 0.55 1.05 - 0.85 //correct result -->linsolve(a,b) ans = - 0.55 - 1.05 0.85 // inverted signs is this a bug? I've checked the bug list and there's nothing there,maybe I'm using linsolve inappropriately? TIA for any comments .. Barry -- View this message in context: http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253410p3253410.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From serge.steer at inria.fr Sun Aug 14 22:24:59 2011 From: serge.steer at inria.fr (Serge Steer) Date: Sun, 14 Aug 2011 22:24:59 +0200 (CEST) Subject: [scilab-Users] linsolve - is this a bug In-Reply-To: <1313320473406-3253410.post@n3.nabble.com> Message-ID: <487465282.116836.1313353499608.JavaMail.root@zmbs3.inria.fr> No it is not a bug. the linsolve help page says linsolve solves ax+b=0 while inv(a)*b or better a\b solves ax=b or equivalently ax-b=0 Serge Steer INRIA ----- Mail original ----- > De: "bazcor" > ?: users at lists.scilab.org > Envoy?: Dimanche 14 Ao?t 2011 13:14:33 > Objet: [scilab-Users] linsolve - is this a bug > -->a=[1 3 2;2 1 -1;5 2 1];b=[2;3;4] > > -->inv(a)*b > ans = > > 0.55 > 1.05 > - 0.85 //correct result > > > -->linsolve(a,b) > ans = > > - 0.55 > - 1.05 > 0.85 // inverted signs > > is this a bug? I've checked the bug list and there's nothing > there,maybe I'm > using linsolve inappropriately? > > TIA for any comments .. Barry > > > -- > View this message in context: > http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253410p3253410.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. From celso.co at gmail.com Mon Aug 15 02:17:42 2011 From: celso.co at gmail.com (Celso Co) Date: Mon, 15 Aug 2011 08:17:42 +0800 Subject: [scilab-Users] linsolve - is this a bug In-Reply-To: <1313320473406-3253410.post@n3.nabble.com> References: <1313320473406-3253410.post@n3.nabble.com> Message-ID: I think linsolve is wrong. cco -->a*inv(a)*b ans = 2. 3. 4. -->a*linsolve(a,b) ans = - 2. - 3. - 4. On Sun, Aug 14, 2011 at 7:14 PM, bazcor wrote: > -->a=[1 3 2;2 1 -1;5 2 1];b=[2;3;4] > > -->inv(a)*b > ?ans ?= > > ? ?0.55 > ? ?1.05 > ?- 0.85 ?//correct result > > > -->linsolve(a,b) > ?ans ?= > > ?- 0.55 > ?- 1.05 > ? ?0.85 ?// inverted signs > > is this a bug? I've checked the bug list and there's nothing there,maybe I'm > using linsolve inappropriately? > > TIA for any comments .. Barry > > > -- > View this message in context: http://mailinglists.scilab.org/linsolve-is-this-a-bug-tp3253410p3253410.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > -- Eng'r Celso B. Co, PhD ECE Mobile Nos; +63918 913 2123 From lukeaarond at gmail.com Mon Aug 15 18:08:01 2011 From: lukeaarond at gmail.com (lukeaarond) Date: Mon, 15 Aug 2011 09:08:01 -0700 (PDT) Subject: opening files with unknown names Message-ID: <1313424481004-3256145.post@n3.nabble.com> I have a folder (called DATABASE) with folders with names of unknown names. In those folders are 2-4 files with one of four names (HS.txt, MM.txt, PT.txt, or RN.txt). Here is a visual: DATABASE -ENST0004324 -HS.txt -MM.txt -ENST0000054 -HS.txt -PT.txt -RN.txt I need to be able to change directories into a folder and open each text file, and then repeat for every folder in DATABASE. However, I cannot use chdir() if I do not know the folder names, and cannot use mopen if I do not know which text file (or even how many) are in that folder. Any suggestions? Thank you. -- View this message in context: http://mailinglists.scilab.org/opening-files-with-unknown-names-tp3256145p3256145.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mathieu.dubois at limsi.fr Mon Aug 15 18:54:55 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 15 Aug 2011 18:54:55 +0200 Subject: [scilab-Users] opening files with unknown names In-Reply-To: <1313424481004-3256145.post@n3.nabble.com> References: <1313424481004-3256145.post@n3.nabble.com> Message-ID: <4E494F5F.30105@limsi.fr> Hello, Le 15/08/2011 18:08, lukeaarond a ?crit : > I have a folder (called DATABASE) with folders with names of unknown names. > In those folders are 2-4 files with one of four names (HS.txt, MM.txt, > PT.txt, or RN.txt). Here is a visual: > > DATABASE > -ENST0004324 > -HS.txt > -MM.txt > -ENST0000054 > -HS.txt > -PT.txt > -RN.txt > > I need to be able to change directories into a folder and open each text > file, and then repeat for every folder in DATABASE. However, I cannot use > chdir() if I do not know the folder names, and cannot use mopen if I do not > know which text file (or even how many) are in that folder. Any suggestions? Luckily there are (a lot of) way to list filenames under scilab. See for instance: ls, dir, findfiles, etc. Find attached a simple example showing how to visit your DATABASE hierarchy (launch it from the directory right above DATABASE). Note that it doesn't use chdir() (because you would then need to go back and forth your original directory) but instead concatenate different path with fullfile. Another way is to use the find command under every decent UNIX (you can probably use this under windows with something like cygwin): [rep, stat] = unix_g("find . -iname *.txt") > Thank you. > > -- > View this message in context: http://mailinglists.scilab.org/opening-files-with-unknown-names-tp3256145p3256145.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_luke.sce URL: From allan.cornet at scilab.org Mon Aug 15 19:06:27 2011 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Mon, 15 Aug 2011 19:06:27 +0200 Subject: [scilab-Users] opening files with unknown names In-Reply-To: <4E494F5F.30105@limsi.fr> References: <1313424481004-3256145.post@n3.nabble.com> <4E494F5F.30105@limsi.fr> Message-ID: Hi, > Another way is to use the find command under every decent UNIX (you > can probably use this under windows with something like cygwin): > [rep, stat] = unix_g("find . -iname *.txt") I advice to not use system functions to do this, because your code will be platform dependants see http://help.scilab.org/docs/5.3.3/en_US/ls.html http://help.scilab.org/docs/5.3.3/en_US/grep.html Allan From lukeaarond at gmail.com Mon Aug 15 22:26:19 2011 From: lukeaarond at gmail.com (lukeaarond) Date: Mon, 15 Aug 2011 13:26:19 -0700 (PDT) Subject: opening files with unknown names In-Reply-To: References: <1313424481004-3256145.post@n3.nabble.com> <4E494F5F.30105@limsi.fr> Message-ID: <1313439979622-3256849.post@n3.nabble.com> findfiles() works great! thanks :) -- View this message in context: http://mailinglists.scilab.org/opening-files-with-unknown-names-tp3256145p3256849.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jortega at cactus.iico.uaslp.mx Mon Aug 15 17:37:56 2011 From: jortega at cactus.iico.uaslp.mx (Jorge Ortega) Date: Mon, 15 Aug 2011 10:37:56 -0500 Subject: About 3D vector field plot Message-ID: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> Hi Scilab I am inexperienced in the use of the software Scilab. but I need to draw a vector field in 2 dimension and 3 dimension. How I can do this? Thanks for the answer Jorge Ortega -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Tue Aug 16 09:26:51 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Tue, 16 Aug 2011 09:26:51 +0200 Subject: [scilab-Users] Symbolic variables in a XCOS Cblock In-Reply-To: <4CC25C33FA8C334D80229709AB77EBB804120060@SVR-MAIL01.paninispa.local> References: <4CC25C33FA8C334D80229709AB77EBB804120060@SVR-MAIL01.paninispa.local> Message-ID: <1313479611.2316.5.camel@celine> Hi, The context is propagated at evaluation time (before compilation and simulation) thus it's not possible to modify it on the block implementation. Therefore you can use interactive simulation calls (using scicos_simulate) with a modified context. A tutorial can be found at [1]. [1]: http://wiki.scilab.org/Xcos/Examples/PID Regards, -- Cl?ment Le mercredi 10 ao?t 2011 ? 12:27 +0000, Bubbio Pierpaolo a ?crit : > All > > > > Thank you for considering this question I cannot get rid of and that > is possibly very simple to answer to. > > > > I built a simple XCOS scheme in SCILAB 5.3.3, Windows environment. I > used some contest parameters (one is for example ?MotorVoltage? that > is used by some blocks inside the XCOS scheme). At a certain point, I > had the need to define an XCOS block to apply a certain modification > and the change the value of MotorVoltage. I decided to write a CBLOCK2 > block where I am called with the known proto: > > > > void ChangeVoltage(scicos_block *block,int flag) > > { > > ? > > } > > > > and where the structure scicos_block handles a lot of parameters > coming inside the function body. Well, the question is: between those > input parameters, can I find somewhere the XCOS contest parameters (so > MotorVoltage I look for) and, if yes, where? Obviously I would need a > reference to them (and not a copy) to change their value when needed. > > > > Thank you for any help coming. > > > > Best regards > > > > From stephane.mottelet at utc.fr Tue Aug 16 09:27:54 2011 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 16 Aug 2011 09:27:54 +0200 Subject: [scilab-Users] About 3D vector field plot In-Reply-To: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> References: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> Message-ID: <20110816092754.10306vqreior2q68@webmail.utc.fr> Hello, For 3d vector fields, you can try the "quiver3" macro of the plotlib. With straight Scilab stuff, the only way is to use "segs". S. Jorge Ortega a ?crit?: > Hi Scilab > > > > I am inexperienced in the use of the software Scilab. but I need to draw a > vector field in 2 dimension and 3 dimension. How I can do this? > > > > Thanks for the answer > > > > Jorge Ortega > > From Serge.Steer at inria.fr Tue Aug 16 09:54:11 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 16 Aug 2011 09:54:11 +0200 Subject: [scilab-Users] About 3D vector field plot In-Reply-To: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> References: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> Message-ID: <4E4A2223.3080207@inria.fr> Le 15/08/2011 17:37, Jorge Ortega a ?crit : > > Hi Scilab > > > > I am inexperienced in the use of the software Scilab... but I need to > draw a vector field in 2 dimension and 3 dimension. How I can do this? > > > > Thanks for the answer > > > > Jorge Ortega > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 6379 (20110815) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com For 2D vector fields you can use the champ or champ1.sci. The 3D vector fields are not yet implemented but you may try the attached function champ3d1 champ3d1(x,y,z,fx,fy,fz [,arfact]) x,y,z, are vectors that define the grid fx,fy,fz are 3D arrays that define the cpmponents of the vector field (fx(i,j,k) is the is the x component of the vector field at point (x(i),y(j),z(k)) ) Serge Steer INRIA -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: champ3d1.sci URL: From beemc2 at aol.com Tue Aug 16 16:50:09 2011 From: beemc2 at aol.com (beemc2 at aol.com) Date: Tue, 16 Aug 2011 10:50:09 -0400 (EDT) Subject: finding polynomials of best fit Message-ID: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> I'm a first-year engineering student working with a professor on stereoscopic cameras, and one of my assignments is to determine lens distortion in the cameras and put together an algorithm to correct it. My basic plan is take photos of a known grid of dots and put together a list of their actual positions and their positions as they appear in the image, the use some form of statistical regression technique to give myself a good approximation of the radial distortion as a function of distance from the center. (a perfect camera with no distortion should give a linear relation between the real position and the position in the image.) Since I don't have much information on the geometry of the lenses themselves, i can't solve the problem analytically. I want to just get the function as a fourth- or fifth-degree Taylor polynomial (I'm told that the fourth term is the highest one that will likely be significant). So is there a decent function in Scilab that will allow me to find a polynomial of best fit for a given set of data? There's something similar in Excel but I'd rather not have to go through the hassle of exporting and then re-importing the the data, and I also might need it later for other applications. YMW From Serge.Steer at inria.fr Wed Aug 17 09:14:59 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 17 Aug 2011 09:14:59 +0200 Subject: [scilab-Users] finding polynomials of best fit In-Reply-To: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> References: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> Message-ID: <4E4B6A73.4040209@inria.fr> Le 16/08/2011 16:50, beemc2 at aol.com a ?crit : > I'm a first-year engineering student working with a professor on > stereoscopic cameras, and one of my assignments is to determine lens > distortion in the cameras and put together an algorithm to correct > it. My basic plan is take photos of a known grid of dots and put > together a list of their actual positions and their positions as they > appear in the image, the use some form of statistical regression > technique to give myself a good approximation of the radial distortion > as a function of distance from the center. (a perfect camera with no > distortion should give a linear relation between the real position and > the position in the image.) Since I don't have much information on > the geometry of the lenses themselves, i can't solve the problem > analytically. I want to just get the function as a fourth- or > fifth-degree Taylor polynomial (I'm told that the fourth term is the > highest one that will likely be significant). > So is there a decent function in Scilab that will allow me to find a > polynomial of best fit for a given set of data? There's something > similar in Excel but I'd rather not have to go through the hassle of > exporting and then re-importing the the data, and I also might need it > later for other applications. > YMW > You can look at the lsqrsolve if there is no contraints on polynomial coefficients or data_fit or leastsq functions if there are bound constraints. Serge Steer INRIA From Samuel.Gougeon at univ-lemans.fr Wed Aug 17 13:12:35 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 17 Aug 2011 13:12:35 +0200 Subject: [scilab-Users] About 3D vector field plot In-Reply-To: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> References: <005601cc5b61$4ebf0a80$ec3d1f80$@iico.uaslp.mx> Message-ID: <20110817131235.47804igl1od9ax0k@webmail1.univ-lemans.fr> Hello Jorge, Jorge Ortega a ?crit?: > Hi Scilab > > I am inexperienced in the use of the software Scilab. but I need to draw a > vector field in 2 dimension and 3 dimension. How I can do this? With xarrows(). xarrows() supports only X & Y coordinates as input parameters, but the "data" field of the related handle e = gce(); e.data supports a Z input. You can run and adapt the following script as an example. Regards Samuel ---------------------------- // 3D arrowed helix with xarrows() // Yielding data (coordinates): N = 100; Ntours = 2; zi = linspace(-1,2,N); zf = zi; theta = (zi - min(zi))/(max(zi)-min(zi))*Ntours*360; xi = zeros(1,N); xf = cosd(theta); yi = zeros(1,N); yf = sind(theta); // Displaying the system of axes (xarrows() does not do it): clf, plot3d([-1 1 1 1],[-1 -1 -1 1],[-1 -1 2 2]) // Plotting the helix: xarrows([xi;xf],[yi;yf],0.7) // X & Y e = gce(); // Setting Z by hand: e.data(1:2:$,3) = zi.'; e.data(2:2:$,3) = zf.'; From mathieu.dubois at limsi.fr Wed Aug 17 15:27:09 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 17 Aug 2011 15:27:09 +0200 Subject: [scilab-Users] finding polynomials of best fit In-Reply-To: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> References: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> Message-ID: <4E4BC1AD.9050602@limsi.fr> Hello, On 08/16/2011 04:50 PM, beemc2 at aol.com wrote: > I'm a first-year engineering student working with a professor on > stereoscopic cameras, and one of my assignments is to determine lens > distortion in the cameras and put together an algorithm to correct > it. My basic plan is take photos of a known grid of dots and put > together a list of their actual positions and their positions as they > appear in the image, the use some form of statistical regression > technique to give myself a good approximation of the radial distortion > as a function of distance from the center. (a perfect camera with no > distortion should give a linear relation between the real position and > the position in the image.) Since I don't have much information on > the geometry of the lenses themselves, i can't solve the problem > analytically. I want to just get the function as a fourth- or > fifth-degree Taylor polynomial (I'm told that the fourth term is the > highest one that will likely be significant). > So is there a decent function in Scilab that will allow me to find a > polynomial of best fit for a given set of data? There's something > similar in Excel but I'd rather not have to go through the hassle of > exporting and then re-importing the the data, and I also might need it > later for other applications. > YMW Such functions are found in OpenCV so you may look at SIVP: http://www.scilab.org/products/modules/pem/sivp (I don't know if it's in). From hinow at uwm.edu Wed Aug 17 23:39:18 2011 From: hinow at uwm.edu (Peter Hinow) Date: Wed, 17 Aug 2011 16:39:18 -0500 (CDT) Subject: fitting ODE solution to experimental data In-Reply-To: <1782585106.23422.1313616765737.JavaMail.root@mail06.pantherlink.uwm.edu> Message-ID: <1274391701.23522.1313617158901.JavaMail.root@mail06.pantherlink.uwm.edu> Dear fellows, is there a "canonical" way to fit the solution of a parameter-dependent ordinary differential equation y' = f(y;p) to some experimental data? I have tried leastsq, but the optimal solution is always the initial guess, regardless of the initial guess. Specifically, I'm not able to get any information why leastsq terminates, even when I add the option "imp=2" (the "optimal" gradient has an entry of order 10^21). When I try datafit instead, I get an error like Submatrix incorrectly defined. at line 26 of function costf called by : at line 174 of function datafit called by : even though the output of the objective function has the same size as the data vector. Thank you very much for your help, Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From vogt at centre-cired.fr Thu Aug 18 00:33:42 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 17 Aug 2011 18:03:42 -0430 Subject: [scilab-Users] fitting ODE solution to experimental data In-Reply-To: <1274391701.23522.1313617158901.JavaMail.root@mail06.pantherlink.uwm.edu> References: <1274391701.23522.1313617158901.JavaMail.root@mail06.pantherlink.uwm.edu> Message-ID: <4E4C41C6.6090002@centre-cired.fr> Hi The objective function should be a real number, I believe. If this si true, it should not have the same size than the data vector (it should be 1x1 real number) May be you could use a norm of the cost function you are currently using. Do that using scilab function norm. Hope it helps On 17/08/2011 17:09, Peter Hinow wrote: > Dear fellows, > > is there a "canonical" way to fit the solution of a parameter-dependent ordinary differential equation y' = f(y;p) to some experimental data? > > I have tried leastsq, but the optimal solution is always the initial guess, regardless of the initial guess. Specifically, I'm not able to get any information why leastsq terminates, even when I add the option "imp=2" (the "optimal" gradient has an entry of order 10^21). When I try datafit instead, I get an error like > > Submatrix incorrectly defined. > at line 26 of function costf called by : > at line 174 of function datafit called by : > > even though the output of the objective function has the same size as the data vector. > > Thank you very much for your help, > Peter > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From hinow at uwm.edu Thu Aug 18 00:47:39 2011 From: hinow at uwm.edu (Peter Hinow) Date: Wed, 17 Aug 2011 17:47:39 -0500 (CDT) Subject: [scilab-Users] fitting ODE solution to experimental data In-Reply-To: <4E4C41C6.6090002@centre-cired.fr> Message-ID: <1871646565.24195.1313621259269.JavaMail.root@mail06.pantherlink.uwm.edu> Dear Adrien, yes, I made the objective function ... = sum((solution-data)^2). Basically, leastsq stops without any message but gives me only my initial guess back. Many thanks, Peter ----- Original Message ----- From: "Adrien Vogt-Schilb" To: users at lists.scilab.org Sent: Wednesday, August 17, 2011 5:33:42 PM Subject: Re: [scilab-Users] fitting ODE solution to experimental data Hi The objective function should be a real number, I believe. If this si true, it should not have the same size than the data vector (it should be 1x1 real number) May be you could use a norm of the cost function you are currently using. Do that using scilab function norm. Hope it helps On 17/08/2011 17:09, Peter Hinow wrote: Dear fellows, is there a "canonical" way to fit the solution of a parameter-dependent ordinary differential equation y' = f(y;p) to some experimental data? I have tried leastsq, but the optimal solution is always the initial guess, regardless of the initial guess. Specifically, I'm not able to get any information why leastsq terminates, even when I add the option "imp=2" (the "optimal" gradient has an entry of order 10^21). When I try datafit instead, I get an error like Submatrix incorrectly defined. at line 26 of function costf called by : at line 174 of function datafit called by : even though the output of the objective function has the same size as the data vector. Thank you very much for your help, Peter -- Adrien Vogt-Schilb Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 96 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From frederic.jourdin at shom.fr Thu Aug 18 09:23:50 2011 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 18 Aug 2011 09:23:50 +0200 Subject: Nan indice in min/max Message-ID: <4E4CBE06.3020104@shom.fr> Hi all, if I run this: [m, k]=min([ %nan %nan %nan]) k = 1. m = Nan The result for m is correct but seems incorrect for k. Is it ? (I am expecting Nan instead). Thanks Fred Scilab 5.3.0 on Linux From Serge.Steer at inria.fr Thu Aug 18 11:09:32 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 18 Aug 2011 11:09:32 +0200 Subject: [scilab-Users] Nan indice in min/max In-Reply-To: <4E4CBE06.3020104@shom.fr> References: <4E4CBE06.3020104@shom.fr> Message-ID: <4E4CD6CC.7080006@inria.fr> Le 18/08/2011 09:23, Frederic Jourdin a ?crit : > Hi all, > if I run this: > > [m, k]=min([ %nan %nan %nan]) > k = > 1. m = > Nan > > The result for m is correct but seems incorrect > for k. Is it ? (I am expecting Nan instead). > > Thanks > Fred > Scilab 5.3.0 on Linux > > min help page says that k is the index that realize the min first. So the question is more about the semantic of the min function in such a case than the return value for k: should it - throw an error - return k=[] and m=[] (but it is the answer for min([]) In any case all solutions will require a test after the min evaluation to decide what is the situation. So it is probably better to make the test before: if and(isnan(x)) then //do what you want here else [m, k]=min(x) end Serge Steer INRIA PS: note that, at least, the Scilab behavior here is coherent with the Matlab one. >> [m, k]=min([ nan nan nan]) m = NaN k = 1 From frederic.jourdin at shom.fr Thu Aug 18 11:31:52 2011 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 18 Aug 2011 11:31:52 +0200 Subject: [scilab-Users] Nan indice in min/max In-Reply-To: <4E4CD6CC.7080006@inria.fr> References: <4E4CBE06.3020104@shom.fr> <4E4CD6CC.7080006@inria.fr> Message-ID: <4E4CDC08.5070504@shom.fr> Hi Serge, all right I understand (no perfect result exists in this case!). Then I made such a simple test to get what I need. Thank you a lot for your answer. Fred Serge Steer wrote: > Le 18/08/2011 09:23, Frederic Jourdin a ?crit : > >> Hi all, >> if I run this: >> >> [m, k]=min([ %nan %nan %nan]) >> k = >> 1. m = >> Nan >> >> The result for m is correct but seems incorrect >> for k. Is it ? (I am expecting Nan instead). >> >> Thanks >> Fred >> Scilab 5.3.0 on Linux >> >> >> > min help page says that k is the index that realize the min first. > So the question is more about the semantic of the min function in such a > case than the return value for k: > should it > - throw an error > - return k=[] and m=[] (but it is the answer for min([]) > In any case all solutions will require a test after the min evaluation > to decide what is the situation. So it is probably better to make the > test before: > > if and(isnan(x)) then > //do what you want here > else > [m, k]=min(x) > end > > Serge Steer > INRIA > > PS: note that, at least, the Scilab behavior here is coherent with the > Matlab one. > >>> [m, k]=min([ nan nan nan]) >>> > > m = > > NaN > > > k = > > 1 > From scilabuser at gmail.com Thu Aug 18 14:32:34 2011 From: scilabuser at gmail.com (scilabuser) Date: Thu, 18 Aug 2011 05:32:34 -0700 (PDT) Subject: 2d plot Message-ID: Hi, I am trying to plot a set of data points (2D or 3D feature points), where each points is marked by a different number (typically the index of the vector) . More precisely, I am used to call plot2d this way:* * * * *-->scf() ; plot2d(attrib_point(1,:), attrib_points(2,:) , style = -1) ;* * * Which gives a plot where all points are marked by a '+' . Now instead of the '+', I would like to have each point to be marked differently, ie by '1', '2', '3',... , ie their index in the attrib_point(1,:) vector . Any solution ? Thanks in advance . Caroline -- View this message in context: http://mailinglists.scilab.org/2d-plot-tp3264708p3264708.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Fri Aug 19 09:23:07 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 19 Aug 2011 09:23:07 +0200 Subject: [scilab-Users] 2d plot In-Reply-To: References: Message-ID: <4E4E0F5B.7070208@inria.fr> Le 18/08/2011 14:32, scilabuser a ?crit : > Hi, > > I am trying to plot a set of data points (2D or 3D feature points), > where each points is marked by a different number (typically the index > of the vector) . > > More precisely, I am used to call plot2d this way:* * > * > * > *-->scf() ; plot2d(attrib_point(1,:), attrib_points(2,:) , style = -1) ;* > * > * > Which gives a plot where all points are marked by a '+' . > Now instead of the '+', I would like to have each point to be > marked differently, ie by '1', '2', '3',... , ie their index in > the attrib_point(1,:) vector . > > Any solution ? > Thanks in advance . > > Caroline > > ------------------------------------------------------------------------ > View this message in context: 2d plot > > Sent from the Scilab users - Mailing Lists Archives mailing list > archive > > at Nabble.com.You can use cstring for that You can use xstring for that: 2D example x=1:10;y=x^1.5; clf;plot(x,y,'+') for k=1:10,xstring(x(k),y(k),string(k)),end or more efficient if there are many points drawlater();for k=1:10,xstring(x(k),y(k),string(k)),end;drawnow() 3D example, a little more complex due to 3d functions limitations x=1:10;y=x^1.5;z=x^2; clf;param3d(x,y,z) //replace lines by points e.mark_mode="on";e.mark_style=2;e.line_mode="off" //xstring do not yet handle the 3D coordinates drawlater();for k=1:10,xstring(x(k),y(k),string(k)),e=gce();e.data(3)=z(k);end;drawnow() Serge Steer INRIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From grivet at cnrs-orleans.fr Fri Aug 19 17:23:53 2011 From: grivet at cnrs-orleans.fr (grivet) Date: Fri, 19 Aug 2011 17:23:53 +0200 Subject: [scilab-Users] stacked plots In-Reply-To: <4E4E0F5B.7070208@inria.fr> References: <4E4E0F5B.7070208@inria.fr> Message-ID: <4E4E8009.1080702@cnrs-orleans.fr> Hello, Does anybody know of a Scilab routine to produce a "stacked plot" ? Let me explain what I mean.I have a series of spectra (IR, NMR or whatever) intensity vs frequency, recorded as a function of another parameter (time, ph, etc..). I wouold like to display them one above the other, each slightly offset right and above, to give an impression of perspective in 3D. The difficult part is that each trace should be "whitewashed" so that no peak of spectrum #i tangles with spectra i+1, i+2 etc... Such a piece of sofware is frequently available from instrument vendors cannot be used independently. Thank you four your attention JP Grivet From Serge.Steer at inria.fr Fri Aug 19 17:51:50 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 19 Aug 2011 17:51:50 +0200 Subject: [scilab-Users] stacked plots In-Reply-To: <4E4E8009.1080702@cnrs-orleans.fr> References: <4E4E0F5B.7070208@inria.fr> <4E4E8009.1080702@cnrs-orleans.fr> Message-ID: <4E4E8696.6020507@inria.fr> Le 19/08/2011 17:23, grivet a ?crit : > Hello, > > Does anybody know of a Scilab routine to produce a "stacked plot" ? > > Let me explain what I mean.I have a series of spectra (IR, NMR or > whatever) intensity vs frequency, recorded as a function of another > parameter (time, ph, etc..). I wouold like to display them one above > the other, each slightly offset right and above, to give an impression > of perspective in 3D. The difficult part is that each trace should be > "whitewashed" so that no peak of spectrum #i tangles with spectra i+1, > i+2 etc... > > Such a piece of sofware is frequently available from instrument > vendors cannot be used independently. > Thank you four your attention > JP Grivet > > Is the script attached correspond to the type of things you want to draw? Serge Steer INRIA -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: grivet.sce URL: From scilabuser at gmail.com Sat Aug 20 08:31:17 2011 From: scilabuser at gmail.com (Scilab user) Date: Fri, 19 Aug 2011 23:31:17 -0700 (PDT) Subject: 2d plot In-Reply-To: <4E4E0F5B.7070208@inria.fr> References: <4E4E0F5B.7070208@inria.fr> Message-ID: <1313821877900-3270057.post@n3.nabble.com> Got it, perfect, thanks! Veronique -- View this message in context: http://mailinglists.scilab.org/2d-plot-tp3264708p3270057.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From energetical_faculty at yahoo.com Sun Aug 21 01:15:53 2011 From: energetical_faculty at yahoo.com (Energetical Faculty) Date: Sat, 20 Aug 2011 16:15:53 -0700 (PDT) Subject: Scilab consulting request Message-ID: <1313882153.38451.YahooMailNeo@web121610.mail.ne1.yahoo.com> Hi, dear support! Thanks you for your work! I had a problem at attempt to address from scilab to other application - Elcut (the screen is enclosed). Help to solve this problem please. Best regards! ------------------------------------------- Andrey Nemkovich Open Society ''Agate - control systems'' Department of automation Phone number: +375259162067 E-mail: energetical_faculty at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.GIF Type: image/gif Size: 36918 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: getQfForceX.sci Type: application/octet-stream Size: 1599 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: relay_dynamics.sce Type: application/octet-stream Size: 591 bytes Desc: not available URL: From herpinono at yahoo.fr Sun Aug 21 15:32:58 2011 From: herpinono at yahoo.fr (Herpin) Date: Sun, 21 Aug 2011 06:32:58 -0700 (PDT) Subject: genetic Algorithm Message-ID: <1313933578513-3272828.post@n3.nabble.com> Hallo, can somnbody give me more detail about the signification of the parameters " Pressure", "beta" and "delta" by genetic Algorithm? thanks Herpin pop_size = 100; nb_generation = 10; p_mut = 0.1; p_cross = 0.7; Log = %T; NbCouples = 100; nb_disp = 10; pressure = 0.05; // The efficiency of the worst individual ga_params = add_param(ga_params,'minbound',[0 0]'); ga_params = add_param(ga_params,'maxbound',[20 20]'); ga_params = add_param(ga_params,'dimension',2); ga_params = add_param(ga_params,'beta',0); ga_params = add_param(ga_params,'delta',0.1); -- View this message in context: http://mailinglists.scilab.org/genetic-Algorithm-tp3272828p3272828.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mashoed at gmail.com Sun Aug 21 16:44:46 2011 From: mashoed at gmail.com (mashoed) Date: Sun, 21 Aug 2011 07:44:46 -0700 (PDT) Subject: [ASK] optimization placement FACTS devices using genetic algorithm Message-ID: <1313937886671-3272927.post@n3.nabble.com> hello, need help here... i need some help about facts placement using genetic algorithm in power system transmission. is there any reference? -- View this message in context: http://mailinglists.scilab.org/ASK-optimization-placement-FACTS-devices-using-genetic-algorithm-tp3272927p3272927.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Kohama.Tatsuo at cb.MitsubishiElectric.co.jp Mon Aug 22 11:18:27 2011 From: Kohama.Tatsuo at cb.MitsubishiElectric.co.jp (Tatsuo KOHAMA) Date: Mon, 22 Aug 2011 18:18:27 +0900 Subject: lincos command for TIME_DELAY model Message-ID: <4B15AF52BAB54A59AC756451F461DD98@ad.melco.co.jp> Dear sir I tried "sys=lincos(scs_m)" for the xcos model including "TIME_DELAY"in the pallet. So, the console indicated the error message as follows " Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. Save your data and restart Scilab. !--error 21 Invalid index. at line 208 of function lincos called by : sys=lincos(scs_m) " Please indicate how successful lincos command. Sincerely yours. Tatsuo Kohama -------------- next part -------------- An HTML attachment was scrubbed... URL: From grivet at cnrs-orleans.fr Tue Aug 23 11:32:43 2011 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 23 Aug 2011 11:32:43 +0200 Subject: [scilab-Users] stacked plots In-Reply-To: <4E4E8696.6020507@inria.fr> References: <4E4E0F5B.7070208@inria.fr> <4E4E8009.1080702@cnrs-orleans.fr> <4E4E8696.6020507@inria.fr> Message-ID: <4E5373BB.3010701@cnrs-orleans.fr> Quite so: a simple code and a nice result. > Is the script attached correspond to the type of things you want to draw? > > Serge Steer > INRIA From ledbellie at gmail.com Tue Aug 23 22:19:51 2011 From: ledbellie at gmail.com (ledbelly2142) Date: Tue, 23 Aug 2011 13:19:51 -0700 (PDT) Subject: Can Scilab be used as an automation/control and DAQ Message-ID: <1314130791039-3279198.post@n3.nabble.com> I am very (very) new and want to understand some of the possible uses of Scilab. Can Scilab be implemented with data acquisition equipment (e.g. LabJack) and log to an SQL database? Can Scilab access data from an SQL database to run math simulations? Can Scilab be used as a control/automation system, e.g. take in sensor information, process data, send control commands (e.g. to a relay through LabJack)? Thanks, Greg -- View this message in context: http://mailinglists.scilab.org/Can-Scilab-be-used-as-an-automation-control-and-DAQ-tp3279198p3279198.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From eduardo.torrecillas at gmail.com Fri Aug 26 12:51:38 2011 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Fri, 26 Aug 2011 07:51:38 -0300 Subject: Plotting solids Message-ID: Hi all, I was trying to use scilab to plot some solids (octaedrals and wedges, basically). The idea is to have a matrix (nx3) with coordinates X,Y,Z passed to a function which plots and connect the edges. Searching in the native functions of Scilab I didn't find anything. Any ideas or help will be appreciated. Best regards, -- Eduardo Torrecillas -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 26 14:01:30 2011 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 26 Aug 2011 14:01:30 +0200 Subject: [scilab-Users] Plotting solids In-Reply-To: References: Message-ID: <4E578B1A.2050005@free.fr> Hello Eduardo, You may have a look at plot3d(), nf3d() and genfac3d() Regards Samuel Le 26/08/2011 12:51, Eduardo Torrecillas a ?crit : > Hi all, > > I was trying to use scilab to plot some solids (octaedrals and wedges, > basically). > The idea is to have a matrix (nx3) with coordinates X,Y,Z passed to a > function which plots and connect the edges. > > Searching in the native functions of Scilab I didn't find anything. > Any ideas or help will be appreciated. > > Best regards, > > -- > Eduardo Torrecillas From michael.baudin at scilab.org Sat Aug 27 14:29:47 2011 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Sat, 27 Aug 2011 14:29:47 +0200 Subject: [scilab-Users] fitting ODE solution to experimental data In-Reply-To: <1274391701.23522.1313617158901.JavaMail.root@mail06.pantherlink.uwm.edu> References: <1274391701.23522.1313617158901.JavaMail.root@mail06.pantherlink.uwm.edu> Message-ID: Hi, The page : http://wiki.scilab.org/Non%20linear%20optimization%20for%20parameter%20fitting%20example is a complete example on this topic. For your specific problem, without the script, we cannot do much. Please attach it with your mail. Regards, Micha?l On Wed, 17 Aug 2011 16:39:18 -0500 (CDT), Peter Hinow wrote: > Dear fellows, > > is there a "canonical" way to fit the solution of a > parameter-dependent ordinary differential equation y' = f(y;p) to > some > experimental data? > > I have tried leastsq, but the optimal solution is always the initial > guess, regardless of the initial guess. Specifically, I'm not able to > get any information why leastsq terminates, even when I add the > option > "imp=2" (the "optimal" gradient has an entry of order 10^21). When I > try datafit instead, I get an error like > > Submatrix incorrectly defined. > at line 26 of function costf called by : > at line 174 of function datafit called by : > > even though the output of the objective function has the same size as > the data vector. > > Thank you very much for your help, > Peter From michael.baudin at scilab.org Sat Aug 27 14:35:22 2011 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Sat, 27 Aug 2011 14:35:22 +0200 Subject: [scilab-Users] finding polynomials of best fit In-Reply-To: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> References: <8CE2A3AEDA29DF1-B00-4003@webmail-m140.sysops.aol.com> Message-ID: <9a73b263f77ccfcdcccaa3980c70f479@scilab.org> Hi, It's really easy to use the backslash operator to find the least squares solution of a system of linear equations. In this case, the solution is the set of coefficients of the polynomial. Another option is to use a dedicated function. There is no one in Scilab, but there are several toolboxes to do this. The Stixbox toolbox (http://atoms.scilab.org/toolboxes/stixbox) has three functions: * linreg : Linear or polynomial regression * polyfit : Polynomial curve fitting * polyval : Polynomial evaluation The fitters toolbox (http://atoms.scilab.org/toolboxes/fitters) also has dedicated functions. Regards, Micha?l On Tue, 16 Aug 2011 10:50:09 -0400 (EDT), beemc2 at aol.com wrote: > I'm a first-year engineering student working with a professor on > stereoscopic cameras, and one of my assignments is to determine lens > distortion in the cameras and put together an algorithm to correct > it. > My basic plan is take photos of a known grid of dots and put together > a list of their actual positions and their positions as they appear > in > the image, the use some form of statistical regression technique to > give myself a good approximation of the radial distortion as a > function of distance from the center. (a perfect camera with no > distortion should give a linear relation between the real position > and > the position in the image.) Since I don't have much information on > the geometry of the lenses themselves, i can't solve the problem > analytically. I want to just get the function as a fourth- or > fifth-degree Taylor polynomial (I'm told that the fourth term is the > highest one that will likely be significant). > So is there a decent function in Scilab that will allow me to find a > polynomial of best fit for a given set of data? There's something > similar in Excel but I'd rather not have to go through the hassle of > exporting and then re-importing the the data, and I also might need > it > later for other applications. > YMW From alx4t1 at gmail.com Mon Aug 29 11:12:55 2011 From: alx4t1 at gmail.com (alex G) Date: Mon, 29 Aug 2011 02:12:55 -0700 (PDT) Subject: generation function by function call Message-ID: <1314609175460-3292242.post@n3.nabble.com> Sorry for my english, i'm beginner in english ... Hello, I wish convert a string to a function when I press a button graphic. For that, I call a function when pressing the button. I don't have a function in out of my call, why ? Here is an excerpt of the code I use: //on souhaite transformer une chaine de caract?re en fonction co=['4*x(1)+3(2)']; function re() if(isempty(co(1))==%F) then function [y]=C1(x) y=evstr(co(1)) return(evstr(co(1))) endfunction else function [y]=C1(x) y=0; endfunction end; endfunction -- View this message in context: http://mailinglists.scilab.org/generation-function-by-function-call-tp3292242p3292242.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Mon Aug 29 11:32:11 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 29 Aug 2011 11:32:11 +0200 Subject: [scilab-Users] generation function by function call In-Reply-To: <1314609175460-3292242.post@n3.nabble.com> References: <1314609175460-3292242.post@n3.nabble.com> Message-ID: <4E5B5C9B.801@laas.fr> I think it is a problem of variable scope: your function C1 only exists while you are in the function re(). As any local variable it is discarded once the call to re() is finished. One way to check that is to add a pause before re() returns: function re() if(isempty(co(1))==%F) then function [y]=C1(x) y=evstr(co(1)) return(evstr(co(1))) endfunction else function [y]=C1(x) y=0; endfunction end; pause endfunction Now if you execute re(), you'll get a prompt at the pause, ie inside re(): -->re() Type 'resume' or 'abort' to return to standard level prompt. -1->C1(1) ans = 7. 2. As you can see C1 exists. Why are you wrapping the creation of C1 inside another function? Why don't you execute directly something like: co="4*x(1)+3*x(2)"; deff("[y]=C1(x)",["y="+co+";"]); C1([1,2]) Antoine Le 29/08/2011 11:12, alex G a ?crit : > Sorry for my english, i'm beginner in english ... > > Hello, > I wish convert a string to a function when I press a button graphic. For > that, I call a function when pressing the button. > > I don't have a function in out of my call, why ? > > Here is an excerpt of the code I use: > > //on souhaite transformer une chaine de caract?re en fonction > co=['4*x(1)+3(2)']; > > function re() > > if(isempty(co(1))==%F) then > > function [y]=C1(x) > y=evstr(co(1)) > return(evstr(co(1))) > endfunction > > else > > function [y]=C1(x) > y=0; > endfunction > > end; > pause > endfunction > > -- > View this message in context: http://mailinglists.scilab.org/generation-function-by-function-call-tp3292242p3292242.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > From w.schulz at ove.at Mon Aug 29 14:44:05 2011 From: w.schulz at ove.at (W.Schulz) Date: Mon, 29 Aug 2011 05:44:05 -0700 (PDT) Subject: Maps in Scilab Message-ID: <1314621845667-3292605.post@n3.nabble.com> Does anyone have experiences with displaying maps in Scilab? Are there maybe some tools available which are not on the official web site? Thanks for your help Wolfgang -- View this message in context: http://mailinglists.scilab.org/Maps-in-Scilab-tp3292605p3292605.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Mon Aug 29 14:59:25 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 29 Aug 2011 14:59:25 +0200 Subject: [scilab-Users] generation function by function call In-Reply-To: <1314609175460-3292242.post@n3.nabble.com> References: <1314609175460-3292242.post@n3.nabble.com> Message-ID: <4E5B8D2D.4050201@inria.fr> You have to use the deff function for that deff("[y]=C1(x)","y="+co(1)) Another solution should be to use the exectr function text=["function [y]=C1(x)" " y="+co(1) "endfunction"] execstr(text) Serge Steer INRIA Le 29/08/2011 11:12, alex G a ?crit : > Sorry for my english, i'm beginner in english ... > > Hello, > I wish convert a string to a function when I press a button graphic. For > that, I call a function when pressing the button. > > I don't have a function in out of my call, why ? > > Here is an excerpt of the code I use: > > //on souhaite transformer une chaine de caract?re en fonction > co=['4*x(1)+3(2)']; > > function re() > > if(isempty(co(1))==%F) then > > function [y]=C1(x) > y=evstr(co(1)) > return(evstr(co(1))) > endfunction > > else > > function [y]=C1(x) > y=0; > endfunction > > end; > > endfunction > > -- > View this message in context: http://mailinglists.scilab.org/generation-function-by-function-call-tp3292242p3292242.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > From clement.david at scilab.org Mon Aug 29 16:05:34 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 29 Aug 2011 16:05:34 +0200 Subject: [scilab-Users] lincos command for TIME_DELAY model In-Reply-To: <4B15AF52BAB54A59AC756451F461DD98@ad.melco.co.jp> References: <4B15AF52BAB54A59AC756451F461DD98@ad.melco.co.jp> Message-ID: <1314626734.27456.42.camel@pinarellu.inria.fr> Hello, The lincos function crash Scilab when linearize a diagrams containing a TIME_DELAY block. I have openned a bug, see http://bugzilla.scilab.org/show_bug.cgi?id=9896 for more informations. -- Cl?ment Le lundi 22 ao?t 2011 ? 18:18 +0900, Tatsuo KOHAMA a ?crit : > Dear sir > > I tried "sys=lincos(scs_m)" for the xcos model including > "TIME_DELAY"in the pallet. > So, the console indicated the error message as follows > > " > Warning !!! > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > with "scicosim" function. > Save your data and restart Scilab. > !--error 21 > Invalid index. > > at line 208 of function lincos called by : > sys=lincos(scs_m) > " > Please indicate how successful lincos command. > > Sincerely yours. > > Tatsuo Kohama -- Cl?ment David From ashwindamle at gmail.com Wed Aug 31 13:22:46 2011 From: ashwindamle at gmail.com (ashwin damle) Date: Wed, 31 Aug 2011 16:52:46 +0530 Subject: Help regarding file management Message-ID: Hello, I am using scilab 5.3.3 on ubuntu 11.04.... I have a problem using the file management. Take for example the help for files u=file('open','foo.dat','unknown') for k=1:4 a=rand(1,4) write(u,a) end file('rewind',u) x=read(u,2,4) file('close',u) In the code above, if I execute the program it works. If I execute the program again, with unknown changed to 'old', it gives an error saying foo.dat already exists of access is denied. Then, what I do is i delete the foo.dat file in the current directory and change the 'unknown' to 'new'...then I execute it works but next time after changing it 'new' to 'old' I execute again but it won't work giving the same error. What is the problem? To put it simply, can you suggest a working part of file management. Thanks. -- Ash.D -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Aug 31 13:46:51 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 31 Aug 2011 13:46:51 +0200 Subject: [scilab-Users] Help regarding file management In-Reply-To: References: Message-ID: <4E5E1F2B.30401@inria.fr> Le 31/08/2011 13:22, ashwin damle a ?crit : > Hello, > > I am using scilab 5.3.3 on ubuntu 11.04.... I have a problem using the > file management. Take for example the help for files > > u=file('open','foo.dat','unknown') > for k=1:4 > a=rand(1,4) > write(u,a) > end > file('rewind',u) > x=read(u,2,4) > > file('close',u) > > In the code above, if I execute the program it works. If I execute the > program again, with unknown changed to 'old', it gives an error saying > foo.dat already exists of access is denied. Then, what I do is i > delete the foo.dat file in the current directory and change the > 'unknown' to 'new'...then I execute it works but next time after > changing it 'new' to 'old' I execute again but it won't work giving > the same error. > > What is the problem? To put it simply, can you suggest a working part > of file management. > > Thanks. > > -- > Ash.D The 'old' option opens the file read-only.... Serge Steer INRIA From ruben.bibas at centre-cired.fr Wed Aug 31 19:46:36 2011 From: ruben.bibas at centre-cired.fr (Ruben Bibas) Date: Wed, 31 Aug 2011 19:46:36 +0200 Subject: stacksize("max") problem Message-ID: <4E5E737C.4010106@centre-cired.fr> Hello, I am building a custom made C function, used in scilab via the call function. It is not a big function, however I need to increase the stacksize to make it work. I used to use stacksize("max") which when the need for memory increased consistently make scilab crash with this error: Operating system error: Cannot allocate memory Memory allocation failed Using stacksize(1e8) suddenly resolved all problems. I don't really know how to report such a bug, but understanding the problem would be helpful ! I would advise the help to oblige stacksize to manually enter the value, since it makes scilab very unstable, especially with multiple cores computers. Anyhow, great job with scilab! Ruben -- Ruben Bibas CIRED Centre International de Recherche sur l'Environnement et le D?veloppement 45 bis, Avenue de la Belle Gabrielle 94736 Nogent-sur-Marne FRANCE Email : ruben.bibas at centre-cired.fr Phone : +33 1 43 94 73 86 Fax : +33 1 43 94 73 70