From david.cheze at clipsol.com Tue Sep 1 10:52:18 2009 From: david.cheze at clipsol.com (=?iso-8859-1?Q?David_Ch=E8ze?=) Date: Tue, 1 Sep 2009 10:52:18 +0200 Subject: =?iso-8859-1?Q?acc=E8s_disques_r=E9seau_scilab_5=2E1=2E1?= Message-ID: <57929F5AA8ACBE4C872CC7978F0A5E645F0EFC@belenos.externe.clipsol.com> Bonjour, J'ai mis ? jour scilab vers la version courante 5.1.1 et je ne parviens plus ? charger mes fichier *.sci sauvegard?s sur un disque r?seau : ? exec("P:/Priv?/scilab/ThermHydrau.sci"); !--error 241 Le fichier "P:/Priv?/scilab/ThermHydrau.sci" n'existe pas ou n'est pas accessible en lecture. while executing a callback ? Voyez-vous d'o? cela peut venir ? Merci David Ch?ze -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Tue Sep 1 11:15:37 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 1 Sep 2009 11:15:37 +0200 Subject: =?iso-8859-1?Q?RE:_=5Bscilab-Users=5D_acc=E8s_disques_r=E9seau_scilab_5.1?= =?iso-8859-1?Q?.1?= In-Reply-To: <57929F5AA8ACBE4C872CC7978F0A5E645F0EFC@belenos.externe.clipsol.com> References: <57929F5AA8ACBE4C872CC7978F0A5E645F0EFC@belenos.externe.clipsol.com> Message-ID: <000c01ca2ae4$c5300890$4f9019b0$@cornet@scilab.org> Hi, This problem is fixed in master version (http://www.scilab.org/download/index_download.php?page=nightly_builds) See bug http://bugzilla.scilab.org/show_bug.cgi?id=3472 Best Regard Allan CORNET De : David Ch?ze [mailto:david.cheze at clipsol.com] Envoy? : mardi 1 septembre 2009 10:52 ? : users at lists.scilab.org Objet : [scilab-Users] acc?s disques r?seau scilab 5.1.1 Bonjour, J?ai mis ? jour scilab vers la version courante 5.1.1 et je ne parviens plus ? charger mes fichier *.sci sauvegard?s sur un disque r?seau : ? exec("P:/Priv?/scilab/ThermHydrau.sci"); !--error 241 Le fichier "P:/Priv?/scilab/ThermHydrau.sci" n'existe pas ou n'est pas accessible en lecture. while executing a callback ? Voyez-vous d?o? cela peut venir ? Merci David Ch?ze -------------- next part -------------- An HTML attachment was scrubbed... URL: From wkassens at libello.com Tue Sep 1 13:29:02 2009 From: wkassens at libello.com (Werner Kassens) Date: Tue, 01 Sep 2009 13:29:02 +0200 Subject: automatic function construction Message-ID: <4A9D057E.6060901@libello.com> Hi, i am new to scilab and would like to know how to automatically construct a function. a small toy example: function x=myfun(a),x=[1:length(a)]*a',endfunction //a is a vector suppose myfun is called often with an 'a' of the same length and suppose [1:length(a)] would be a time intensive operation. i could calc that before the definition of myfun for example like this: function x=makeMyFun(lengthOfA) x=sci2exp( [1:lengthOfA],"x",0)+" * a'' " deff('x=newf(a)' ,x) x=newf endfunction and then e.g. do for a vector of length 3: myfun=makeMyFun(3) obviously makeMyFun looks somewhat stupid, as i translate the function first into strings and then into a function. hence my question: is there a way to do that in a more direct way? i further noticed by doing a fun2string, that the 2. myfun is stored in a different way - a kind of array (?) - than the 1. myfun. I guess that is less efficient? Werner From antonelli1970 at gmail.com Tue Sep 1 17:09:28 2009 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Tue, 01 Sep 2009 17:09:28 +0200 Subject: Updated version of the Scilab Manual in Italian Message-ID: <4A9D3928.9050605@gmail.com> Dear Scilab users, at the following address please find the version 2.1 of the Scilab manual in Italian: http://webuser.unicas.it/antonelli (following the link "scilab stuff" on the left). Good read, Gianluca From plaisant at vm.uff.br Wed Sep 2 01:08:20 2009 From: plaisant at vm.uff.br (Plaisant) Date: Tue, 1 Sep 2009 20:08:20 -0300 Subject: [scilab-Users] C and Fortran not seen. In-Reply-To: <1251530793.12951.3803.camel@zlarin> References: <200908282120.44645.plaisant@vm.uff.br> <1251530793.12951.3803.camel@zlarin> Message-ID: <200909012008.20674.plaisant@vm.uff.br> Hi. Thanks to Sylvestre and Yann. As soon as I installed the "make" file, it worked. Till next time. Andr??. > Hello, > > Can you post the file TMPDIR/config.log ? > > YC On Saturday 29 August 2009 04:26:33 Sylvestre Ledru wrote: > Le vendredi 28 ao??t 2009 ?? 21:20 -0300, Plaisant a ??crit : > > Hi. > > > > Thanks to Allan CORNET and to Serge Steer for helping. > > > > I have now installed the two suggested Linux packages: > > > > gcc - GNU Compiler Collection??? > > gcc-gfortran - Fortran 95 support for gcc??? > > [...] > > > sh: make: command not found > > [...] > > Make is also missing. Install the appropriate package (probably named > "make"). > > Sylvestre -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo. From lester at arctica1.wanadoo.co.uk Wed Sep 2 19:30:37 2009 From: lester at arctica1.wanadoo.co.uk (Lester Anderson) Date: Wed, 2 Sep 2009 18:30:37 +0100 Subject: Matlab to Scilab conversion Message-ID: <257107E9F51841B3835C7F42C4040B95@Jennifer> Hello I am fairly new to using Scilab (and Matlab) but need to convert some existing files. I have attached an example which I can't get to work and the image of the correct plot from Matlab. Original Matlab file: rho_m=3300; % in kg/m^3 rho_infill=2700; % in kg/m^3 E=1e11; % in kg/m/s^2 v=0.25; g=9.81; % in m/s^2 l1=1e3:2e3:50e3; % in m l2=75e3:25e3:1000e3; % in m l=[l1 l2]; % in m k=1./l; % in 1/m for Te=0:10e3:100e3 % in m D=E*Te^3/(12*(1-v^2)); phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1); semilogx(k,phi) hold on title('\Phi _e(k) for various T_e') xlabel('Wavenumber k') ylabel('\Phi _e(k)') end text(1.7e-6,0.5,'T_e=100km') text(3.6e-5,0.5,'T_e=10km') text(8e-5,0.95,'T_e=0km') Output from the conversion below: // Display mode mode(0); // Display warning for floating point exception ieee(1); rho_m = 3300; // in kg/m^3 rho_infill = 2700; // in kg/m^3 E = 100000000000; // in kg/m/s^2 v = 0.25; g = 9.81; // in m/s^2 l1 = 1000:2000:50000; // in m l2 = 75000:25000:1000000; // in m l = [l1,l2]; // in m k = 1 ./l; // in 1/m for Te = 0:10000:100000 // in m D = (E*(Te^3))/(12*(1-v^2)); phi = 1 ./((D .*(k .^4)) ./((rho_m-rho_infill)*g)+1); // !! L.14: Matlab function semilogx not yet converted, original calling sequence used. semilogx(k,phi) set(gca(),"auto_clear","off") title("\Phi _e(k) for various T_e") xlabel("Wavenumber k") ylabel("\Phi _e(k)") end; // !! L.20: Matlab function text not yet converted, original calling sequence used. text(0.0000017,0.5,"T_e=100km") // !! L.21: Matlab function text not yet converted, original calling sequence used. text(0.000036,0.5,"T_e=10km") // !! L.22: Matlab function text not yet converted, original calling sequence used. text(0.00008,0.95,"T_e=0km") Hopefully someone can see what is needed to get things working. Thanks in advance all. Lester Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iso_response_func.jpg Type: application/octet-stream Size: 123968 bytes Desc: not available URL: From dmcomer at dmcmicro.com Wed Sep 2 19:50:16 2009 From: dmcomer at dmcmicro.com (dmcomer at dmcmicro.com) Date: Wed, 02 Sep 2009 17:50:16 +0000 Subject: [scilab-Users] Matlab to Scilab conversion Message-ID: Lester, If you do not have the plotlib toolbox installed, I recommend it. It will handle the semilogx command without having to convert to the Scilab plot command. Not that the plot command is bad, just easier to convert. Post if yo uhave problems getting plot lib working. I just did this myself. Plotlib can be found on the Scilab contributions site. Dave -----Original Message----- From: Lester Anderson [mailto:lester at arctica1.wanadoo.co.uk] Sent: Wednesday, September 2, 2009 01:30 PM To: users at lists.scilab.org Subject: [scilab-Users] Matlab to Scilab conversion Hello I am fairly new to using Scilab (and Matlab) but need to convert some existing files. I have attached an example which I can't get to work and the image of the correct plot from Matlab. Original Matlab file: rho_m=3300; % in kg/m^3 rho_infill=2700; % in kg/m^3 E=1e11; % in kg/m/s^2 v=0.25; g=9.81; % in m/s^2 l1=1e3:2e3:50e3; % in m l2=75e3:25e3:1000e3; % in m l=[l1 l2]; % in m k=1./l; % in 1/m for Te=0:10e3:100e3 % in m D=E*Te^3/(12*(1-v^2)); phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1); semilogx(k,phi) hold on title('\Phi _e(k) for various T_e') xlabel('Wavenumber k') ylabel('\Phi _e(k)') end text(1.7e-6,0.5,'T_e=100km') text(3.6e-5,0.5,'T_e=10km') text(8e-5,0.95,'T_e=0km') Output from the conversion below: // Display mode mode(0); // Display warning for floating point exception ieee(1); rho_m = 3300; // in kg/m^3 rho_infill = 2700; // in kg/m^3 E = 100000000000; // in kg/m/s^2 v = 0.25; g = 9.81; // in m/s^2 l1 = 1000:2000:50000; // in m l2 = 75000:25000:1000000; // in m l = [l1,l2]; // in m k = 1 ./l; // in 1/m for Te = 0:10000:100000 // in m D = (E*(Te^3))/(12*(1-v^2)); phi = 1 ./((D .*(k .^4)) ./((rho_m-rho_infill)*g)+1); // !! L.14: Matlab function semilogx not yet converted, original calling sequence used. semilogx(k,phi) set(gca(),"auto_clear","off") title("\Phi _e(k) for various T_e") xlabel("Wavenumber k") ylabel("\Phi _e(k)") end; // !! L.20: Matlab function text not yet converted, original calling sequence used. text(0.0000017,0.5,"T_e=100km") // !! L.21: Matlab function text not yet converted, original calling sequence used. text(0.000036,0.5,"T_e=10km") // !! L.22: Matlab function text not yet converted, original calling sequence used. text(0.00008,0.95,"T_e=0km") Hopefully someone can see what is needed to get things working. Thanks in advance all. Lester Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at arctica1.wanadoo.co.uk Wed Sep 2 23:00:28 2009 From: lester at arctica1.wanadoo.co.uk (Lester Anderson) Date: Wed, 2 Sep 2009 22:00:28 +0100 Subject: [scilab-Users] Matlab to Scilab conversion In-Reply-To: References: Message-ID: Hello Dave Thanks for the pointer on the toolbox idea. Downloaded and have tried to install/setup on Windows Vista but can't get it to work. Think it's something to do with the path. At the moment I extracted the toolbox folder to C:\users\lester\documents\plotlib021-install I also use Windows XP but haven't got around to testing on there. I have both version 5.01 and 5.1 Tried loading the loader.sce file into Scilab: Startup execution: loading initial environment mclose: Cannot close file whose descriptor is 2: File is not active. exec('builder.sce',-1) !--error 241 File "builder.sce" does not exist or read access denied. at line 11 of exec file called by : exec("C:/Users/Lester/Documents/plotlib021-install/loader.sce"); in execstr instruction called by : Given that I am still pretty new with Scilab, it would be useful to know how the scilab plot commands could be used to generate the graphic I showed previously. Sorry if this is a basic question/problem but got to learn by asking :) I'm sure I'm missing some basic things with regards to the toolbox issue, but I thought they were pre-built and all you did was run the loader.sce file to get them into Scilab? Thanks for the assistance in advance. Lester ----- Original Message ----- From: dmcomer at dmcmicro.com To: users at lists.scilab.org Sent: Wednesday, September 02, 2009 6:50 PM Subject: Re: [scilab-Users] Matlab to Scilab conversion Lester, If you do not have the plotlib toolbox installed, I recommend it. It will handle the semilogx command without having to convert to the Scilab plot command. Not that the plot command is bad, just easier to convert. Post if yo uhave problems getting plot lib working. I just did this myself. Plotlib can be found on the Scilab contributions site. Dave -----Original Message----- From: Lester Anderson [mailto:lester at arctica1.wanadoo.co.uk] Sent: Wednesday, September 2, 2009 01:30 PM To: users at lists.scilab.org Subject: [scilab-Users] Matlab to Scilab conversion Hello I am fairly new to using Scilab (and Matlab) but need to convert some existing files. I have attached an example which I can't get to work and the image of the correct plot from Matlab. Original Matlab file: rho_m=3300; % in kg/m^3 rho_infill=2700; % in kg/m^3 E=1e11; % in kg/m/s^2 v=0.25; g=9.81; % in m/s^2 l1=1e3:2e3:50e3; % in m l2=75e3:25e3:1000e3; % in m l=[l1 l2]; % in m k=1./l; % in 1/m for Te=0:10e3:100e3 % in m D=E*Te^3/(12*(1-v^2)); phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1); semilogx(k,phi) hold on title('\Phi _e(k) for various T_e') xlabel('Wavenumber k') ylabel('\Phi _e(k)') end text(1.7e-6,0.5,'T_e=100km') text(3.6e-5,0.5,'T_e=10km') text(8e-5,0.95,'T_e=0km') Output from the conversion below: // Display mode mode(0); // Display warning for floating point exception ieee(1); rho_m = 3300; // in kg/m^3 rho_infill = 2700; // in kg/m^3 E = 100000000000; // in kg/m/s^2 v = 0.25; g = 9.81; // in m/s^2 l1 = 1000:2000:50000; // in m l2 = 75000:25000:1000000; // in m l = [l1,l2]; // in m k = 1 ./l; // in 1/m for Te = 0:10000:100000 // in m D = (E*(Te^3))/(12*(1-v^2)); phi = 1 ./((D .*(k .^4)) ./((rho_m-rho_infill)*g)+1); // !! L.14: Matlab function semilogx not yet converted, original calling sequence used. semilogx(k,phi) set(gca(),"auto_clear","off") title("\Phi _e(k) for various T_e") xlabel("Wavenumber k") ylabel("\Phi _e(k)") end; // !! L.20: Matlab function text not yet converted, original calling sequence used. text(0.0000017,0.5,"T_e=100km") // !! L.21: Matlab function text not yet converted, original calling sequence used. text(0.000036,0.5,"T_e=10km") // !! L.22: Matlab function text not yet converted, original calling sequence used. text(0.00008,0.95,"T_e=0km") Hopefully someone can see what is needed to get things working. Thanks in advance all. Lester Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Wed Sep 2 23:20:16 2009 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 02 Sep 2009 23:20:16 +0200 Subject: [scilab-Users] Matlab to Scilab conversion In-Reply-To: <257107E9F51841B3835C7F42C4040B95@Jennifer> References: <257107E9F51841B3835C7F42C4040B95@Jennifer> Message-ID: <4A9EE190.7060107@durietz.se> On 2009-09-02 19:30, Lester Anderson wrote: -------------------- > Hello > > I am fairly new to using Scilab (and Matlab) but need to convert some > existing files. I have attached an example which I can't get to work and > the image of the correct plot from Matlab. > > Original Matlab file: > > rho_m=3300; % in kg/m^3 > rho_infill=2700; % in kg/m^3 > E=1e11; % in kg/m/s^2 > v=0.25; > g=9.81; % in m/s^2 > l1=1e3:2e3:50e3; % in m > l2=75e3:25e3:1000e3; % in m > l=[l1 l2]; % in m > k=1./l; % in 1/m > > for Te=0:10e3:100e3 % in m > D=E*Te^3/(12*(1-v^2)); > phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1); > semilogx(k,phi) > hold on > title('\Phi _e(k) for various T_e') > xlabel('Wavenumber k') > ylabel('\Phi _e(k)') > end > text(1.7e-6,0.5,'T_e=100km') > text(3.6e-5,0.5,'T_e=10km') > text(8e-5,0.95,'T_e=0km') > > Output from the conversion below: > > // Display mode > mode(0); > > // Display warning for floating point exception > ieee(1); > > rho_m = 3300; > // in kg/m^3 > rho_infill = 2700; > // in kg/m^3 > E = 100000000000; > // in kg/m/s^2 > v = 0.25; > g = 9.81; > // in m/s^2 > l1 = 1000:2000:50000; > // in m > l2 = 75000:25000:1000000; > // in m > l = [l1,l2]; > // in m > k = 1 ./l; > // in 1/m > > for Te = 0:10000:100000 > // in m > D = (E*(Te^3))/(12*(1-v^2)); > phi = 1 ./((D .*(k .^4)) ./((rho_m-rho_infill)*g)+1); > // !! L.14: Matlab function semilogx not yet converted, original > calling sequence used. > semilogx(k,phi) > set(gca(),"auto_clear","off") > title("\Phi _e(k) for various T_e") > xlabel("Wavenumber k") > ylabel("\Phi _e(k)") > end; > // !! L.20: Matlab function text not yet converted, original calling > sequence used. > text(0.0000017,0.5,"T_e=100km") > // !! L.21: Matlab function text not yet converted, original calling > sequence used. > text(0.000036,0.5,"T_e=10km") > // !! L.22: Matlab function text not yet converted, original calling > sequence used. > text(0.00008,0.95,"T_e=0km") > > Hopefully someone can see what is needed to get things working. Thanks > in advance all. > > Lester Anderson You have to change "%" to "//" for comments! Regards Stefan From dmcomer at dmcmicro.com Thu Sep 3 00:35:11 2009 From: dmcomer at dmcmicro.com (dmcomer at dmcmicro.com) Date: Wed, 02 Sep 2009 22:35:11 +0000 Subject: [scilab-Users] Matlab to Scilab conversion Message-ID: Lester, I can't speak for Vista (I unintalled Vista a year ago due to distain for the OS). However, under XP, here's what I did (I'm using Scilab 5.1.1 but any 5.x should work: 1) Under C:\Program Files\scilab-5.1.1\contrib I extracted the contents of the plotlib zip file and renamed the extracted folder to "plotlib021". Note that if you use the Windows extractor, you end up with an intermediate folder and may need to move the contents "up" one folder so you have, under "plotlib021", folders "help", "jar", "macros", "man" and a few files to go with the rest. 2) In the path C:\Documents and Settings\\Application Data\Scilab\scilab-5.1.1 where "" is your Windows XP id, I have created the Scilab startup file .scilab. The Scilab documentation is somewhat confusing about the proper startup file naming convention for Windows under Scilab 5.x (I think this is the 4.x convention that was kept in the 5.x version and the developers are moving to an XML based startup file; perhaps the documentation hasn't quite caught up or I missed that discussion. That said, ".scilab" worked for me. Note also that you cannot simply use Windows file manager to create this file. File manager does not allow you to create file with and extention only. I had to use a DOS shell. 3) Inside the file .scilab I place the following: exec "C:\Program Files\scilab-5.1.1\contrib\plotlib021\loader.sce" Before you can use plotlib, you have to execute the file C:\Program Files\scilab-5.1.1\contrib\plotlib021\builder.sce as described in the plotlib documentation. Once I did the above, everytime I start Scilab, I get the message: "loading plotlib version 0.21" and I'm good to go. I hope this helps, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.smith1 at freenet.de Thu Sep 3 09:02:53 2009 From: james.smith1 at freenet.de (james.smith1 at freenet.de) Date: Thu, 03 Sep 2009 09:02:53 +0200 Subject: contours: color and type of line Message-ID: hi, is it possible to change the color of the contour lines on a 3D plot (setting all them to red for instance); moreover, those iso-lines are dashed; is it possible to get contours represented as solid lines instead of dashed lines ? and even to change the thickness of the contour lines ? thanks for the help, regards, Laurent Unbegrenzter Speicher, Top-Spamschutz, 120 SMS und eigene E-MailDomain inkl. http://office.freenet.de/dienste/emailoffice/produktuebersicht/power/mail/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Sep 3 11:39:13 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 03 Sep 2009 11:39:13 +0200 Subject: [scilab-Users] Matlab to Scilab conversion In-Reply-To: References: Message-ID: <4A9F8EC1.90404@utc.fr> Hi, before launching loader.sce, you should have run builder.sce once (for all). The following commands should work --> cd plotlib021-install --> exec builder.sce then you can issue a --> exec loader.sce to load the toolbox. If you need to load the plotlib each time you launch Scilab, edit your .scilab startup script : scipad(SCIHOME+"/.scilab") and add the following line therein : exec path/plotlib021-install/loade.sce (replace "path" with the actual path to "plotlib021-install") S. Lester Anderson a ?crit : > Hello Dave > > Thanks for the pointer on the toolbox idea. Downloaded and have tried > to install/setup on Windows Vista but can't get it to work. Think it's > something to do with the path. At the moment I extracted the toolbox > folder to C:\users\lester\documents\plotlib021-install I also use > Windows XP but haven't got around to testing on there. I have both > version 5.01 and 5.1 > > Tried loading the loader.sce file into Scilab: > > Startup execution: > loading initial environment > mclose: Cannot close file whose descriptor is 2: File is not active. > exec('builder.sce',-1) > !--error 241 > File "builder.sce" does not exist or read access denied. > > at line 11 of exec file called by : > exec("C:/Users/Lester/Documents/plotlib021-install/loader.sce"); > in execstr instruction called by : > > Given that I am still pretty new with Scilab, it would be useful to > know how the scilab plot commands could be used to generate the > graphic I showed previously. > > Sorry if this is a basic question/problem but got to learn by asking > :) I'm sure I'm missing some basic things with regards to the toolbox > issue, but I thought they were pre-built and all you did was run the > loader.sce file to get them into Scilab? > > Thanks for the assistance in advance. > > Lester > > > > ----- Original Message ----- > *From:* dmcomer at dmcmicro.com > *To:* users at lists.scilab.org > *Sent:* Wednesday, September 02, 2009 6:50 PM > *Subject:* Re: [scilab-Users] Matlab to Scilab conversion > > Lester, > > If you do not have the plotlib toolbox installed, I recommend it. > It will handle the semilogx command > without having to convert to the Scilab plot command. Not that the > plot command is bad, just easier > to convert. Post if yo uhave problems getting plot lib working. I > just did this myself. Plotlib can be found > on the Scilab contributions site. > > Dave > > -----Original Message----- > *From:* Lester Anderson [mailto:lester at arctica1.wanadoo.co.uk] > *Sent:* Wednesday, September 2, 2009 01:30 PM > *To:* users at lists.scilab.org > *Subject:* [scilab-Users] Matlab to Scilab conversion > > Hello > > I am fairly new to using Scilab (and Matlab) but need to > convert some existing files. I have attached an example which > I can't get to work and the image of the correct plot from Matlab. > > Original Matlab file: > > rho_m=3300; % in kg/m^3 > rho_infill=2700; % in kg/m^3 > E=1e11; % in kg/m/s^2 > v=0.25; > g=9.81; % in m/s^2 > l1=1e3:2e3:50e3; % in m > l2=75e3:25e3:1000e3; % in m > l=[l1 l2]; % in m > k=1./l; % in 1/m > > for Te=0:10e3:100e3 % in m > D=E*Te^3/(12*(1-v^2)); > phi=1./((D.*k.^4./((rho_m-rho_infill)*g))+1); > semilogx(k,phi) > hold on > title('\Phi _e(k) for various T_e') > xlabel('Wavenumber k') > ylabel('\Phi _e(k)') > end > text(1.7e-6,0.5,'T_e=100km') > text(3.6e-5,0.5,'T_e=10km') > text(8e-5,0.95,'T_e=0km') > > Output from the conversion below: > > // Display mode > mode(0); > > // Display warning for floating point exception > ieee(1); > > rho_m = 3300; > // in kg/m^3 > rho_infill = 2700; > // in kg/m^3 > E = 100000000000; > // in kg/m/s^2 > v = 0.25; > g = 9.81; > // in m/s^2 > l1 = 1000:2000:50000; > // in m > l2 = 75000:25000:1000000; > // in m > l = [l1,l2]; > // in m > k = 1 ./l; > // in 1/m > > for Te = 0:10000:100000 > // in m > D = (E*(Te^3))/(12*(1-v^2)); > phi = 1 ./((D .*(k .^4)) ./((rho_m-rho_infill)*g)+1); > // !! L.14: Matlab function semilogx not yet converted, > original calling sequence used. > semilogx(k,phi) > set(gca(),"auto_clear","off") > title("\Phi _e(k) for various T_e") > xlabel("Wavenumber k") > ylabel("\Phi _e(k)") > end; > // !! L.20: Matlab function text not yet converted, original > calling sequence used. > text(0.0000017,0.5,"T_e=100km") > // !! L.21: Matlab function text not yet converted, original > calling sequence used. > text(0.000036,0.5,"T_e=10km") > // !! L.22: Matlab function text not yet converted, original > calling sequence used. > text(0.00008,0.95,"T_e=0km") > > Hopefully someone can see what is needed to get things > working. Thanks in advance all. > > Lester Anderson > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Thu Sep 3 13:39:48 2009 From: yann.collette at scilab.org (Yann Collette) Date: Thu, 03 Sep 2009 13:39:48 +0200 Subject: [scilab-Users] Matlab to Scilab conversion In-Reply-To: <257107E9F51841B3835C7F42C4040B95@Jennifer> References: <257107E9F51841B3835C7F42C4040B95@Jennifer> Message-ID: <4A9FAB04.5010307@scilab.org> Hello, Here is the converted script: rho_m=3300; // in kg/m^3 rho_infill=2700; // in kg/m^3 E=1e11; // in kg/m/s^2 v=0.25; g=9.81; // in m/s^2 l1=1e3:2e3:50e3; // in m l2=75e3:25e3:1000e3; // in m l=[l1 l2]; // in m k=(1)./l; // in 1/m for Te=0:10e3:100e3 // in m D=E*Te^3/(12*(1-v^2)); phi=(1)./(((D.*k.^4)./((rho_m-rho_infill)*g))+1); plot2d(k,phi); a=gca(); a.log_flags='lnn'; xtitle('\Phi _e(k) for various T_e','Wavenumber k','Phi e(k)'); end xstring(1.7e-6,0.5,'T_e=100km') xstring(3.6e-5,0.5,'T_e=10km') xstring(8e-5,0.95,'T_e=0km') One thing you must be careful on: the ./ operator: - 1./l means (1.0)/l - you must write (1)./l YC From yann.collette at scilab.org Thu Sep 3 13:46:29 2009 From: yann.collette at scilab.org (Yann Collette) Date: Thu, 03 Sep 2009 13:46:29 +0200 Subject: [scilab-Users] contours: color and type of line In-Reply-To: References: Message-ID: <4A9FAC95.50201@scilab.org> james.smith1 at freenet.de a ?crit : > > hi, > > > > is it possible to change the color of the contour lines on a 3D plot > (setting all them to red for instance); > > moreover, those iso-lines are dashed; is it possible to get contours > represented as solid lines instead of dashed lines ? > > and even to change the thickness of the contour lines ? > > > > thanks for the help, > > > > regards, > > Laurent > > > -- > I wrote a small findallobj function First, plot a contour: contour(); h = gcf(); res = findallobj(res,'type','Polyline'); for i=1:length(res) res(i).thickness = 2; // To change the thickness of the contour lines res(i).line_style = 2; // To change the shape of the line end YC -- ----------------------------- Yann COLLETTE Software Development Engineer ----------------------------- The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.57.82 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: findallobj.sci URL: From antonelli1970 at gmail.com Thu Sep 3 18:09:41 2009 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Thu, 03 Sep 2009 18:09:41 +0200 Subject: bug in plot3d2? Message-ID: <4A9FEA45.9040000@gmail.com> Hi, there is a strange behavior of the color feature using plot3d2. When I use the following code: h=gca(); h.axes_reverse(3)="on"; within an existing graphic made with plot3d2 the former color settings are lost. To reproduce it just add those two lines to the code of the help: // code from help plo3d2 u = linspace(-%pi/2,%pi/2,40); v = linspace(0,2*%pi,20); X = cos(u)'*cos(v); Y = cos(u)'*sin(v); Z = sin(u)'*ones(v); plot3d2(X,Y,Z); e=gce(); e.color_mode=5; // change color //end code from help plot3d2 h=gca(); h.axes_reverse(3)="on"; Best, Gianluca From pierre.lando at scilab.org Fri Sep 4 09:42:20 2009 From: pierre.lando at scilab.org (Pierre LANDO) Date: Fri, 04 Sep 2009 09:42:20 +0200 Subject: [scilab-Users] bug in plot3d2? In-Reply-To: <4A9FEA45.9040000@gmail.com> References: <4A9FEA45.9040000@gmail.com> Message-ID: <4AA0C4DC.5010504@scilab.org> Gianluca Antonelli a ?crit : > Hi, > > there is a strange behavior of the color feature using plot3d2. > > When I use the following code: > > h=gca(); > h.axes_reverse(3)="on"; Hi, Indeed, it's a bug. The back_color is used instead of the front color. I open it : http://bugzilla.scilab.org/show_bug.cgi?id=4773 -- ------------------------- Pierre LANDO Software Development Engineer ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.58.21 From wkassens at libello.com Fri Sep 4 16:58:30 2009 From: wkassens at libello.com (Werner Kassens) Date: Fri, 04 Sep 2009 16:58:30 +0200 Subject: Int4Sci Message-ID: <4AA12B16.5000704@libello.com> Hi, i'd like to use Int4Sci-1.0 but when i run "exec builder.sce" i get this: -->exec(I4S_lib+"construct_bib.sce"); !--error 4 Undefined variable: cc at line 55 of function ilib_gen_Make called by : 4S_LDFLAG,I4S_INC,"") line 192 of exec file called by : exec(I4S_lib+"construct_bib.sce"); line 72 of exec file called by : exec builder.sce any simple remedy? Werner From sylvestre.ledru at scilab.org Tue Sep 8 21:58:08 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 08 Sep 2009 21:58:08 +0200 Subject: [scilab-Users] Int4Sci In-Reply-To: <4AA12B16.5000704@libello.com> References: <4AA12B16.5000704@libello.com> Message-ID: <1252439888.16197.3404.camel@zlarin> Le vendredi 04 septembre 2009 ? 16:58 +0200, Werner Kassens a ?crit : > Hi, > i'd like to use Int4Sci-1.0 but when i run "exec builder.sce" i get this: > > -->exec(I4S_lib+"construct_bib.sce"); > !--error 4 > Undefined variable: cc I don't know if they ported their work under Scilab 5.X Maybe there are some modifications to do. > at line 55 of function ilib_gen_Make called by : > 4S_LDFLAG,I4S_INC,"") > line 192 of exec file called by : > exec(I4S_lib+"construct_bib.sce"); > line 72 of exec file called by : > exec builder.sce > > any simple remedy? You should ask to the authors: int4sci at list-sop.inria.fr http://www-sop.inria.fr/coprin/logiciels/Int4Sci/ Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From Romain.Cotte at USherbrooke.ca Wed Sep 9 00:21:13 2009 From: Romain.Cotte at USherbrooke.ca (Romain Cotte) Date: Tue, 8 Sep 2009 18:21:13 -0400 Subject: Link with Scilab In-Reply-To: <1252444176.4aa6c81059eec@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> Message-ID: <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> Hello, I would like to make a link with fortran code but which needs a C library. I can obtain an executable a.out by this way : gcc -c lib1.c lib2.f subroutine.f I tried : l=ilib_for_link('rosen',['lib1.o','lib2.o','subroutine.o'], [],'f',PWD+'/Makefile'); (gcc -c lib1.c -o lib1.o) but i get errors which are only warnings with gcc : !adStack.c:351: warning: format '%li' expects type 'long int', but argument 4 has type 'int' ! !adBuffer.c:41: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.c:89: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.c:115: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.c:118: error: extra brace group at end of initializer ! !adBuffer.c:118: error: (near initialization for 'adi8fbuf_') ! !adBuffer.c:118: warning: excess elements in struct initializer ! !adBuffer.c:118: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.c:118: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.c:151: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.c:152: warning: excess elements in struct initializer ! !adBuffer.c:152: warning: (near initialization for 'mmcomtraffic_') ! !adBuffer.c:152: warning: excess elements in struct initializer ! !adBuffer.c:152: warning: (near initialization for 'mmcomtraffic_') ! !adBuffer.c:404: error: expected ')' before '*' token ! !adBuffer.c:427: error: expected ')' before '*' token ! !adBuffer.c:451: error: expected ')' before '*' token ! !adBuffer.c: In function 'addftraffic_': ! !adBuffer.c:894: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.c:907: error: 'struct mmcomtraffic_1_' has no member named 'mmftrafficm' ! !adBuffer.c:908: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.c: In function 'printtraffic_': ! !adBuffer.c:924: error: 'longint' undeclared (first use in this function) ! !adBuffer.c:924: error: (Each undeclared identifier is reported only once ! !adBuffer.c:924: error: for each function it appears in.) ! !adBuffer.c:924: error: expected ';' before 'i8__1' ! !adBuffer.c:939: error: 'struct mmcomtraffic_1_' has no member named 'mmftrafficm' ! !adBuffer.c:942: error: 'i8__1' undeclared (first use in this function) ! !adBuffer.c:942: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.c: In function 'printbuffertop_': ! !adBuffer.c:991: error: 'struct adi8fbuf_1_' has no member named 'adi8ibuf' ! !adBuffer.c: In function 'smallstacksize_': ! !adBuffer.c:1043: error: 'struct adi8fbuf_1_' has no member named 'adi8ibuf' I wonder if it's possible to modify options for compilation or if there is an another way. Makefile : OBJS = rosenf.o OTHERLIBS = LIBRARY = librosenf include $(SCIDIR)/Makefile.incl CFLAGS = $(CC_OPTIONS) FFLAGS = $(FC_OPTIONS) EXTRA_LDFLAGS = include $(SCIDIR)/config/Makeso.incl version scilab 5.1.1 From sylvestre.ledru at scilab.org Wed Sep 9 00:37:01 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 09 Sep 2009 00:37:01 +0200 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> Message-ID: <1252449421.16197.4091.camel@zlarin> Le mardi 08 septembre 2009 ? 18:21 -0400, Romain Cotte a ?crit : > > > > > Hello, > > I would like to make a link with fortran code but which needs a C > library. I can obtain an executable a.out by this way : > > gcc -c lib1.c lib2.f subroutine.f > > I tried : l=ilib_for_link('rosen',['lib1.o','lib2.o','subroutine.o'], > [],'f',PWD+'/Makefile'); > (gcc -c lib1.c -o lib1.o) If you are using scilab >= 5.0, please use actual file name (.c instead of .o). Makefile are no longer necessary (they are generated on the fly). > but i get errors which are only warnings with gcc : > > !adStack.c:351: warning: format '%li' expects type 'long int', but > argument 4 has type 'int' ! > !adBuffer.c:41: error: expected specifier-qualifier-list before > 'longint' ! Looks like a missing include. By the way, I cannot see any references to adBuffer.c or adStack.c in your command upper (ilib_for_link). > I wonder if it's possible to modify options for compilation or if > there is an another way. > Makefile : > > OBJS = rosenf.o > OTHERLIBS = > LIBRARY = librosenf > include $(SCIDIR)/Makefile.incl > CFLAGS = $(CC_OPTIONS) > FFLAGS = $(FC_OPTIONS) > EXTRA_LDFLAGS = > include $(SCIDIR)/config/Makeso.incl Where did you find this makefile ? This way of using dynamic link has been deprecated a while ago. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From Romain.Cotte at USherbrooke.ca Wed Sep 9 18:53:48 2009 From: Romain.Cotte at USherbrooke.ca (Romain Cotte) Date: Wed, 9 Sep 2009 12:53:48 -0400 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252449421.16197.4091.camel@zlarin> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> Message-ID: <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> Thanks for help. It was only to explain in general case but actually, here, lib1.o is for adStack.o, lib2.o for adBuffer.o, subroutine.o for rosenf_b.o. I also tried to call l=ilib_for_link('rosenf',['adStack.c','adBuffer.f','rosenf_b.f'],[],'f'); It uses the right Makefile in TMPDIR however i have the same errors and moreover : !perl: warning: Setting locale failed. !perl: warning: Please check that your locale settings: ! LANGUAGE = "", ! LC_ALL = (unset), ! LC_NUMERIC = "C", ! LC_MESSAGES = "fr_CA", ! LANG = "C" ! are supported and installed on your system. !perl: warning: Falling back to the standard locale ("C"). ! characters: ! BLOCK DATA characters: ! pushcharacter: !perl: warning: Setting locale failed. !perl: warning: Please check that your locale settings: ! LANGUAGE = "", ! LC_ALL = (unset), ! LC_MESSAGES = "fr_CA", ! LC_NUMERIC = "C", ! LANG = "C" ! are supported and installed on your system. !perl: warning: Falling back to the standard locale ("C"). ! lookcharacter: ! popcharacter: Quoting Sylvestre Ledru : > Le mardi 08 septembre 2009 ?? 18:21 -0400, Romain Cotte a ??crit : > > > > > > > > > > Hello, > > > > I would like to make a link with fortran code but which needs a C > > library. I can obtain an executable a.out by this way : > > > > gcc -c lib1.c lib2.f subroutine.f > > > > I tried : l=ilib_for_link('rosen',['lib1.o','lib2.o','subroutine.o'], > > [],'f',PWD+'/Makefile'); > > (gcc -c lib1.c -o lib1.o) > If you are using scilab >= 5.0, please use actual file name (.c instead > of .o). > Makefile are no longer necessary (they are generated on the fly). > > > but i get errors which are only warnings with gcc : > > > > !adStack.c:351: warning: format '%li' expects type 'long int', but > > argument 4 has type 'int' ! > > !adBuffer.c:41: error: expected specifier-qualifier-list before > > 'longint' ! > Looks like a missing include. > By the way, I cannot see any references to adBuffer.c or adStack.c in > your command upper (ilib_for_link). > > > I wonder if it's possible to modify options for compilation or if > > there is an another way. > > Makefile : > > > > OBJS = rosenf.o > > OTHERLIBS = > > LIBRARY = librosenf > > include $(SCIDIR)/Makefile.incl > > CFLAGS = $(CC_OPTIONS) > > FFLAGS = $(FC_OPTIONS) > > EXTRA_LDFLAGS = > > include $(SCIDIR)/config/Makeso.incl > Where did you find this makefile ? > This way of using dynamic link has been deprecated a while ago. > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > > From sylvestre.ledru at scilab.org Thu Sep 10 08:57:41 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 10 Sep 2009 08:57:41 +0200 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> Message-ID: <1252565861.16197.11399.camel@zlarin> Le mercredi 09 septembre 2009 ? 12:53 -0400, Romain Cotte a ?crit : > Thanks for help. You are welcome. > It was only to explain in general case but actually, here, lib1.o is for > adStack.o, lib2.o for adBuffer.o, subroutine.o for rosenf_b.o. OK, but it is much easier for us to help you if we have the actual commands. > > I also tried to call > l=ilib_for_link('rosenf',['adStack.c','adBuffer.f','rosenf_b.f'],[],'f'); > > > It uses the right Makefile in TMPDIR however i have the same errors and moreover It is just some warnings about localization. No big deal. Do you have any real error messages ? Thanks Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From pgrandeau at wanadoo.fr Thu Sep 10 15:04:48 2009 From: pgrandeau at wanadoo.fr (Pascal Grandeau) Date: Thu, 10 Sep 2009 15:04:48 +0200 Subject: Filenames with accent Message-ID: <4AA8F970.4060605@wanadoo.fr> I have a problem with the filenames and the directories. I am french and I have a directory with an accent : "C:\...\donn?es" and when I try to change to this directory with cd or chdir, Scilab shows an error. It is the same thing with a file when I want to load it if it has an accent. Is there a mean to do that without changing the names of my directories and files ? Thank you. Pascal Grandeau From allan.cornet at scilab.org Thu Sep 10 15:17:19 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 10 Sep 2009 15:17:19 +0200 Subject: [scilab-Users] Filenames with accent In-Reply-To: <4AA8F970.4060605@wanadoo.fr> References: <4AA8F970.4060605@wanadoo.fr> Message-ID: <000a01ca3219$066fc580$134f5080$@cornet@scilab.org> Hi, This trouble is fixed in nightly build (master - 5.2) http://www.scilab.org/download/index_download.php?page=nightly_builds Best Regards Allan CORNET -----Message d'origine----- De?: Pascal Grandeau [mailto:pgrandeau at wanadoo.fr] Envoy??: jeudi 10 septembre 2009 15:05 ??: users at lists.scilab.org Objet?: [scilab-Users] Filenames with accent I have a problem with the filenames and the directories. I am french and I have a directory with an accent : "C:\...\donn?es" and when I try to change to this directory with cd or chdir, Scilab shows an error. It is the same thing with a file when I want to load it if it has an accent. Is there a mean to do that without changing the names of my directories and files ? Thank you. Pascal Grandeau -- ============================================== Allan CORNET Software Development Engineer ------ Consortium Scilab Fondation DIGITEO Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex B?timent 23 - Bureau 10 ------ Mailto : allan.cornet at scilab.org ------ http://www.scilab.org http://www.digiteo.fr ============================================== From Romain.Cotte at USherbrooke.ca Thu Sep 10 17:19:22 2009 From: Romain.Cotte at USherbrooke.ca (Romain Cotte) Date: Thu, 10 Sep 2009 11:19:22 -0400 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252565861.16197.11399.camel@zlarin> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> Message-ID: <1252595962.4aa918fac0fc2@www.usherbrooke.ca> > > It uses the right Makefile in TMPDIR however i have the same errors and > > moreover > It is just some warnings about localization. No big deal. > Do you have any real error messages ? Yes, the same. (It works correctly with gcc) !adBuffer.f:27: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.f:75: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.f:101: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.f:104: error: extra brace group at end of initializer ! !adBuffer.f:104: error: (near initialization for 'adi8fbuf_') ! !adBuffer.f:104: warning: excess elements in struct initializer ! !adBuffer.f:104: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.f:104: warning: excess elements in struct initializer ! !adBuffer.f:104: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.f:104: warning: excess elements in struct initializer ! !adBuffer.f:104: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.f:104: warning: excess elements in struct initializer ! !adBuffer.f:104: warning: (near initialization for 'adi8fbuf_') ! !adBuffer.f:137: error: expected specifier-qualifier-list before 'longint' ! !adBuffer.f:138: warning: excess elements in struct initializer ! !adBuffer.f:138: warning: (near initialization for 'mmcomtraffic_') ! !adBuffer.f:138: warning: excess elements in struct initializer ! !adBuffer.f:138: warning: (near initialization for 'mmcomtraffic_') ! !adBuffer.f:245: error: expected ')' before '*' token ! !adBuffer.f:276: error: expected ')' before '*' token ! !adBuffer.f:299: error: expected ')' before '*' token ! !adBuffer.f: In function 'addftraffic_': ! !adBuffer.f:728: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:729: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:730: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:731: error: 'struct mmcomtraffic_1_' has no member named 'mmftrafficm' ! !adBuffer.f:732: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:737: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:738: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f:739: error: 'struct mmcomtraffic_1_' has no member named 'mmftrafficm' ! !adBuffer.f:740: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f: In function 'printtraffic_': ! !adBuffer.f:756: error: 'longint' undeclared (first use in this function) ! !adBuffer.f:756: error: (Each undeclared identifier is reported only once ! !adBuffer.f:756: error: for each function it appears in.) ! !adBuffer.f:756: error: expected ';' before 'i8__1' ! !adBuffer.f:753: error: 'struct mmcomtraffic_1_' has no member named 'mmftrafficm' ! !adBuffer.f:753: error: 'i8__1' undeclared (first use in this function) ! !adBuffer.f:753: error: 'struct mmcomtraffic_1_' has no member named 'mmftraffic' ! !adBuffer.f: In function 'printbuffertop_': ! !adBuffer.f:832: error: 'struct adi8fbuf_1_' has no member named 'adi8ibuf' ! !adBuffer.f: In function 'smallstacksize_': ! !adBuffer.f:917: error: 'struct adi8fbuf_1_' has no member named 'adi8ibuf' ! !/usr/bin/f77: aborting compilation ! !make: *** [adBuffer.lo] Error 1 ! From sylvestre.ledru at scilab.org Thu Sep 10 18:08:11 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 10 Sep 2009 18:08:11 +0200 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252595962.4aa918fac0fc2@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> <1252595962.4aa918fac0fc2@www.usherbrooke.ca> Message-ID: <1252598891.8710.5597.camel@korcula.inria.fr> Le jeudi 10 septembre 2009 ? 11:19 -0400, Romain Cotte a ?crit : > > > It uses the right Makefile in TMPDIR however i have the same errors and > > > moreover > > It is just some warnings about localization. No big deal. > > Do you have any real error messages ? > > Yes, the same. (It works correctly with gcc) It is possible to see the code ? Thanks Sylvestre From Romain.Cotte at USherbrooke.ca Thu Sep 10 19:13:03 2009 From: Romain.Cotte at USherbrooke.ca (Romain Cotte) Date: Thu, 10 Sep 2009 13:13:03 -0400 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252598891.8710.5597.camel@korcula.inria.fr> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> <1252595962.4aa918fac0fc2@www.usherbrooke.ca> <1252598891.8710.5597.camel@korcula.inria.fr> Message-ID: <1252602783.4aa9339fc6926@www.usherbrooke.ca> > It is possible to see the code ? > Sure. Compilation with gfortran in fact : gfortran adStack.c adBuffer.f rosenf_b.f test.f -------------- next part -------------- A non-text attachment was scrubbed... Name: Code.tar.gz Type: application/gzip Size: 7891 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Fri Sep 11 23:32:33 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 11 Sep 2009 23:32:33 +0200 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: References: Message-ID: <1252704753.5802.3551.camel@zlarin> Le mardi 25 ao?t 2009 ? 11:20 +0530, Sumit Adhikari a ?crit : > Hello, > Is there any way to integrate scilab-4.2.1 in 64-bit RHEL. Yep, it should work but 4.X family is no longer supported. > I want to use Scilab macros in my C++ Design. > When I try, I get some library errors! What kind of errors ? Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sylvestre.ledru at scilab.org Sun Sep 13 12:47:54 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 13 Sep 2009 12:47:54 +0200 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252602783.4aa9339fc6926@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> <1252595962.4aa918fac0fc2@www.usherbrooke.ca> <1252598891.8710.5597.camel@korcula.inria.fr> <1252602783.4aa9339fc6926@www.usherbrooke.ca> Message-ID: <1252838874.5802.10320.camel@zlarin> Le jeudi 10 septembre 2009 ? 13:13 -0400, Romain Cotte a ?crit : > > It is possible to see the code ? > > > > > Sure. Compilation with gfortran in fact : > gfortran adStack.c adBuffer.f rosenf_b.f test.f Thanks for the example. However, tested with Scilab 5.1.1, it works fine for me. -->l=ilib_for_link('rosenf',['adStack.c','adBuffer.f','rosenf_b.f'],[],'f'); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy adStack.c to TMPDIR ilib_gen_Make: Copy adBuffer.f to TMPDIR ilib_gen_Make: Copy rosenf_b.f to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile --> I guess it is more related to your computer. A way to be able to fix it more easily is: * in Scilab, type disp(TMPDIR) * in a terminal, go in this directory * when you had an error, you should have get a (long) command line starting with make CFLAGS=... copy and paste this command in the TMPDIR directory you may get some better feedbacks which will explain you what is the actual error. Sylvestre > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sumit.adhikari at gmail.com Mon Sep 14 08:43:49 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 14 Sep 2009 12:13:49 +0530 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: <1252704753.5802.3551.camel@zlarin> References: <1252704753.5802.3551.camel@zlarin> Message-ID: I am getting errors on all this non-existing objects! linking g77: ../../../routines/default/FTables.o: No such file or directory g77: ../../../routines/default/Ex-colnew.o: No such file or directory g77: ../../../routines/default/Ex-corr.o: No such file or directory g77: ../../../routines/default/Ex-feval.o: No such file or directory g77: ../../../routines/default/Ex-fsolve.o: No such file or directory g77: ../../../routines/default/Ex-lsqrsolve.o: No such file or directory g77: ../../../routines/default/Ex-impl.o: No such file or directory g77: ../../../routines/default/Ex-intg.o: No such file or directory g77: ../../../routines/default/Ex-int2d.o: No such file or directory g77: ../../../routines/default/Ex-int3d.o: No such file or directory g77: ../../../routines/default/Ex-ode-more.o: No such file or directory g77: ../../../routines/default/Ex-ode.o: No such file or directory g77: ../../../routines/default/Ex-odedc.o: No such file or directory g77: ../../../routines/default/Ex-optim.o: No such file or directory g77: ../../../routines/default/Ex-schur.o: No such file or directory g77: ../../../routines/default/Ex-fort.o: No such file or directory g77: ../../../routines/default/Ex-dasrt.o: No such file or directory g77: ../../../routines/default/Ex-dassl.o: No such file or directory g77: ../../../routines/default/Ex-fbutn.o: No such file or directory g77: ../../../routines/default/matusr.o: No such file or directory g77: ../../../routines/default/matus2.o: No such file or directory g77: ../../../routines/default/Funtab.o: No such file or directory g77: ../../../routines/default/msgstxt.o: No such file or directory g77: ../../../routines/default/scimem.o: No such file or directory g77: ../../../routines/default/callinterf.o: No such file or directory g77: ../../../routines/default/mexlib.o: No such file or directory g77: ../../../libs/libXaw3d.a: No such file or directory g77: ../../../libs/libXmu.a: No such file or directory g77: ../../../libs/system.a: No such file or directory g77: ../../../libs/console.a: No such file or directory g77: ../../../libs/interf.a: No such file or directory g77: ../../../libs/system2.a: No such file or directory g77: ../../../libs/optim.a: No such file or directory g77: ../../../libs/scicos.a: No such file or directory g77: ../../../libs/integ.a: No such file or directory g77: ../../../libs/control.a: No such file or directory g77: ../../../libs/signal.a: No such file or directory g77: ../../../libs/poly.a: No such file or directory g77: ../../../libs/calelm.a: No such file or directory g77: ../../../libs/lapack.a: No such file or directory g77: ../../../libs/graphics.a: No such file or directory g77: ../../../libs/sparse.a: No such file or directory g77: ../../../libs/metanet.a: No such file or directory g77: ../../../libs/os_specific.a: No such file or directory g77: ../../../libs/gd.a: No such file or directory g77: ../../../libs/intersci.a: No such file or directory g77: ../../../libs/xsci.a: No such file or directory g77: ../../../libs/graphics.a: No such file or directory g77: ../../../libs/menusX.a: No such file or directory g77: ../../../libs/fileio.a: No such file or directory g77: ../../../libs/dcd.a: No such file or directory g77: ../../../libs/rand.a: No such file or directory g77: ../../../libs/blas.a: No such file or directory g77: ../../../libs/int.a: No such file or directory g77: ../../../libs/slicot.a: No such file or directory g77: ../../../libs/arpack.a: No such file or directory g77: ../../../libs/wintools.a: No such file or directory g77: ../../../libs/pvm.a: No such file or directory g77: ../../../libs/tclsci.a: No such file or directory g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libgpvm3.a: No such file or directory g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libpvm3.a: No such file or directory g77: ../../../libs/libXaw3d.a: No such file or directory g77: ../../../libs/libXmu.a: No such file or directory make[1]: *** [myprog] Error 1 make[1]: Leaving directory `/fshy01/uxhyu/sa1/tools/scilab-4.1.2/examples/callsci/callsciC++' make: *** [all] Error 2 On Sat, Sep 12, 2009 at 3:02 AM, Sylvestre Ledru wrote: > Le mardi 25 ao?t 2009 ? 11:20 +0530, Sumit Adhikari a ?crit : > > Hello, > > Is there any way to integrate scilab-4.2.1 in 64-bit RHEL. > Yep, it should work but 4.X family is no longer supported. > > > I want to use Scilab macros in my C++ Design. > > When I try, I get some library errors! > What kind of errors ? > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Sep 14 09:43:50 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 14 Sep 2009 09:43:50 +0200 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: References: <1252704753.5802.3551.camel@zlarin> Message-ID: <1252914230.8710.23611.camel@korcula.inria.fr> Le lundi 14 septembre 2009 ? 12:13 +0530, Sumit Adhikari a ?crit : > I am getting errors on all this non-existing objects! > > linking > g77: ../../../routines/default/FTables.o: No such file or directory [...] > g77: ../../../libs/pvm.a: No such file or directory > g77: ../../../libs/tclsci.a: No such file or directory > g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libgpvm3.a: > No such file or directory > g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libpvm3.a: No > such file or directory > g77: ../../../libs/libXaw3d.a: No such file or directory > g77: ../../../libs/libXmu.a: No such file or directory > make[1]: *** [myprog] Error 1 > make[1]: Leaving directory > `/fshy01/uxhyu/sa1/tools/scilab-4.1.2/examples/callsci/callsciC++' > make: *** [all] Error 2 Well, I cannot help you here... Scilab 5 family has been completed rewrite on the build process and is now much more appropriate for such operations ... (shared lib, real build system, etc). Sylvestre From sumit.adhikari at gmail.com Mon Sep 14 09:54:40 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 14 Sep 2009 13:24:40 +0530 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: <1252914230.8710.23611.camel@korcula.inria.fr> References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> Message-ID: Hmm, I know. But my limitation is that my systemc dosent have proper glibc version and for that It needs to be upgraded. :( Thanks anyway. Regards, Sumit On Mon, Sep 14, 2009 at 1:13 PM, Sylvestre Ledru wrote: > Le lundi 14 septembre 2009 ? 12:13 +0530, Sumit Adhikari a ?crit : > > I am getting errors on all this non-existing objects! > > > > linking > > g77: ../../../routines/default/FTables.o: No such file or directory > [...] > > g77: ../../../libs/pvm.a: No such file or directory > > g77: ../../../libs/tclsci.a: No such file or directory > > g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libgpvm3.a: > > No such file or directory > > g77: /fshy01/uxhyu/sa1/tools/scilab-4.1.2/pvm3/lib/LINUX/libpvm3.a: No > > such file or directory > > g77: ../../../libs/libXaw3d.a: No such file or directory > > g77: ../../../libs/libXmu.a: No such file or directory > > make[1]: *** [myprog] Error 1 > > make[1]: Leaving directory > > `/fshy01/uxhyu/sa1/tools/scilab-4.1.2/examples/callsci/callsciC++' > > make: *** [all] Error 2 > Well, I cannot help you here... > Scilab 5 family has been completed rewrite on the build process and is > now much more appropriate for such operations ... (shared lib, real > build system, etc). > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Sep 14 09:56:02 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 14 Sep 2009 09:56:02 +0200 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> Message-ID: <1252914962.8710.23735.camel@korcula.inria.fr> Le lundi 14 septembre 2009 ? 13:24 +0530, Sumit Adhikari a ?crit : > Hmm, I know. But my limitation is that my systemc dosent have proper > glibc version and for that It needs to be upgraded. :( This problem has been fixed in the current nightly build of the 5.1.X family. Sylvestre From sumit.adhikari at gmail.com Mon Sep 14 11:38:32 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 14 Sep 2009 15:08:32 +0530 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: <1252914962.8710.23735.camel@korcula.inria.fr> References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> <1252914962.8710.23735.camel@korcula.inria.fr> Message-ID: Got it now. This time it is very organized. Thanks for this info. By the way, do you have any document for so many APIs Regards, Sumit On Mon, Sep 14, 2009 at 1:26 PM, Sylvestre Ledru wrote: > Le lundi 14 septembre 2009 ? 13:24 +0530, Sumit Adhikari a ?crit : > > Hmm, I know. But my limitation is that my systemc dosent have proper > > glibc version and for that It needs to be upgraded. :( > This problem has been fixed in the current nightly build of the 5.1.X > family. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Sep 14 13:05:29 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 14 Sep 2009 13:05:29 +0200 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> <1252914962.8710.23735.camel@korcula.inria.fr> Message-ID: <1252926329.8710.25741.camel@korcula.inria.fr> Le lundi 14 septembre 2009 ? 15:08 +0530, Sumit Adhikari a ?crit : > Got it now. This time it is very organized. Thanks for this info. By > the way, do you have any document for so many APIs Yep, you will find examples here: modules/call_scilab/examples/basicExamples and: modules/call_scilab/examples/call_scilab/ And you will find a documentation in the Scilab help called "Compile and run with Call Scilab" which explains how to build an application based on Scilab under the various operating system. However, please note that in the version 5.2 of Scilab, we are going to introduce a new API called api_scilab which creates a consistent API to manage Scilab data. This API handles both code in the gateway (ie, extends Scilab features) and in call_scilab (ie, call the Scilab engine from a thirdparty application). Therefor, the examples above will be updated in a near future (probably for the version 5.2). Sylvestre > Regards, > Sumit > > On Mon, Sep 14, 2009 at 1:26 PM, Sylvestre Ledru > wrote: > Le lundi 14 septembre 2009 ? 13:24 +0530, Sumit Adhikari a > ?crit : > > Hmm, I know. But my limitation is that my systemc dosent > have proper > > glibc version and for that It needs to be upgraded. :( > > This problem has been fixed in the current nightly build of > the 5.1.X > family. > > Sylvestre > > > From Romain.Cotte at USherbrooke.ca Mon Sep 14 19:47:51 2009 From: Romain.Cotte at USherbrooke.ca (Romain Cotte) Date: Mon, 14 Sep 2009 13:47:51 -0400 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252838874.5802.10320.camel@zlarin> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> <1252595962.4aa918fac0fc2@www.usherbrooke.ca> <1252598891.8710.5597.camel@korcula.inria.fr> <1252602783.4aa9339fc6926@www.usherbrooke.ca> <1252838874.5802.10320.camel@zlarin> Message-ID: <1252950471.4aae81c7c8264@www.usherbrooke.ca> > it works fine for me. > -->l=ilib_for_link('rosenf',['adStack.c','adBuffer.f','rosenf_b.f'],[],'f'); Thanks, I changed my fortran compiler and ilib_for_link seems to work. However, i can't link l. link(l,'rosenf','f') Link failed for dynamic library 'librosenf.so'. An error occurred: librosenf.so: Ne peut ouvrir le fichier d'objet partag?: Aucun fichier ou dossier de ce type !--error 236 link: The shared archive was not loaded: (null) From sumit.adhikari at gmail.com Tue Sep 15 07:01:54 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 10:31:54 +0530 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: <1252926329.8710.25741.camel@korcula.inria.fr> References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> <1252914962.8710.23735.camel@korcula.inria.fr> <1252926329.8710.25741.camel@korcula.inria.fr> Message-ID: Thanks, however I can see with -nwni option this new version is not listning to my old scripts. All are issuing errors to any graphical function call (like plot()) :(. I was so happy with this feature of my older versions. Do I need to set something to get this feature back in my new version ? Best Regards, Sumit On Mon, Sep 14, 2009 at 4:35 PM, Sylvestre Ledru wrote: > Le lundi 14 septembre 2009 ? 15:08 +0530, Sumit Adhikari a ?crit : > > Got it now. This time it is very organized. Thanks for this info. By > > the way, do you have any document for so many APIs > > Yep, you will find examples here: > modules/call_scilab/examples/basicExamples > and: > modules/call_scilab/examples/call_scilab/ > > And you will find a documentation in the Scilab help called "Compile and > run with Call Scilab" which explains how to build an application based > on Scilab under the various operating system. > > However, please note that in the version 5.2 of Scilab, we are going to > introduce a new API called api_scilab which creates a consistent API to > manage Scilab data. This API handles both code in the gateway (ie, > extends Scilab features) and in call_scilab (ie, call the Scilab engine > from a thirdparty application). > Therefor, the examples above will be updated in a near future (probably > for the version 5.2). > > Sylvestre > > > > > > Regards, > > Sumit > > > > On Mon, Sep 14, 2009 at 1:26 PM, Sylvestre Ledru > > wrote: > > Le lundi 14 septembre 2009 ? 13:24 +0530, Sumit Adhikari a > > ?crit : > > > Hmm, I know. But my limitation is that my systemc dosent > > have proper > > > glibc version and for that It needs to be upgraded. :( > > > > This problem has been fixed in the current nightly build of > > the 5.1.X > > family. > > > > Sylvestre > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Sep 15 09:26:06 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 15 Sep 2009 09:26:06 +0200 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> <1252914962.8710.23735.camel@korcula.inria.fr> <1252926329.8710.25741.camel@korcula.inria.fr> Message-ID: <1252999566.8710.40188.camel@korcula.inria.fr> Le mardi 15 septembre 2009 ? 10:31 +0530, Sumit Adhikari a ?crit : > Thanks, however I can see with -nwni option this new version is not > listning to my old scripts. All are issuing errors to any graphical > function call > (like plot()) :(. I was so happy with this feature of my older > versions. Do I need to set something to get this feature back in my > new version ? -nw is your friend. Starting with Scilab 5.2, we also introduced a dedicated binary for this: scilab-adv-cli which is an equivalent to -nw and scilab-cli an equivalent to -nwni Sylvestre > Best Regards, > Sumit From sumit.adhikari at gmail.com Tue Sep 15 09:49:18 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 13:19:18 +0530 Subject: [scilab-Users] Reg :: Integration of Scilab-4.2.1 with C++ from Linux In-Reply-To: <1252999566.8710.40188.camel@korcula.inria.fr> References: <1252704753.5802.3551.camel@zlarin> <1252914230.8710.23611.camel@korcula.inria.fr> <1252914962.8710.23735.camel@korcula.inria.fr> <1252926329.8710.25741.camel@korcula.inria.fr> <1252999566.8710.40188.camel@korcula.inria.fr> Message-ID: Thanks a lot :) Regards, Sumit On Tue, Sep 15, 2009 at 12:56 PM, Sylvestre Ledru < sylvestre.ledru at scilab.org> wrote: > Le mardi 15 septembre 2009 ? 10:31 +0530, Sumit Adhikari a ?crit : > > Thanks, however I can see with -nwni option this new version is not > > listning to my old scripts. All are issuing errors to any graphical > > function call > > (like plot()) :(. I was so happy with this feature of my older > > versions. Do I need to set something to get this feature back in my > > new version ? > -nw is your friend. > Starting with Scilab 5.2, we also introduced a dedicated binary for > this: > scilab-adv-cli which is an equivalent to -nw and scilab-cli an > equivalent to -nwni > > Sylvestre > > > Best Regards, > > Sumit > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From glauco.masotti at alice.it Tue Sep 15 10:28:51 2009 From: glauco.masotti at alice.it (Glauco Masotti) Date: Tue, 15 Sep 2009 10:28:51 +0200 Subject: Fw: What's wrong with this? Message-ID: Hello. Not receiving answer from the support team, and as suggested in an autoreply mail from scilab at inria.fr (as well as from Antonelli), I am forwarding you the following message, hoping that someone of you can give me insight on this issue, and perhaps of contributing to the improvement of the program. Best regards, --- Glauco Masotti ----- Original Message ----- From: Glauco Masotti To: scilab.support at scilab.org ; scilab at inria.fr ; antonelli at unicas.it ; chiaverini at unicas.it Sent: Sunday, September 13, 2009 6:26 PM Subject: What's wrong with this? Hello. I intended to use Scilab to design a digital filter for a critical application. I am new to your program, thus I went trough the documents available from your website: "Introduction to Scilab" and "Signal Processing with Scilab". I also found help in the document by Antonelli and Chiaverini: "Introduzione a SCILAB 5.1", in Italian. I made some experiments with a relatively simple filter architecture, conceived as the double difference of two couples of one pole filters, i.e.: H(z) = (m4 - m3) - (m2 - m1), where each mi = ai/(1-(1-ai)z^-1) is a filter with one real pole for z=ai (i.e. an exponential moving average). I derived the exact transfer function crunching the algebra, which I reported in the attached document "True0s.gif" . This is a screen shot of the program Graph, by Ivan Johansen, which I used to find out where the true zeros of H(z) are located. The attached documents report the case a1=0.99, a2= 0.98, a3=0.97, a4=0.95. By inspection of H(z) it can be seen that, besides a double 0 for z=0, it has a zero for z=1, and, observing the graph of the second order polynomial term, there are two real zeros close to the origin (at about -0.045 and 0.025). It's also clear that H(z) preserves the poles at their original locations, i.e. for z=a1, a2, a3, a4. The results which can be found using Scilab are very much different! They are reported and summarized in the attached documents "diff-diff.log" and "plzr(diff_diff)(0).gif". According to Scilab the filter has only 3 poles, thus a pole (at 0.98) has been canceled with a zero, and the location of poles is somewhat different from the original locations, with differences up to 0.3%. The locations of zeros is even more surprising! There is an error of 0.1% for the zero located at 1, plus a zero at 1.0446 is found, very far from the true zeros, and also suggesting the filter is not minimum phase! The file "diff2-diff1.log" reports a variation on the theme, where the magnitude response of the various filters is normalized for a peak of 1. The response of these filters is shown in "diff2-diff1.gif". The green line should represent the correct response of the double difference filter, as found by feeding Graph with the basic expressions, whereas the blue line represent the response of the filter outputted by Scilab. The response of the two filters is almost identical for x (the normalized frequency) > 0.01, but is rather different at lower frequencies. Well, I may have been fooled by something, but can't see what, so I assume that my algebra is correct. The results of Graph also contradict the output from Scilab. Therefore, how comes there are such big differences and manifestly wrong results are found? Did I made something wrong in using Scilab? Or did I hit a bug of the program? It doesn't look a problem of numerical inaccuracy, the filter is relatively simple and the errors are too big. I hope you can give me advice to deal with this, otherwise I will be forced not to use Scilab and I will have much more work to do by using other means. Best regards, --- Glauco Masotti Ravenna, ITALY -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: True0s.gif Type: image/gif Size: 30193 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diff-diff.log Type: application/octet-stream Size: 1099 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plzr(diff_diff)(0).gif Type: image/gif Size: 22577 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diff2-diff1.log Type: application/octet-stream Size: 1126 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diff2-diff1.gif Type: image/gif Size: 47208 bytes Desc: not available URL: From raphael.langella at steria.cnes.fr Tue Sep 15 10:39:57 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Tue, 15 Sep 2009 10:39:57 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <1251369208.12951.797.camel@zlarin> Message-ID: <092785B790DCD043BA45401EDA43D9B504BB2CF3@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Envoy? : jeudi 27 ao?t 2009 12:33 > ? : users at lists.scilab.org > Objet : RE: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 > > > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > > > no jogl in > > > > java.library.path > > > Try to update etc/librarypath.xml and add the path to the > > > libjogl.{so,dynlib,dll} etc. > > > > > > Sylvestre > > > > > > > Well, I thought it already was, because I put the libjogl.so in bin > > and there is in librarypath.xml > But then I > > realised $SCILAB points to share/scilab, not the base dir > of the scilab installation. So, I put the libraries in lib > and add that to librarypath.xml : > > > > > > > > Now the libraries are found. But when it tries to draw, it > just freeze. Nothing happens and the GUI is completely unresponsive. > > Should I try to compile it with libmesa? Would it help? Any > other idea? > Yep, mesa can be pretty helpful (or update the driver of your > video card). You can also have a look to the function usecanvas. > > Sylvestre It works! I didn't have to rebuild anything to use mesa. I just put the mesa lib dir in LD_LIBRARY_PATH, and libjogl.so dynamically links against it. And now, the graphics work just fine under Solaris 10. I've also found out what was wrong with the make install under Solaris 9. In libs/blas/Makefile, line 890, there is : for specialExt in $(MACROSSPECIALEXT); do \ But the MACROSSPECIALEXT is empty and the shell doesn't like it. So I've delete this line and the next 3 ones, and did the same in all the (~70!) other Makefiles. Now make install works, but it really is an ugly workaround, there should be a better way of fixing this. But using mesa didn't solved the problem under Solaris 9, I still get : An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code GLX_NO_EXTENSION So to conclude all the tests I made : Linux 32 bits : works fine Linux 64 bits : doesn't work at all (no window, no error, nothing) Solaris 9 : needs lots of modifications, works but no graphic. (hopeless?) Solaris 10 : needs a few modifications and works fine. Do you want me to submit again all the changes I had to do to make it work under Solaris 9/10 ? Rapha?l Langella From sylvestre.ledru at scilab.org Tue Sep 15 10:59:40 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 15 Sep 2009 10:59:40 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B504BB2CF3@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B504BB2CF3@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1253005180.8710.41405.camel@korcula.inria.fr> > It works! I didn't have to rebuild anything to use mesa. I just put the mesa lib dir in LD_LIBRARY_PATH, and libjogl.so dynamically links against it. And now, the graphics work just fine under Solaris 10. Thanks for the feedback > I've also found out what was wrong with the make install under Solaris 9. In libs/blas/Makefile, line 890, there is : > > for specialExt in $(MACROSSPECIALEXT); do \ > > But the MACROSSPECIALEXT is empty and the shell doesn't like it. So I've delete this line and the next 3 ones, and did the same in all the (~70!) other Makefiles. Now make install works, but it really is an ugly workaround, there should be a better way of fixing this. :) Indeed, there is easier way. This stuff is declared in Makefile.incl.am and all makefile can be regenerated with autoreconf. You will find the patch attached to this email. Apply it and launch autoreconf it should fix you problem > But using mesa didn't solved the problem under Solaris 9, I still get : > > An error occurred when Scilab tried to open a Canvas: glXGetConfig failed: error code GLX_NO_EXTENSION You should see if the glx is correctly configured/set on your Solaris. > So to conclude all the tests I made : > > Linux 32 bits : works fine > Linux 64 bits : doesn't work at all (no window, no error, nothing) What kind of problems do you have with Linux 64 bits ? There is many people in the team and users who are working on Scilab with a 64 bits Linux without any problems. > Solaris 9 : needs lots of modifications, works but no graphic. (hopeless?) > Solaris 10 : needs a few modifications and works fine. > > Do you want me to submit again all the changes I had to do to make it work under Solaris 9/10 ? It would be great. Many thanks Sylvestre > Rapha?l Langella -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-If-MACROSSPECIALEXT-was-empty-this-was-causing-some-.patch Type: text/x-patch Size: 1606 bytes Desc: not available URL: From sumit.adhikari at gmail.com Tue Sep 15 13:11:46 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 16:41:46 +0530 Subject: Reg :: Crash of Scilab Message-ID: Hello, This is a crash with following message : ___________________________________________ scilab-branches-5.1-1252497453 Consortium Scilab (DIGITEO) Copyright (c) 1989-2009 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Startup execution: loading initial environment MESG :: Reading Data File ...... MESG :: Computing FFT ...... MESG :: Plotting FFT .... # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xdb5d6acc, pid=23315, tid=16384 # # Java VM: Java HotSpot(TM) Server VM (11.0-b16 mixed mode linux-x86) # Problematic frame: # C [libGL.so.1+0x43acc] # # An error report file with more information is saved as: # /fshy01/uxhyu/sa1/work/sdm/sim/hs_err_pid23315.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # /fshy01/uxhyu/sa1/tools/scilab-branches-5.1-1252497453/bin/scilab: line 132: 23315 Aborted (core dumped) "$SCILABBIN" $* This is happening for only one data file!!!. Other dumps of the same tracepoints are working. I cant attach the core. It is 1.8 GB! Same file with 4.2.1 working fine. Following is the script : // Clearing the previous data (if any) clear all ; // Handling stacksize stacksize('max'); function fft_plot() // Sampling Frequency Specification : Fs = 1024.0*1024.0; // Sampling Time Period Specification delt = 1.0/Fs; // Data File Read Up : printf(" MESG :: Reading Data File ...... \n"); file_read_out = fscanfMat("./data.dat"); // Expansion of Time : t = 0.0:1.0/Fs:(size(file_read_out,"*")*delt); // Finding Out Number of Samples : N = size(t,'*'); // Clearing the array t clear t ; // Computing FFT : printf(" MESG :: Computing FFT ...... \n"); fft_out=fft(file_read_out); // Clearing the array file_read_out clear file_read_out ; // Expanding Frequency : f = Fs*(0:(N/2))/N; n = size(f,'*'); // Setting Plot Down Sampler : RDOWN = 1 ; // FFT Graphical Plot : printf(" MESG :: Plotting FFT .... \n"); plot(f(1:n/RDOWN),20*log10(abs(fft_out(1:n/RDOWN))),"red"); mtlb_grid("on"); //plot(log10(f(2:n/RDOWN)),20*log10(abs(fft_out(2:n/RDOWN))),"red"); mtlb_grid("on"); //plot(f(1:n/RDOWN),abs(fft_out(1:n/RDOWN)),"red"); mtlb_grid("on"); xtitle( 'FFT Plot of Output Signal', ' Frequency (Hz) ', 'Gain (dB)') ; endfunction fft_plot(); Regards, Sumit > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Tue Sep 15 13:40:59 2009 From: yann.collette at scilab.org (Yann Collette) Date: Tue, 15 Sep 2009 13:40:59 +0200 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: References: Message-ID: <4AAF7D4B.3030305@scilab.org> Can you send a small data set stored in the data.dat file ? YC Sumit Adhikari a ?crit : > Hello, > This is a crash with following message : > > ___________________________________________ > scilab-branches-5.1-1252497453 > > Consortium Scilab (DIGITEO) > Copyright (c) 1989-2009 (INRIA) > Copyright (c) 1989-2007 (ENPC) > ___________________________________________ > > > Startup execution: > loading initial environment > MESG :: Reading Data File ...... > MESG :: Computing FFT ...... > MESG :: Plotting FFT .... > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0xdb5d6acc, pid=23315, tid=16384 > # > # Java VM: Java HotSpot(TM) Server VM (11.0-b16 mixed mode linux-x86) > # Problematic frame: > # C [libGL.so.1+0x43acc] > # > # An error report file with more information is saved as: > # /fshy01/uxhyu/sa1/work/sdm/sim/hs_err_pid23315.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in native code. > # See problematic frame for where to report the bug. > # > /fshy01/uxhyu/sa1/tools/scilab-branches-5.1-1252497453/bin/scilab: > line 132: 23315 Aborted (core dumped) "$SCILABBIN" $* > > This is happening for only one data file!!!. Other dumps of the same > tracepoints are working. I cant attach the core. It is 1.8 GB! > Same file with 4.2.1 working fine. > > Following is the script : > > > // Clearing the previous data (if any) > clear all ; > > // Handling stacksize > stacksize('max'); > > > function fft_plot() > > // Sampling Frequency Specification : > Fs = 1024.0*1024.0; > > // Sampling Time Period Specification > delt = 1.0/Fs; > > // Data File Read Up : > printf(" MESG :: Reading Data File ...... \n"); > file_read_out = fscanfMat("./data.dat"); > > > // Expansion of Time : > t = 0.0:1.0/Fs:(size(file_read_out,"*")*delt); > > // Finding Out Number of Samples : > N = size(t,'*'); > > // Clearing the array t > clear t ; > > // Computing FFT : > printf(" MESG :: Computing FFT ...... \n"); > fft_out=fft(file_read_out); > > // Clearing the array file_read_out > clear file_read_out ; > > // Expanding Frequency : > f = Fs*(0:(N/2))/N; > n = size(f,'*'); > > // Setting Plot Down Sampler : > RDOWN = 1 ; > > // FFT Graphical Plot : > printf(" MESG :: Plotting FFT .... \n"); > plot(f(1:n/RDOWN),20*log10(abs(fft_out(1:n/RDOWN))),"red"); > mtlb_grid("on"); > > //plot(log10(f(2:n/RDOWN)),20*log10(abs(fft_out(2:n/RDOWN))),"red"); > mtlb_grid("on"); > //plot(f(1:n/RDOWN),abs(fft_out(1:n/RDOWN)),"red"); mtlb_grid("on"); > xtitle( 'FFT Plot of Output Signal', ' Frequency (Hz) ', 'Gain (dB)') ; > > endfunction > > fft_plot(); > > > > Regards, > Sumit > > -- ----------------------------- Yann COLLETTE Software Development Engineer ----------------------------- The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.57.82 From sumit.adhikari at gmail.com Tue Sep 15 13:59:10 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 17:29:10 +0530 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: <4AAF7D4B.3030305@scilab.org> References: <4AAF7D4B.3030305@scilab.org> Message-ID: My Pleasure. See attachment. I think you need the full datafile as I have done windowing before saving it. Regards, Sumit On Tue, Sep 15, 2009 at 5:10 PM, Yann Collette wrote: > Can you send a small data set stored in the data.dat file ? > > YC > > Sumit Adhikari a ?crit : > > Hello, >> This is a crash with following message : >> >> ___________________________________________ >> scilab-branches-5.1-1252497453 >> >> Consortium Scilab (DIGITEO) >> Copyright (c) 1989-2009 (INRIA) >> Copyright (c) 1989-2007 (ENPC) >> ___________________________________________ Startup >> execution: >> loading initial environment >> MESG :: Reading Data File ...... >> MESG :: Computing FFT ...... >> MESG :: Plotting FFT .... >> # >> # An unexpected error has been detected by Java Runtime Environment: >> # >> # SIGSEGV (0xb) at pc=0xdb5d6acc, pid=23315, tid=16384 >> # >> # Java VM: Java HotSpot(TM) Server VM (11.0-b16 mixed mode linux-x86) >> # Problematic frame: >> # C [libGL.so.1+0x43acc] >> # >> # An error report file with more information is saved as: >> # /fshy01/uxhyu/sa1/work/sdm/sim/hs_err_pid23315.log >> # >> # If you would like to submit a bug report, please visit: >> # http://java.sun.com/webapps/bugreport/crash.jsp >> # The crash happened outside the Java Virtual Machine in native code. >> # See problematic frame for where to report the bug. >> # >> /fshy01/uxhyu/sa1/tools/scilab-branches-5.1-1252497453/bin/scilab: line >> 132: 23315 Aborted (core dumped) "$SCILABBIN" $* >> >> This is happening for only one data file!!!. Other dumps of the same >> tracepoints are working. I cant attach the core. It is 1.8 GB! >> Same file with 4.2.1 working fine. >> >> Following is the script : >> >> // Clearing the previous data (if any) >> clear all ; >> >> // Handling stacksize >> stacksize('max'); >> >> >> function fft_plot() >> >> // Sampling Frequency Specification : >> Fs = 1024.0*1024.0; >> >> // Sampling Time Period Specification >> delt = 1.0/Fs; >> >> // Data File Read Up : >> printf(" MESG :: Reading Data File ...... \n"); >> file_read_out = fscanfMat("./data.dat"); >> >> >> // Expansion of Time : >> t = 0.0:1.0/Fs:(size(file_read_out,"*")*delt); >> >> // Finding Out Number of Samples : >> N = size(t,'*'); >> >> // Clearing the array t >> clear t ; >> // Computing FFT : >> printf(" MESG :: Computing FFT ...... \n"); >> fft_out=fft(file_read_out); >> >> // Clearing the array file_read_out >> clear file_read_out ; >> >> // Expanding Frequency : >> f = Fs*(0:(N/2))/N; >> n = size(f,'*'); >> >> // Setting Plot Down Sampler : >> RDOWN = 1 ; >> >> // FFT Graphical Plot : >> printf(" MESG :: Plotting FFT .... \n"); >> plot(f(1:n/RDOWN),20*log10(abs(fft_out(1:n/RDOWN))),"red"); >> mtlb_grid("on"); >> //plot(log10(f(2:n/RDOWN)),20*log10(abs(fft_out(2:n/RDOWN))),"red"); >> mtlb_grid("on"); >> //plot(f(1:n/RDOWN),abs(fft_out(1:n/RDOWN)),"red"); mtlb_grid("on"); >> xtitle( 'FFT Plot of Output Signal', ' Frequency (Hz) ', 'Gain (dB)') ; >> >> endfunction >> >> fft_plot(); >> >> >> >> Regards, >> Sumit >> >> >> > > -- > ----------------------------- > Yann COLLETTE > Software Development Engineer > ----------------------------- > The Scilab Consortium > Digiteo Foundation > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay France > Phone: +33.1.39.63.57.82 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: data.dat.gz Type: application/x-gzip Size: 2176105 bytes Desc: not available URL: From yann.collette at scilab.org Tue Sep 15 14:33:13 2009 From: yann.collette at scilab.org (Yann Collette) Date: Tue, 15 Sep 2009 14:33:13 +0200 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: References: <4AAF7D4B.3030305@scilab.org> Message-ID: <4AAF8989.1070104@scilab.org> Bad news: it works fine for me on the scilab-master + scilab-5.1-branch. It seems that your code is hanging when plotting the data. Have you tried to upgrade your video driver ? YC Sumit Adhikari a ?crit : > My Pleasure. See attachment. I think you need the full datafile as I > have done windowing before saving it. > Regards, > Sumit > > > On Tue, Sep 15, 2009 at 5:10 PM, Yann Collette > > wrote: > > Can you send a small data set stored in the data.dat file ? > > YC > > Sumit Adhikari a ?crit : > > Hello, > This is a crash with following message : > > ___________________________________________ > scilab-branches-5.1-1252497453 > > Consortium Scilab (DIGITEO) > Copyright (c) 1989-2009 (INRIA) > Copyright (c) 1989-2007 (ENPC) > ___________________________________________ > Startup execution: > loading initial environment > MESG :: Reading Data File ...... > MESG :: Computing FFT ...... > MESG :: Plotting FFT .... > # > # An unexpected error has been detected by Java Runtime > Environment: > # > # SIGSEGV (0xb) at pc=0xdb5d6acc, pid=23315, tid=16384 > # > # Java VM: Java HotSpot(TM) Server VM (11.0-b16 mixed mode > linux-x86) > # Problematic frame: > # C [libGL.so.1+0x43acc] > # > # An error report file with more information is saved as: > # /fshy01/uxhyu/sa1/work/sdm/sim/hs_err_pid23315.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # The crash happened outside the Java Virtual Machine in > native code. > # See problematic frame for where to report the bug. > # > /fshy01/uxhyu/sa1/tools/scilab-branches-5.1-1252497453/bin/scilab: > line 132: 23315 Aborted (core dumped) > "$SCILABBIN" $* > > This is happening for only one data file!!!. Other dumps of > the same tracepoints are working. I cant attach the core. It > is 1.8 GB! > Same file with 4.2.1 working fine. > > Following is the script : > > // Clearing the previous data (if any) > clear all ; > > // Handling stacksize > stacksize('max'); > > > function fft_plot() > > // Sampling Frequency Specification : > Fs = 1024.0*1024.0; > > // Sampling Time Period Specification > delt = 1.0/Fs; > > // Data File Read Up : > printf(" MESG :: Reading Data File ...... \n"); > file_read_out = fscanfMat("./data.dat"); > > > // Expansion of Time : > t = 0.0:1.0/Fs:(size(file_read_out,"*")*delt); > > // Finding Out Number of Samples : > N = size(t,'*'); > > // Clearing the array t > clear t ; > // Computing FFT : > printf(" MESG :: Computing FFT ...... \n"); > fft_out=fft(file_read_out); > > // Clearing the array file_read_out > clear file_read_out ; > > // Expanding Frequency : > f = Fs*(0:(N/2))/N; > n = size(f,'*'); > > // Setting Plot Down Sampler : > RDOWN = 1 ; > > // FFT Graphical Plot : > printf(" MESG :: Plotting FFT .... \n"); > plot(f(1:n/RDOWN),20*log10(abs(fft_out(1:n/RDOWN))),"red"); > mtlb_grid("on"); > > //plot(log10(f(2:n/RDOWN)),20*log10(abs(fft_out(2:n/RDOWN))),"red"); > mtlb_grid("on"); > //plot(f(1:n/RDOWN),abs(fft_out(1:n/RDOWN)),"red"); > mtlb_grid("on"); > xtitle( 'FFT Plot of Output Signal', ' Frequency (Hz) ', > 'Gain (dB)') ; > > endfunction > > fft_plot(); > > > > Regards, > Sumit > > > > > -- > ----------------------------- > Yann COLLETTE > Software Development Engineer > ----------------------------- > The Scilab Consortium > Digiteo Foundation > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay France > Phone: +33.1.39.63.57.82 > > -- ----------------------------- Yann COLLETTE Software Development Engineer ----------------------------- The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.57.82 From sumit.adhikari at gmail.com Tue Sep 15 17:49:01 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 21:19:01 +0530 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: <4AAF8989.1070104@scilab.org> References: <4AAF7D4B.3030305@scilab.org> <4AAF8989.1070104@scilab.org> Message-ID: <4AAFB76D.8000702@gmail.com> Run the same code for around 10-15 times in the same xterm. I think you will also get crash. -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 On 9/15/2009 6:03 PM, Yann Collette wrote: > Bad news: it works fine for me on the scilab-master + scilab-5.1-branch. > It seems that your code is hanging when plotting the data. > Have you tried to upgrade your video driver ? > > YC > > Sumit Adhikari a ?crit : >> My Pleasure. See attachment. I think you need the full datafile as I >> have done windowing before saving it. >> Regards, >> Sumit >> >> >> On Tue, Sep 15, 2009 at 5:10 PM, Yann Collette >> > wrote: >> >> Can you send a small data set stored in the data.dat file ? >> >> YC >> >> Sumit Adhikari a ?crit : >> >> Hello, >> This is a crash with following message : >> >> ___________________________________________ >> scilab-branches-5.1-1252497453 >> >> Consortium Scilab (DIGITEO) >> Copyright (c) 1989-2009 (INRIA) >> Copyright (c) 1989-2007 (ENPC) >> ___________________________________________ >> Startup execution: >> loading initial environment >> MESG :: Reading Data File ...... >> MESG :: Computing FFT ...... >> MESG :: Plotting FFT .... >> # >> # An unexpected error has been detected by Java Runtime >> Environment: >> # >> # SIGSEGV (0xb) at pc=0xdb5d6acc, pid=23315, tid=16384 >> # >> # Java VM: Java HotSpot(TM) Server VM (11.0-b16 mixed mode >> linux-x86) >> # Problematic frame: >> # C [libGL.so.1+0x43acc] >> # >> # An error report file with more information is saved as: >> # /fshy01/uxhyu/sa1/work/sdm/sim/hs_err_pid23315.log >> # >> # If you would like to submit a bug report, please visit: >> # http://java.sun.com/webapps/bugreport/crash.jsp >> # The crash happened outside the Java Virtual Machine in >> native code. >> # See problematic frame for where to report the bug. >> # >> >> /fshy01/uxhyu/sa1/tools/scilab-branches-5.1-1252497453/bin/scilab: >> line 132: 23315 Aborted (core dumped) >> "$SCILABBIN" $* >> >> This is happening for only one data file!!!. Other dumps of >> the same tracepoints are working. I cant attach the core. It >> is 1.8 GB! >> Same file with 4.2.1 working fine. >> >> Following is the script : >> >> // Clearing the previous data (if any) >> clear all ; >> >> // Handling stacksize >> stacksize('max'); >> >> >> function fft_plot() >> >> // Sampling Frequency Specification : >> Fs = 1024.0*1024.0; >> >> // Sampling Time Period Specification >> delt = 1.0/Fs; >> >> // Data File Read Up : >> printf(" MESG :: Reading Data File ...... \n"); >> file_read_out = fscanfMat("./data.dat"); >> >> >> // Expansion of Time : >> t = 0.0:1.0/Fs:(size(file_read_out,"*")*delt); >> >> // Finding Out Number of Samples : >> N = size(t,'*'); >> >> // Clearing the array t >> clear t ; >> // Computing FFT : >> printf(" MESG :: Computing FFT ...... \n"); >> fft_out=fft(file_read_out); >> >> // Clearing the array file_read_out >> clear file_read_out ; >> >> // Expanding Frequency : >> f = Fs*(0:(N/2))/N; >> n = size(f,'*'); >> >> // Setting Plot Down Sampler : >> RDOWN = 1 ; >> >> // FFT Graphical Plot : >> printf(" MESG :: Plotting FFT .... \n"); >> plot(f(1:n/RDOWN),20*log10(abs(fft_out(1:n/RDOWN))),"red"); >> mtlb_grid("on"); >> >> //plot(log10(f(2:n/RDOWN)),20*log10(abs(fft_out(2:n/RDOWN))),"red"); >> mtlb_grid("on"); >> //plot(f(1:n/RDOWN),abs(fft_out(1:n/RDOWN)),"red"); >> mtlb_grid("on"); >> xtitle( 'FFT Plot of Output Signal', ' Frequency (Hz) ', >> 'Gain (dB)') ; >> >> endfunction >> >> fft_plot(); >> >> >> >> Regards, >> Sumit >> >> >> >> >> -- ----------------------------- >> Yann COLLETTE >> Software Development Engineer >> ----------------------------- >> The Scilab Consortium >> Digiteo Foundation >> Domaine de Voluceau >> Rocquencourt - B.P. 105 >> 78153 Le Chesnay France >> Phone: +33.1.39.63.57.82 >> >> > > From sylvestre.ledru at scilab.org Tue Sep 15 17:56:39 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 15 Sep 2009 17:56:39 +0200 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: <4AAFB76D.8000702@gmail.com> References: <4AAF7D4B.3030305@scilab.org> <4AAF8989.1070104@scilab.org> <4AAFB76D.8000702@gmail.com> Message-ID: <1253030199.8710.47730.camel@korcula.inria.fr> Le mardi 15 septembre 2009 ? 21:19 +0530, Sumit Adhikari a ?crit : > Run the same code for around 10-15 times in the same xterm. I think you > will also get crash. I agree with Yann's analyze (driver issue) Just run your script 30 times without a single problem. Sylvestre From raphael.langella at steria.cnes.fr Tue Sep 15 18:01:28 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Tue, 15 Sep 2009 18:01:28 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <1253005180.8710.41405.camel@korcula.inria.fr> Message-ID: <092785B790DCD043BA45401EDA43D9B504BB2D6A@cst-xch-003.cnesnet.ad.cnes.fr> > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > > Linux 64 bits : doesn't work at all (no window, no error, nothing) > What kind of problems do you have with Linux 64 bits ? There > is many people in the team and users who are working on > Scilab with a 64 bits Linux without any problems. I've already reported it. Under RHEL ES 4u5 x86_64, when I try to start scilab 64 bits, nothing happens. There is no error, no window opens and the shell doesn't return. I've tried to compile it, I've tried the 5.1.1 binaries and the nightly builds, I always get the same result. > > Do you want me to submit again all the changes I had to do > to make it work under Solaris 9/10 ? > It would be great. Many thanks Those 2 are needed for Solaris 9 and 10 in modules/scicos_blocks/src/c/evaluate_expr.c line 35, add : # define isnan(x) \ (sizeof (x) == sizeof (long double) ? isnan_ld (x) \ : sizeof (x) == sizeof (double) ? isnan_d (x) \ : isnan_f (x)) static inline int isnan_f (float x) { return x != x; } static inline int isnan_d (double x) { return x != x; } static inline int isnan_ld (long double x) { return x != x; } # define isinf(x) \ (sizeof (x) == sizeof (long double) ? isinf_ld (x) \ : sizeof (x) == sizeof (double) ? isinf_d (x) \ : isinf_f (x)) static inline int isinf_f (float x) { return isnan (x - x); } static inline int isinf_d (double x) { return isnan (x - x); } static inline int isinf_ld (long double x) { return isnan (x - x); } in bin/scilab, line 365 : "sparc" | "sun4u") Those 2 are only for Solaris 9 in ./modules/core/src/c/getdynamicdebuginfo.c, delete line 28: #include in ./modules/fileio/src/c, edit files mput.c, mputi.c, mget.c and mgeti.c. Line 16 or 17, replace #include by #include From sumit.adhikari at gmail.com Tue Sep 15 18:06:04 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Tue, 15 Sep 2009 21:36:04 +0530 Subject: [scilab-Users] Reg :: Crash of Scilab In-Reply-To: <1253030199.8710.47730.camel@korcula.inria.fr> References: <4AAF7D4B.3030305@scilab.org> <4AAF8989.1070104@scilab.org> <4AAFB76D.8000702@gmail.com> <1253030199.8710.47730.camel@korcula.inria.fr> Message-ID: <4AAFBB6C.1010409@gmail.com> Thanks. I will have to inform my system administrator about my requirement. Thanks for helping me to bog down the problem. Regards, -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 On 9/15/2009 9:26 PM, Sylvestre Ledru wrote: > Le mardi 15 septembre 2009 ? 21:19 +0530, Sumit Adhikari a ?crit : > >> Run the same code for around 10-15 times in the same xterm. I think you >> will also get crash. >> > I agree with Yann's analyze (driver issue) > Just run your script 30 times without a single problem. > > Sylvestre > > > > From sylvestre.ledru at scilab.org Tue Sep 15 18:17:09 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 15 Sep 2009 18:17:09 +0200 Subject: [scilab-Users] scilab 5.1.1 compilation under Solaris 10 In-Reply-To: <092785B790DCD043BA45401EDA43D9B504BB2D6A@cst-xch-003.cnesnet.ad.cnes.fr> References: <092785B790DCD043BA45401EDA43D9B504BB2D6A@cst-xch-003.cnesnet.ad.cnes.fr> Message-ID: <1253031429.8710.47987.camel@korcula.inria.fr> First, would you mind switching this discussion on the developer mailing list ? ( dev at lists.scilab.org ) Le mardi 15 septembre 2009 ? 18:01 +0200, Langella Raphael a ?crit : > > -----Message d'origine----- > > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > > > Linux 64 bits : doesn't work at all (no window, no error, nothing) > > What kind of problems do you have with Linux 64 bits ? There > > is many people in the team and users who are working on > > Scilab with a 64 bits Linux without any problems. > > I've already reported it. Under RHEL ES 4u5 x86_64, when I try to start > scilab 64 bits, nothing happens. There is no error, no window opens and > the shell doesn't return. I've tried to compile it, I've tried the 5.1.1 > binaries and the nightly builds, I always get the same result. Sorry, I missed that. It is failing also in nwni or nw ? If yes, could you try: strace -f -o LogFileForSylvester.log ./bin/scilab -nwni -e "exit()" If not strace -f -o LogFileForSylvester.log ./bin/scilab -e "exit()" and send me the log file > > > Do you want me to submit again all the changes I had to do > > to make it work under Solaris 9/10 ? > > It would be great. Many thanks Thanks. I am going to apply them on our source tree. Sylvestre From raphael.langella at steria.cnes.fr Wed Sep 16 15:32:06 2009 From: raphael.langella at steria.cnes.fr (Langella Raphael) Date: Wed, 16 Sep 2009 15:32:06 +0200 Subject: Help browser font size Message-ID: <092785B790DCD043BA45401EDA43D9B504BB2DCE@cst-xch-003.cnesnet.ad.cnes.fr> Hi, I've noticed that the font in the help browser is very small. Is there any way to change this ? Rapha?l Langella From boyington2 at hotmail.fr Thu Sep 17 13:10:29 2009 From: boyington2 at hotmail.fr (=?iso-8859-1?Q?R=E9mi_DELPY?=) Date: Thu, 17 Sep 2009 13:10:29 +0200 Subject: VB6 and Scilab Message-ID: Hi ! After some research on the Web, I can't answer my question. Is it possible to link Scilab with a VB6 application ? I want to perform my calculations on Scilab and receive results on a VB6 application. Thanks for your answer. Boyington _________________________________________________________________ A la recherche de bons plans pour une rentr?e pas ch?re ? Bing ! Trouvez ! http://www.bing.com/search?q=bons+plans+rentr%C3%A9e&form=MVDE6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From boyington2 at hotmail.fr Thu Sep 17 13:43:27 2009 From: boyington2 at hotmail.fr (=?iso-8859-1?Q?R=E9mi_DELPY?=) Date: Thu, 17 Sep 2009 13:43:27 +0200 Subject: FW: [scilab-Users] VB6 and Scilab In-Reply-To: <000f01ca3788$c111ce50$43356af0$@cornet@scilab.org> References: <000f01ca3788$c111ce50$43356af0$@cornet@scilab.org> Message-ID: ok, thanks ! But I don't use VB.NET but VB6. I don't know if we can use it on VB6 because the language is different !? But it will help me if I want to do it (if I can ....) Best Regards Boyington From: allan.cornet at scilab.org To: boyington2 at hotmail.fr Subject: RE: [scilab-Users] VB6 and Scilab Date: Thu, 17 Sep 2009 13:19:41 +0200 Hi, It will be possible with Scilab 5.2 to call Scilab from VB.NET http://gitweb.scilab.org/?p=scilab;a=commit;h=7a0484d3a5412d86ad716bd9da1e7b66d4780d50 Best Regards Allan CORNET De : R?mi DELPY [mailto:boyington2 at hotmail.fr] Envoy? : jeudi 17 septembre 2009 13:10 ? : users at lists.scilab.org Objet : [scilab-Users] VB6 and Scilab Hi ! After some research on the Web, I can't answer my question. Is it possible to link Scilab with a VB6 application ? I want to perform my calculations on Scilab and receive results on a VB6 application. Thanks for your answer. Boyington Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! _________________________________________________________________ Un avatar ? votre image ? Cr?ez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Thu Sep 17 13:57:37 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 17 Sep 2009 13:57:37 +0200 Subject: [scilab-Users] VB6 and Scilab In-Reply-To: References: <000f01ca3788$c111ce50$43356af0$@cornet@scilab.org> Message-ID: <001701ca378e$0d412fa0$27c38ee0$@cornet@scilab.org> Hi, To call a C/C++ dll from VB 6 see : http://support.microsoft.com/kb/106553/en-us See also VB.NET http://www.microsoft.com/express/vb/Default.aspx (free and supported by Microsoft) Best regards Allan CORNET De : R?mi DELPY [mailto:boyington2 at hotmail.fr] Envoy? : jeudi 17 septembre 2009 13:43 ? : Mailing list SCILAB Objet : FW: [scilab-Users] VB6 and Scilab ok, thanks ! But I don't use VB.NET but VB6. I don't know if we can use it on VB6 because the language is different !? But it will help me if I want to do it (if I can ....) Best Regards Boyington _____ From: allan.cornet at scilab.org To: boyington2 at hotmail.fr Subject: RE: [scilab-Users] VB6 and Scilab Date: Thu, 17 Sep 2009 13:19:41 +0200 Hi, It will be possible with Scilab 5.2 to call Scilab from VB.NET http://gitweb.scilab.org/?p=scilab;a=commit;h=7a0484d3a5412d86ad716bd9da1e7b 66d4780d50 Best Regards Allan CORNET De : R?mi DELPY [mailto:boyington2 at hotmail.fr] Envoy? : jeudi 17 septembre 2009 13:10 ? : users at lists.scilab.org Objet : [scilab-Users] VB6 and Scilab Hi ! After some research on the Web, I can't answer my question. Is it possible to link Scilab with a VB6 application ? I want to perform my calculations on Scilab and receive results on a VB6 application. Thanks for your answer. Boyington _____ Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! _____ Un avatar ? votre image ? Cr?ez votre mini-moi ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lukas.Malec at vso-praha.eu Thu Sep 17 16:16:55 2009 From: Lukas.Malec at vso-praha.eu (=?iso-8859-2?Q?Malec_Luk=E1=B9?=) Date: Thu, 17 Sep 2009 16:16:55 +0200 Subject: ask Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6D7@dc.vso-praha.eu> Good day, I have one request for you, respective to toolboxes instalation in Scilab. At instalation, it is all clear for me, but at installation to Scilab in Windows XP Professional, I again and again stop at point Microsoft Visual C/C++ compiler installation. I have not so much experiences with this and the command prompt, and the file cl, nmake, VCVARS32.BAT I don?t found at my computer. Please, is it possible to write me this part much more in detail? I deal with applications of optimalization problems, toolboxes seems to be very useful for me, and for students too, but this area of Microsoft Visual C/C++ compiler installation is not so known for me. Thank you very much. With the Best regards, Luk?? Malec -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lukas.Malec at vso-praha.eu Fri Sep 18 00:09:45 2009 From: Lukas.Malec at vso-praha.eu (=?iso-8859-2?Q?Malec_Luk=E1=B9?=) Date: Fri, 18 Sep 2009 00:09:45 +0200 Subject: ask Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6DD@dc.vso-praha.eu> Good day, I somewhat change and clear my question, now I extract files toolbox into scilab-5.0.3\modules folder. For all that, this files doesn?t coact with Scilab, although in Scilab I change the current directory right to given folder. Don?t you know the solution of this problem? Thank you very much. With the Best Regards, Luk?? Malec -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Sep 18 00:15:19 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 18 Sep 2009 00:15:19 +0200 Subject: Where to unpack toolboxes Was: Re: [scilab-Users] ask In-Reply-To: <2952C79E4A4C8A4396B17CA34694B819A8789AD6DD@dc.vso-praha.eu> References: <2952C79E4A4C8A4396B17CA34694B819A8789AD6DD@dc.vso-praha.eu> Message-ID: <1253225719.6799.784.camel@zlarin> Le vendredi 18 septembre 2009 ? 00:09 +0200, Malec Luk?? a ?crit : > Good day, > > I somewhat change and clear my question, now I extract files toolbox > into scilab-5.0.3\modules folder. For all that, this files doesn?t > coact with Scilab, although in Scilab I change the current > directory right to given folder. Usually, toolbox are extracted in contrib/ not modules. Otherwise, next time, could you put a more explicit subject ;) Thanks Sylvestre > Don?t you know the solution of this problem? > > Thank you very much. With the Best Regards, > Luk?? Malec -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From allan.cornet at scilab.org Fri Sep 18 07:58:58 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 18 Sep 2009 07:58:58 +0200 Subject: [scilab-Users] ask In-Reply-To: <2952C79E4A4C8A4396B17CA34694B819A8789AD6D7@dc.vso-praha.eu> References: <2952C79E4A4C8A4396B17CA34694B819A8789AD6D7@dc.vso-praha.eu> Message-ID: <000901ca3825$1d1d3800$5757a800$@cornet@scilab.org> Hi, Could you give more details about your problem about Scilab and Visual Studio ? When you install Scilab , setup do NOT try to detect Visual studio. If you have a valid installation of Visual studio on your pc, Scilab detects it and configure environment variables. If Visual is not detected, you can not to build toolbox with C/C++. See help haveacompiler, and help about findmsvccompiler Best regards Allan CORNET De : Malec Luk?? [mailto:Lukas.Malec at vso-praha.eu] Envoy? : jeudi 17 septembre 2009 16:17 ? : users at lists.scilab.org Objet : [scilab-Users] ask Good day, I have one request for you, respective to toolboxes instalation in Scilab. At instalation, it is all clear for me, but at installation to Scilab in Windows XP Professional, I again and again stop at point Microsoft Visual C/C++ compiler installation. I have not so much experiences with this and the command prompt, and the file cl, nmake, VCVARS32.BAT I don?t found at my computer. Please, is it possible to write me this part much more in detail? I deal with applications of optimalization problems, toolboxes seems to be very useful for me, and for students too, but this area of Microsoft Visual C/C++ compiler installation is not so known for me. Thank you very much. With the Best regards, Luk?? Malec -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lukas.Malec at vso-praha.eu Fri Sep 18 00:55:21 2009 From: Lukas.Malec at vso-praha.eu (=?iso-8859-2?Q?Malec_Luk=E1=B9?=) Date: Fri, 18 Sep 2009 00:55:21 +0200 Subject: message and request Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6DE@dc.vso-praha.eu> Dear Sylvestre Ledru, I use the mail address automatically, and don?t became conscious of user mailing list. In such a case I better and shorter specify my problems, if it is possible clear my two emails today. Next time, I better formulate possible asks. Thank you very much. With the Best regards, Luk?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lukas.Malec at vso-praha.eu Mon Sep 21 17:24:14 2009 From: Lukas.Malec at vso-praha.eu (=?iso-8859-2?Q?Malec_Luk=E1=B9?=) Date: Mon, 21 Sep 2009 17:24:14 +0200 Subject: installation asks Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6EA@dc.vso-praha.eu> Good day, I have some questions (similar to preceding, but more obvious) about installation of software lpsolve to Scilab environment. My computer system is Windows XP Professional. First, I extract the file lp_solve_5.5.0.15_dev_win32.zip into the directory specified at the PATH environment variable, e.g. C:\Program Files\scilab-5.1.1\bin Second, I extract the file lp_solve_5.5.0.15_scilab_exe_win32.zip into the file C:\Program Files\scilab-5.1.1\contrib\lp_solve_5.5 In the Scilab environment, there on the upper menu bar, the button Toolboxes appear, but pressing this toolbox lp_solve_5.5, invoke the following message: --> link(libs + libsext); !--error 236 link: The shared archive was not loaded: The filename, directory name, or volume label syntax is incorrect. at line 21 of exec file called by : exec("C:\PROGRA~1\SCILAB~1.1\contrib\lp_solve_5.5\loader.sce"); in execstr instruction called by : = gcbo; end;gcbo = getcallbackobject(5);execstr(toolboxes(1));if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; while executing a callback I try to install the folder lp_solve_5.5.0.15_scilab_source.tar.gz, try to write commands such as exec loader.sce, try to install lp_solve_5.5.0.15_IDE_Setup and joining to Scilab, but ineffective. The instruction exec loader.sce evoke the message similar to past: -->exec loader.sce -->// Generated by builder.sce - Do Not Edit -->mode(-1); link(libs + libsext); !--error 236 link: The shared archive was not loaded: The filename, directory name, or volume label syntax is incorrect. at line 21 of exec file called by : exec loader.sce I did not install other lpsolve or Scilab programs. Please, don?t you know the answer to this problem? The answer will help me very much, this programs are what I had been searching for. Thank you and Best regards, Luk?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lukas.Malec at vso-praha.eu Wed Sep 23 09:36:05 2009 From: Lukas.Malec at vso-praha.eu (=?windows-1250?Q?Malec_Luk=E1=9A?=) Date: Wed, 23 Sep 2009 09:36:05 +0200 Subject: toolbox installation ask Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6EC@dc.vso-praha.eu> Good day, I have the following question. Your software Scilab ? 5.0.3 I have installed on MS Windows Professional platform. I try to add some toolboxes into contrib directory. So the way according to pwd function for instance is C:\Program Files\scilab-5.0.3\contrib\lp_solve_5.5, or another toolboxes. The current directory toolbox is establihed according the botton Change Current Directory on console, for all that such a toolbox programs does not coact, don?t read. Please don?t you know the answer to this problem? With the Best regards, Luk?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu Sep 24 00:37:38 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 24 Sep 2009 00:37:38 +0200 Subject: [scilab-Users] Link with Scilab In-Reply-To: <1252950471.4aae81c7c8264@www.usherbrooke.ca> References: <1252444176.4aa6c81059eec@www.usherbrooke.ca> <1252448473.4aa6d8d90b56b@www.usherbrooke.ca> <1252449421.16197.4091.camel@zlarin> <1252515228.4aa7dd9c12db8@www.usherbrooke.ca> <1252565861.16197.11399.camel@zlarin> <1252595962.4aa918fac0fc2@www.usherbrooke.ca> <1252598891.8710.5597.camel@korcula.inria.fr> <1252602783.4aa9339fc6926@www.usherbrooke.ca> <1252838874.5802.10320.camel@zlarin> <1252950471.4aae81c7c8264@www.usherbrooke.ca> Message-ID: <1253745458.10617.4.camel@zlarin> Le lundi 14 septembre 2009 ? 13:47 -0400, Romain Cotte a ?crit : > > > > it works fine for me. > > > -->l=ilib_for_link('rosenf',['adStack.c','adBuffer.f','rosenf_b.f'],[],'f'); > > Thanks, > I changed my fortran compiler and ilib_for_link seems to work. However, i can't > link l. > > link(l,'rosenf','f') > Link failed for dynamic library 'librosenf.so'. > An error occurred: librosenf.so: Ne peut ouvrir le fichier d'objet partag?: > Aucun fichier ou dossier de ce type > !--error 236 > link: The shared archive was not loaded: (null) -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From Lukas.Malec at vso-praha.eu Thu Sep 24 18:48:40 2009 From: Lukas.Malec at vso-praha.eu (=?iso-8859-2?Q?Malec_Luk=E1=B9?=) Date: Thu, 24 Sep 2009 18:48:40 +0200 Subject: installation of toolboxes Message-ID: <2952C79E4A4C8A4396B17CA34694B819A8789AD6F8@dc.vso-praha.eu> Good day, please to consult me with the following installation problem of some toolboxes. The installation on MS Windows XP Professional proceed, but during the compillation process with the builder script exec builder.sce, the message emerge, that a Fortran or C compiler is requested. During the command exec loader.sce invoke the message similar to past: -->exec loader.sce -->// Generated by builder.sce - Do Not Edit -->mode(-1); link(libs + libsext); !--error 236 link: The shared archive was not loaded: The filename, directory name, or volume label syntax is incorrect. at line 21 of exec file called by : exec loader.sce I don?t know, where to draw down the Microsoft C compiler, if it is necessary, and how to install it. Please, don?t you know the answer to this problem? The answer will help me very much, some toolboxes are what I had been searching for. Thank you and Best regards, Luk?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Thu Sep 24 19:22:01 2009 From: fvogelnew1 at free.fr (=?ISO-8859-2?Q?Fran=E7ois_Vogel?=) Date: Thu, 24 Sep 2009 19:22:01 +0200 Subject: [scilab-Users] installation of toolboxes In-Reply-To: <2952C79E4A4C8A4396B17CA34694B819A8789AD6F8@dc.vso-praha.eu> References: <2952C79E4A4C8A4396B17CA34694B819A8789AD6F8@dc.vso-praha.eu> Message-ID: <4ABBAAB9.1090907@free.fr> Hi, Try this (Visual Express C++ 2008): http://www.microsoft.com/express/download/#webInstall However since you do not tell what you want to do (what toolbox?) and with what environment (what Scilab version?), I can't tell whether this is what you need. Especially, if a Fortran compiler is needed this will not work since it will install a C compiler... Francois Malec Luk?? said on 24/09/2009 18:48: > Good day, > > please to consult me with the following installation problem of some > toolboxes. The installation on MS Windows XP Professional proceed, but > during the compillation process with the builder script exec > builder.sce, the message emerge, that a Fortran or C compiler is > requested. During the command exec loader.sce invoke the message similar > to past: > > -->exec loader.sce > > -->// Generated by builder.sce - Do Not Edit > > -->mode(-1); > > link(libs + libsext); > > !--error 236 > > link: The shared archive was not loaded: The filename, directory name, > or volume label syntax is incorrect. > > at line 21 of exec file called by : > > exec loader.sce > > I don?t know, where to draw down the Microsoft C compiler, if it is > necessary, and how to install it. Please, don?t you know the answer to > this problem? > > The answer will help me very much, some toolboxes are what I had been > searching for. > > Thank you and Best regards, > > Luk?? > From michel.audette at kitware.com Thu Sep 24 19:34:19 2009 From: michel.audette at kitware.com (Michel Audette) Date: Thu, 24 Sep 2009 13:34:19 -0400 Subject: equivalent for Matlab patch() in Scilab? Message-ID: Dear Scilab users, can someone indicate to me if there is an equivalent to the Matlab patch() function in Scilab? Thank you for your kind consideration. Best wishes, Michel -- Michel Audette, Ph.D. R & D Engineer, Kitware Inc., Chapel Hill, N.C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Thu Sep 24 21:40:12 2009 From: yann.collette at scilab.org (Yann Collette) Date: Thu, 24 Sep 2009 21:40:12 +0200 Subject: [scilab-Users] equivalent for Matlab patch() in Scilab? In-Reply-To: References: Message-ID: <4ABBCB1C.6090703@scilab.org> Michel Audette a ?crit : > Dear Scilab users, > > can someone indicate to me if there is an equivalent to the Matlab > patch() function in Scilab? > > Thank you for your kind consideration. > > Best wishes, > > Michel > > -- > Michel Audette, Ph.D. > R & D Engineer, > Kitware Inc., > Chapel Hill, N.C. > Hello, Yes, plot3d can do the same things as patch. If you have access to a nightly build, do a "help plot3d". There are 2 examples of use of plot3d like patch: - a simple plot3d with a X,Y,Z - a plot3d with faces and vertex. YC From yann.collette at scilab.org Thu Sep 24 22:16:14 2009 From: yann.collette at scilab.org (Yann Collette) Date: Thu, 24 Sep 2009 22:16:14 +0200 Subject: [scilab-Users] equivalent for Matlab patch() in Scilab? In-Reply-To: <4ABBCB1C.6090703@scilab.org> References: <4ABBCB1C.6090703@scilab.org> Message-ID: <4ABBD38E.20304@scilab.org> Here is the examples of the plot3d help page: // The plot3d function to draw patches: // patch(x,y,[z]) // patch(x,y,[list(z,c)]) // The size of x : number of points in the patches x number of patches // y and z have the same sizes as x // c: // - a vector of size number of patches: the color of the patches // - a matrix of size number of points in the patches x number of // patches: the color of each points of each patches // Example 1: a set of triangular patches x = [0 0; 0 1; 1 1]; y = [1 1; 2 2; 2 1]; z = [1 1; 1 1; 1 1]; tcolor = [2 3]'; subplot(2,2,1); plot3d(x,y,list(z,tcolor)); xtitle('A triangle set of patches'); // Example 2: a mixture of triangular and quadrangular patches xquad = [5, 0; 10,0; 15,5; 10,5]; yquad = [15,0; 20,10; 15,15; 10,5]; zquad = ones(4,2); xtri = [ 0,10,10, 5, 0; 10,20,20, 5, 0; 20,20,15,10,10]; ytri = [ 0,10,20, 5,10; 10,20,20,15,20; 0, 0,15,10,20]; ztri = zeros(3,5); subplot(2,2,3); plot3d(xquad,yquad,zquad); plot3d(xtri,ytri,ztri); xtitle('Mixing triangle and quadrangle set of patches'); // Example 3: some rabbits rabxtri = [ 5, 5, 2.5, 7.5, 10; 5, 15, 5, 10, 10; 15, 15, 5, 10, 15]; rabytri = [10, 10, 9.5, 2.5, 0; 20, 10, 12, 5, 5; 10 0 7 0 0]; rabztri = [0,0,0,0,0; 0,0,0,0,0; 0,0,0,0,0]; rabtricolor_byface = [2 2 2 2 2]; rabtricolor = [2,2,2,2,2; 3,3,3,3,3; 4,4,4,4,4]; rabxquad = [0, 1; 0, 6; 5,11; 5, 6]; rabyquad = [18,23; 23,28; 23,28; 18,23]; rabzquad = [1,1; 1,1; 1,1; 1,1]; rabquadcolor_byface = [2 2]; rabquadcolor = [2,2; 3,3; 4,4; 5,5]; subplot(2,2,2); plot3d(rabxtri, rabytri, list(rabztri,rabtricolor)); plot3d(rabxquad,rabyquad,list(rabzquad,rabquadcolor)); h = gcf(); h.children(1).background = 1; xtitle('A psychedelic rabbit set of patches'); subplot(2,2,4); plot3d(rabxtri, rabytri, list(rabztri,rabtricolor_byface)); plot3d(rabxquad,rabyquad,list(rabzquad,rabquadcolor_byface)); h = gcf(); h.children(1).background = 1; xtitle('A standard rabbit set of patches'); // Vertex / Faces example: 3D example // The vertex list contains the list of unique points composing each patch // The points common to 2 patches are not repeated in the vertex list vertex = [0 1 1; 0 2 2; 1 2 3; 1 1 4]; // The face list indicates which points are composing the patch. face = [1 2 3; 1 3 4]; tcolor = [2 3]'; // The formula used to translate the vertex / face representation into x, y, z lists xvf = matrix(vertex(face,1),size(face,1),length(vertex(face,1))/size(face,1))'; yvf = matrix(vertex(face,2),size(face,1),length(vertex(face,1))/size(face,1))'; zvf = matrix(vertex(face,3),size(face,1),length(vertex(face,1))/size(face,1))'; scf(); subplot(2,1,1); plot3d(xvf,yvf,list(zvf,tcolor)); xtitle('A triangle set of patches - vertex / face mode - 3d'); // 2D test // We use the 3D representation with a 0 Z values and then switch to 2D representation // Vertex / Faces example: 3D example // The vertex list contains the list of unique points composing each patch // The points common to 2 patches are not repeated in the vertex list vertex = [0 1; 0 2; 1 2; 1 1]; // The face list indicates which points are composing the patch. face = [1 2 3; 1 3 4]; // The formula used to translate the vertex / face representation into x, y, z lists xvf = matrix(vertex(face,1),size(face,1),length(vertex(face,1))/size(face,1))'; yvf = matrix(vertex(face,2),size(face,1),length(vertex(face,1))/size(face,1))'; zvf = matrix(zeros(vertex(face,2)),size(face,1),length(vertex(face,1))/size(face,1))'; subplot(2,1,2); plot3d(xvf,yvf,list(zvf,tcolor)); xtitle('A triangle set of patches - vertex / face mode - 2D'); a = gca(); a.view = '2d'; Yann Collette a ?crit : > Michel Audette a ?crit : >> Dear Scilab users, >> >> can someone indicate to me if there is an equivalent to the Matlab >> patch() function in Scilab? >> >> Thank you for your kind consideration. >> >> Best wishes, >> >> Michel >> >> -- >> Michel Audette, Ph.D. >> R & D Engineer, >> Kitware Inc., >> Chapel Hill, N.C. >> > Hello, > > Yes, plot3d can do the same things as patch. > If you have access to a nightly build, do a "help plot3d". There are 2 > examples of use of plot3d like patch: > - a simple plot3d with a X,Y,Z > - a plot3d with faces and vertex. > > YC From cris.bkn at gmail.com Fri Sep 25 06:35:22 2009 From: cris.bkn at gmail.com (=?ISO-8859-1?Q?Cristi=E1n_Santander?=) Date: Fri, 25 Sep 2009 00:35:22 -0400 Subject: Hi Message-ID: Hello Lately I've had problems with opening files and change the current directory, and that trying to change the current directory, I get an error message. I send a picture attached of what I get. GreetingsPD: OS Windows XP Service Pack 3 -- Cristi?n Santander E. Egresado de Ingenier?a Civil Oce?nica Universidad de Valpara?so -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: it.JPG Type: image/jpeg Size: 54080 bytes Desc: not available URL: From allan.cornet at scilab.org Fri Sep 25 08:37:37 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 25 Sep 2009 08:37:37 +0200 Subject: [scilab-Users] Hi In-Reply-To: References: Message-ID: <000f01ca3daa$abfb53b0$03f1fb10$@cornet@scilab.org> Hi, This problem should be fixed on master. http://www.scilab.org/download/index_download.php?page=nightly_builds Best Regards Allan CORNET De : Cristi?n Santander [mailto:cris.bkn at gmail.com] Envoy? : vendredi 25 septembre 2009 06:35 ? : users at lists.scilab.org Objet : [scilab-Users] Hi Hello Lately I've had problems with opening files and change the current directory, and that trying to change the current directory, I get an error message. I send a picture attached of what I get. Greetings PD: OS Windows XP Service Pack 3 -- Cristi?n Santander E. Egresado de Ingenier?a Civil Oce?nica Universidad de Valpara?so -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlvolta at hipuu.com.py Mon Sep 28 13:19:22 2009 From: jlvolta at hipuu.com.py (=?iso-8859-1?Q?Jos=E9_Luis_Volta_Grau?=) Date: Mon, 28 Sep 2009 07:19:22 -0400 Subject: Function x_choose Message-ID: <9B29FF656B8B460A96F45510629E9949@usera1d930417d> I'm using Scilab-5.1.1, and the question is: how does the "x_choose" function work? I think there is something wrong in this dialog box, because the answer is always zero (no selection made). Thank in advance, Jos? Luis Volta -------------- next part -------------- An HTML attachment was scrubbed... URL: From delphine-emilie.martin at edf.fr Mon Sep 28 13:44:45 2009 From: delphine-emilie.martin at edf.fr (Delphine-Emilie MARTIN) Date: Mon, 28 Sep 2009 13:44:45 +0200 Subject: [scilab-Users] Function x_choose Message-ID: Return Receipt Your document: [scilab-Users] Function x_choose was received by: delphine-emilie.martin at edf.fr at: 28/09/2009 13:44:45 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Sep 28 14:27:56 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 28 Sep 2009 14:27:56 +0200 Subject: [scilab-Users] Function x_choose In-Reply-To: <9B29FF656B8B460A96F45510629E9949@usera1d930417d> References: <9B29FF656B8B460A96F45510629E9949@usera1d930417d> Message-ID: <4AC0ABCC.6070200@univ-lemans.fr> ----- Message d'origine ----- De : Jos? Luis Volta Grau Date : 28/09/2009 13:19: > I'm using Scilab-5.1.1, and the question is: > how does the "x_choose" function work? > I think there is something wrong in this dialog box, > because the answer is always zero (no selection made). > > Thank in advance, > Jos? Luis Volta You must *double*-click the chosen item to select it and return. Otherwise (for instance, in case of single click only highlighting the item), return is performed only when pressing Cancel, then returning 0 to the calling level. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlvolta at hipuu.com.py Mon Sep 28 17:07:26 2009 From: jlvolta at hipuu.com.py (=?iso-8859-1?Q?Jos=E9_Luis_Volta_Grau?=) Date: Mon, 28 Sep 2009 11:07:26 -0400 Subject: [scilab-Users] Function x_choose References: <9B29FF656B8B460A96F45510629E9949@usera1d930417d> <4AC0ABCC.6070200@univ-lemans.fr> Message-ID: <481D8BA45DAB4692918C5041B57E1645@usera1d930417d> Thanks, Samuel. It works fine, but this is not a standard behaviour for a dialog box. I prefer the 4.1.2 version, with 2 buttons, OK and Cancel. ----- Original Message ----- From: Samuel Gougeon To: users at lists.scilab.org Sent: Monday, September 28, 2009 8:27 AM Subject: Re: [scilab-Users] Function x_choose ----- Message d'origine ----- De : Jos? Luis Volta Grau Date : 28/09/2009 13:19: I'm using Scilab-5.1.1, and the question is: how does the "x_choose" function work? I think there is something wrong in this dialog box, because the answer is always zero (no selection made). Thank in advance, Jos? Luis Volta You must double-click the chosen item to select it and return. Otherwise (for instance, in case of single click only highlighting the item), return is performed only when pressing Cancel, then returning 0 to the calling level. HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Tue Sep 29 02:05:03 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 28 Sep 2009 21:05:03 -0300 Subject: [scilab-Users] Function x_choose Message-ID: Return Receipt Your Re: [scilab-Users] Function x_choose document: was osvaldo at dcc.ufmg.br received by: at: 28/09/2009 21:05:10 -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Tue Sep 29 02:18:15 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 28 Sep 2009 21:18:15 -0300 Subject: [scilab-Users] Function x_choose Message-ID: Return Receipt Your [scilab-Users] Function x_choose document: was osvaldo at dcc.ufmg.br received by: at: 28/09/2009 21:18:22 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Sep 29 08:37:13 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 29 Sep 2009 08:37:13 +0200 Subject: [scilab-Users] Function x_choose In-Reply-To: References: Message-ID: <1254206233.4371.9749.camel@zlarin> Le lundi 28 septembre 2009 ? 21:18 -0300, Osvaldo Sergio Farhat de Carvalho a ?crit : > Return Receipt > Your document: > [scilab-Users] Function x_choose > was received by: > osvaldo at dcc.ufmg.br > at: > 28/09/2009 21:18:22 Osvaldo, would you mind turn off these emails ? Thanks! Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From outrosdiasvirao at yahoo.com.br Tue Sep 29 14:56:00 2009 From: outrosdiasvirao at yahoo.com.br (Lucio Agostinho Rocha) Date: Tue, 29 Sep 2009 05:56:00 -0700 (PDT) Subject: Is there a Angle Histogram in Scilab? In-Reply-To: <874467.90509.qm@web52710.mail.re2.yahoo.com> Message-ID: <540928.39913.qm@web52710.mail.re2.yahoo.com> Hi, I want to plot a Angle Histogram, similar of rose function in Matlab. Someone could help me? Again, thanks in advance, Lucio ..... ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From nicolas.vergnes at steria.cnes.fr Tue Sep 29 15:53:07 2009 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Tue, 29 Sep 2009 15:53:07 +0200 Subject: [scilab-Users] Is there a Angle Histogram in Scilab? In-Reply-To: <540928.39913.qm@web52710.mail.re2.yahoo.com> Message-ID: Hi, You can see a nice example here : http://matplotlib.sourceforge.net/examples/pylab_examples/polar_bar.html Regards, Nicolas Vergnes Produits & Logiciels Cnes 3IRT/AP /POL -----Message d'origine----- De : Lucio Agostinho Rocha [mailto:outrosdiasvirao at yahoo.com.br] Envoy? : mardi 29 septembre 2009 14:56 ? : users at lists.scilab.org Objet : [scilab-Users] Is there a Angle Histogram in Scilab? Hi, I want to plot a Angle Histogram, similar of rose function in Matlab. Someone could help me? Again, thanks in advance, Lucio ..... ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From nicolas.vergnes at steria.cnes.fr Tue Sep 29 16:07:38 2009 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Tue, 29 Sep 2009 16:07:38 +0200 Subject: [scilab-Users] Is there a Angle Histogram in Scilab? In-Reply-To: Message-ID: Oops a mistake, it's not for the good mailing lists.. I dont know the function to this on scilab. -----Message d'origine----- De : Vergnes Nicolas [mailto:nicolas.vergnes at steria.cnes.fr] Envoy? : mardi 29 septembre 2009 15:53 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Is there a Angle Histogram in Scilab? Hi, You can see a nice example here : http://matplotlib.sourceforge.net/examples/pylab_examples/polar_bar.html Regards, Nicolas Vergnes Produits & Logiciels Cnes 3IRT/AP /POL -----Message d'origine----- De : Lucio Agostinho Rocha [mailto:outrosdiasvirao at yahoo.com.br] Envoy? : mardi 29 septembre 2009 14:56 ? : users at lists.scilab.org Objet : [scilab-Users] Is there a Angle Histogram in Scilab? Hi, I want to plot a Angle Histogram, similar of rose function in Matlab. Someone could help me? Again, thanks in advance, Lucio ..... ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From pierre.lando at scilab.org Tue Sep 29 16:42:02 2009 From: pierre.lando at scilab.org (Pierre LANDO) Date: Tue, 29 Sep 2009 16:42:02 +0200 Subject: [scilab-Users] Is there a Angle Histogram in Scilab? In-Reply-To: <540928.39913.qm@web52710.mail.re2.yahoo.com> References: <540928.39913.qm@web52710.mail.re2.yahoo.com> Message-ID: <4AC21CBA.2040807@scilab.org> Lucio Agostinho Rocha says : "Is there a Angle Histogram in Scilab?" As I know no, but you can use xfarcs ****** function AngleHistogram(R,A,E,C) plot2d(0,0,-1,"031"," ",[-1,-1,1,1]); arcs=[-R;R;2*R;2*R;(A-E/2)*64;E*64]; xfarcs(arcs,C); endfunction R=[.7,.5,.6] // radius A=[12,225,136] // theta E=[42,25,36] // opening angle C=[3,4,5] // color AngleHistogram(R,A,E,C) ****** -- ------------------------- Pierre LANDO Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.58.21 From osvaldo at dcc.ufmg.br Tue Sep 29 20:44:27 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Tue, 29 Sep 2009 15:44:27 -0300 Subject: Accents on printf Message-ID: Hello, When I execute a program from Scipad with a printf with a format string with accents, conversion codes after the first accent are ignored. For instance, a program with the code n = 5; printf("\n%d! est ?gal ? %d",n,factorial(n)) printf("\n%d! est egal ? %d",n,factorial(n)) printf("\n%d! est egal a %d",n,factorial(n)) produces 5! est ?gal ? %d 5! est egal ? %d 5! est egal a 120 while, from the console, the same statement produces a correct output:: -->printf("\n%d! est ?gal ? %d",n,factorial(n)) 5! est ?gal ? 120 Are there any restrictions on the use of accents on printf? Thanks, Osvaldo -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Tue Sep 29 23:27:10 2009 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Tue, 29 Sep 2009 23:27:10 +0200 Subject: [scilab-Users] Accents on printf In-Reply-To: References: Message-ID: <4AC27BAE.80509@free.fr> Osvaldo Sergio Farhat de Carvalho said on 29/09/2009 20:44: > > When I execute a program from Scipad with a printf with a format string > with accents, conversion codes after the first accent are ignored. This is not a Scipad bug. It is a Scilab 5 bug. Proof: put your code: > n = 5; > printf("\n%d! est ?gal ? %d",n,factorial(n)) in a file printfbug.sce and then from Scilab: -->exec "printfbug.sce"; 5! est ?gal ? %d --> > Are there any restrictions on the use of accents on printf? Well, you have just found a regression in Scilab 5 that does not happen with Scicoslab. Francois From osvaldo at dcc.ufmg.br Wed Sep 30 02:07:16 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Tue, 29 Sep 2009 21:07:16 -0300 Subject: [scilab-Users] Accents on printf - and also on input In-Reply-To: <4AC27BAE.80509@free.fr> References: <4AC27BAE.80509@free.fr> Message-ID: Thanks, Fran?ois. By the way, there is also a (perhaps related) bug with the input statement. The statement: s = input("s = ","string") shows the following behaviour on Scilab when you type a string with special characters: s = Fran?ois s = Fran If you try this you will also note that the leading blanks on "s = " only appear after you press Enter. I hope the development team will fix these bugs soon. In Brazil, as in France, we need to deal with special characters all the time. Osvaldo De: Fran?ois Vogel Para: users at lists.scilab.org Data: 29/09/2009 19:55 Assunto: Re: [scilab-Users] Accents on printf Osvaldo Sergio Farhat de Carvalho said on 29/09/2009 20:44: > > When I execute a program from Scipad with a printf with a format string > with accents, conversion codes after the first accent are ignored. This is not a Scipad bug. It is a Scilab 5 bug. Proof: put your code: > n = 5; > printf("\n%d! est ?gal ? %d",n,factorial(n)) in a file printfbug.sce and then from Scilab: -->exec "printfbug.sce"; 5! est ?gal ? %d --> > Are there any restrictions on the use of accents on printf? Well, you have just found a regression in Scilab 5 that does not happen with Scicoslab. Francois -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Wed Sep 30 08:31:33 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 30 Sep 2009 08:31:33 +0200 Subject: [scilab-Users] Accents on printf - and also on input In-Reply-To: References: <4AC27BAE.80509@free.fr> Message-ID: <1254292293.13844.1990.camel@zlarin> Le mardi 29 septembre 2009 ? 21:07 -0300, Osvaldo Sergio Farhat de Carvalho a ?crit : > Thanks, Fran?ois. > > By the way, there is also a (perhaps related) bug with the input > statement. The statement: > > s = input("s = ","string") > > shows the following behaviour on Scilab when you type a string with > special characters: > > s = Fran?ois > s = > > Fran > > If you try this you will also note that the leading blanks on "s = " > only appear after you press Enter. > > I hope the development team will fix these bugs soon. In Brazil, as in > France, we need to deal with special characters all the time. For the "first bug", I am not able to reproduce it under Linux both for the master branch or the 5.1.1. For the one you just reported, this bug, among many other UTF-8-related issues, has been fixed in the current master. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France