From johnb at sfu.ca Mon May 4 08:10:42 2009 From: johnb at sfu.ca (John Bechhoefer) Date: Sun, 3 May 2009 23:10:42 -0700 Subject: ode with external input? Message-ID: I would like to calculate the discrete-analog hybrid output of an ode with arbitrary input, and I don't see how to pass an arbitrary input function to odedc(). In particular, I would like to do something like the following, where I have a list of times t and a list of input values u at those times t. The function u(t) would then be constant between those instants. (In the most general case, one would want to do this for arbitrary times, but in my case, the times will always be evenly spaced.) t=0:0.1:10; l=size(t,2); u=rand(1,l,'normal'); // this is short for a complicated function of t determined by a sub-program // that is not practical to put into the deff statement, I think nd=1; stdel=1; t0=0; y=odedc(y0,nd,stdel,t0,t,u,f); // i.e., put an extra input u here, the continuous part of the function would be ydot = f(y,t,u). The input to f would be the "staircase" function made from u, whose values are given at each element of the vector t. All the examples I see in odedc and ode involve a well-defined function u(t). In my case, my input ultimately can be put in such a form, but there is a whole sub-program needed to calculate u(t). I would like to just use the final result as an input to the ode / odecd functions. Hope this is clear. I'm a bit stuck on how to proceed. Thanks / merci ! John From ron at phenotypescreening.com Tue May 5 23:29:07 2009 From: ron at phenotypescreening.com (Ronald Michaels) Date: Tue, 05 May 2009 17:29:07 -0400 Subject: changing scale of ticks for a graph Message-ID: <1241558947.6260.302.camel@SUN> Hi - New member Ron here. I like the new graphics package; however, I am having a little trouble understanding how it works. Using Scilab v.5.1.1 on 64 bit Linux I wish to make a histogram using the hist3d() function. I would like the y axis to run from 0 to 36 with subdivisions of 6 units. Below is some code that takes me most of the way, but it involves a redefinition of data_bounds that results in subdivisions of 6 units. I would appreciate having someone show me the correct way to get y axis subdivisions of 6 units and to end the y axis at 36. // start Scilab code clear shape = rand(14,36); size(shape) shape_rev = [shape(:,19:36) shape(:,1:18)]; hist3d(shape_rev); a=get("current_axes"); a.data_bounds=[0,0,0;14,30,10]; // x,y,x;x,y,z set y to 0 - 30 a.y_ticks.locations=[0;6;12;18;24;30;36]; // works set to 30 a.y_ticks.labels=["-90";"-60";"30";"0";"30";"60";"90"];// works a.data_bounds=[0,0,0;14,36,10]; // reset y to 0 - 36 a.rotation_angles=[40,30]; // end Scilab code Thanks Ron From isuzman at gmail.com Wed May 6 18:19:03 2009 From: isuzman at gmail.com (Zhiming Qi) Date: Wed, 6 May 2009 11:19:03 -0500 Subject: Help in reading txt file: how to skip the title Message-ID: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com> Hi, I have a file which includes both titles and digit values. How can I get the digit values out but not the title when using read in Scilab? Attached is the data format: RZWQM2-3D ***************************** * Subplot Definitions * ***************************** 1 ***************************** * COLUMN LABELS * ***************************** DAY DEPTH (CM) SOIL WATER CONTENT (VOL) ****************** DATA STARTS HERE ***************** 274 1.000 0.2898 274 2.000 0.2919 274 4.000 0.2939 274 7.000 0.2990 274 10.00 0.3035 274 13.00 0.3130 274 16.00 0.3172 274 20.00 0.3201 274 24.00 0.3243 274 27.00 0.3272 274 30.00 0.3300 274 33.00 0.3210 274 36.00 0.3223 274 40.00 0.3236 274 44.00 0.3258 274 48.00 0.3273 274 53.00 0.3302 274 57.00 0.3345 274 60.00 0.3381 274 63.00 0.3331 Thanks much, Zhiming -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsr at ee.iitm.ac.in Thu May 7 06:26:59 2009 From: hsr at ee.iitm.ac.in (harishankar ramachandran) Date: Thu, 7 May 2009 09:56:59 +0530 Subject: [scilab-Users] Help in reading txt file: how to skip the title In-Reply-To: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com> References: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com> Message-ID: <200905070956.59924.hsr@ee.iitm.ac.in> The following program does the specific job: // to read in a data file containing header lines starting with // "*" and to read in the columns after the last header line. A=read("data.txt",-1,1,"(a)"); // read in the file jj=grep(A,"*"); // find lines containing "*" // We want to skip upto all lines containing "*" So start after // the last such line ibeg=jj(length(jj))+1; iend=size(A,"r"); m=iend-ibeg+1; [n,v1,v2,v3]=msscanf(m,A(ibeg:iend),"%f %f %f"); clf subplot(3,1,1); plot2d(1:m,v1'); subplot(3,1,2); plot2d(1:m,v2'); subplot(3,1,3); plot2d(1:m,v3'); // Note that this script hardcoded the number of columns and does // no error checking. Since column information is present in the // file, one could also extract that info and construct the // format string appropriately. Or use the logic in fscanfMat to directly // figure out the number of columns. Not sure this is quite what you wanted. regards hari ramachandran On Wednesday 06 May 2009 21:49, Zhiming Qi wrote: > ***************************** > * Subplot Definitions * > ***************************** > 1 > ***************************** > * COLUMN LABELS * > ***************************** > DAY > DEPTH (CM) > SOIL WATER CONTENT (VOL) > ****************** DATA STARTS HERE ***************** > 274 1.000 0.2898 > 274 2.000 0.2919 > 274 4.000 0.2939 > 274 7.000 0.2990 > 274 10.00 0.3035 > 274 13.00 0.3130 > 274 16.00 0.3172 > 274 20.00 0.3201 > 274 24.00 0.3243 > 274 27.00 0.3272 > 274 30.00 0.3300 > 274 33.00 0.3210 > 274 36.00 0.3223 > 274 40.00 0.3236 > 274 44.00 0.3258 > 274 48.00 0.3273 > 274 53.00 0.3302 > 274 57.00 0.3345 > 274 60.00 0.3381 > 274 63.00 0.3331 -- Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle Simulations, Computational Algorithms, Linux. Off: 91-44-2257-4421 Fax: 91-44-2257-0120 Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com From Dan_Gill at mksinst.com Thu May 7 10:00:40 2009 From: Dan_Gill at mksinst.com (Dan_Gill at mksinst.com) Date: Thu, 7 May 2009 04:00:40 -0400 Subject: Dan Gill/US/MKS is out of the office. Message-ID: I will be out of the office starting Thu 05/07/2009 and will not return until Fri 05/08/2009. I will respond to your message when I return. From stephane.mottelet at utc.fr Thu May 7 14:26:58 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 07 May 2009 14:26:58 +0200 Subject: Scilab 5.1.1 and GLIBC Message-ID: <4A02D392.3040901@utc.fr> Hi. I thought the strict dependence should be fixed with this release, but the problem still remains : bash-3.00$ /usr/local/scilab-5.1.1/bin/scilab /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/local/scilab-5.1.1/lib/scilab/libscifileio.so.5) /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/local/scilab-5.1.1/lib/scilab/libscimetanet.so.5) /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/local/scilab-5.1.1/lib/scilab/libscispreadsheet.so.5) I cannot give Scilab a try on our server (not so old Linux/CentOS dist, 2.6.9-55 Kernel, GLIBC_2.3.4). S. From stephane.mottelet at utc.fr Thu May 7 16:42:22 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 07 May 2009 16:42:22 +0200 Subject: Scilab 5 and non openGL X11 servers Message-ID: <4A02F34E.8020205@utc.fr> Hi again, I finally managed to compile Scilab 5.1.1 on our Linux Centos server. It seems that Scilab is not able to cope with non OpenGL servers (a warning is given that the drivers of the graphical card does not support OpenGL). Are there plans to use a deprecated X11 mode ? Here at work everybody uses the machine through VNC; so nobody will be able to use Scilab 5. Too bad. S. From mathieu.dubois at limsi.fr Fri May 8 13:49:44 2009 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 8 May 2009 13:49:44 +0200 (CEST) Subject: [scilab-Users] changing scale of ticks for a graph In-Reply-To: <1241558947.6260.302.camel@SUN> References: <1241558947.6260.302.camel@SUN> Message-ID: <34935.82.123.149.191.1241783384.squirrel@keo.limsi.fr> Hello Ron, I took some time to investigate your problem. Would you tell us if the following code solves your problem? // start Scilab code clear shape = rand(14,36); [m, n] = size(shape); shape_rev = [shape(:,19:36) shape(:,1:18)]; hist3d(shape_rev); a=get("current_axes"); a.auto_ticks(2)="off"; // Disable auto-ticks on y axis - not mandatory a.y_ticks = tlist(["ticks", "locations", "labels"], 0:6:36, string(0:6:36)); // Set the ticks we want for y axis a.sub_ticks(2)=0; // Disable sub-ticks for y axis a.rotation_angles=[40,30]; // end Scilab code It's just a modification of your code. You can see that it uses the y_ticks member of the axis properties. This member is a tlist (typed list). I have to admit that I don't master this completely but I have found examples on the internet. The basic idea is that you specify the number of ticks, their position and the associated label (text) in one object. Maybe there are more convenient functions to do that. Alternatively you can simply plot the histogram and use the figure property editor to manually set the ticks... Hope that helps, Mathieu P.S.: I use scilab 4 at home because my video driver under Linux doesn't support scilab 5 but I think the graphic API is more or less the same. > Hi - > > New member Ron here. I like the new graphics package; however, I am > having a little trouble understanding how it works. > > Using Scilab v.5.1.1 on 64 bit Linux > > I wish to make a histogram using the hist3d() function. I would like > the y axis to run from 0 to 36 with subdivisions of 6 units. Below is > some code that takes me most of the way, but it involves a redefinition > of data_bounds that results in subdivisions of 6 units. > > I would appreciate having someone show me the correct way to get y axis > subdivisions of 6 units and to end the y axis at 36. > > // start Scilab code > > clear > shape = rand(14,36); > size(shape) > shape_rev = [shape(:,19:36) shape(:,1:18)]; > hist3d(shape_rev); > a=get("current_axes"); > a.data_bounds=[0,0,0;14,30,10]; // x,y,x;x,y,z set y to 0 - 30 > a.y_ticks.locations=[0;6;12;18;24;30;36]; // works set to 30 > a.y_ticks.labels=["-90";"-60";"30";"0";"30";"60";"90"];// works > a.data_bounds=[0,0,0;14,36,10]; // reset y to 0 - 36 > a.rotation_angles=[40,30]; > > // end Scilab code > > Thanks > > Ron > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: test_hist3D.sce Type: application/octet-stream Size: 467 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Fri May 8 14:39:34 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 08 May 2009 14:39:34 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <4A02F34E.8020205@utc.fr> References: <4A02F34E.8020205@utc.fr> Message-ID: <1241786374.4977.34.camel@zlarin> Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : > Hi again, > > I finally managed to compile Scilab 5.1.1 on our Linux Centos server. How did you do that ? > It seems that Scilab is not able to cope with non OpenGL servers (a > warning is given that the drivers of the graphical card does not > support OpenGL). Are there plans to use a deprecated X11 mode ? Using the vesa driver should fix your problem. > Here at work everybody uses the machine through VNC; so nobody > will be able to use Scilab 5. Too bad. Funny architecture, can I ask why ? Sylvestre From BlanchardJ at ieee.org Fri May 8 14:50:09 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Fri, 8 May 2009 09:50:09 -0300 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <1241786374.4977.34.camel@zlarin> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> Message-ID: Hi, I had great success making Scilab work with the Mesa Xlib drivers with vnc on Solaris. It should work very well in Linux and appear to work for Sun's thin clients also. Jonathan Blanchard On Fri, May 8, 2009 at 9:39 AM, Sylvestre Ledru wrote: > Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : >> Hi again, >> >> I finally managed to compile Scilab 5.1.1 on our Linux Centos server. > How did you do that ? > >> It seems that Scilab is not able to cope with non OpenGL servers (a >> warning is given that the drivers of the graphical card does not >> support OpenGL). Are there plans to use a deprecated X11 mode ? > Using the vesa driver should fix your problem. > >> Here at work everybody uses the machine through VNC; so nobody >> will be able to use Scilab 5. Too bad. > Funny architecture, can I ask why ? > > Sylvestre > > > From giri at leos.gov.in Thu May 7 17:58:28 2009 From: giri at leos.gov.in (Giri) Date: Thu, 07 May 2009 10:58:28 -0500 Subject: [scilab-Users] Help in reading txt file: how to skip the title References: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com> <200905070956.59924.hsr@ee.iitm.ac.in> Message-ID: <4A030524.CF22B965@leos.gov.in> harishankar ramachandran wrote: > The following program does the specific job: > > // to read in a data file containing header lines starting with > // "*" and to read in the columns after the last header line. > A=read("data.txt",-1,1,"(a)"); // read in the file > jj=grep(A,"*"); // find lines containing "*" > > // We want to skip upto all lines containing "*" So start after > // the last such line > ibeg=jj(length(jj))+1; > iend=size(A,"r"); > m=iend-ibeg+1; > [n,v1,v2,v3]=msscanf(m,A(ibeg:iend),"%f %f %f"); > > clf > subplot(3,1,1); > plot2d(1:m,v1'); > subplot(3,1,2); > plot2d(1:m,v2'); > subplot(3,1,3); > plot2d(1:m,v3'); > > // Note that this script hardcoded the number of columns and does > // no error checking. Since column information is present in the > // file, one could also extract that info and construct the > // format string appropriately. Or use the logic in fscanfMat to directly > // figure out the number of columns. > > Not sure this is quite what you wanted. > > regards > > hari ramachandran > > On Wednesday 06 May 2009 21:49, Zhiming Qi wrote: > > ***************************** > > * Subplot Definitions * > > ***************************** > > 1 > > ***************************** > > * COLUMN LABELS * > > ***************************** > > DAY > > DEPTH (CM) > > SOIL WATER CONTENT (VOL) > > ****************** DATA STARTS HERE ***************** > > 274 1.000 0.2898 > > 274 2.000 0.2919 > > 274 4.000 0.2939 > > 274 7.000 0.2990 > > 274 10.00 0.3035 > > 274 13.00 0.3130 > > 274 16.00 0.3172 > > 274 20.00 0.3201 > > 274 24.00 0.3243 > > 274 27.00 0.3272 > > 274 30.00 0.3300 > > 274 33.00 0.3210 > > 274 36.00 0.3223 > > 274 40.00 0.3236 > > 274 44.00 0.3258 > > 274 48.00 0.3273 > > 274 53.00 0.3302 > > 274 57.00 0.3345 > > 274 60.00 0.3381 > > 274 63.00 0.3331 > > -- > Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras > Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle > Simulations, Computational Algorithms, Linux. > Off: 91-44-2257-4421 Fax: 91-44-2257-0120 > Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com Dear Prof. Ramachandran: Thanks for the detailed solution, this is a common problem faced by anyone trying process data obtained from lab instruments. I was also planning to post some similar question as I am new user of Scilab. Thanks to Mr Qi also! Sincerely, Giridhar -- M. S. Giridhar Thinfilms and Microsensors Group Laboratory for Electro Optic Systems Indian Space Research Organisation 1st Cross, 1st Stage, Peenya Industrial Estate, Bangalore 560058. Phone:2839 2294, 2839 2291 ext 2212 ---------------------------------------------------------------- This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. LEOS has taken every reasonable precaution to remove any viruses however you should also carry out your own virus checks before opening the e-mail or attachment. From stephane.mottelet at utc.fr Fri May 8 19:03:53 2009 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Fri, 08 May 2009 19:03:53 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <1241786374.4977.34.camel@zlarin> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> Message-ID: <20090508190353.21255fol5eebdvy8@webmail.utc.fr> Sylvestre Ledru a ?crit?: > Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : >> Hi again, >> >> I finally managed to compile Scilab 5.1.1 on our Linux Centos server. > How did you do that ? > >> It seems that Scilab is not able to cope with non OpenGL servers (a >> warning is given that the drivers of the graphical card does not >> support OpenGL). Are there plans to use a deprecated X11 mode ? > Using the vesa driver should fix your problem. > >> Here at work everybody uses the machine through VNC; so nobody >> will be able to use Scilab 5. Too bad. > Funny architecture, can I ask why ? Easy. Many people in a University, and only one performant server for computations. Do you know a better way (e.g. a Freeware X11 server supporting OpenGL for the clients) ? S. > > Sylvestre > From stephane.mottelet at utc.fr Fri May 8 19:04:23 2009 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Fri, 08 May 2009 19:04:23 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> Message-ID: <20090508190423.12485n58victk8ow@webmail.utc.fr> Ok, I forgot Mesa... S. Jonathan Blanchard a ?crit?: > Hi, > > I had great success making Scilab work with the Mesa Xlib drivers with > vnc on Solaris. It should work very well in Linux and appear to work > for Sun's thin clients also. > > Jonathan Blanchard > > > > On Fri, May 8, 2009 at 9:39 AM, Sylvestre Ledru > wrote: >> Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : >>> Hi again, >>> >>> I finally managed to compile Scilab 5.1.1 on our Linux Centos server. >> How did you do that ? >> >>> It seems that Scilab is not able to cope with non OpenGL servers (a >>> warning is given that the drivers of the graphical card does not >>> support OpenGL). Are there plans to use a deprecated X11 mode ? >> Using the vesa driver should fix your problem. >> >>> Here at work everybody uses the machine through VNC; so nobody >>> will be able to use Scilab 5. Too bad. >> Funny architecture, can I ask why ? >> >> Sylvestre >> >> >> > From itchy8me at gmail.com Sun May 10 12:46:36 2009 From: itchy8me at gmail.com (wernher korff) Date: Sun, 10 May 2009 12:46:36 +0200 Subject: struggling to translate matlab commands to scilab Message-ID: <1241952396.4668.8.camel@superflux> hi there, i'm new to scilab and have been using matlab for a while, i have the following code in matlab: ------------------------------------ numf = [7 9 12] denf = conv(poly([0 -7]), [1 10 100]) [K, p, k] = residue(numf, denf); ------------------------------------ and translated it to scilab as: ------------------------------------ numf = [7 9 12] denf = convol([0 -7], [1 10 100]) denf = poly(denf, "s", "coeff") ------------------------------------ [K, p, k] = residu(numf, denf) when running this code i get the error message : [K, p, k] = residu(numf, denf) !--error 39 Incorrect number of input arguments. at line 9 of exec file called by : exec("/tmp/SD_11581_/ch2p7.sce"); while executing a callback can someone help me out to get the scilab code to do what the matlab code does, that is: find the residue, poles and constants. thanks, Wernher From amelie.lemiale at yahoo.fr Tue May 12 13:41:49 2009 From: amelie.lemiale at yahoo.fr (amelie lemiale) Date: Tue, 12 May 2009 11:41:49 +0000 (GMT) Subject: [scilab-Users] Dan Gill/US/MKS is out of the office. In-Reply-To: Message-ID: <183611.74470.qm@web24004.mail.ird.yahoo.com> --- En date de?: Jeu 7.5.09, Dan_Gill at mksinst.com a ?crit?: De: Dan_Gill at mksinst.com Objet: [scilab-Users] Dan Gill/US/MKS is out of the office. ?: users at lists.scilab.org Date: Jeudi 7 Mai 2009, 10h00 I will be out of the office starting Thu 05/07/2009 and will not return until Fri 05/08/2009. I will respond to your message when I return. -------------- next part -------------- An HTML attachment was scrubbed... URL: From isuzman at gmail.com Wed May 13 06:45:43 2009 From: isuzman at gmail.com (isuzman) Date: Tue, 12 May 2009 22:45:43 -0600 Subject: [scilab-Users] Help in reading txt file: how to skip the title References: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com>, <200905070956.59924.hsr@ee.iitm.ac.in>, <4A030524.CF22B965@leos.gov.in> Message-ID: <200905122245422341809@gmail.com> Hi Hari, Thanks much for your support. Attached is my reply to Prof. Ramachandran. Hope it could give you another perspective. Best, Zhiming Dear Dr. Ramachandran, Thank you very much! That's exactly what I want. The main problem is that I only know read('filename.txt', m, n) statement, and it could not work for data mixed with characters. I tried a lot and never find read statemtne like A=read("data.txt",-1,1,"(a)"). It helps a lot. I kind of solved this problem by using file statement: A =[]; B=[]; C=[]; v=file('open', 'data.txt', 'old'); for i = 1:36000 if i<=12 then Head=fscanf(v, '%s'); // there is 12 headlines; else [AA BB CC]=fscanf(v, '%f %f %f'); A=[A; AA]; B=[B; BB]; C=[C; CC]; end end // the data I want is [A, B, C] Your read statement is so good that I do not have to write so long a program. I really appreciate your help. Thanks much and have a great day, Zhiming Iowa State University Agricultural Engineering Department 2009-05-12 isuzman ???? Giri ????? 2009-05-08 09:32:31 ???? users at lists.scilab.org ??? ??? Re: [scilab-Users] Help in reading txt file: how to skip the title harishankar ramachandran wrote: > The following program does the specific job: > > // to read in a data file containing header lines starting with > // "*" and to read in the columns after the last header line. > A=read("data.txt",-1,1,"(a)"); // read in the file > jj=grep(A,"*"); // find lines containing "*" > > // We want to skip upto all lines containing "*" So start after > // the last such line > ibeg=jj(length(jj))+1; > iend=size(A,"r"); > m=iend-ibeg+1; > [n,v1,v2,v3]=msscanf(m,A(ibeg:iend),"%f %f %f"); > > clf > subplot(3,1,1); > plot2d(1:m,v1'); > subplot(3,1,2); > plot2d(1:m,v2'); > subplot(3,1,3); > plot2d(1:m,v3'); > > // Note that this script hardcoded the number of columns and does > // no error checking. Since column information is present in the > // file, one could also extract that info and construct the > // format string appropriately. Or use the logic in fscanfMat to directly > // figure out the number of columns. > > Not sure this is quite what you wanted. > > regards > > hari ramachandran > > On Wednesday 06 May 2009 21:49, Zhiming Qi wrote: > > ***************************** > > * Subplot Definitions * > > ***************************** > > 1 > > ***************************** > > * COLUMN LABELS * > > ***************************** > > DAY > > DEPTH (CM) > > SOIL WATER CONTENT (VOL) > > ****************** DATA STARTS HERE ***************** > > 274 1.000 0.2898 > > 274 2.000 0.2919 > > 274 4.000 0.2939 > > 274 7.000 0.2990 > > 274 10.00 0.3035 > > 274 13.00 0.3130 > > 274 16.00 0.3172 > > 274 20.00 0.3201 > > 274 24.00 0.3243 > > 274 27.00 0.3272 > > 274 30.00 0.3300 > > 274 33.00 0.3210 > > 274 36.00 0.3223 > > 274 40.00 0.3236 > > 274 44.00 0.3258 > > 274 48.00 0.3273 > > 274 53.00 0.3302 > > 274 57.00 0.3345 > > 274 60.00 0.3381 > > 274 63.00 0.3331 > > -- > Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras > Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle > Simulations, Computational Algorithms, Linux. > Off: 91-44-2257-4421 Fax: 91-44-2257-0120 > Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com Dear Prof. Ramachandran: Thanks for the detailed solution, this is a common problem faced by anyone trying process data obtained from lab instruments. I was also planning to post some similar question as I am new user of Scilab. Thanks to Mr Qi also! Sincerely, Giridhar -- M. S. Giridhar Thinfilms and Microsensors Group Laboratory for Electro Optic Systems Indian Space Research Organisation 1st Cross, 1st Stage, Peenya Industrial Estate, Bangalore 560058. Phone:2839 2294, 2839 2291 ext 2212 ---------------------------------------------------------------- This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. LEOS has taken every reasonable precaution to remove any viruses however you should also carry out your own virus checks before opening the e-mail or attachment. -------------- next part -------------- An HTML attachment was scrubbed... URL: From raphael.langella at steria.cnes.fr Wed May 13 16:00:42 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Wed, 13 May 2009 16:00:42 +0200 Subject: compilation de scilab 5.1.1 sous RHEL 4u5 Message-ID: <092785B790DCD043BA45401EDA43D9B5043B451A@cst-xch-003.cnesnet.ad.cnes.fr> Bonjour, J'essaie de compiler scilab 5.1.1 sous Redhat 4 avec gcc 4.3.3. J'utilise la configuration suivante : CFLAGS="-I/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/include \ -I/Produits/publics/x86_64.Linux.2.6.9/fftw/3.2/include" \ LDFLAGS="-L/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib \ -L/Produits/publics/x86_64.Linux.2.6.9/fftw/3.2/lib" \ ./configure --prefix=/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1 \ --without-ocaml --without-pvm --without-umfpack \ --with-tcl-include=/Produits/publics/x86_64.Linux.2.6.9/tcltk/8.5/include \ --with-tcl-library=/Produits/publics/x86_64.Linux.2.6.9/tcltk/8.5/lib \ --with-tk-include=/Produits/publics/x86_64.Linux.2.6.9/tcltk/8.5/include \ --with-tk-library=/Produits/publics/x86_64.Linux.2.6.9/tcltk/8.5/lib \ --with-matio-include=/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/include \ --with-matio-library=/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1/lib \ --with-pcre=/Produits/publics/x86_64.Linux.2.6.9/scilab/5.1.1 et j'obtiens le r?sultat suivant : g77 -g -O2 -DNDEBUG -m64 -fPIC -I../../modules/core/includes/ -c src/fortran/clunit.f -fPIC -o .libs/clunit.o stack.h: Dans la sous-routine `clunit': stack.h:41: integer, pointer :: stack_reserved_for_c__ ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:42: double precision, pointer, dimension(:) :: stk ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:42: double precision, pointer, dimension(:) :: stk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:42: double precision, pointer, dimension(:) :: stk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:42: double precision, pointer, dimension(:) :: stk ^ option FORTRAN 90 ? (^) non support?e stack.h:43: integer, pointer, dimension(:) :: istk ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:43: integer, pointer, dimension(:) :: istk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:43: integer, pointer, dimension(:) :: istk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:43: integer, pointer, dimension(:) :: istk ^ option FORTRAN 90 ? (^) non support?e stack.h:44: real, pointer, dimension(:) :: sstk ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:44: real, pointer, dimension(:) :: sstk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:44: real, pointer, dimension(:) :: sstk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:44: real, pointer, dimension(:) :: sstk ^ option FORTRAN 90 ? (^) non support?e stack.h:45: character, pointer :: cstk*(4*vsiz) ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:46: complex*16, pointer, dimension(:) :: zstk ^ Invalid type-declaration attribute at (^) -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE stack.h:46: complex*16, pointer, dimension(:) :: zstk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:46: complex*16, pointer, dimension(:) :: zstk ^ expression ? (^) a un type de donn?es ou un rang incorrect pour son contexte stack.h:46: complex*16, pointer, dimension(:) :: zstk ^ option FORTRAN 90 ? (^) non support?e stack.h:47: avertissement : common /stack/ stack_reserved_for_c__, stk, ^ Initial padding for common block `stack' is 4 bytes at (^) -- consider reordering members, largest-type-size first Cordialement, Rapha?l Langella 3IRT/AP/APP - POL Groupement St?ria/Thales 05 61 28 30 68 -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Wed May 13 18:40:35 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Wed, 13 May 2009 13:40:35 -0300 Subject: [scilab-Users] Help in reading txt file: how to skip the title In-Reply-To: <200905122245422341809@gmail.com> References: <4ac149dc0905060919k506b8c5q761cc6db9b560656@mail.gmail.com>, <200905070956.59924.hsr@ee.iitm.ac.in>, <4A030524.CF22B965@leos.gov.in> <200905122245422341809@gmail.com> Message-ID: Hello, Did you try the fscanfMat function to read the file? The following two lines seems to do the job, if I really got the question: f = xgetfile() // locate the file m = fscanfMat(f) // read the file over matrix m You get m = 274. 1. 0.2898 274. 2. 0.2919 274. 4. 0.2939 274. 7. 0.299 274. 10. 0.3035 274. 13. 0.313 274. 16. 0.3172 274. 20. 0.3201 274. 24. 0.3243 274. 27. 0.3272 274. 30. 0.33 274. 33. 0.321 274. 36. 0.3223 274. 40. 0.3236 274. 44. 0.3258 274. 48. 0.3273 274. 53. 0.3302 274. 57. 0.3345 274. 60. 0.3381 274. 63. 0.3331 The input file I used is (I supressed a line begining with a "1"; header lines should not start with a number): ***************************** * Subplot Definitions * ***************************** ***************************** * COLUMN LABELS * ***************************** ***************************** DAY DEPTH (CM) SOIL WATER CONTENT (VOL) ****************** DATA STARTS HERE ***************** 274 1.000 0.2898 274 2.000 0.2919 274 4.000 0.2939 274 7.000 0.2990 274 10.00 0.3035 274 13.00 0.3130 274 16.00 0.3172 274 20.00 0.3201 274 24.00 0.3243 274 27.00 0.3272 274 30.00 0.3300 274 33.00 0.3210 274 36.00 0.3223 274 40.00 0.3236 274 44.00 0.3258 274 48.00 0.3273 274 53.00 0.3302 274 57.00 0.3345 274 60.00 0.3381 274 63.00 0.3331 Osvaldo "isuzman" wrote on 13/05/2009 01:45:43: > Hi Hari, > Thanks much for your support. Attached is my reply to Prof. > Ramachandran. Hope it could give you another perspective. > Best, > Zhiming > > Dear Dr. Ramachandran, > > Thank you very much! That's exactly what I want. The main problem is > that I only know read('filename.txt', m, n) statement, and it could > not work for data mixed with characters. I tried a lot and never > find read statemtne like A=read("data.txt",-1,1,"(a)"). It helps a lot. > > I kind of solved this problem by using file statement: > > A =[]; B=[]; C=[]; > v=file('open', 'data.txt', 'old'); > for i = 1:36000 > if i<=12 then Head=fscanf(v, '%s'); // there is 12 headlines; > else [AA BB CC]=fscanf(v, '%f %f %f'); > A=[A; AA]; B=[B; BB]; C=[C; CC]; > end > end > // the data I want is > [A, B, C] > > Your read statement is so good that I do not have to write so long a > program. I really appreciate your help. > Thanks much and have a great day, > > Zhiming > Iowa State University > Agricultural Engineering Department > > > > > > 2009-05-12 > > isuzman > > ???? Giri > ????? 2009-05-08 09:32:31 > ???? users at lists.scilab.org > ??? > ??? Re: [scilab-Users] Help in reading txt file: how to skip the title > harishankar ramachandran wrote: > > > The following program does the specific job: > > > > // to read in a data file containing header lines starting with > > // "*" and to read in the columns after the last header line. > > A=read("data.txt",-1,1,"(a)"); // read in the file > > jj=grep(A,"*"); // find lines containing "*" > > > > // We want to skip upto all lines containing "*" So start after > > // the last such line > > ibeg=jj(length(jj))+1; > > iend=size(A,"r"); > > m=iend-ibeg+1; > > [n,v1,v2,v3]=msscanf(m,A(ibeg:iend),"%f %f %f"); > > > > clf > > subplot(3,1,1); > > plot2d(1:m,v1'); > > subplot(3,1,2); > > plot2d(1:m,v2'); > > subplot(3,1,3); > > plot2d(1:m,v3'); > > > > // Note that this script hardcoded the number of columns and does > > // no error checking. Since column information is present in the > > // file, one could also extract that info and construct the > > // format string appropriately. Or use the logic in fscanfMat to directly > > // figure out the number of columns. > > > > Not sure this is quite what you wanted. > > > > regards > > > > hari ramachandran > > > > On Wednesday 06 May 2009 21:49, Zhiming Qi wrote: > > > ***************************** > > > * Subplot Definitions * > > > ***************************** > > > 1 > > > ***************************** > > > * COLUMN LABELS * > > > ***************************** > > > DAY > > > DEPTH (CM) > > > SOIL WATER CONTENT (VOL) > > > ****************** DATA STARTS HERE ***************** > > > 274 1.000 0.2898 > > > 274 2.000 0.2919 > > > 274 4.000 0.2939 > > > 274 7.000 0.2990 > > > 274 10.00 0.3035 > > > 274 13.00 0.3130 > > > 274 16.00 0.3172 > > > 274 20.00 0.3201 > > > 274 24.00 0.3243 > > > 274 27.00 0.3272 > > > 274 30.00 0.3300 > > > 274 33.00 0.3210 > > > 274 36.00 0.3223 > > > 274 40.00 0.3236 > > > 274 44.00 0.3258 > > > 274 48.00 0.3273 > > > 274 53.00 0.3302 > > > 274 57.00 0.3345 > > > 274 60.00 0.3381 > > > 274 63.00 0.3331 > > > > -- > > Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras > > Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle > > Simulations, Computational Algorithms, Linux. > > Off: 91-44-2257-4421 Fax: 91-44-2257-0120 > > Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com > > Dear Prof. Ramachandran: > Thanks for the detailed solution, this is a common problem faced > by anyone trying process data obtained from lab instruments. I was > also planning to post some similar question as I am new user of > Scilab. Thanks to Mr Qi also! > Sincerely, > Giridhar > > -- > M. S. Giridhar > Thinfilms and Microsensors Group > Laboratory for Electro Optic Systems > Indian Space Research Organisation > 1st Cross, 1st Stage, Peenya Industrial Estate, > Bangalore 560058. > Phone:2839 2294, 2839 2291 ext 2212 > > > > ---------------------------------------------------------------- > This mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the > original message. LEOS has taken every reasonable precaution to > remove any viruses however you should also carry out your own virus > checks before opening the e-mail or attachment. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu May 14 09:44:17 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 14 May 2009 09:44:17 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <1241786374.4977.34.camel@zlarin> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> Message-ID: <4A0BCBD1.60305@utc.fr> Sylvestre Ledru a ?crit : > Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : > >> Hi again, >> >> I finally managed to compile Scilab 5.1.1 on our Linux Centos server. >> > How did you do that ? > > >> It seems that Scilab is not able to cope with non OpenGL servers (a >> warning is given that the drivers of the graphical card does not >> support OpenGL). Are there plans to use a deprecated X11 mode ? >> > Using the vesa driver should fix your problem. > what do you mean by "using the vesa driver " ? S. > >> Here at work everybody uses the machine through VNC; so nobody >> will be able to use Scilab 5. Too bad. >> > Funny architecture, can I ask why ? > > Sylvestre > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu May 14 09:46:41 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 14 May 2009 09:46:41 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <4A0BCBD1.60305@utc.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> Message-ID: <1242287201.4719.13149.camel@korcula.inria.fr> Hello, Le jeudi 14 mai 2009 ? 09:44 +0200, St??phane Mottelet a ?crit : > Sylvestre Ledru a ?crit : > > Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : > > > > > Hi again, > > > > > > I finally managed to compile Scilab 5.1.1 on our Linux Centos server. > > > > > How did you do that ? > > > > > > > It seems that Scilab is not able to cope with non OpenGL servers (a > > > warning is given that the drivers of the graphical card does not > > > support OpenGL). Are there plans to use a deprecated X11 mode ? > > > > > Using the vesa driver should fix your problem. > > > > what do you mean by "using the vesa driver " ? It is described here: http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0#head-e55f5eb0441a1361d05ca35abab93ebc191c3b2e Sylvestre From sylvestre.ledru at scilab.org Thu May 14 09:50:22 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 14 May 2009 09:50:22 +0200 Subject: [scilab-Users] Scilab 5.1.1 and GLIBC In-Reply-To: <4A02D392.3040901@utc.fr> References: <4A02D392.3040901@utc.fr> Message-ID: <1242287422.4719.13166.camel@korcula.inria.fr> Le jeudi 07 mai 2009 ? 14:26 +0200, St??phane Mottelet a ?crit : > Hi. > > I thought the strict dependence should be fixed with this release, > but the problem still remains : > > bash-3.00$ /usr/local/scilab-5.1.1/bin/scilab > /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version > `GLIBC_2.4' not found (required by > /usr/local/scilab-5.1.1/lib/scilab/libscifileio.so.5) > /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version > `GLIBC_2.4' not found (required by > /usr/local/scilab-5.1.1/lib/scilab/libscimetanet.so.5) > /usr/local/scilab-5.1.1/bin/scilab-bin: /lib64/tls/libc.so.6: version > `GLIBC_2.4' not found (required by > /usr/local/scilab-5.1.1/lib/scilab/libscispreadsheet.so.5) > > I cannot give Scilab a try on our server (not so old Linux/CentOS dist, > 2.6.9-55 Kernel, GLIBC_2.3.4). I believe that I fixed this issue in the current nightly build of Scilab. http://bugzilla.scilab.org/show_bug.cgi?id=3131 If you are interested to understand the reason of this issue, read comment #24. S From stephane.mottelet at utc.fr Thu May 14 09:55:58 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 14 May 2009 09:55:58 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <1242287201.4719.13149.camel@korcula.inria.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> Message-ID: <4A0BCE8E.1090200@utc.fr> Sylvestre Ledru a ?crit : > Hello, > > > Le jeudi 14 mai 2009 ? 09:44 +0200, St??phane Mottelet a ?crit : > >> Sylvestre Ledru a ?crit : >> >>> Le jeudi 07 mai 2009 ? 16:42 +0200, St??phane Mottelet a ?crit : >>> >>> >>>> Hi again, >>>> >>>> I finally managed to compile Scilab 5.1.1 on our Linux Centos server. >>>> >>>> >>> How did you do that ? >>> >>> >>> >>>> It seems that Scilab is not able to cope with non OpenGL servers (a >>>> warning is given that the drivers of the graphical card does not >>>> support OpenGL). Are there plans to use a deprecated X11 mode ? >>>> >>>> >>> Using the vesa driver should fix your problem. >>> >>> >> what do you mean by "using the vesa driver " ? >> > It is described here: > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0#head-e55f5eb0441a1361d05ca35abab93ebc191c3b2e > > Sylvestre > Im am sorry, but there is no xorg.conf for Xvnc, which is not a "classical" Xserver. S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu May 14 10:03:02 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 14 May 2009 10:03:02 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <4A0BCE8E.1090200@utc.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> <4A0BCE8E.1090200@utc.fr> Message-ID: <1242288182.4719.13210.camel@korcula.inria.fr> > > > > > > > > > It seems that Scilab is not able to cope with non OpenGL servers (a > > > > > warning is given that the drivers of the graphical card does not > > > > > support OpenGL). Are there plans to use a deprecated X11 mode ? > > > > > > > > > > > > > > Using the vesa driver should fix your problem. > > > > > > > > > > > what do you mean by "using the vesa driver " ? > > > > > It is described here: > > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0#head-e55f5eb0441a1361d05ca35abab93ebc191c3b2e > > > Im am sorry, but there is no xorg.conf for Xvnc, which is not a > "classical" Xserver. I am not familiar with such systems. However, I guess you have a X server on the server itself. It is where you would have to do this change. Sylvestre From stephane.mottelet at utc.fr Thu May 14 10:08:23 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 14 May 2009 10:08:23 +0200 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <1242288182.4719.13210.camel@korcula.inria.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> <4A0BCE8E.1090200@utc.fr> <1242288182.4719.13210.camel@korcula.inria.fr> Message-ID: <4A0BD177.4020802@utc.fr> Sylvestre Ledru a ?crit : >>>>> >>>>> >>>>>> It seems that Scilab is not able to cope with non OpenGL servers (a >>>>>> warning is given that the drivers of the graphical card does not >>>>>> support OpenGL). Are there plans to use a deprecated X11 mode ? >>>>>> >>>>>> >>>>>> >>>>> Using the vesa driver should fix your problem. >>>>> >>>>> >>>>> >>>> what do you mean by "using the vesa driver " ? >>>> >>>> >>> It is described here: >>> http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0#head-e55f5eb0441a1361d05ca35abab93ebc191c3b2e >>> >>> >> Im am sorry, but there is no xorg.conf for Xvnc, which is not a >> "classical" Xserver. >> > I am not familiar with such systems. However, I guess you have a X > server on the server itself. It is where you would have to do this > change. > > Sylvestre > I have tried this, but it does not change anything (glxinfo still complains about no GLX extension on the X server, and Scilab does not want to plot anything). The Xvnc Xserver has nothing to do with the *local* Xserver talking to the graphics card. S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu May 14 11:50:26 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 14 May 2009 11:50:26 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5043B451A@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B5043B451A@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1242294626.4719.13440.camel@korcula.inria.fr> Hello Raphael, First point, if you are compiling Scilab under RHEL 4u5 because of the problem with the "symbol GLIBC_2.4 version not found", please note that I have fixed this issue yesterday (see bug #3131 for the reason) and should be available in the nightly build of the branch 5.1. Le mercredi 13 mai 2009 ? 16:00 +0200, Langella Raphael a ?crit : > [...] > g77 -g -O2 -DNDEBUG -m64 -fPIC -I../../modules/core/includes/ -c > src/fortran/clunit.f -fPIC -o .libs/clunit.o > stack.h: Dans la sous-routine `clunit': > stack.h:41: > integer, pointer :: stack_reserved_for_c__ > ^ This is due to the use of g77 instead of gfortran. Under 64 bits CPU, we change the way we allocate the memory in the fortran code. Only fortran 90 is providing it. Please try with gfortran (btw, g77 is obsolete and removed from most distributions now). Sylvestre From BlanchardJ at ieee.org Thu May 14 13:14:05 2009 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 14 May 2009 08:14:05 -0300 Subject: [scilab-Users] Scilab 5 and non openGL X11 servers In-Reply-To: <4A0BD177.4020802@utc.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> <4A0BCE8E.1090200@utc.fr> <1242288182.4719.13210.camel@korcula.inria.fr> <4A0BD177.4020802@utc.fr> Message-ID: Hi, Logically since there is no hardware with vnc there is normally no opengl implementation. You must compile it yourself as the mesa Xlib driver, sometime called software rendering. See www.mesa3d.org in the compiling section see the instruction for standalone mesa. Jonathan Blanchard 2009/5/14 St??phane Mottelet : > Sylvestre Ledru a ?crit?: > > > > > It seems that Scilab is not able to cope with non OpenGL servers (a > warning is given that the drivers of the graphical card does not > support OpenGL). Are there plans to use a deprecated X11 mode ? > > > > > Using the vesa driver should fix your problem. > > > > > what do you mean by "using the vesa driver " ? > > > > It is described here: > http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0#head-e55f5eb0441a1361d05ca35abab93ebc191c3b2e > > > > Im am sorry, but there is no xorg.conf for Xvnc, which is not a > "classical" Xserver. > > > I am not familiar with such systems. However, I guess you have a X > server on the server itself. It is where you would have to do this > change. > > Sylvestre > > > I have tried this, but it does not change anything (glxinfo still complains > about no > GLX extension on the X server, and Scilab does not want to plot anything). > The Xvnc Xserver has nothing to do with the *local* Xserver talking to > the graphics card. > > > S. From Samuel.Gougeon at univ-lemans.fr Thu May 14 15:13:58 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Thu, 14 May 2009 15:13:58 +0200 Subject: Compiling SCIAO-0.2.5 for Scilab 5 Message-ID: <4A0C1916.3040400@univ-lemans.fr> Hello, I am trying to compile the SCIAO toolbox to use it from Scilab 5.1 on the winXP Pro OS. When running the win-builder.sce, i get the following error: ------- -->dir ans = AUTHORS.txt Makefile.in config demos man COPYING.txt README.txt config.h.in examples src INSTALL.txt aclocal.m4 configure loader.sce win-builder.sce Makefile.am builder.sce configure.ac macros -->exec win-builder.sce -->mode(-1); building SciAO toolbox Be patient, this may take a while Compiling lightPipes library -->mode(-1); Making all in lightPipes library Be patient, this may take a while lightPipes library compiled Compiling arroyo library -->mode(-1); Making all in arroyo library Be patient, this may take a while arroyo library compiled Compiling wrapper library -->mode(-1); Making all in wrapper library Be patient, this may take a while arroyo_wrap library compiled now create the shared library Compiling interf shared ibrary Compiling scicos shared library Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"'?: code retour '0x2' Stop. !--error 10000 unix_s: error during "nmake /f Makefile.mak" execution at line 34 of function unix_s called by : unix_s(cmd_make) line 227 of exec file called by : exec win-builder.sce ------ I would appreciate any hint to fix this issue. Thank you Samuel From stephane.mottelet at utc.fr Thu May 14 16:19:36 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 14 May 2009 16:19:36 +0200 Subject: Bizarre figure_size convention in 5.1.1 In-Reply-To: References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> <4A0BCE8E.1090200@utc.fr> <1242288182.4719.13210.camel@korcula.inria.fr> <4A0BD177.4020802@utc.fr> Message-ID: <4A0C2878.7020202@utc.fr> Hi again, seems that the figure_size definition has changed in 5.1.1, this causes some different behaviour between e.g. 4.1.2 and scilab>5. In Scilab 5.1.1, at least under windows xp, the height of the figure given by get(gcf(), figure_size) is equal to the full height of the window, taking into account the height of the scilab toolbar and the height of the window manager's window bar. In Scilab 4.1.2, the height given by figure_size is equal to the height of the canvas + the height of the Scilab toolbar. In Matlab, the height of the window given by get(gcf,'Position') is equal to the height of the canvas, which seems to be the most logical option (i.e. platform independent). S. From sdr at durietz.se Thu May 14 17:07:08 2009 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 14 May 2009 17:07:08 +0200 Subject: [scilab-Users] Bizarre figure_size convention in 5.1.1 In-Reply-To: <4A0C2878.7020202@utc.fr> References: <4A02F34E.8020205@utc.fr> <1241786374.4977.34.camel@zlarin> <4A0BCBD1.60305@utc.fr> <1242287201.4719.13149.camel@korcula.inria.fr> <4A0BCE8E.1090200@utc.fr> <1242288182.4719.13210.camel@korcula.inria.fr> <4A0BD177.4020802@utc.fr> <4A0C2878.7020202@utc.fr> Message-ID: <4A0C339C.7030804@durietz.se> I agree completely! Stefan On 2009-05-14 16:19, St??phane Mottelet wrote: -------------------- > Hi again, > > seems that the figure_size definition has changed in 5.1.1, this causes > some > different behaviour between e.g. 4.1.2 and scilab>5. > > In Scilab 5.1.1, at least under windows xp, the height of the figure given > by get(gcf(), figure_size) is equal to the full height of the window, > taking > into account the height of the scilab toolbar and the height of the window > manager's window bar. > > In Scilab 4.1.2, the height given by figure_size is equal to the height of > the canvas + the height of the Scilab toolbar. > > In Matlab, the height of the window given by get(gcf,'Position') is > equal to > the height of the canvas, which seems to be the most logical option (i.e. > platform independent). > > S. > From blau_m at web.de Sat May 16 17:21:54 2009 From: blau_m at web.de (Matthias Blau) Date: Sat, 16 May 2009 17:21:54 +0200 Subject: xs2eps gives inacceptable results in Scilab 5.1.1 Message-ID: <4A0EDA12.4080409@web.de> Dear list, in Scilab 5.1.1, xs2eps creates eps files where curves are rendered in an (IMO) inacceptable "jaggy" manner. This is extremely annoying as it gives the impression of more noise than actually present in the data. In this regard, Scilab 4.1.2 gave much better results. As an example, I attach 2 screenshots of diagrams I made with Scilab 4.1.2 and 5.1.1. (identical code, except for the legend where the handle structure has changed). Besides the jaggy curcves, you will also notice that axis and grid lines are thicker in the 5.1.1. version which I also dislike. I hope this problem can be fixed soon, as publishing diagrams is a key feature of any scientific software. I won't convince any of my students to use Scilab if the results of their work look the way they do right now. Thanks for any help, Matthias -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_scilab412.png Type: image/png Size: 68541 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_scilab511.png Type: image/png Size: 77263 bytes Desc: not available URL: From outrosdiasvirao at yahoo.com.br Sun May 17 07:13:29 2009 From: outrosdiasvirao at yahoo.com.br (Lucio Agostinho Rocha) Date: Sat, 16 May 2009 22:13:29 -0700 (PDT) Subject: Doubt in plot3d Message-ID: <999724.68524.qm@web52703.mail.re2.yahoo.com> Hi, I'm trying to plot the following function in Scilab: x=[-1:0.01:1]; y=[-1:0.01:1]; g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; plot3d(x,y,g) but nothing is displayed. What i'm doing wrong? Someone could help me? If yes, how can I put a degrade with several colors? Thanks in advance, Lucio ........ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollet at freesurf.fr Sun May 17 08:13:59 2009 From: ycollet at freesurf.fr (Collette Yann) Date: Sun, 17 May 2009 08:13:59 +0200 Subject: [scilab-Users] Doubt in plot3d In-Reply-To: <999724.68524.qm@web52703.mail.re2.yahoo.com> References: <999724.68524.qm@web52703.mail.re2.yahoo.com> Message-ID: <4A0FAB27.9060109@freesurf.fr> Try this: x=[-1:0.01:1]; y=[-1:0.01:1]; for i=1:length(x) for j=1:length(y) g(i,j) = x(i) .* sin((4*%pi) * x(i)) - y(j) .* sin ( (4*%pi) * y(j) + %pi ) + 1; end end plot3d(x,y,g) YC Lucio Agostinho Rocha a ?crit : > Hi, > > I'm trying to plot the following function in Scilab: > > x=[-1:0.01:1]; > y=[-1:0.01:1]; > g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; > plot3d(x,y,g) > > but nothing is displayed. What i'm doing wrong? Someone could help me? > If yes, how can I put a degrade with several colors? > > Thanks in advance, > > Lucio > ........ > > > ------------------------------------------------------------------------ > Veja quais s?o os assuntos do momento no Yahoo! + Buscados: Top 10 > > - Celebridades > > - M?sica > > - Esportes > From christian.vincent at ac-creteil.fr Sun May 17 11:10:43 2009 From: christian.vincent at ac-creteil.fr (Christian Vincent) Date: Sun, 17 May 2009 11:10:43 +0200 Subject: [scilab-Users] Doubt in plot3d In-Reply-To: <999724.68524.qm@web52703.mail.re2.yahoo.com> References: <999724.68524.qm@web52703.mail.re2.yahoo.com> Message-ID: <4A0FD493.1030405@ac-creteil.fr> Lucio Agostinho Rocha a ?crit : > Hi, > > I'm trying to plot the following function in Scilab: > > x=[-1:0.01:1]; > y=[-1:0.01:1]; > g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; > plot3d(x,y,g) > > but nothing is displayed. What i'm doing wrong? Someone could help me? > If yes, how can I put a degrade with several colors? > > Thanks in advance, > > Lucio > ........ > > > ------------------------------------------------------------------------ > Veja quais s?o os assuntos do momento no Yahoo! + Buscados: Top 10 > > - Celebridades > > - M?sica > > - Esportes > ========= You can also try x=[-1:0.01:1]; y=[-1:0.01:1]; deff("z=g(x,y)","z = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1") fplot3d(x,y,g) ========= ChV From ron at phenotypescreening.com Sun May 17 15:52:01 2009 From: ron at phenotypescreening.com (Ronald Michaels) Date: Sun, 17 May 2009 09:52:01 -0400 Subject: [scilab-Users] Doubt in plot3d In-Reply-To: <999724.68524.qm@web52703.mail.re2.yahoo.com> References: <999724.68524.qm@web52703.mail.re2.yahoo.com> Message-ID: <1242568321.6260.464.camel@SUN> Hi - I think the problem lies with g. Try this code in order to see what you are actually doing: clear x=[-1:0.01:1]; y=[-1:0.01:1]; g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; size(g) plot(g) Ron On Sat, 2009-05-16 at 22:13 -0700, Lucio Agostinho Rocha wrote: > x=[-1:0.01:1]; > y=[-1:0.01:1]; > g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; > plot3d(x,y,g) > From outrosdiasvirao at yahoo.com.br Sun May 17 20:26:44 2009 From: outrosdiasvirao at yahoo.com.br (Lucio Agostinho Rocha) Date: Sun, 17 May 2009 11:26:44 -0700 (PDT) Subject: [scilab-Users] A red point in plot3d Message-ID: <84586.19399.qm@web52711.mail.re2.yahoo.com> Hi, To finish my work, I want to put some red points in this function: ?? x=[-1:0.01:1]; ?? y=[-1:0.01:1]; ?? for i=1:length(x) ????? for j=1:length(y) ???????? g(i,j) = x(i) .* sin((4*%pi) * x(i)) - y(j) .* sin ( (4*%pi) *? y(j) + %pi ) + 1; ????? end ?? end Then, I tried to insert a new position in each list, like this: ?? tx=length(x)+1; ?? ty=length(y)+1; ?? x(1,tx)=2; ?? y(1,ty)=1; ?? g(tx,ty)= x(tx) .* sin((4*%pi) * x(tx)) - y(ty) .* sin ( (4*%pi) *? y(ty) + %pi ) + 1; ?? plot3d(x,y,g) But this don't work. I've several values for x and y like '0.8987...' and '-0.321...'. How can I plot this points in my function? Some suggestion? Thanks in advance, Lucio ........ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsr at ee.iitm.ac.in Mon May 18 06:14:58 2009 From: hsr at ee.iitm.ac.in (harishankar ramachandran) Date: Mon, 18 May 2009 09:44:58 +0530 Subject: [scilab-Users] A red point in plot3d In-Reply-To: <84586.19399.qm@web52711.mail.re2.yahoo.com> References: <84586.19399.qm@web52711.mail.re2.yahoo.com> Message-ID: <200905180944.59100.hsr@ee.iitm.ac.in> I don't see any option to place a mark at (x,y,z) of a 3-D plot. There is xpoly, but that works for 2-D plots. Others may be able to suggest something. I suspect you need to go into plot3d and determine how (x,y,z) is mapped into (x0,y0) on the graph. Once you know that, you can use any draw primitive and place whatever you like at that point. One problem will be the handling of hidden lines. Suppose your red point is not visible for the given theta, alpha, should it still be drawn? How do we find out if it is hidden or not? The first part of your code is not efficient. Better to code it as follows: x=[-1:0.01:1]'; y=[-1:0.01:1]; g = (x .* sin(4*%pi*x))*ones(y) - ones(x)*(y .* sin(4*%pi*y+%pi)) + 1; plot3d(x,y,g) Avoid for loops whenever possible. regards hari ramachandran On Sunday 17 May 2009 23:56, Lucio Agostinho Rocha wrote: > Hi, > > To finish my work, I want to put some red points in this function: > > ?? x=[-1:0.01:1]; > ?? y=[-1:0.01:1]; > > ?? for i=1:length(x) > ????? for j=1:length(y) > ???????? g(i,j) = x(i) .* sin((4*%pi) * x(i)) - y(j) .* sin ( (4*%pi) *? > y(j) + %pi ) + 1; end > ?? end > > Then, I tried to insert a new position in each list, like this: > > ?? tx=length(x)+1; > ?? ty=length(y)+1; > ?? x(1,tx)=2; > ?? y(1,ty)=1; > ?? g(tx,ty)= x(tx) .* sin((4*%pi) * x(tx)) - y(ty) .* sin ( (4*%pi) *? > y(ty) + %pi ) + 1; > > ?? plot3d(x,y,g) > > But this don't work. I've several values for x and y like '0.8987...' and > '-0.321...'. How can I plot this points in my function? Some suggestion? > > Thanks in advance, > > Lucio > ........ > > > Veja quais s?o os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com -- Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle Simulations, Computational Algorithms, Linux. Off: 91-44-2257-4421 Fax: 91-44-2257-0120 Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com From ehilgersom at hotmail.com Sat May 16 13:29:01 2009 From: ehilgersom at hotmail.com (E Hilgersom) Date: Sat, 16 May 2009 13:29:01 +0200 Subject: Books Message-ID: There is a lack of good books on SciLab. SciLab will be used by a much broader amount if this gap is filled E.Hilgersom _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dan_Gill at mksinst.com Mon May 18 10:00:51 2009 From: Dan_Gill at mksinst.com (Dan_Gill at mksinst.com) Date: Mon, 18 May 2009 04:00:51 -0400 Subject: Dan Gill/US/MKS is out of the office. Message-ID: I will be out of the office starting 05/18/2009 and will not return until 05/26/2009. I will respond to your message when I return. From Francis.Drossaert at pgs.com Mon May 18 10:27:43 2009 From: Francis.Drossaert at pgs.com (Francis Drossaert) Date: Mon, 18 May 2009 09:27:43 +0100 Subject: [scilab-Users] xs2eps gives inacceptable results in Scilab 5.1.1 In-Reply-To: <4A0EDA12.4080409@web.de> References: <4A0EDA12.4080409@web.de> Message-ID: <6D1269A4C2D21240807B91421B1872550922B87A@lonms21.onshore.pgs.com> This is indeed a serious problem in Scilab 5.x.x. I hope this can be rectified ASAP. The xs2eps creates an ugly monster compared to the function in Scilab 4.x.x. The other export options (unless I am overlooking something) are not suitable for reproduction in Journals, where typically 600dpi are required. Francis -----Original Message----- From: Matthias Blau [mailto:blau_m at web.de] Sent: 16 May 2009 16:22 To: users at lists.scilab.org Subject: [scilab-Users] xs2eps gives inacceptable results in Scilab 5.1.1 Dear list, in Scilab 5.1.1, xs2eps creates eps files where curves are rendered in an (IMO) inacceptable "jaggy" manner. This is extremely annoying as it gives the impression of more noise than actually present in the data. In this regard, Scilab 4.1.2 gave much better results. As an example, I attach 2 screenshots of diagrams I made with Scilab 4.1.2 and 5.1.1. (identical code, except for the legend where the handle structure has changed). Besides the jaggy curcves, you will also notice that axis and grid lines are thicker in the 5.1.1. version which I also dislike. I hope this problem can be fixed soon, as publishing diagrams is a key feature of any scientific software. I won't convince any of my students to use Scilab if the results of their work look the way they do right now. Thanks for any help, Matthias This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system From Samuel.Gougeon at univ-lemans.fr Mon May 18 10:51:39 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 18 May 2009 10:51:39 +0200 Subject: [scilab-Users] Doubt in plot3d In-Reply-To: <999724.68524.qm@web52703.mail.re2.yahoo.com> References: <999724.68524.qm@web52703.mail.re2.yahoo.com> Message-ID: <20090518105139.87172y38c8116wzk@webmail1.univ-lemans.fr> Hi, Lucio Agostinho Rocha a ?crit?: > Hi, > > I'm trying to plot the following function in Scilab: > > x=[-1:0.01:1]; > y=[-1:0.01:1]; > g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; > plot3d(x,y,g) > > but nothing is displayed. What i'm doing wrong? Someone could help > me? If yes, how can I put a degrade with several colors? x as well as y must be matrices for calculating g in this way: clf; X=[-1:0.01:1]; Y=[-1:0.01:1]; x=ones(length(Y),1)*X; y=Y'*ones(1,length(X)); g = x .* sin(4 .* %pi .* x) - y .* sin ( 4 .* %pi .* y + %pi ) + 1; plot3d(X,Y,g) should work and fairly uses Scilab's efficiency for internal matrix calculation Regards Samuel From raphael.langella at steria.cnes.fr Mon May 18 11:13:06 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Mon, 18 May 2009 11:13:06 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <1242294626.4719.13440.camel@korcula.inria.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B5045C8125@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Envoy? : jeudi 14 mai 2009 11:50 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > Hello Raphael, > > First point, if you are compiling Scilab under RHEL 4u5 > because of the problem with the "symbol GLIBC_2.4 version not > found", please note that I have fixed this issue yesterday > (see bug #3131 for the reason) and should be available in the > nightly build of the branch 5.1. Yes, that's exactly why I'm compiling scilab. I'll try the nightly build. I've been able to compile it after switching to gfortran. It's just strange that configure selected g77 by default. When I start it (the version I compiled), I get : Could not find the Java configuration for the OS . Please contact us or submit a bug report with your detailed configuration http://bugzilla.scilab.org/ And then nothing happens. The GUI doesn't appear and the command doesn't return. From Samuel.Gougeon at univ-lemans.fr Mon May 18 14:51:13 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 18 May 2009 14:51:13 +0200 Subject: [scilab-Users] A red point in plot3d In-Reply-To: <84586.19399.qm@web52711.mail.re2.yahoo.com> References: <84586.19399.qm@web52711.mail.re2.yahoo.com> Message-ID: <4A1159C1.90608@univ-lemans.fr> ----- Message d'origine ----- De : Lucio Agostinho Rocha Date : 17/05/2009 20:26: > .../... > Then, I tried to insert a new position in each list, like this: > > tx=length(x)+1; > ty=length(y)+1; > x(1,tx)=2; > y(1,ty)=1; > g(tx,ty)= x(tx) .* sin((4*%pi) * x(tx)) - y(ty) .* sin ( (4*%pi) * > y(ty) + %pi ) + 1; > > plot3d(x,y,g) > > But this don't work. I've several values for x and y like '0.8987...' > and '-0.321...'. How can I plot this points in my function? Some > suggestion? > > Thanks in advance, > > Lucio > ........ > Here is a trick that may work for this purpose: After plot3d(), do a plot2d(Xp,Yp) where Xp and Yp are the 2 first coordinates of your (Xp,Yp,Zp) set of points (Xp, Yp, Zp are vectors of same lengths N for N points to be marked) Then, do: ca=gca(); cc=ca.children(1).children(1); cc.data(:,3)=Zp; // Be carefull: Zp must be a column-vector cc.line_mode='off'; cc.mark_mode='on'; cc.mark_style=8; // for diamonds. Run getmark() or see help polyline_properties for other marks cc.mark_foreground=color('red'); This should yield what you are expecting Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon May 18 14:55:24 2009 From: sylvestre.ledru at scilab.org (sylvestre.ledru at scilab.org) Date: Mon, 18 May 2009 14:55:24 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C8125@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B5045C8125@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <0a56a9533305d009db4b1e3da2568113@localhost> On Mon, 18 May 2009 11:13:06 +0200, "Langella Raphael" wrote: >> -----Message d'origine----- >> De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] >> Envoy? : jeudi 14 mai 2009 11:50 >> ? : users at lists.scilab.org >> Objet : Re: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 >> >> Hello Raphael, >> >> First point, if you are compiling Scilab under RHEL 4u5 >> because of the problem with the "symbol GLIBC_2.4 version not >> found", please note that I have fixed this issue yesterday >> (see bug #3131 for the reason) and should be available in the >> nightly build of the branch 5.1. > > Yes, that's exactly why I'm compiling scilab. I'll try the nightly build. It is probably be easier. Please let me know if it is working. > I've been able to compile it after switching to gfortran. It's just strange > that configure selected g77 by default. > When I start it (the version I compiled), I get : > > Could not find the Java configuration for the OS . > Please contact us or submit a bug report with your detailed configuration > http://bugzilla.scilab.org/ I believe I fixed this bug in the recent version of the branch 5.1 Anyway, it is very weird. Do you confirm that uname -m == x86_64.Linux.2.6.9 on your system ? Sylvestre From raphael.langella at steria.cnes.fr Mon May 18 16:20:16 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Mon, 18 May 2009 16:20:16 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <0a56a9533305d009db4b1e3da2568113@localhost> Message-ID: <092785B790DCD043BA45401EDA43D9B5045C816C@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : sylvestre.ledru at scilab.org [mailto:sylvestre.ledru at scilab.org] > Envoy? : lundi 18 mai 2009 14:55 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > On Mon, 18 May 2009 11:13:06 +0200, "Langella Raphael" > wrote: > >> -----Message d'origine----- > >> De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > >> Envoy? : jeudi 14 mai 2009 11:50 > >> ? : users at lists.scilab.org > >> Objet : Re: [scilab-Users] compilation de scilab 5.1.1 > sous RHEL 4u5 > >> > >> Hello Raphael, > >> > >> First point, if you are compiling Scilab under RHEL 4u5 because of > >> the problem with the "symbol GLIBC_2.4 version not found", please > >> note that I have fixed this issue yesterday (see bug #3131 for the > >> reason) and should be available in the nightly build of the branch > >> 5.1. > > > > Yes, that's exactly why I'm compiling scilab. I'll try the > nightly build. > It is probably be easier. Please let me know if it is working. > > > I've been able to compile it after switching to gfortran. It's just > strange > > that configure selected g77 by default. > > When I start it (the version I compiled), I get : > > > > Could not find the Java configuration for the OS > . > > Please contact us or submit a bug report with your detailed > > configuration http://bugzilla.scilab.org/ > I believe I fixed this bug in the recent version of the branch 5.1 > > Anyway, it is very weird. > Do you confirm that uname -m == x86_64.Linux.2.6.9 on your system ? Nope, uname -m gives x86_64 From rvaguerra at hotmail.com Mon May 18 16:48:36 2009 From: rvaguerra at hotmail.com (Rodrigo Viegas) Date: Mon, 18 May 2009 14:48:36 +0000 Subject: SciLab Message-ID: Hello! I'm Rodrigo Vi?gas, a brazilian website developer and I'm trying to use SciLab as a tool in one of my websites. Unfortunatly I have been facing many problems to access the software through my php scripts. I don't know how do I do it. There is one linux server to host the website and a dedicated windows computer to run applications that deal with my MySQL database. The idea is to create 3D graphics (and much more) in SciLab and save them into a directory to allow users to access the results wherever they are. Are you able to help me to do this task? Sorry for bothering you, but I really need help to deal with SciLab. Thank you! Using Scilab would be useful for me and my customers. Rodrigo Vi?gas _________________________________________________________________ Emoticons e Winks super diferentes para o Messenger. Baixe agora, ? gr?tis! http://specials.br.msn.com/ilovemessenger/pacotes.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon May 18 17:22:57 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Mon, 18 May 2009 17:22:57 +0200 Subject: [scilab-Users] SciLab In-Reply-To: References: Message-ID: <4A117D51.3070608@utc.fr> Rodrigo Viegas a ?crit : > Hello! > > I'm Rodrigo Vi?gas, a brazilian website developer and I'm trying > to use SciLab as a tool in one of my websites. > > Unfortunatly I have been facing many problems to access the > software through my php scripts. I don't know how do I do it. There > is one linux server to host the website and a dedicated windows > computer to run applications that deal with my MySQL database. > > The idea is to create 3D graphics (and much more) in SciLab and > save them into a directory to allow users to access the results > wherever they are. Are you able to help me to do this task? Hi, XMLlab (http://xmllab.org) does that very well, by means of CGI gateway. Maybe you can hack some things. I can help you if you need. S. > > Sorry for bothering you, but I really need help to deal with SciLab. > > Thank you! Using Scilab would be useful for me and my customers. > > Rodrigo Vi?gas > > ------------------------------------------------------------------------ > Quer uma internet mais segura? Baixe agora o novo Internet Explorer 8. > ? gr?tis! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ron at phenotypescreening.com Mon May 18 18:29:34 2009 From: ron at phenotypescreening.com (Ronald Michaels) Date: Mon, 18 May 2009 12:29:34 -0400 Subject: [scilab-Users] xs2eps gives inacceptable results in Scilab 5.1.1 In-Reply-To: <6D1269A4C2D21240807B91421B1872550922B87A@lonms21.onshore.pgs.com> References: <4A0EDA12.4080409@web.de> <6D1269A4C2D21240807B91421B1872550922B87A@lonms21.onshore.pgs.com> Message-ID: <1242664174.6260.508.camel@SUN> Hi - This thread came at a good time for me. Here is how I am now getting high res graphics. Draw the graph in Scilab with plot() or some other graphics function call. In the Scilab graphics window pull down File->Print. Select the print to file option and print to myfile.ps . Then start GIMP. Open myfile.ps . In the Import from PostScript window, set resolution = 1000, or some other number that suits your need. Click import. Use GIMP to rotate, crop, etc. Then Save as myfile.png, or whatever. The best thing I can say about this is that it works - WFM. Ron On Mon, 2009-05-18 at 09:27 +0100, Francis Drossaert wrote: > xs2eps From blau_m at web.de Mon May 18 22:55:00 2009 From: blau_m at web.de (Matthias Blau) Date: Mon, 18 May 2009 22:55:00 +0200 Subject: [scilab-Users] xs2eps gives inacceptable results in Scilab 5.1.1 In-Reply-To: <1242664174.6260.508.camel@SUN> References: <4A0EDA12.4080409@web.de> <6D1269A4C2D21240807B91421B1872550922B87A@lonms21.onshore.pgs.com> <1242664174.6260.508.camel@SUN> Message-ID: <4A11CB24.9020008@web.de> Dear Ronald, thanks for your help. Unfortunately, this didn't solve my problem. Anyway, I found a (similarly cumbersome) way to get "non-jagged" curves. This is how it works: - use xs2fig to export to fig - then in xfig, change the "join style" manually for every curve - unfortunately, xs2fig is not good in exporting fonts, so I had to change all fonts manually as well - then export from xfig to whatever you want So, this works. But hey Scilab team, is this how you want people to work seriously? Again, this may not be a bug in the strict sense, but it makes Scilab unusable for people doing science (isn't that Scilab's target group?), so please!! fix this! It can't be that hard. Best regards, Matthias Ronald Michaels schrieb: > Hi - > > This thread came at a good time for me. > > Here is how I am now getting high res graphics. > > Draw the graph in Scilab with plot() or some other graphics function > call. > > In the Scilab graphics window pull down File->Print. > > Select the print to file option and print to myfile.ps . > > Then start GIMP. Open myfile.ps . In the Import from PostScript > window, set resolution = 1000, or some other number that suits your > need. Click import. Use GIMP to rotate, crop, etc. Then Save as > myfile.png, or whatever. > > The best thing I can say about this is that it works - WFM. > > Ron > > On Mon, 2009-05-18 at 09:27 +0100, Francis Drossaert wrote: >> xs2eps > From raphael.langella at steria.cnes.fr Tue May 19 11:13:50 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Tue, 19 May 2009 11:13:50 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C816C@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B5045C81D6@cst-xch-003.cnesnet.ad.cnes.fr> > > > When I start it (the version I compiled), I get : > > > > > > Could not find the Java configuration for the OS > > . > > > Please contact us or submit a bug report with your detailed > > > configuration http://bugzilla.scilab.org/ > > I believe I fixed this bug in the recent version of the branch 5.1 > > > > Anyway, it is very weird. > > Do you confirm that uname -m == x86_64.Linux.2.6.9 on your system ? > > Nope, uname -m gives x86_64 > Well, I've tried the binary version, and I don't have the java configuration error message, but I've got the same problem as with the version I compiled: the process starts without error, but nothing happens. No GUI, no message, nothing. From ycollet at freesurf.fr Tue May 19 11:40:13 2009 From: ycollet at freesurf.fr (ycollet at freesurf.fr) Date: Tue, 19 May 2009 11:40:13 +0200 (CEST) Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C81D6@cst-xch-003.cnesnet.ad.cnes. fr> References: <092785B790DCD043BA45401EDA43D9B5045C81D6@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: > > Well, I've tried the binary version, and I don't have the java > configuration error message, but I've got the same problem as with the > version I compiled: the process starts without error, but nothing > happens. No GUI, no message, nothing. > Can you try in a bash shell: scilab -nw ? Using this version of scilab, you can see some error messages never displayed in the console of the gui version YC From raphael.langella at steria.cnes.fr Tue May 19 14:53:08 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Tue, 19 May 2009 14:53:08 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B5045C8210@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : ycollet at freesurf.fr [mailto:ycollet at freesurf.fr] > Envoy? : mardi 19 mai 2009 11:40 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > > > > > Well, I've tried the binary version, and I don't have the java > > configuration error message, but I've got the same problem > as with the > > version I compiled: the process starts without error, but nothing > > happens. No GUI, no message, nothing. > > > > Can you try in a bash shell: scilab -nw ? > Using this version of scilab, you can see some error messages > never displayed in the console of the gui version With the binary version, I get to the console with no errors. I can open the help which works mostly (buggy mouse). With the compiled version I get : Initialisation: Chargement de l'environnement de travail load('SCI/modules/fileio/macros/pathconvert.bin'); !--error 241 Le fichier "SCI/modules/fileio/macros/pathconvert.bin" n'existe pas ou n'est pas accessible en lecture. at line 6 of exec file called by : exec("SCI/modules/"+modules(i)+"/etc/"+modules(i)+".start",-1); line 100 of exec file called by : exec('SCI/etc/scilab.start',-1);; Which is right. The file pathconvert.bin doesn't exist. There's a pathconvert.sci. This rep is full of .sci files, but no .bin file. From ycollet at freesurf.fr Tue May 19 15:21:25 2009 From: ycollet at freesurf.fr (ycollet at freesurf.fr) Date: Tue, 19 May 2009 15:21:25 +0200 (CEST) Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C8210@cst-xch-003.cnesnet.ad.cnes. fr> References: <092785B790DCD043BA45401EDA43D9B5045C8210@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: As far as I remember, there is a "make macros" rule in makefile. Try make macros in the build dir. Normally this step should have been already done during make. Are there error ? If no, in the scilab build dir, do a bin/scilab -nw Are there errors ? YC > > With the binary version, I get to the console with no errors. I can open > the help which works mostly (buggy mouse). > With the compiled version I get : > > Initialisation: > Chargement de l'environnement de travail > load('SCI/modules/fileio/macros/pathconvert.bin'); > !--error 241 > Le fichier "SCI/modules/fileio/macros/pathconvert.bin" n'existe pas ou > n'est pas accessible en lecture. > > at line 6 of exec file called by : > exec("SCI/modules/"+modules(i)+"/etc/"+modules(i)+".start",-1); > line 100 of exec file called by : > exec('SCI/etc/scilab.start',-1);; > > Which is right. The file pathconvert.bin doesn't exist. There's a > pathconvert.sci. This rep is full of .sci files, but no .bin file. > From stephane.mottelet at utc.fr Tue May 19 18:59:04 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Tue, 19 May 2009 18:59:04 +0200 Subject: problem defining protected functions in .scilab Message-ID: <4A12E558.1010303@utc.fr> Hi all, I don't see how to protect functions which are loaded in a library in the users .scilab file. The problem is that when you are in the .scilab, you cannot issue a predef('all') because the variables startup ierr startup_path do exists at that time, and are later cleared in scilab.star. Any clue ? S. From raphael.langella at steria.cnes.fr Wed May 20 10:13:10 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Wed, 20 May 2009 10:13:10 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B5045C8276@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : ycollet at freesurf.fr [mailto:ycollet at freesurf.fr] > Envoy? : mardi 19 mai 2009 15:21 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > As far as I remember, there is a "make macros" rule in makefile. > Try > > make macros in the build dir. > > Normally this step should have been already done during make. > > Are there error ? > > If no, in the scilab build dir, do a > > bin/scilab -nw > > Are there errors ? I compiled the macros, and now, aside from the Java configuration warning, the compiled and binary version behave the same. No error, no message and no GUI. It still isn't working. From ycollet at freesurf.fr Wed May 20 12:16:47 2009 From: ycollet at freesurf.fr (ycollet at freesurf.fr) Date: Wed, 20 May 2009 12:16:47 +0200 (CEST) Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C8276@cst-xch-003.cnesnet.ad.cnes. fr> References: <092785B790DCD043BA45401EDA43D9B5045C8276@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: > > I compiled the macros, and now, aside from the Java configuration warning, > the compiled and binary version behave the same. No error, no message and > no GUI. It still isn't working. > Can you copy paste these errors in a mail ? YC From raphael.langella at steria.cnes.fr Wed May 20 14:12:23 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Wed, 20 May 2009 14:12:23 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: Message-ID: <092785B790DCD043BA45401EDA43D9B5045C82A1@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : ycollet at freesurf.fr [mailto:ycollet at freesurf.fr] > Envoy? : mercredi 20 mai 2009 12:17 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > > > > > I compiled the macros, and now, aside from the Java configuration > > warning, the compiled and binary version behave the same. > No error, no > > message and no GUI. It still isn't working. > > > > Can you copy paste these errors in a mail ? > > YC > There isn't any. When I start scilab, I got the Java configuration warning and that's all. The GUI doesn't appear, there's no error, the program doesn't return. The scilab-bin process runs, but nothing happens. I don't think it has anything to do with the Java warning, because with the binary version, I don't get the warning, but I still have exactly the same problem. Anyway, here is the warning : Could not find the Java configuration for the OS . Please contact us or submit a bug report with your detailed configuration http://bugzilla.scilab.org/ From diantre.flu at gmail.com Wed May 20 15:02:33 2009 From: diantre.flu at gmail.com (Frederic LAU) Date: Wed, 20 May 2009 15:02:33 +0200 Subject: Questions about the color and the possibilities of interaction Message-ID: <679a4e670905200602h35bed9c5k46b8b4458f1f465@mail.gmail.com> Hello I tried to represent 3-dimensional set of points described by their XYZ coordinates in an Excel file I succeed to open the Excel file, read all the coordonates, build a 3D cube with the function Plot3D1(), and to position the informations from the Excel file in this 3D environnement. Great ! Now I have to do two things to finalize my project : the Color and the Interaction Color : I have a fourth coordonate in the Excel file what I would like to represent by using the color of each point. How can I do it ? I don't understand how to change color of each point using a value, and to have a different color for each point. Does anyone has had a similar need ? or do you know a post (I didn't found it) that explains it clearly ? Interaction : Is it possible, with Scilab, to "select" a point and make appear a text string ? this text string could be, for instance, the name of the plot stored as fifth value in the excel file. say me if i'm not clear, it is my first post on this forum Thank you for your help and experience. Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollet at freesurf.fr Thu May 21 08:12:23 2009 From: ycollet at freesurf.fr (Collette Yann) Date: Thu, 21 May 2009 08:12:23 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <092785B790DCD043BA45401EDA43D9B5045C82A1@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B5045C82A1@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <4A14F0C7.7020800@freesurf.fr> Another idea: go to java.sun.com and download a java package for your linux. Install it in a separate directory. For example /opt/java and before launching scilab, do a export JAVA_HOME=/opt/java/jre and start scilab Does this help ? YC > > There isn't any. When I start scilab, I got the Java configuration warning and that's all. The GUI doesn't appear, there's no error, the program doesn't return. The scilab-bin process runs, but nothing happens. > > I don't think it has anything to do with the Java warning, because with the binary version, I don't get the warning, but I still have exactly the same problem. Anyway, here is the warning : > > Could not find the Java configuration for the OS . Please contact us or submit a bug report with your detailed configuration http://bugzilla.scilab.org/ > > From Christian at FamilieHoehle.de Thu May 21 10:44:13 2009 From: Christian at FamilieHoehle.de (Christian Hoehle) Date: Thu, 21 May 2009 10:44:13 +0200 Subject: How to define set of numbers without some special numbers? Message-ID: <4A15145D.6030903@FamilieHoehle.de> Hi all, i recently tried to do a plot of a function with a value range of (x | (-100 <= x <= 100) \ {0; -3; 2}). Any idea how to realize that? Most probably i just didn't find the manual's page describing definition of sets omitting special numbers... or yust didn't get the right keyword to search for ;-) Thanks for all hints. Cheers, Chris From hsr at ee.iitm.ac.in Fri May 22 07:32:06 2009 From: hsr at ee.iitm.ac.in (harishankar ramachandran) Date: Fri, 22 May 2009 11:02:06 +0530 Subject: [scilab-Users] How to define set of numbers without some special numbers? In-Reply-To: <4A15145D.6030903@FamilieHoehle.de> References: <4A15145D.6030903@FamilieHoehle.de> Message-ID: <200905221102.06659.hsr@ee.iitm.ac.in> Let us say you have already defined a function f(x), and you want to plot it over a range excluding some special points, {x_i} a < x_1 < x_2 <...< x_k < b There is no built in function in scilab that plots this. However, it is a simple matter to create plots that skip these points. User dependent issues: 1. Should the points on either side of a special point be connected? 2. Should the points on either side of a special point be equi-distant? Given that info, it is a simple matter to create the set of disjoint line segments that can be used to plot the function (using xpoly) Here is a function that connects across special points, but ensures points on either side are _roughly_ equidistant: ================================= //* program to plot a function excluding a set of given points function plote2d(a,b,exclude,n,f,optarg) //* the range is a to b //* exclude is a vector containing the points to exclude //* n is the total number of points to use //* f is the function to be invoked dx=(b-a)/(n-1); // the nominal spacing between points x0=[a; matrix(exclude,length(exclude),1); b]; nn=ceil(diff(x0)/dx); j=0; xx=zeros(sum(nn),1); for i=1:length(nn) // printf("%d: (%f,%f)\n",nn(i),x0(i),x0(i+1)); t=linspace(x0(i),x0(i+1),nn(i)+2)'; xx(j+1:j+nn(i))=t(2:$-1); j=j+nn(i); end yy=f(xx); if isdef("optarg") s="plot2d(xx,yy,"+optarg+")"; execstr(s); else plot2d(xx,yy) end endfunction function y=f(x) y=abs(log((x-1).^2)+log((x+0.5).^2)); endfunction //* test code clf plote2d(-2,2,[-1 -0.5 1 1.5],501,f,'logflag=''nl''') xtitle("a sample plot"); //* comments // if singularities are too close to each other, we might end up // with exactly one point between singularities. // also, 'n' is a nominal number. The number of points actually // used may slightly exceed n. // The lines are connected across the singularities. // Note that optional arguments are sent as a quoted string. // Embedded quotes are handled by doubling them (see test code). ================================= hari On Thursday 21 May 2009 14:14, Christian Hoehle wrote: > Hi all, > > i recently tried to do a plot of a function with a value range of (x | > (-100 <= x <= 100) \ {0; -3; 2}). > Any idea how to realize that? > Most probably i just didn't find the manual's page describing definition > of sets omitting special numbers... or yust didn't get the right keyword > to search for ;-) > > Thanks for all hints. > > Cheers, > Chris -- Dr. Hari Ramachandran, Professor, 332B ESB, EE Dept, IIT-Madras Interests: Nonlinear Optics, Nonlinear Waves, Plasma Physics, Particle Simulations, Computational Algorithms, Linux. Off: 91-44-2257-4421 Fax: 91-44-2257-0120 Res: 91-44-2663-1863 Home Email: omkarbharathi at gmail.com From Samuel.Gougeon at univ-lemans.fr Fri May 22 13:46:34 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 22 May 2009 13:46:34 +0200 Subject: [scilab-Users] How to define set of numbers without some special numbers? In-Reply-To: <4A15145D.6030903@FamilieHoehle.de> References: <4A15145D.6030903@FamilieHoehle.de> Message-ID: <4A16909A.4070203@univ-lemans.fr> If you want to avoid evaluating the function at special points and to connect first neighbours accross special points, one has previously to remove these ones from the list : x=-100:100; x2=setdiff(x,[0 -3 2]); clf plot2d(x2,1. ./x2 + 1. ./(x2 + 3) + 1. ./(x2 - 2)); If you want to manage divergent calculations (e.g. at some poles), try : x=-100:100; ieee(2); y=1. ./x + 1. ./(x + 3) + 1. ./(x - 2); // example clf plot2d(x,y) // no segment connected to |%inf| values are plotted After this remark, you may set y value of special x locations to %inf or -%inf to use the same plotting feature (but buggy): x=-100:100; [v,kx]=intersect(x,[0 -2 3]); y=sin(x/10); y(kx)=%inf; plot2d(x,y); // see buggy segment (i am reporting it through bugzilla) Regards Samuel ----- Message d'origine ----- De : Christian Hoehle Date : 21/05/2009 10:44: > Hi all, > > i recently tried to do a plot of a function with a value range of (x | > (-100 <= x <= 100) \ {0; -3; 2}). > Any idea how to realize that? > Most probably i just didn't find the manual's page describing definition > of sets omitting special numbers... or yust didn't get the right keyword > to search for ;-) > > Thanks for all hints. > > Cheers, > Chris From Samuel.Gougeon at univ-lemans.fr Fri May 22 14:06:53 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 22 May 2009 14:06:53 +0200 Subject: [scilab-Users] How to define set of numbers without some special numbers? In-Reply-To: <4A16909A.4070203@univ-lemans.fr> References: <4A15145D.6030903@FamilieHoehle.de> <4A16909A.4070203@univ-lemans.fr> Message-ID: <4A16955D.9020201@univ-lemans.fr> ----- Message d'origine ----- De : Samuel GOUGEON Date : 22/05/2009 13:46: > > After this remark, you may set y value of special x locations to %inf or > -%inf to use the same plotting feature (but buggy): > x=-100:100; > [v,kx]=intersect(x,[0 -2 3]); > y=sin(x/10); > y(kx)=%inf; > plot2d(x,y); // see buggy segment (i am reporting it through bugzilla) After further tests, this bug seems to appear when a single point is isolated (e.g. between two undrawable parts of the plot)(here at x=-1) Therefore, the proposed answer to your initial question will work as long as no point in the x-span is isolated (and that this plot2d() bug will not be fixed). Regards Samuel From Samuel.Gougeon at univ-lemans.fr Fri May 22 14:24:16 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 22 May 2009 14:24:16 +0200 Subject: [scilab-Users] How to define set of numbers without some special numbers? In-Reply-To: <4A16955D.9020201@univ-lemans.fr> References: <4A15145D.6030903@FamilieHoehle.de> <4A16909A.4070203@univ-lemans.fr> <4A16955D.9020201@univ-lemans.fr> Message-ID: <4A169970.2060104@univ-lemans.fr> ----- Message d'origine ----- De : Samuel GOUGEON Date : 22/05/2009 14:06: > After further tests, this bug seems to appear when a single point is > isolated > (e.g. between two undrawable parts of the plot)(here at x=-1) This is not the reason. Other tests with un-isolated points also plot an extra segment. Bug report is http://bugzilla.scilab.org/show_bug.cgi?id=4537 SG From Samuel.Gougeon at univ-lemans.fr Fri May 22 19:47:56 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 22 May 2009 19:47:56 +0200 Subject: [scilab-Users] A red point in plot3d In-Reply-To: <4A1159C1.90608@univ-lemans.fr> References: <84586.19399.qm@web52711.mail.re2.yahoo.com> <4A1159C1.90608@univ-lemans.fr> Message-ID: <4A16E54C.80501@univ-lemans.fr> ----- Message d'origine ----- De : Samuel GOUGEON Date : 18/05/2009 14:51: > a trick that may work for this purpose: > After plot3d(), do a plot2d(Xp,Yp) where Xp and Yp are the 2 first > coordinates of your > (Xp,Yp,Zp) set of points (Xp, Yp, Zp are vectors of same lengths N for > N points to be marked) > > Then, do: > ca=gca(); > cc=ca.children(1).children(1); > cc.data(:,3)=Zp; // Be carefull: Zp must be a column-vector > cc.line_mode='off'; > cc.mark_mode='on'; > cc.mark_style=8; // for diamonds. Run getmark() or see help > polyline_properties for other marks > cc.mark_foreground=color('red'); See also http://requestzilla.scilab.org/attachment.cgi?id=39 for an alpha release of a plotPoints() function, where style, size and color of marks can be tuned. http://requestzilla.scilab.org/show_bug.cgi?id=645 for discussion SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christian at FamilieHoehle.de Sat May 23 15:31:36 2009 From: Christian at FamilieHoehle.de (Christian Hoehle) Date: Sat, 23 May 2009 15:31:36 +0200 Subject: [scilab-Users] How to define set of numbers without some special numbers? In-Reply-To: <4A169970.2060104@univ-lemans.fr> References: <4A15145D.6030903@FamilieHoehle.de> <4A16909A.4070203@univ-lemans.fr> <4A16955D.9020201@univ-lemans.fr> <4A169970.2060104@univ-lemans.fr> Message-ID: <4A17FAB8.3030302@FamilieHoehle.de> Hari and Samuel, thank you very much for your efforts. I found the keyword i was searching for within one of Samuels posts: Setting ieee to 2 causes the result of a division by null to be Inf or NaN. On plotting, segments with an Inf or NaN element are ignored, so graphs with excluded values within their definition range can be plotted (with last segment before exclusion value missing, but that is ok when step width is small enough). Thanks again, Chris From Samuel.Gougeon at univ-lemans.fr Sat May 23 18:39:52 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Sat, 23 May 2009 18:39:52 +0200 Subject: mesh3d for int3d Message-ID: <4A1826D8.2060405@univ-lemans.fr> Hello, How is it possible to build the set of 3d-meshing tetrahedrons expected by int3d(), from the set of nodes seeding the volume over which the integral must be calculated ? I don't find any mesh3d() function equivalent to mesh2d() for int2d() and doing this job. I guess that since int3d() is defined and that this building is not trivial, i am missing some function. Thank you for any hint. Regards Samuel PS: Moreover, OpenFEM can no longer be used with Scilab 5 From dmcomer at dmcmicro.com Sat May 23 18:56:04 2009 From: dmcomer at dmcmicro.com (Dave Comer) Date: Sat, 23 May 2009 10:56:04 -0600 Subject: Scilab 5.1.1, Help System and %helps Message-ID: <200905231656.n4NGuA1d005315@omr17.networksolutionsemail.com> Hello, I am working my way through the Scilab help file system with the goal of adding my own toolbox, help system. I noticed in the Scilab manual that there is suposed to be a variable %helps, which according to the manual is supposed to be loaded by scilab.start. However, in 5.1.1 there is no such reference to %helps in scilab.start, and there is not global variable %helps listed in whos. Is this an obsolete concept? If so, how does one add help to the help file path? Thanks, Dave Comer From grocer.toolbox at gmail.com Sat May 23 19:27:28 2009 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 23 May 2009 19:27:28 +0200 Subject: [scilab-Users] Scilab 5.1.1, Help System and %helps In-Reply-To: <200905231656.n4NGuA1d005315@omr17.networksolutionsemail.com> References: <200905231656.n4NGuA1d005315@omr17.networksolutionsemail.com> Message-ID: Well, as far as I have understood, you have to build help files in a folder such as mytoolbox\help\en_US (for English help). Your help files must respect Scilab xml forma. Ffor an example, see the file joined (you can find many more examples in my toolbox grocer, available at http://dubois.ensae.net/grocer.html) ; Pettersen toolbox - http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1145-can also be very helpful: anyway, it has helped me. Then you have to insert in scilab.star the following commands : helps_dirs='mytoolbox\help\en_US' help_title='my beautiful toolbox' xml2jar('javaHelp','mytoolbox\help\en_US','my beautiful toolbox') add_help_chapter('my beautiful toolbox',SCI+'mytoolbox\/jar',%f); And, with some effort, it should work. I fear that it is not the best solution, but Scilab help on the subject is indeed rather tricky to undestand. Cheers. Eric. 2009/5/23 Dave Comer > Hello, > > I am working my way through the Scilab help file system with the goal of > adding my own toolbox, help system. I noticed in the Scilab manual that > there is suposed to be a variable %helps, which according to the manual is > supposed to be loaded by scilab.start. However, in 5.1.1 there is no such > reference to %helps in scilab.start, and there is not global variable %helps > listed in whos. Is this an obsolete concept? If so, how does one add help to > the help file path? > > Thanks, > > Dave Comer > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: contrib.xml Type: text/xml Size: 3004 bytes Desc: not available URL: From dmcomer at dmcmicro.com Sat May 23 21:33:44 2009 From: dmcomer at dmcmicro.com (Dave Comer) Date: Sat, 23 May 2009 13:33:44 -0600 Subject: [scilab-Users] Scilab 5.1.1, Help System and %helps In-Reply-To: References: <200905231656.n4NGuA1d005315@omr17.networksolutionsemail.com> Message-ID: <200905231933.n4NJXoec007921@omr11.networksolutionsemail.com> Eric, Thanks so much for your reply and information. I very much agree with your comment on the support in the Scilab manual. I had started with the examples in \modules\helptools\examples. your examples and procedure are great supplement. My guess is that the Scilab team is very busy bringing up 5.x to par with the 4.x versions with respect to the manual and new features support. In any case, I do appreciate your help. Dave Comer At 11:27 AM 5/23/2009, you wrote: >Well, as far as I have understood, you have to build help files in a >folder such as mytoolbox\help\en_US (for English help). From raphael.langella at steria.cnes.fr Mon May 25 10:48:41 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Mon, 25 May 2009 10:48:41 +0200 Subject: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 In-Reply-To: <4A14F0C7.7020800@freesurf.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B5045C831B@cst-xch-003.cnesnet.ad.cnes.fr> Thanks but it didn't help. I'm using Java 1.6.0_11 and I've added $JAVA_HOME/lib/amd64 and $JAVA_HOME/lib/amd64/server to my LD_LIBRARY_PATH for the following libraries : libjava.so, libverify.so and libjvm.so Setting the JAVA_HOME variable didn't change anything. > -----Message d'origine----- > De : Collette Yann [mailto:ycollet at freesurf.fr] > Envoy? : jeudi 21 mai 2009 08:12 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] compilation de scilab 5.1.1 sous RHEL 4u5 > > Another idea: go to java.sun.com and download a java package > for your linux. > Install it in a separate directory. For example /opt/java and > before launching scilab, do a export JAVA_HOME=/opt/java/jre > and start scilab > > Does this help ? > > YC > > > > > There isn't any. When I start scilab, I got the Java > configuration warning and that's all. The GUI doesn't appear, > there's no error, the program doesn't return. The scilab-bin > process runs, but nothing happens. > > > > I don't think it has anything to do with the Java warning, > because with the binary version, I don't get the warning, but > I still have exactly the same problem. Anyway, here is the warning : > > > > Could not find the Java configuration for the OS > . > > Please contact us or submit a bug report with your detailed > > configuration http://bugzilla.scilab.org/ > > > > > > From stephane.mottelet at utc.fr Mon May 25 16:29:57 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Mon, 25 May 2009 16:29:57 +0200 Subject: bug or abandonned feature (so why then ?) Message-ID: <4A1AAB65.5080608@utc.fr> Hi all, sorry to bother you again, but the more I get into Scilab 5 graphics, the more I see some little problems , but my overall feeling is that graphics is now fast enough, congratulations ! In the old graphics, it was possible to define a 3D isometric "not expanded" view, i.e. a true isometric scale such that when you rotate an object, you don't modify its *absolute* dimensions. In fact the feature is still claimed to exist in the plot3d help : type=3: 3d isometric with box bounds given by optional ebox, similarily to type=1. type=4: 3d isometric bounds derived from the data, to similarilytype=2. type=5: 3d expanded isometric bounds with box bounds given by optional ebox, similarily to type=1. type=6: 3d expanded isometric bounds derived from the data, similarily to type=2. From stephane.mottelet at utc.fr Thu May 28 10:30:31 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 28 May 2009 10:30:31 +0200 Subject: Plotlib version 0.21 Message-ID: <4A1E4BA7.3040705@utc.fr> Hi all, Glad to announce that the plotlib is back and works for Scilab 5. All the code has been optimized to work with the new graphics and the help files are now integrated in the help system (complete rewrite of xml help files, with many screenshots therein). Just a small reminder : the plotlib is dedicated to users switching from Matlab to Scilab and is still needed, although Scilab graphic system has made considerable progress. The plotlib page is still at http://www.lmac.utc.fr/~mottelet/plotlib.html You can already have a look at the help pages in html format at : http://www.lmac.utc.fr/~mottelet/plotlib/html/en_US Enjoy ! S. From maitreyakara at yahoo.com Sat May 30 10:15:36 2009 From: maitreyakara at yahoo.com (Sattiraju Prabhakar) Date: Sat, 30 May 2009 01:15:36 -0700 (PDT) Subject: Using functions in Java Message-ID: <22688.17681.qm@web63704.mail.re1.yahoo.com> Hi, I am trying to use Scilab (5.1.1) from a Java (jdk 6 update 13) application. I have been experimenting with some Scilab scripts that use function ("function" and "deff") definitions. When I tried to convert these scripts into Java, I have come across a number of problems. Problems using "function" ================ I took the "function percentile" declaration from Professor Gilberto Gurroz's Basic Statistics and Probability using Scilab. I reproduce below the script. function [p] = percentile(x,r) //This function calculates the 100*r-th percentile //(0n & n == 1 n = m; end if r<0 | r>1 then disp('Percentile value must be between 0 and 1'); else k = n*r; if k-floor(k) ~= 0 p = xx(round(n*r)); else p = (xx(k)+xx(k+1))/2; end end It is used as follows Q1 = percentile(x,0.25) I tried to put it in Java code in two different ways. A. In the first attempt, I tried to execute each line using Scilab.Exec. The code follows. public void percentile() { Scilab.Exec("function [p] = percentile(x,r)"); //This function calculates the 100*r-th percentile //(0n & n == 1"); Scilab.Exec("n = m;"); Scilab.Exec("end"); Scilab.Exec("if r<0 | r>1 then"); Scilab.Exec("disp('Percentile value must be between 0 and 1');"); Scilab.Exec("else"); Scilab.Exec("k = n*r;"); Scilab.Exec(" if k-floor(k) ~= 0"); Scilab.Exec("p = xx(round(n*r)); "); Scilab.Exec("else"); Scilab.Exec("p = (xx(k)+xx(k+1))/2;"); Scilab.Exec("end"); Scilab.Exec("endfunction"); } I tried to apply this function as follows. SciDouble Q1P = new SciDouble("Q1"); Scilab.Exec("Q1 = percentile(x,0.25)"); Q1P.Get(); Q1P.disp(); I get the following error. double Q1= 0. Error in Java_javasci_Scilab_Exec routine. B. I tried to declare the entire function as a string and pass the string as argument to Scilab.Exec(). public void percentile() { String perc2 = "function [p] = percentile(x,r) \n xx = gsort(x); \n [n m] = size(xx); \n if m>n & n == 1 \n n = m; \n end \n if r<0 | r>1 then \n disp('Percentile value must be between 0 and 1'); \n else \n k = n*r; \n if k-floor(k) ~= 0 \n p = xx(round(n*r)); \n else \n p = (xx(k)+xx(k+1))/2; \n end \n endfunction"; Scilab.Exec(perc2); } I tried it without \n, and later with \n. In both cases, I got the same error as above. I also tried Java conversion of a simpler script, with the same result //inline definition (see function) function [x,y]=myfct(a,b) x=a+b y=a-b endfunction public void myFunction(){ Scilab.Exec("function [x,y]=myfct(a,b)"); Scilab.Exec("x=a+b"); Scilab.Exec("y=a-b"); Scilab.Exec("endfunction"); } public void myFunction2(){ String fun = "function [x,y]=myfct(a,b) x=a+b y=a-b endfunction"; Scilab.Exec(fun); } 2. Using deff ============= I was able to successfully write and execute the above example using deff Scilab.Exec("deff('[x,y]=myfct(a,b)', ['x=a+b'; 'y=a-b'])"); "deff" requires that we state the "statements" of the function as matrix of strings. If you have a String inside the function declaration (of Scilab script), as in percentile, then it becomes a problem. I was not able to get a correct result for percentile using deff and Java. Here is my code: Scilab.Exec("deff('[p]=percentile(x,r)', ['xx = gsort(x);'; '[n m] = size(xx);'; ' if m>n & n == 1 n = m;'; 'end'; 'if r<0 | r>1 then disp('Percentile value must be between 0 and 1');' ; 'else k = n*r;'; 'if k-floor(k) ~= 0 p = xx(round(n*r));'; 'else p = (xx(k)+xx(k+1))/2;'; 'end' ])"); I would like to end with a general question. Each of the above methods takes some effort. If the function definition is long, then the effort needed to convert into Java code can be substantial. Is there a simple method? Thanks, Prabhakar -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitreyakara at yahoo.com Sun May 31 07:57:05 2009 From: maitreyakara at yahoo.com (Sattiraju Prabhakar) Date: Sat, 30 May 2009 22:57:05 -0700 (PDT) Subject: Error with Plot2d() in Java Message-ID: <421580.62549.qm@web63705.mail.re1.yahoo.com> I am interested in using Java event mechanism to invoke Scilab plotting. To this end, I tried to run the example ihm in javasci module. When I compile the Java code and then run the Java application, it sets up Frame with a button and textfield. When I click the button, I get the following error: Warning !!! Scilab has found a critical error (Unknown exception) with "plot2d" function. Save your data and restart Scilab. The plot2d() statement is in MonPanneau class, YA_EU_UN_Click() method. Then I inserted scripts for simple examples from plot2d1 and plot3d, into the YA_EU_UN_Click() method, with the same result. I tried to run the batch file in the ihm folder, it opens scilex window and no plot. Thanks! Prabhakar -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitreyakara at yahoo.com Sun May 31 22:55:41 2009 From: maitreyakara at yahoo.com (Sattiraju Prabhakar) Date: Sun, 31 May 2009 13:55:41 -0700 Subject: Rendering Scilab plots on Java Frames Message-ID: <002901c9e232$29631010$7c293030$@com> Is there a way to render the Scilab plots onto a Java rendering target such as JPanel (or GLAutoDrawable in JOGL)? I can think of at least two abstract ways (not necessarily Scilab based) to do this. My question is: "is either of these abstract operations supported in Scilab?". 1. Access the data structure that contains the plots (not the rendering window of Scilab) and then forward it to the rendering target (in a form renderable) in Java so that it can be displayed on any chosen target. In this case, we can still use Java event handling mechanisms to support user interactions with the plots. 2. Send, to the Scilab plotting functions, a handle to the rendering target and then Scilab plots the data onto the rendering target. In this case Scilab needs to maintain a data base of rendering target handles. Further, Scilab needs to take care of the user interactions - it needs to keep track of event and source target (that is the target that generated the event) associations. I do not know Scilab well enough to see whether Scilab can do either of these operations, and how to make Scilab do these operations. Your input will be much appreciated. Prabhakar -------------- next part -------------- An HTML attachment was scrubbed... URL: