From peter.balazovic at yahoo.com Fri Feb 1 09:28:51 2013 From: peter.balazovic at yahoo.com (pepe) Date: Fri, 1 Feb 2013 00:28:51 -0800 (PST) Subject: [Scilab-users] C compiler Message-ID: <1359707331895-4025856.post@n3.nabble.com> Hello all, I want to get running C compiler via Scilab. I have installed MS Visual Studio C++ 2010 Express. I run Win 8 - 64b and Scilab 5.4.0 - 64b. msvc = findmsvccompiler() msvc100express bOK=configure_msvc() T but bOK=haveacompiler() F Can you please help how to configure C compiler under Scilab correctly to be able to compile? Thanks Pete -- View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.elias at scilab-enterprises.com Fri Feb 1 10:09:40 2013 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 01 Feb 2013 10:09:40 +0100 Subject: [Scilab-users] C compiler In-Reply-To: <1359707331895-4025856.post@n3.nabble.com> References: <1359707331895-4025856.post@n3.nabble.com> Message-ID: <510B8654.7060500@scilab-enterprises.com> Hello Pete, I'm under Win8 64Bits, Scilab 5.4.0, VS2010 Pro and I got : -->msvc = findmsvccompiler() msvc =msvc100pro -->bOK=configure_msvc() bOK = T -->bOK=haveacompiler() bOK = T Can you try to execute the following code please ? function vcPath64 = dlwGet64BitPath() vcPath64 = []; programFilesx86Path = getenv('ProgramFiles(x86)', ''); if (programFilesx86Path <> '') then if isfile(programFilesx86Path + '\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe') then vcPath64 = programFilesx86Path + '\Microsoft Visual Studio 10.0'; end end endfunction MSVCBIN64PATH = dlwGet64BitPath() + filesep() + 'VC\bin\amd64' Antoine Le 01/02/2013 09:28, pepe a ?crit : > Hello all, > > I want to get running C compiler via Scilab. I have installed MS Visual > Studio C++ 2010 Express. I run Win 8 - 64b and Scilab 5.4.0 - 64b. > > msvc = findmsvccompiler() > msvc100express > > bOK=configure_msvc() > T > > but > bOK=haveacompiler() > F > > Can you please help how to configure C compiler under Scilab correctly to be > able to compile? > > > Thanks > Pete > > > > > > -- > View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Antoine ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com From antoine.elias at scilab-enterprises.com Fri Feb 1 10:20:26 2013 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 01 Feb 2013 10:20:26 +0100 Subject: [Scilab-users] C compiler In-Reply-To: <510B8654.7060500@scilab-enterprises.com> References: <1359707331895-4025856.post@n3.nabble.com> <510B8654.7060500@scilab-enterprises.com> Message-ID: <510B88DA.1000109@scilab-enterprises.com> Sweet mailer ... function vcPath64 = dlwGet64BitPath() vcPath64 = []; programFilesx86Path = getenv('ProgramFiles(x86)', ''); if (programFilesx86Path <> '') then if isfile(programFilesx86Path + '\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe') then vcPath64 = programFilesx86Path + '\Microsoft Visual Studio 10.0'; end end endfunction MSVCBIN64PATH = dlwGet64BitPath() + filesep() + 'VC\bin\amd64' Antoine Le 01/02/2013 10:09, Antoine ELIAS a ?crit : > Hello Pete, > > I'm under Win8 64Bits, Scilab 5.4.0, VS2010 Pro and I got : > > -->msvc = findmsvccompiler() > msvc =msvc100pro > > -->bOK=configure_msvc() > bOK = T > > -->bOK=haveacompiler() > bOK = T > > > Can you try to execute the following code please ? > > function vcPath64 = dlwGet64BitPath() > vcPath64 = []; > programFilesx86Path = getenv('ProgramFiles(x86)', ''); > if (programFilesx86Path <> '') then > if isfile(programFilesx86Path + '\Microsoft Visual Studio > 10.0\VC\bin\amd64\cl.exe') then > vcPath64 = programFilesx86Path + '\Microsoft Visual Studio > 10.0'; > end > end > endfunction > > MSVCBIN64PATH = dlwGet64BitPath() + filesep() + 'VC\bin\amd64' > > Antoine > > Le 01/02/2013 09:28, pepe a ?crit : >> Hello all, >> >> I want to get running C compiler via Scilab. I have installed MS Visual >> Studio C++ 2010 Express. I run Win 8 - 64b and Scilab 5.4.0 - 64b. >> >> msvc = findmsvccompiler() >> msvc100express >> >> bOK=configure_msvc() >> T >> >> but >> bOK=haveacompiler() >> F >> >> Can you please help how to configure C compiler under Scilab correctly to be >> able to compile? >> >> >> Thanks >> Pete >> >> >> >> >> >> -- >> View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856.html >> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > -- Antoine ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com From Christophe.Dang at sidel.com Fri Feb 1 10:35:38 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 1 Feb 2013 10:35:38 +0100 Subject: [Scilab-users] Peaks and positions In-Reply-To: <1359654317525-4025853.post@n3.nabble.com> References: <1359216001776-4025764.post@n3.nabble.com> <1359647993736-4025851.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F106536990@301EX00100.sidel.com> <1359654317525-4025853.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F106536F27@301EX00100.sidel.com> Hello, > My mission is identify the values of the spikes [...] > and if is posible show in the plot , "here theres a spike" I worked on a small sample of your data: 4th column of movil040712_231.raw.TXT, lines 3500 to 10000, saved in the "test.txt" file attached. As I don't know what "excessive slope" means in your field, I used a statistical determination of the upperthreshold in order to have some data eliminated. Mind that I worked only on one column, so I simplified the search ("find" instead of "while..." loop). If you work on several columns, you might have to define one threshold by column and use a "while" loop for the search. Hope this helps. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_spikes.sce Type: application/octet-stream Size: 1166 bytes Desc: test_spikes.sce URL: From peter.balazovic at yahoo.com Fri Feb 1 11:42:47 2013 From: peter.balazovic at yahoo.com (pepe) Date: Fri, 1 Feb 2013 02:42:47 -0800 (PST) Subject: [Scilab-users] C compiler In-Reply-To: <510B8654.7060500@scilab-enterprises.com> References: <1359707331895-4025856.post@n3.nabble.com> <510B8654.7060500@scilab-enterprises.com> Message-ID: <1359715367941-4025860.post@n3.nabble.com> Unfortunately suggested procedure does not help. Note: I have installed MS VC++ 2010 Express, There is recommended a Windows SDK 7.1 but I can't install and no idea why always finishes with failure. -- View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856p4025860.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.elias at scilab-enterprises.com Fri Feb 1 11:49:07 2013 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Fri, 01 Feb 2013 11:49:07 +0100 Subject: [Scilab-users] C compiler In-Reply-To: <1359715367941-4025860.post@n3.nabble.com> References: <1359707331895-4025856.post@n3.nabble.com> <510B8654.7060500@scilab-enterprises.com> <1359715367941-4025860.post@n3.nabble.com> Message-ID: <510B9DA3.4020000@scilab-enterprises.com> Can you show me the script output ? the same without line wrap, I hope. function vcPath64 = dlwGet64BitPath() vcPath64 = []; programFilesx86Path = getenv('ProgramFiles(x86)', ''); if (programFilesx86Path <> '') then if isfile(programFilesx86Path + '\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe') then vcPath64 = programFilesx86Path + '\Microsoft Visual Studio 10.0'; end end endfunction MSVCBIN64PATH = dlwGet64BitPath() + filesep() + 'VC\bin\amd64' Le 01/02/2013 11:42, pepe a ?crit : > Unfortunately suggested procedure does not help. > > Note: > I have installed MS VC++ 2010 Express, There is recommended a Windows SDK > 7.1 but > I can't install and no idea why always finishes with failure. > > > > > -- > View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856p4025860.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Antoine ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com From peter.balazovic at yahoo.com Fri Feb 1 12:37:10 2013 From: peter.balazovic at yahoo.com (pepe) Date: Fri, 1 Feb 2013 03:37:10 -0800 (PST) Subject: [Scilab-users] C compiler In-Reply-To: <510B9DA3.4020000@scilab-enterprises.com> References: <1359707331895-4025856.post@n3.nabble.com> <510B8654.7060500@scilab-enterprises.com> <1359715367941-4025860.post@n3.nabble.com> <510B9DA3.4020000@scilab-enterprises.com> Message-ID: <1359718630672-4025862.post@n3.nabble.com> this is a script I run function vcPath64 = dlwGet64BitPath() vcPath64 = []; programFilesx86Path = getenv('ProgramFiles(x86)', ''); if (programFilesx86Path <> '') then if isfile(programFilesx86Path + '\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe') then vcPath64 = programFilesx86Path + '\Microsoft Visual Studio 10.0'; end end endfunction MSVCBIN64PATH = dlwGet64BitPath() + filesep() + 'VC\bin\amd64' I run it from console -->exec('C:\Users\peter.balazovic\Downloads\test\cc.sci', -1) BTW I do not have a directory "Microsoft Visual Studio 10.0\VC\bin\amd64\" -- View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856p4025862.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From peter.balazovic at yahoo.com Fri Feb 1 16:16:38 2013 From: peter.balazovic at yahoo.com (pepe) Date: Fri, 1 Feb 2013 07:16:38 -0800 (PST) Subject: [Scilab-users] C compiler In-Reply-To: <1359718630672-4025862.post@n3.nabble.com> References: <1359707331895-4025856.post@n3.nabble.com> <510B8654.7060500@scilab-enterprises.com> <1359715367941-4025860.post@n3.nabble.com> <510B9DA3.4020000@scilab-enterprises.com> <1359718630672-4025862.post@n3.nabble.com> Message-ID: <1359731798119-4025863.post@n3.nabble.com> my understanding is that Visual C++ 2010 Express does not include a 64 bit compiler, the Windows Software Development Kit version 7.1 does. However it can't be installed under Win 8 where SDK 7.1 always refuses to install. So question is what compiler to use under Win 8? -- View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856p4025863.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From calixte.denizet at scilab-enterprises.com Fri Feb 1 18:16:57 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Fri, 01 Feb 2013 18:16:57 +0100 Subject: [Scilab-users] figure exported before graphical refresh In-Reply-To: <51079F23.1050302@laas.fr> References: <3B5FFC67498DFF49AE7271A584867D16F1064B9930@301EX00100.sidel.com> <51079F23.1050302@laas.fr> Message-ID: <510BF889.9090307@scilab-enterprises.com> Hi Antoine & Christophe A bug has been reported: http://bugzilla.scilab.org/show_bug.cgi?id=12250 and I'm currently fixing it. Calixte On 29/01/2013 11:06, Antoine Monmayrant wrote: > On 29/01/2013 10:39, Dang, Christophe wrote: >> Hello, >> >> while trying to make an animation, >> I noticed that some figures were exported with the wrong scale. >> >> The scale is set by setting the data_bound axes property. >> >> I supposed that the file was created before the scale was set, >> so I introduced a sleep(100) and it solved the problem. >> >> Here is a minimal code reproducing the problem; >> the image is empty when the scale is not set. >> >> Do I have to report any bug anywhere? > Hi, > > I would say yes, but anyway if you wait ~10 minutes, you'll Get > Sylvestre answer ;) > > By the way, I also experienced this race condition some times ago but > I did not have time to write a demo to reproduce this bug reliably. > > Antoine >> >> Regards >> >> // ******************** >> >> f0 = scf(0); >> >> xmin = 10; xmax = 60; >> >> ymin = 0; ymax = 10; >> >> for i = 10:60 >> clf; >> xpoly([i, i+10, i], [0, 10, 20]); >> a = get('current_axes'); >> a.data_bounds = [xmin, ymin ; xmax, ymax]; >> // sleep(100); >> >> name=('test-anim'+string(i)+'.gif'); >> xs2gif(0, name); >> end >> >> // ******************** >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From berns.buenaobra at gmail.com Sat Feb 2 00:48:30 2013 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Sat, 2 Feb 2013 07:48:30 +0800 Subject: [Scilab-users] C compiler In-Reply-To: <1359707331895-4025856.post@n3.nabble.com> References: <1359707331895-4025856.post@n3.nabble.com> Message-ID: Hi, You sure your MS VC++ 2010 express is 64-bit as well? Berns B. On Fri, Feb 1, 2013 at 4:28 PM, pepe wrote: > Hello all, > > I want to get running C compiler via Scilab. I have installed MS Visual > Studio C++ 2010 Express. I run Win 8 - 64b and Scilab 5.4.0 - 64b. > > msvc = findmsvccompiler() > msvc100express > > bOK=configure_msvc() > T > > but > bOK=haveacompiler() > F > > Can you please help how to configure C compiler under Scilab correctly to > be > able to compile? > > > Thanks > Pete > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/C-compiler-tp4025856.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.balazovic at yahoo.com Sat Feb 2 09:54:53 2013 From: peter.balazovic at yahoo.com (pepe) Date: Sat, 2 Feb 2013 00:54:53 -0800 (PST) Subject: [Scilab-users] C compiler In-Reply-To: References: <1359707331895-4025856.post@n3.nabble.com> Message-ID: <1359795293581-4025866.post@n3.nabble.com> Visual C++ 2010 Express does not include a 64 bit compiler, but the Windows Software Development Kit version 7.1 does. However SDK 7.1 can't be installed under Win 8 where SDK 7.1 always refuses to install. -- View this message in context: http://mailinglists.scilab.org/C-compiler-tp4025856p4025866.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Feb 4 09:27:50 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 4 Feb 2013 09:27:50 +0100 Subject: [Scilab-users] figure exported before graphical refresh In-Reply-To: <510BF889.9090307@scilab-enterprises.com> References: <3B5FFC67498DFF49AE7271A584867D16F1064B9930@301EX00100.sidel.com> <51079F23.1050302@laas.fr> <510BF889.9090307@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F1065789CC@301EX00100.sidel.com> Hello, On 01/02/2013 18:19, Calixte Denizet wrote > Hi Antoine & Christophe > > A bug has been reported: > http://bugzilla.scilab.org/show_bug.cgi?id=12250 > > and I'm currently fixing it. Thanks a lot. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From samad13 at hotmail.de Mon Feb 4 12:18:06 2013 From: samad13 at hotmail.de (samy) Date: Mon, 4 Feb 2013 03:18:06 -0800 (PST) Subject: [Scilab-users] tlist-variables Message-ID: <1359976686671-4025870.post@n3.nabble.com> hello everybody, i build a large tlist with more elments and i want now to use the variables in this tlist for solving some equations. for example: s=tlist(['Type';'A';'B';'C'],1,2,3); i want to make a function like that: if i load the tlist in scilab i get s.A=1 and s.B=2, s.C=3 now i want to define A=s.A and B=s.B and C=s.C in another scilab file it's possible to do something for a large tlist? thanks in advance -- View this message in context: http://mailinglists.scilab.org/tlist-variables-tp4025870.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From peter.balazovic at yahoo.com Mon Feb 4 18:44:28 2013 From: peter.balazovic at yahoo.com (pepe) Date: Mon, 4 Feb 2013 09:44:28 -0800 (PST) Subject: [Scilab-users] Call C function Message-ID: <1359999868021-4025871.post@n3.nabble.com> Hello all, I used this function to be run under scilab, it does not calculate the '*c' correcly. Can you please help how to use a such a funtion or how to correctly run C function within scilab? Thanks, Pete void ext1c(double *c,double a, double b) { *c=a+b; } mputl(f1,'fun1.c') ilib_for_link('ext1c','fun1.c',[],"c") exec loader.sce //using the new primitive a=1.0;b=2.9;z=0; z=call('ext1c',a,2,'d',b,3,'d','out',[1,1],1,'d'); -- View this message in context: http://mailinglists.scilab.org/Call-C-function-tp4025871.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From peter.balazovic at yahoo.com Tue Feb 5 19:57:07 2013 From: peter.balazovic at yahoo.com (pepe) Date: Tue, 5 Feb 2013 10:57:07 -0800 (PST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link Message-ID: <1360090627168-4025872.post@n3.nabble.com> Hello all, I am using example from "Tutorial Creating a C Function Block in Scicos" to create C-callable function from xcos. During ilib_for_link process I got this output, Are you able to help with this issue somehow? Thanks, Pete -->ilib_for_link('lim_int','lim_int_comp.c',[],'c'); Generate a loader file Generate a Makefile Running the Makefile Compilation of lim_int_comp.c Building shared library (be patient) !Creation of dll liblim_int.dll and import lib from ... ! ! ! !lim_int_comp.obj ! ! ! ! Creating library liblim_int.lib and object liblim_int.exp ! ! ! !lim_int_comp.obj : error LNK2019: unresolved external symbol _get_phase_simulation referenced in function _lim_int ! ! ! !liblim_int.dll : fatal error LNK1120: 1 unresolved externals ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.EXE"' : return code '0x460' ! ! ! !Stop. ! !--error 10000 ilib_compile: Error while executing Makelib.mak. at line 27 of function dlwCompile called by : at line 51 of function ilib_compile called by : at line 94 of function ilib_for_link called by : ilib_for_link('lim_int','lim_int_comp.c',[],'c'); -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Feb 6 08:46:23 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 06 Feb 2013 08:46:23 +0100 Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360090627168-4025872.post@n3.nabble.com> References: <1360090627168-4025872.post@n3.nabble.com> Message-ID: <1360136783.2445.4.camel@paros> Hello Pete, Your block might use some simulator advanced functions (zero-crossing management) thus you should link against scicos.dll. > During ilib_for_link process I got this output, Are you able to help with > this issue somehow? > !lim_int_comp.obj : error LNK2019: unresolved external symbol > _get_phase_simulation referenced in function _lim_int ! -- Cl?ment David Scilab Enterprises From peter.balazovic at yahoo.com Wed Feb 6 09:33:12 2013 From: peter.balazovic at yahoo.com (pepe) Date: Wed, 6 Feb 2013 00:33:12 -0800 (PST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360136783.2445.4.camel@paros> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> Message-ID: <1360139592237-4025874.post@n3.nabble.com> Hello, How to solve it? How to correctly compile it to have no error? Best regards, Pete -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4025874.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From peter.balazovic at yahoo.com Wed Feb 6 10:06:29 2013 From: peter.balazovic at yahoo.com (pepe) Date: Wed, 6 Feb 2013 01:06:29 -0800 (PST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360139592237-4025874.post@n3.nabble.com> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> Message-ID: <1360141589668-4025875.post@n3.nabble.com> Hello, I am using example from tutorial there is a source for c file: #include "C:\Program Files (x86)\scilab-5.4.0\modules\scicos_blocks\includes\scicos_block4.h" #include #include #include #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) // parameters #define Lhi (GetRparPtrs(blk)[0]) // integrator high limit #define Llo (GetRparPtrs(blk)[1]) // integrator low limit // inputs #define in (r_IN(0,0)) // integrator input #define gainp (r_IN(1,0)) // integrator gain when X > 0 #define gainn (r_IN(2,0)) // integrator gain when X <= 0 // states #define X (GetState(blk)[0]) // integrator state #define Xdot (GetDerState(blk)[0]) // derivative of the integrator output // outputs #define out (r_OUT(0, 0)) // integrator output #define Igain (r_OUT(1, 0)) // integrator gain // other constants #define surf0 (GetGPtrs(blk)[0]) #define surf1 (GetGPtrs(blk)[1]) #define surf2 (GetGPtrs(blk)[2]) #define mode0 (GetModePtrs(blk)[0]) // if X is greater than Lhi, then mode is 1 // if X is between Lhi and zero, then mode is 2 // if X is between zero and Llo, then mode is 3 // if X is less than Llo, then mode is 4 #define mode_xhzl 1 #define mode_hxzl 2 #define mode_hzxl 3 #define mode_hzlx 4 void lim_int(scicos_block *blk, int flag) { double gain = 0; switch (flag) { case 0: // compute the derivative of the continuous time state if ((mode0 == mode_xhzl && in < 0) || mode0 == mode_hxzl) gain = gainp; else if ((mode0 == mode_hzlx && in > 0) || mode0 == mode_hzxl) gain = gainn; Xdot = gain * in; break; case 1: // compute the outputs of the block if (X >= Lhi || X <= Llo) Igain = 0; else if (X > 0) Igain = gainp; else Igain = gainn; out = X; break; case 9: // compute zero crossing surfaces and set modes surf0 = X - Lhi; surf1 = X; surf2 = X - Llo; if (get_phase_simulation() == 1) { if (surf0 >= 0) mode0 = mode_xhzl; else if (surf2 <= 0) mode0 = mode_hzlx; else if (surf1 > 0) mode0 = mode_hxzl; else mode0 = mode_hzxl; } break; } } -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4025875.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Feb 6 11:59:07 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 06 Feb 2013 11:59:07 +0100 Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360141589668-4025875.post@n3.nabble.com> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> <1360141589668-4025875.post@n3.nabble.com> Message-ID: <1360148347.11340.3.camel@paros> Hello, In the xcos_toolbox_skeleton, we handle this link issue by using specific LDFLAGS [1]. [1]: http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/contrib/xcos_toolbox_skeleton/src/c/builder_c.sce -- Cl?ment Le mercredi 06 f?vrier 2013 ? 01:06 -0800, pepe a ?crit : > Hello, > > I am using example from tutorial there is a source for c file: > > #include "C:\Program Files > (x86)\scilab-5.4.0\modules\scicos_blocks\includes\scicos_block4.h" > #include > #include > #include > > #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) > #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) > > // parameters > #define Lhi (GetRparPtrs(blk)[0]) // integrator high limit > #define Llo (GetRparPtrs(blk)[1]) // integrator low limit > > // inputs > #define in (r_IN(0,0)) // integrator input > #define gainp (r_IN(1,0)) // integrator gain when X > 0 > #define gainn (r_IN(2,0)) // integrator gain when X <= 0 > > // states > #define X (GetState(blk)[0]) // integrator state > #define Xdot (GetDerState(blk)[0]) // derivative of the integrator > output > > // outputs > #define out (r_OUT(0, 0)) // integrator output > #define Igain (r_OUT(1, 0)) // integrator gain > > // other constants > #define surf0 (GetGPtrs(blk)[0]) > #define surf1 (GetGPtrs(blk)[1]) > #define surf2 (GetGPtrs(blk)[2]) > #define mode0 (GetModePtrs(blk)[0]) > > > // if X is greater than Lhi, then mode is 1 > // if X is between Lhi and zero, then mode is 2 > // if X is between zero and Llo, then mode is 3 > // if X is less than Llo, then mode is 4 > #define mode_xhzl 1 > #define mode_hxzl 2 > #define mode_hzxl 3 > #define mode_hzlx 4 > > void lim_int(scicos_block *blk, int flag) > { > double gain = 0; > > switch (flag) > { > case 0: > // compute the derivative of the continuous time state > if ((mode0 == mode_xhzl && in < 0) || mode0 == mode_hxzl) > gain = gainp; > else if ((mode0 == mode_hzlx && in > 0) || mode0 == mode_hzxl) > gain = gainn; > Xdot = gain * in; > break; > > case 1: > // compute the outputs of the block > if (X >= Lhi || X <= Llo) > Igain = 0; > else if (X > 0) > Igain = gainp; > else > Igain = gainn; > out = X; > break; > > case 9: > // compute zero crossing surfaces and set modes > surf0 = X - Lhi; > surf1 = X; > surf2 = X - Llo; > > if (get_phase_simulation() == 1) > { > if (surf0 >= 0) > mode0 = mode_xhzl; > else if (surf2 <= 0) > mode0 = mode_hzlx; > else if (surf1 > 0) > mode0 = mode_hxzl; > else > mode0 = mode_hzxl; > } > break; > } > } > > > > > -- > View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4025875.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From peter.balazovic at yahoo.com Wed Feb 6 12:27:52 2013 From: peter.balazovic at yahoo.com (pepe) Date: Wed, 6 Feb 2013 03:27:52 -0800 (PST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360148347.11340.3.camel@paros> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> <1360141589668-4025875.post@n3.nabble.com> <1360148347.11340.3.camel@paros> Message-ID: <1360150072190-4025877.post@n3.nabble.com> I am using this for shared library management with link ilib_for_link('lim_int','lim_int_comp.c',[],'c','Makelib','loader.sce','','','-g'); but it does not work either. So if you can please help what ldflags to use? Thanks a lot. Pete -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4025877.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Feb 6 12:37:07 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 06 Feb 2013 12:37:07 +0100 Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360150072190-4025877.post@n3.nabble.com> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> <1360141589668-4025875.post@n3.nabble.com> <1360148347.11340.3.camel@paros> <1360150072190-4025877.post@n3.nabble.com> Message-ID: <1360150627.11340.5.camel@paros> Hello, Just use something like: ilib_for_link('lim_int','lim_int_comp.c',[],'c','Makelib','loader.sce',''," """ + SCI + "/bin/scicos.lib""",'-g'); see http://help.scilab.org/docs/5.4.0/en_US/ilib_for_link.html Le mercredi 06 f?vrier 2013 ? 03:27 -0800, pepe a ?crit : > ilib_for_link('lim_int','lim_int_comp.c',[],'c','Makelib','loader.sce','','','-g'); From peter.balazovic at yahoo.com Wed Feb 6 13:08:48 2013 From: peter.balazovic at yahoo.com (pepe) Date: Wed, 6 Feb 2013 04:08:48 -0800 (PST) Subject: [Scilab-users] Creating a C Function Block issue to compile&link In-Reply-To: <1360150627.11340.5.camel@paros> References: <1360090627168-4025872.post@n3.nabble.com> <1360136783.2445.4.camel@paros> <1360139592237-4025874.post@n3.nabble.com> <1360141589668-4025875.post@n3.nabble.com> <1360148347.11340.3.camel@paros> <1360150072190-4025877.post@n3.nabble.com> <1360150627.11340.5.camel@paros> Message-ID: <1360152528729-4025879.post@n3.nabble.com> I just got use this CFLAGS = ""; LDFLAGS = ""; CFLAGS = "-I" + SCI + "/modules/scicos/includes" + " -I" + SCI + "/modules/scicos_blocks/includes"; LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos.lib"""; LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos_f.lib"""; ilib_for_link('lim_int','lim_int_comp.c',[],'c','','loader.sce','',LDFLAGS,CFLAGS); I got working!!! Thanksa lot!!! Pete -- View this message in context: http://mailinglists.scilab.org/Creating-a-C-Function-Block-issue-to-compile-link-tp4025872p4025879.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tvitklg at rambler.ru Thu Feb 7 13:31:58 2013 From: tvitklg at rambler.ru (TViT) Date: Thu, 7 Feb 2013 04:31:58 -0800 (PST) Subject: [Scilab-users] Quadrature Mirror Filters Message-ID: <1360240317954-4025880.post@n3.nabble.com> Hi by all! How to create Quadrature Mirror Filter. In MATLAB there is a function QMF. Whether is similar in Scilab? -- View this message in context: http://mailinglists.scilab.org/Quadrature-Mirror-Filters-tp4025880.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Thu Feb 7 16:01:26 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 07 Feb 2013 16:01:26 +0100 Subject: [Scilab-users] trouble with vectorial export Message-ID: <5113C1C6.9080204@centre-cired.fr> Hi When I try to export a figure in ps, pdg or svg with scilab, the output file does not match my figure. Styles and width in particular are not respected. The png file attaches (via xs2png) works fine, the pdf does not Any suggestions? Thanks -->getdebuginfo ans = !Memory in use: 26 % ! ! ! !Total Physical Memory (Kbytes): 8001052 ! ! ! !Free Physical Memory (Kbytes): 5920108 ! ! ! !Total Paging File (Kbytes): 16127520 ! ! ! !Free Paging File (Kbytes): 13948732 ! ! ! !Total Virtual Memory (Kbytes): 8589934464 ! ! ! !Free Virtual Memory (Kbytes): 8589186256 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows 8 x64 ! ! ! !Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz ! ! ! !Number of processors: 4 ! ! ! !Number of Video cards: 1 ! ! ! !Video card #0: Intel(R) HD Graphics 4000 ! ! ! !Primary Video card driver version: 9.17.10.2857 ! ! ! !Screen size: 1600 x 900 32 bits ! ! ! !Number of Monitors: 2 ! ! ! !Path: C:/Program Files/scilab-5.4.0/bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows! ! \system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) M! ! anagement Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Int! ! el\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Prog! ! ram Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Condusiv ! ! Technologies\IntelliMemory\;C:\Program Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\! ! perl\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (! ! x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P! ! rogram Files (x86)\WinMerge;d:\utils;C:\Program Files (x86)\WinSCP\ ! ! ! !ComSpec: C:\windows\system32\cmd.exe ! ! ! !TMP : C:\Users\Admin\AppData\Local\Temp ! ! ! !TEMP: C:\Users\Admin\AppData\Local\Temp ! ! ! !TMPDIR: C:\Users\Admin\AppData\Local\Temp\SCI_TMP_4172_ ! ! ! !WSCI: C:\Program Files\scilab-5.4.0 ! ! ! !SCIHOME: C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0 ! -------------- next part -------------- A non-text attachment was scrubbed... Name: paf.pdf Type: application/pdf Size: 30575 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: paf.png Type: image/png Size: 6608 bytes Desc: not available URL: From vogt at centre-cired.fr Thu Feb 7 16:17:56 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 07 Feb 2013 16:17:56 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113C1C6.9080204@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> Message-ID: <5113C5A4.2050600@centre-cired.fr> Hi again, I also tried to print my figure to see (from the GUI), and that's what it says: oldgcbo = gcbo; end;gcbo = getcallbackobject("295e1c6f:13cb53a7219:-7f90");printfigure(0);;if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end !--error 999 printfigure: A Java exception arisen: Exception when calling Java method : at java.security.AccessController.doPrivileged(Native Method) at sun.print.RasterPrinterJob.printDialog(Unknown Source) at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.print.RasterPrinterJob.printDialog(Unknown Source) at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) while executing a callback On 07/02/2013 16:01, Adrien Vogt-Schilb wrote: > Hi > > When I try to export a figure in ps, pdg or svg with scilab, the > output file does not match my figure. Styles and width in particular > are not respected. > > The png file attaches (via xs2png) works fine, the pdf does not > > Any suggestions? > > Thanks > > > > > -->getdebuginfo > ans = > > !Memory in use: 26 % ! > ! ! > !Total Physical Memory (Kbytes): 8001052 ! > ! ! > !Free Physical Memory (Kbytes): 5920108 ! > ! ! > !Total Paging File (Kbytes): 16127520 ! > ! ! > !Free Paging File (Kbytes): 13948732 ! > ! ! > !Total Virtual Memory (Kbytes): 8589934464 ! > ! ! > !Free Virtual Memory (Kbytes): 8589186256 ! > ! ! > !Free Extended Memory (Kbytes): 0 ! > ! ! > !Operating System: Windows 8 x64 ! > ! ! > !Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz ! > ! ! > !Number of processors: 4 ! > ! ! > !Number of Video cards: 1 ! > ! ! > !Video card #0: Intel(R) HD Graphics 4000 ! > ! ! > !Primary Video card driver version: 9.17.10.2857 ! > ! ! > !Screen size: 1600 x 900 32 bits ! > ! ! > !Number of Monitors: 2 ! > ! ! > !Path: C:/Program Files/scilab-5.4.0/bin;C:\Program Files > (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows! > ! > \system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program > Files\Intel\Intel(R) M! > ! anagement Engine Components\DAL;C:\Program Files\Intel\Intel(R) > Management Engine Components\IPT;C:\Program Files (x86)\Int! > ! el\Intel(R) Management Engine Components\DAL;C:\Program Files > (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Prog! > ! ram Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files > (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Condusiv ! > ! Technologies\IntelliMemory\;C:\Program > Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\! > ! perl\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program > Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (! > ! x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program > Files\Intel\WiFi\bin\;C:\Program Files\Common > Files\Intel\WirelessCommon\;C:\P! > ! rogram Files (x86)\WinMerge;d:\utils;C:\Program Files > (x86)\WinSCP\ ! > ! ! > !ComSpec: C:\windows\system32\cmd.exe ! > ! ! > !TMP : C:\Users\Admin\AppData\Local\Temp ! > ! ! > !TEMP: C:\Users\Admin\AppData\Local\Temp ! > ! ! > !TMPDIR: C:\Users\Admin\AppData\Local\Temp\SCI_TMP_4172_ ! > ! ! > !WSCI: C:\Program Files\scilab-5.4.0 ! > ! ! > !SCIHOME: C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0 ! > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Feb 7 16:30:57 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 07 Feb 2013 16:30:57 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113C5A4.2050600@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> <5113C5A4.2050600@centre-cired.fr> Message-ID: <5113C8B1.9040503@centre-cired.fr> OK, this last issue is unrelated, and can be solved by running scilab as an admin. i still have my original problem On 07/02/2013 16:17, Adrien Vogt-Schilb wrote: > Hi again, > > I also tried to print my figure to see (from the GUI), and that's what > it says: > > oldgcbo = gcbo; end;gcbo = > getcallbackobject("295e1c6f:13cb53a7219:-7f90");printfigure(0);;if > exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > !--error 999 > printfigure: A Java exception arisen: > Exception when calling Java method : > at java.security.AccessController.doPrivileged(Native Method) > at sun.print.RasterPrinterJob.printDialog(Unknown Source) > at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown > Source) > > at java.security.AccessController.doPrivileged(Native Method) > at sun.print.RasterPrinterJob.printDialog(Unknown Source) > at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown > Source) > while executing a callback > > > On 07/02/2013 16:01, Adrien Vogt-Schilb wrote: >> Hi >> >> When I try to export a figure in ps, pdg or svg with scilab, the >> output file does not match my figure. Styles and width in particular >> are not respected. >> >> The png file attaches (via xs2png) works fine, the pdf does not >> >> Any suggestions? >> >> Thanks >> >> >> >> >> -->getdebuginfo >> ans = >> >> !Memory in use: 26 % ! >> ! ! >> !Total Physical Memory (Kbytes): 8001052 ! >> ! ! >> !Free Physical Memory (Kbytes): 5920108 ! >> ! ! >> !Total Paging File (Kbytes): 16127520 ! >> ! ! >> !Free Paging File (Kbytes): 13948732 ! >> ! ! >> !Total Virtual Memory (Kbytes): 8589934464 ! >> ! ! >> !Free Virtual Memory (Kbytes): 8589186256 ! >> ! ! >> !Free Extended Memory (Kbytes): 0 ! >> ! ! >> !Operating System: Windows 8 x64 ! >> ! ! >> !Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz ! >> ! ! >> !Number of processors: 4 ! >> ! ! >> !Number of Video cards: 1 ! >> ! ! >> !Video card #0: Intel(R) HD Graphics 4000 ! >> ! ! >> !Primary Video card driver version: 9.17.10.2857 ! >> ! ! >> !Screen size: 1600 x 900 32 bits ! >> ! ! >> !Number of Monitors: 2 ! >> ! ! >> !Path: C:/Program Files/scilab-5.4.0/bin;C:\Program Files >> (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows! >> ! >> \system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program >> Files\Intel\Intel(R) M! >> ! anagement Engine Components\DAL;C:\Program Files\Intel\Intel(R) >> Management Engine Components\IPT;C:\Program Files (x86)\Int! >> ! el\Intel(R) Management Engine Components\DAL;C:\Program Files >> (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Prog! >> ! ram Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files >> (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Condusiv ! >> ! Technologies\IntelliMemory\;C:\Program >> Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\! >> ! perl\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program >> Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (! >> ! x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program >> Files\Intel\WiFi\bin\;C:\Program Files\Common >> Files\Intel\WirelessCommon\;C:\P! >> ! rogram Files (x86)\WinMerge;d:\utils;C:\Program Files >> (x86)\WinSCP\ ! >> ! ! >> !ComSpec: C:\windows\system32\cmd.exe ! >> ! ! >> !TMP : C:\Users\Admin\AppData\Local\Temp ! >> ! ! >> !TEMP: C:\Users\Admin\AppData\Local\Temp ! >> ! ! >> !TMPDIR: C:\Users\Admin\AppData\Local\Temp\SCI_TMP_4172_ ! >> ! ! >> !WSCI: C:\Program Files\scilab-5.4.0 ! >> ! ! >> !SCIHOME: C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0 ! >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Feb 7 16:41:48 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 7 Feb 2013 16:41:48 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113C1C6.9080204@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> Hello > Styles and width in particular are not respected. I personally export as SVG and then edit the picture with Inkscape, which can export a PDF. Of course this does not solve the problem, but can be a turn around. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From calixte.denizet at scilab-enterprises.com Thu Feb 7 16:43:40 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Thu, 07 Feb 2013 16:43:40 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> Message-ID: <5113CBAC.2040506@scilab-enterprises.com> Hi About width, I'm currently writing a patch. But about style, it is more tricky and I need to find a way to do this (actually lines are broken in segments). Calixte On 07/02/2013 16:41, Dang, Christophe wrote: > Hello > >> Styles and width in particular are not respected. > I personally export as SVG > and then edit the picture with Inkscape, > which can export a PDF. > > Of course this does not solve the problem, > but can be a turn around. > > Regards > -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From sylvestre.ledru at scilab-enterprises.com Thu Feb 7 16:52:55 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 07 Feb 2013 16:52:55 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113C5A4.2050600@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> <5113C5A4.2050600@centre-cired.fr> Message-ID: <5113CDD7.3090503@scilab-enterprises.com> On 07/02/2013 16:17, Adrien Vogt-Schilb wrote: > Hi again, > > I also tried to print my figure to see (from the GUI), and that's what > it says: > > oldgcbo = gcbo; end;gcbo = > getcallbackobject("295e1c6f:13cb53a7219:-7f90");printfigure(0);;if > exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end > > !--error 999 > printfigure: A Java exception arisen: > Exception when calling Java method : > at java.security.AccessController.doPrivileged(Native Method) > at sun.print.RasterPrinterJob.printDialog(Unknown Source) > at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown > Source) > > at java.security.AccessController.doPrivileged(Native Method) > at sun.print.RasterPrinterJob.printDialog(Unknown Source) > at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown > Source) > while executing a callback > Scilab should able correctly the error and display a normal message. I reported a bug for this issue: https://bugzilla.scilab.org/show_bug.cgi?id=12286 S From vogt at centre-cired.fr Thu Feb 7 17:03:02 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 07 Feb 2013 17:03:02 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> Message-ID: <5113D036.801@centre-cired.fr> On 07/02/2013 16:41, Dang, Christophe wrote: > Hello > >> Styles and width in particular are not respected. > I personally export as SVG > and then edit the picture with Inkscape, > which can export a PDF. > > Of course this does not solve the problem, > but can be a turn around. > > Regards > hi thx for you trick. in my case the SVG export is broken too. From peter.balazovic at yahoo.com Thu Feb 7 17:52:29 2013 From: peter.balazovic at yahoo.com (pepe) Date: Thu, 7 Feb 2013 08:52:29 -0800 (PST) Subject: [Scilab-users] GEN_SQR Block Message-ID: <1360255949177-4025888.post@n3.nabble.com> Hello all, I've just searched over xcos I can't find GEN_SQR Block. I am using Scilab 5.4.0. Is this block GEN_SQR supported or is there replacement for it? Thank you! Best regards, Peter -- View this message in context: http://mailinglists.scilab.org/GEN-SQR-Block-tp4025888.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Thu Feb 7 18:59:33 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 07 Feb 2013 18:59:33 +0100 Subject: [Scilab-users] GEN_SQR Block In-Reply-To: <1360255949177-4025888.post@n3.nabble.com> References: <1360255949177-4025888.post@n3.nabble.com> Message-ID: <1360259973.23349.14.camel@paros> Hello, Are you looking for the "GENSQR_f" block ? This block is present in the "Source" palette on Scilab 5.4.0. Otherwise please document your need. > I've just searched over xcos I can't find GEN_SQR Block. I am using Scilab > 5.4.0. > Is this block GEN_SQR supported or is there replacement for it? -- Cl?ment David Scilab Enterprises From peter.balazovic at yahoo.com Thu Feb 7 19:37:59 2013 From: peter.balazovic at yahoo.com (pepe) Date: Thu, 7 Feb 2013 10:37:59 -0800 (PST) Subject: [Scilab-users] GEN_SQR Block In-Reply-To: <1360259973.23349.14.camel@paros> References: <1360255949177-4025888.post@n3.nabble.com> <1360259973.23349.14.camel@paros> Message-ID: <1360262279116-4025890.post@n3.nabble.com> Hello, This block I got it's fine. But there should be other block GEN_SQR where you are able to set the params such as Min Value,Max Value, Init value, perion and within GENSQR_f you are able to set just the Amplitude. I am trying to replace it by Signal Builder. Best regards, Pete -- View this message in context: http://mailinglists.scilab.org/GEN-SQR-Block-tp4025888p4025890.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From adelson.oliveira at gmail.com Fri Feb 8 06:21:17 2013 From: adelson.oliveira at gmail.com (Adelson Santos de Oliveira) Date: Fri, 08 Feb 2013 03:21:17 -0200 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113D036.801@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> <5113D036.801@centre-cired.fr> Message-ID: <51148B4D.5010408@gmail.com> This is an old problem! Exporting to ps or eps was possible with Scilab 4. After Scilab 5.x release, exporting was extended to pdf and svg but never worked properly for bigger/more complex figures. It is somewhat better now with Scilab 5.4 but yet *only* for simpler figures. There's a bug report on this subject. Em 07-02-2013 14:03, Adrien Vogt-Schilb escreveu: > On 07/02/2013 16:41, Dang, Christophe wrote: >> Hello >> >>> Styles and width in particular are not respected. >> I personally export as SVG >> and then edit the picture with Inkscape, >> which can export a PDF. >> >> Of course this does not solve the problem, >> but can be a turn around. >> >> Regards >> > hi > > thx for you trick. in my case the SVG export is broken too. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Fri Feb 8 10:09:52 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 08 Feb 2013 10:09:52 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113CBAC.2040506@scilab-enterprises.com> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> <5113CBAC.2040506@scilab-enterprises.com> Message-ID: <5114C0E0.4010801@centre-cired.fr> Hi Calixte It seems that this issue will take some time to be fixed then. Moreover, if I understand well, Scilab 6 will use a completely different approach to graphics? I'd like to use Scilab 5.3.3 meanwhile as a workaround, but I can't because my new machine runs Windows 8. I can launch scilab in compatibility mode, but then atoms doesn't work. I wonder whether it would be feasible (with little effort) to implement a 5.3.4 version, that would only bring 5.3.3 to windows 8 ? Best regards On 07/02/2013 16:43, Calixte Denizet wrote: > Hi > > About width, I'm currently writing a patch. But about style, it is > more tricky and I need to find a way to do this (actually lines are > broken in segments). > > Calixte > > On 07/02/2013 16:41, Dang, Christophe wrote: >> Hello >> >>> Styles and width in particular are not respected. >> I personally export as SVG >> and then edit the picture with Inkscape, >> which can export a PDF. >> >> Of course this does not solve the problem, >> but can be a turn around. >> >> Regards >> > > From calixte.denizet at scilab-enterprises.com Fri Feb 8 11:02:07 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Fri, 08 Feb 2013 11:02:07 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5114C0E0.4010801@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> <5113CBAC.2040506@scilab-enterprises.com> <5114C0E0.4010801@centre-cired.fr> Message-ID: <5114CD1F.3020905@scilab-enterprises.com> Hi Adrien, About vectorial export in 5.3: we used a thirdparty library (gl2ps) which used an opengl trick to make the export, so huge graphics could to lead to crash. In 5.4, we completely rewrite the vectorial exporter (we removed gl2ps) and huge graphics are now ok (the export can be long in 3D since there is a lot of computation (intersecting triangle, intersecting segments, ...)). For the 2D, I found an easy solution to take into account the style (I'll implement it asap), but in 3D it is more complex, since a polyline can be behind and in front of a triangle the polyline need to be broken (even if it doens't meet the triangle). Actually a polyline is broken into segments and all the segments are drawn in a particular order (according to their positions) and the line style is broken... An idea, in 3D, could be to break the polyline into the segments corresponding to the line style, but the polyline entity is lost. I hope to be able to propose a solution for 2D in the next week and for 3D, I don't know. Calixte On 08/02/2013 10:09, Adrien Vogt-Schilb wrote: > Hi Calixte > > It seems that this issue will take some time to be fixed then. > Moreover, if I understand well, Scilab 6 will use a completely > different approach to graphics? > I'd like to use Scilab 5.3.3 meanwhile as a workaround, but I can't > because my new machine runs Windows 8. I can launch scilab in > compatibility mode, but then atoms doesn't work. > > I wonder whether it would be feasible (with little effort) to > implement a 5.3.4 version, that would only bring 5.3.3 to windows 8 ? > > Best regards > > > On 07/02/2013 16:43, Calixte Denizet wrote: >> Hi >> >> About width, I'm currently writing a patch. But about style, it is >> more tricky and I need to find a way to do this (actually lines are >> broken in segments). >> >> Calixte >> >> On 07/02/2013 16:41, Dang, Christophe wrote: >>> Hello >>> >>>> Styles and width in particular are not respected. >>> I personally export as SVG >>> and then edit the picture with Inkscape, >>> which can export a PDF. >>> >>> Of course this does not solve the problem, >>> but can be a turn around. >>> >>> Regards >>> >> >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From vogt at centre-cired.fr Fri Feb 8 11:10:53 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 08 Feb 2013 11:10:53 +0100 Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5114CD1F.3020905@scilab-enterprises.com> References: <5113C1C6.9080204@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F106671F98@301EX00100.sidel.com> <5113CBAC.2040506@scilab-enterprises.com> <5114C0E0.4010801@centre-cired.fr> <5114CD1F.3020905@scilab-enterprises.com> Message-ID: <5114CF2D.8040701@centre-cired.fr> On 08/02/2013 11:02, Calixte Denizet wrote: > Hi Adrien, > > About vectorial export in 5.3: we used a thirdparty library (gl2ps) > which used an opengl trick to make the export, so huge graphics could > to lead to crash. > In 5.4, we completely rewrite the vectorial exporter (we removed > gl2ps) and huge graphics are now ok (the export can be long in 3D > since there is a lot of computation (intersecting triangle, > intersecting segments, ...)). > For the 2D, I found an easy solution to take into account the style > (I'll implement it asap), but in 3D it is more complex, since a > polyline can be behind and in front of a triangle the polyline need to > be broken (even if it doens't meet the triangle). Actually a polyline > is broken into segments and all the segments are drawn in a particular > order (according to their positions) and the line style is broken... > An idea, in 3D, could be to break the polyline into the segments > corresponding to the line style, but the polyline entity is lost. > I hope to be able to propose a solution for 2D in the next week and > for 3D, I don't know. > > Calixte Hi Calixte Thank you for this infromation, and "bon courage" with that. I know by experience that printing 3d structures is quite difficult. I look forward to use the 2D solution, which is by far the most useful feature for me (In my field, you typically make plots of 2 to 6 time series, and you want them to be clear when printed in 2d, and also beautiful when viewed in color in the pdf article.) Kind regards From samuel.enibe at unn.edu.ng Fri Feb 8 15:30:09 2013 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 8 Feb 2013 15:30:09 +0100 Subject: [Scilab-users] Plots on second Y axis Message-ID: Dear Sir, Could you please let me know the SCILAB command to use in making a plot on the SECOND (right) Y axis. Thank you very much. -- Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Feb 8 17:14:41 2013 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 8 Feb 2013 17:14:41 +0100 (CET) Subject: [Scilab-users] Plots on second Y axis In-Reply-To: Message-ID: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, according to your needs, you may do either: plot2d() ax = gca(); ax.y_location = 'right'; or demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy // and look at the code, using help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html Regards Samuel From boljeleel at yahoo.com Sat Feb 9 10:41:32 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Sat, 9 Feb 2013 01:41:32 -0800 (PST) Subject: [Scilab-users] trouble with vectorial export In-Reply-To: <5113C1C6.9080204@centre-cired.fr> References: <5113C1C6.9080204@centre-cired.fr> Message-ID: <1360402892.1391.YahooMailNeo@web160305.mail.bf1.yahoo.com> Hi Sir, Thank you for your mail. I am sorry I would not be able to help you with an answer because I am a beginner. But, I would like you to educate me on how you obtained that plot. Kind Regards. ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. ________________________________ From: Adrien Vogt-Schilb To: International users mailing list for Scilab. Sent: Thursday, February 7, 2013 4:01 PM Subject: [Scilab-users] trouble with vectorial export Hi When I try to export a figure in ps, pdg or svg with scilab, the output file does not match my figure. Styles and width in particular are not respected. The png file attaches (via xs2png) works fine, the pdf does not Any suggestions? Thanks -->getdebuginfo ans? = !Memory in use:? ? ? 26 % ! ! ! !Total Physical Memory (Kbytes): 8001052 ! ! ! !Free Physical Memory (Kbytes): 5920108 ! ! ! !Total Paging File (Kbytes): 16127520 ! ! ! !Free Paging File (Kbytes): 13948732 ! ! ! !Total Virtual Memory (Kbytes): 8589934464 ! ! ! !Free Virtual Memory (Kbytes): 8589186256 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows 8 x64 ! ! ! !Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz ! ! ! !Number of processors: 4 ! ! ! !Number of Video cards: 1 ! ! ! !Video card #0: Intel(R) HD Graphics 4000 ! ! ! !Primary Video card driver version: 9.17.10.2857 ! ! ! !Screen size: 1600 x 900 32 bits ! ! ! !Number of Monitors: 2 ! ! ! !Path: C:/Program Files/scilab-5.4.0/bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows! ! \system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) M! !? ? anagement Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Int! !? ? el\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Prog! !? ? ram Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Condusiv ! !? ? Technologies\IntelliMemory\;C:\Program Files\TortoiseSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\! !? ? perl\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (! !? ? x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\P! !? ? rogram Files (x86)\WinMerge;d:\utils;C:\Program Files (x86)\WinSCP\ ! ! ! !ComSpec: C:\windows\system32\cmd.exe ! ! ! !TMP : C:\Users\Admin\AppData\Local\Temp ! ! ! !TEMP: C:\Users\Admin\AppData\Local\Temp ! ! ! !TMPDIR: C:\Users\Admin\AppData\Local\Temp\SCI_TMP_4172_ ! ! ! !WSCI: C:\Program Files\scilab-5.4.0 ! ! ! !SCIHOME: C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0 ! _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmund.okoroigwe at unn.edu.ng Fri Feb 8 15:33:06 2013 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Fri, 8 Feb 2013 06:33:06 -0800 Subject: [Scilab-users] Plot command Message-ID: Please I want you to send to me the Scilab plot command for plotting the second y-values on the same graphic window. Thanks. -- Edmund C.Okoroigwe, National Centre for Energy Research and Development,/ Dept of Mech. Engineering University of Nigeria, Nsukka +234-8057156223, +234-8064879825 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.torrecillas at gmail.com Sat Feb 9 13:48:05 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Sat, 9 Feb 2013 10:48:05 -0200 Subject: [Scilab-users] Fortran Compilation (ilib_for_link) Message-ID: Hi all, I am currently trying to use ilib_for_link to use external fortran subroutine into scilab. My system: Ubuntu 12.04 64bit, Scilab 5.4.0 64bit compiled version. GFORTRAN is installed in my computer, and the command gfortran -c -fPIC fsoma.f90 works perfectly. Now into scilab, here is my code: link_name=['fsoma']; files=['tipos.mod','fsoma.f90']; //tipos.mod is a module for variable kind values libs=[]; flag = "f"; ilib_for_link(link_name,files,libs,flag,'','floader.sce'); This code produces: ilib_for_link(link_name,files,libs,flag,'','floader.sce'); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy tipos.mod to TMPDIR ilib_gen_Make: Copy fsoma.f90 to TMPDIR ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: libtool: unrecognized option `-c' Try `libtool --help' for more information. make: *** [fsoma.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : ,flag,'','floader.sce') Anyone can help me please? Best regards, -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Sat Feb 9 15:33:39 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 09 Feb 2013 15:33:39 +0100 Subject: [Scilab-users] Fortran Compilation (ilib_for_link) In-Reply-To: References: Message-ID: <51165E43.6020708@scilab-enterprises.com> Le 02/09/13 13:48, Eduardo Torrecillas a ?crit : > Hi all, > [...] > ilib_compile: An error occurred during the compilation: > libtool: unrecognized option `-c' > Try `libtool --help' for more information. > make: *** [fsoma.lo] Error 1 > ilib_compile: The command was: > make CFLAGS=" -D__SCILAB_TOOLBOX__ > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > " CXXFLAGS=" -D__SCILAB_TOOLBOX__ > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > " > FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > " > at line 129 of function ilib_compile called by : > at line 94 of function ilib_for_link called by : > ,flag,'','floader.sce') > > Anyone can help me please? The first detection of the compiler is cached by Scilab. If at this time you didn't have a fortran compiler installed, you can have this kind of issue. What happens if you remove: /home/eduardo/Software/scilab-5.4.0/share/scilab/modules/dynamic_link/src/scripts/Makefile.orig ? Sylvestre From eduardo.torrecillas at gmail.com Sat Feb 9 16:24:47 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Sat, 9 Feb 2013 13:24:47 -0200 Subject: [Scilab-users] Fortran Compilation (ilib_for_link) In-Reply-To: <51165E43.6020708@scilab-enterprises.com> References: <51165E43.6020708@scilab-enterprises.com> Message-ID: Hi Sylvestre, Deleting Makefile.orig produces another error: ilib_for_link(link_name,files,libs,flag,'','floader.sce'); Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy tipos.mod to TMPDIR ilib_gen_Make: Copy fsoma.f90 to TMPDIR ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: libtool: compile: specify a tag with `--tag' make: *** [fsoma.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : lag,'','floader.sce') Regards, On Sat, Feb 9, 2013 at 12:33 PM, Sylvestre Ledru < sylvestre.ledru at scilab-enterprises.com> wrote: > Le 02/09/13 13:48, Eduardo Torrecillas a ?crit : > > Hi all, > > > [...] > > ilib_compile: An error occurred during the compilation: > > libtool: unrecognized option `-c' > > Try `libtool --help' for more information. > > make: *** [fsoma.lo] Error 1 > > ilib_compile: The command was: > > make CFLAGS=" -D__SCILAB_TOOLBOX__ > > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > > " CXXFLAGS=" -D__SCILAB_TOOLBOX__ > > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > > " > > > FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > > " > > at line 129 of function ilib_compile called by : > > at line 94 of function ilib_for_link called by : > > ,flag,'','floader.sce') > > > > Anyone can help me please? > The first detection of the compiler is cached by Scilab. If at this time > you didn't have a fortran compiler installed, you can have this kind of > issue. > > What happens if you remove: > > /home/eduardo/Software/scilab-5.4.0/share/scilab/modules/dynamic_link/src/scripts/Makefile.orig > > > ? > > Sylvestre > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From haasejos at web.de Sun Feb 10 18:52:13 2013 From: haasejos at web.de (haasejos) Date: Sun, 10 Feb 2013 09:52:13 -0800 (PST) Subject: [Scilab-users] intrap / complex calculation Message-ID: <1360518733222-4025904.post@n3.nabble.com> /hello, to understand better how Fourier-Series work, I wrote the program below. When running the program, it can be seen in the diagram, that there is a difference in the results depending on which way these are calculated. Can/can't "inttrap" be used for complex calculation or what else can avoid the different results? Thanks in advance. Josef/ clear; clc; xdel; function f_x = lin(x); f_x = 1/2*%pi.*x; endfunction; x = linspace (0 , 2*%pi , 400); f_x = lin(x); //0-ter Fourierkoeffizient a_0 = (1/%pi)*inttrap(x , f_x); c_0 = a_0 / 2; //1te Fourierkoeffizienten a_1 = (1/%pi) * inttrap(x , (f_x .* cos(1*x))); b_1 = (1/%pi) * inttrap(x , (f_x .* sin(1*x))); c_11 = (a_1 - %i * b_1) / 2; c_12 = (a_1 + %i * b_1) / 2; c_11_i = (1/(%pi)) * inttrap(x , f_x .* (exp((-%i) * (1) * x))); c_12_i = (1/(%pi)) * inttrap(x , f_x .* (exp((-%i) * (-1) * x))); //2te Fourierkoeffizienten a_2 = (1/%pi) * inttrap(x , (f_x .* cos(2*x))); b_2 = (1/%pi) * inttrap(x , (f_x .* sin(2*x))); c_21 = (a_2 - %i * b_2) / 2; c_22 = (a_2 + %i * b_2) / 2; c_21_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (2) * x))); c_22_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (-2) * x))); //3te Fourierkoeffizienten a_3 = (1/%pi) * inttrap(x , (f_x .* cos(3*x))); b_3 = (1/%pi) * inttrap(x , (f_x .* sin(3*x))); c_31 = (a_3 - %i * b_3) / 2; c_32 = (a_3 + %i * b_3) / 2; c_31_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (3) * x))); c_32_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (-3) * x))); //4te Fourierkoeffizienten a_4 = (1/%pi) * inttrap(x , (f_x .* cos(4*x))); //disp('a_4 = ' +string(a_4)); b_4 = (1/%pi) * inttrap(x , (f_x .* sin(4*x))); //disp('b_4 = ' +string(b_4)); c_41 = (a_4 - %i * b_4) / 2; c_42 = (a_4 + %i * b_4) / 2; c_41_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (4) * x))); c_42_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (-4) * x))); //5te Fourierkoeffizienten a_5 = (1/%pi) * inttrap(x , (f_x .* cos(5*x))); b_5 = (1/%pi) * inttrap(x , (f_x .* sin(5*x))); c_51 = (a_5 - %i * b_5) / 2; c_52 = (a_5 + %i * b_5) / 2; c_51_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (5) * x))); c_52_i = 1/(%pi) * inttrap(x , f_x .* (exp((-%i) * (-5) * x))); f_x_na = a_0/2 +... a_1*cos(x) + b_1*sin(x) +... a_2*cos(2*x) + b_2*sin(2*x) +... a_3*cos(3*x) + b_3*sin(3*x) +... a_4*cos(4*x) + b_4*sin(4*x) +... a_5*cos(5*x) + b_5*sin(5*x); f_x_na_complex1 = c_0 +... c_11 * exp(%i * 1 * x) + c_12 * exp(%i * (-1) * x)+... c_21 * exp(%i * 2 * x) + c_22 * exp(%i * (-2) * x)+... c_31 * exp(%i * 3 * x) + c_32 * exp(%i * (-3) * x)+... c_41 * exp(%i * 4 * x) + c_42 * exp(%i * (-4) * x)+... c_51 * exp(%i * 5 * x) + c_52 * exp(%i * (-5) * x); f_x_na_complex2 = c_0 +... c_11_i * exp(%i * 1 * x) + c_12_i * exp(%i * (-1) * x)+... c_21_i * exp(%i * 2 * x) + c_22_i * exp(%i * (-2) * x)+... c_31_i * exp(%i * 3 * x) + c_32_i * exp(%i * (-3) * x)+... c_41_i * exp(%i * 4 * x) + c_42_i * exp(%i * (-4) * x)+... c_51_i * exp(%i * 5 * x) + c_52_i * exp(%i * (-5) * x); plot2d(x' ,[f_x' f_x_na' f_x_na_complex1' f_x_na_complex2']); -- View this message in context: http://mailinglists.scilab.org/intrap-complex-calculation-tp4025904.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Feb 11 11:29:09 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 11 Feb 2013 11:29:09 +0100 Subject: [Scilab-users] Plot command In-Reply-To: References: Message-ID: <3B5FFC67498DFF49AE7271A584867D16F1066AE646@301EX00100.sidel.com> Hello Edmund, > Please I want you to send to me the Scilab plot command ... Following Samuel's advice, I just created the following picture. http://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg You'll find the Scila code in the description page. Regards. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From denis.crete at thalesgroup.com Tue Feb 12 00:08:28 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 12 Feb 2013 00:08:28 +0100 Subject: [Scilab-users] Running average In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F1066AE646@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F1066AE646@301EX00100.sidel.com> Message-ID: <6184_1360624104_511979E7_6184_16996_1_908CBC9017354841B2F32BBEC70A05A101C38A06DCDC@THSONEA01CMS01P.one.grp> Hello, I looked for a function to make a "running average", i.e. an average of a sub vector v: sv=10000;v=rand(sv,1); km=5; // Running average over 2*km+1 = 11 points for i=1:size(v,'*'), suite=i-min(i-1,km):i+min(size(v,'*')-i,km); vra_1(i)=sum(v(suite))/size(suite,'*'); end; Is there a function doing already this in Scilab, or is there a more efficient (compact/rapid) way to do this ? I tried with sparse matrix (with a "broad diagonal"), but it is much longer: // Build sparse matrix spM=[]; for i=1:sv, for j=-km:km; if (i+j>0 & i+j-1 How can we plot 3D points by reading from a file the coordinates and then plotting the points in 3D ? Can someone help me with any script or commands? Plz Help -- View this message in context: http://mailinglists.scilab.org/plotting-using-3d-points-tp4025908.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mayank25080562 at gmail.com Tue Feb 12 08:52:38 2013 From: mayank25080562 at gmail.com (mjnovice) Date: Mon, 11 Feb 2013 23:52:38 -0800 (PST) Subject: [Scilab-users] plotting using 3d points Message-ID: <1360655558508-4025909.post@n3.nabble.com> How can we plot 3D points by reading from a file the coordinates and then plotting the points in 3D ? Can someone help me with any script or commands? Plz Help -- View this message in context: http://mailinglists.scilab.org/plotting-using-3d-points-tp4025909.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Feb 12 09:10:33 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 12 Feb 2013 09:10:33 +0100 Subject: [Scilab-users] plotting using 3d points In-Reply-To: <1360655549027-4025908.post@n3.nabble.com> References: <1360655549027-4025908.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F1066FC9B9@301EX00100.sidel.com> Hello, > How can we plot 3D points by reading from a file the coordinates I guess you have 3 columns in a text file, with respectively x, y and z. To read the file, you can use read, fscanfMat or csvRead depending on the format (see the related help). The plot can be performed with param3d. You'll find a short example attached. Hope this helps -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- A non-text attachment was scrubbed... Name: test3d.sce Type: application/octet-stream Size: 346 bytes Desc: test3d.sce URL: From boljeleel at yahoo.com Tue Feb 12 12:35:48 2013 From: boljeleel at yahoo.com (Debola Abduljeleel) Date: Tue, 12 Feb 2013 03:35:48 -0800 (PST) Subject: [Scilab-users] plotting using 3d points In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F1066FC9B9@301EX00100.sidel.com> References: <1360655549027-4025908.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F1066FC9B9@301EX00100.sidel.com> Message-ID: <1360668948.10204.YahooMailNeo@web160305.mail.bf1.yahoo.com> Sir, please take a look at the attached program and give me professional advice on how I can add some other plots from model equations into the existing plots. Thanks. ? ABDULJELEEL A. OSUNKUNLE SCIENTIFIC OFFICER PROJECTS DEVELOPMENT INSTITUTE, P.M.B. 01609, EMENE INDUSTRIAL LAYOUT, ENUGU, NIGERIA. +2347058408440. ________________________________ From: "Dang, Christophe" To: International users mailing list for Scilab. Sent: Tuesday, February 12, 2013 9:10 AM Subject: Re: [Scilab-users] plotting using 3d points Hello, > How can we plot 3D points by reading from a file the coordinates I guess you have 3 columns in a text file, with respectively x, y and z. To read the file, you can use read, fscanfMat or csvRead depending on the format (see the related help). The plot can be performed with param3d. You'll find a short example attached. Hope this helps -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bioreactor-PRODA.sce Type: application/octet-stream Size: 1936 bytes Desc: not available URL: From Christophe.Dang at sidel.com Tue Feb 12 13:28:01 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 12 Feb 2013 13:28:01 +0100 Subject: [Scilab-users] Bioreactor PRODA (was: plotting using 3d points) In-Reply-To: <1360668948.10204.YahooMailNeo@web160305.mail.bf1.yahoo.com> References: <1360655549027-4025908.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F1066FC9B9@301EX00100.sidel.com> <1360668948.10204.YahooMailNeo@web160305.mail.bf1.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F1066FCF23@301EX00100.sidel.com> Hello, De la part de Debola Abduljeleel Envoy? : mardi 12 f?vrier 2013 12:36 > Sir, please take a look at the attached program and give me professional > advice on how I can add some other plots from model equations into the > existing plots. Professional certainly not, I'm not a Scilab professional. Maybe you could produce a sketch (e.g. with a drawing software) so we can see what kind of plot you would like to have. However, does the following answer your need ? // ********** plot(result(:,1), result(:,2:4)); legend('biomass', 'substrate', 'product'); // ********** Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Serge.Steer at inria.fr Tue Feb 12 14:02:05 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 12 Feb 2013 14:02:05 +0100 Subject: [Scilab-users] Running average In-Reply-To: <6184_1360624104_511979E7_6184_16996_1_908CBC9017354841B2F32BBEC70A05A101C38A06DCDC@THSONEA01CMS01P.one.grp> References: <3B5FFC67498DFF49AE7271A584867D16F1066AE646@301EX00100.sidel.com> <6184_1360624104_511979E7_6184_16996_1_908CBC9017354841B2F32BBEC70A05A101C38A06DCDC@THSONEA01CMS01P.one.grp> Message-ID: <511A3D4D.4@inria.fr> You can use the convolution (convol function) for such purpose sv=10000;v=rand(sv,1); km=5; vra_1 =convol(ones(1,2*km+1)/(2*km+1),v); vra_1=vra_1(km+1:$-km); Serge Steer Le 12/02/2013 00:08, CRETE Denis a ?crit : > Hello, > I looked for a function to make a "running average", i.e. an average of a sub vector v: > sv=10000;v=rand(sv,1); km=5; // Running average over 2*km+1 = 11 points > for i=1:size(v,'*'), > suite=i-min(i-1,km):i+min(size(v,'*')-i,km); > vra_1(i)=sum(v(suite))/size(suite,'*'); > end; > Is there a function doing already this in Scilab, or is there a more efficient (compact/rapid) way to do this ? > I tried with sparse matrix (with a "broad diagonal"), but it is much longer: > // Build sparse matrix > spM=[]; > for i=1:sv, > for j=-km:km; > if (i+j>0 & i+j-1 end; > im=find(spM(:,1)==i); > spM(im,3)=1./size(im,'*'); > end; > // Calculate running average > vra_2=sparse(spM(:,1:2),spM(:,3))*v; > > Thank you in advance for any improvement. > Best regards > Denis > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Serge.Steer at inria.fr Tue Feb 12 14:07:20 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 12 Feb 2013 14:07:20 +0100 Subject: [Scilab-users] plotting using 3d points In-Reply-To: <1360655558508-4025909.post@n3.nabble.com> References: <1360655558508-4025909.post@n3.nabble.com> Message-ID: <511A3E88.4030304@inria.fr> suppose you have read the coordinates vectors x, y and z you can plot it as follow param3d(x,y,z);//here you get a curve that connects the points //now if you want only to draw points for each triple (x(i),y(i),z(i)) execute the following instructions just after the param3d call p=gce(); p.line_mode = "off"; p.mark_mode = "on"; Serge Steer Le 12/02/2013 08:52, mjnovice a ?crit : > How can we plot 3D points by reading from a file the coordinates and then > plotting the points in 3D ? Can someone help me with any script or commands? > Plz Help > > > > -- > View this message in context: http://mailinglists.scilab.org/plotting-using-3d-points-tp4025909.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From denis.crete at thalesgroup.com Tue Feb 12 14:27:33 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Tue, 12 Feb 2013 14:27:33 +0100 Subject: [Scilab-users] Running average In-Reply-To: <511A3D4D.4@inria.fr> References: <3B5FFC67498DFF49AE7271A584867D16F1066AE646@301EX00100.sidel.com> <6184_1360624104_511979E7_6184_16996_1_908CBC9017354841B2F32BBEC70A05A101C38A06DCDC@THSONEA01CMS01P.one.grp> <511A3D4D.4@inria.fr> Message-ID: <31738_1360675653_511A4345_31738_15865_5_908CBC9017354841B2F32BBEC70A05A101C38A0B91CB@THSONEA01CMS01P.one.grp> Thank you, Serge ! -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Serge Steer Envoy??: mardi 12 f?vrier 2013 14:02 ??: International users mailing list for Scilab. Objet?: Re: [Scilab-users] Running average You can use the convolution (convol function) for such purpose sv=10000;v=rand(sv,1); km=5; vra_1 =convol(ones(1,2*km+1)/(2*km+1),v); vra_1=vra_1(km+1:$-km); Serge Steer Le 12/02/2013 00:08, CRETE Denis a ?crit : > Hello, > I looked for a function to make a "running average", i.e. an average of a sub vector v: > sv=10000;v=rand(sv,1); km=5; // Running average over 2*km+1 = 11 > points for i=1:size(v,'*'), > suite=i-min(i-1,km):i+min(size(v,'*')-i,km); > vra_1(i)=sum(v(suite))/size(suite,'*'); > end; > Is there a function doing already this in Scilab, or is there a more efficient (compact/rapid) way to do this ? > I tried with sparse matrix (with a "broad diagonal"), but it is much longer: > // Build sparse matrix > spM=[]; > for i=1:sv, > for j=-km:km; > if (i+j>0 & i+j-1 end; > im=find(spM(:,1)==i); > spM(im,3)=1./size(im,'*'); > end; > // Calculate running average > vra_2=sparse(spM(:,1:2),spM(:,3))*v; > > Thank you in advance for any improvement. > Best regards > Denis > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From eduardo.torrecillas at gmail.com Tue Feb 12 15:20:48 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Tue, 12 Feb 2013 12:20:48 -0200 Subject: [Scilab-users] Fortran Compilation (ilib_for_link) In-Reply-To: References: <51165E43.6020708@scilab-enterprises.com> Message-ID: Still with the same issue. Searched along internet without success. Anybody can help please? Regards, On Sat, Feb 9, 2013 at 1:24 PM, Eduardo Torrecillas < eduardo.torrecillas at gmail.com> wrote: > Hi Sylvestre, > > Deleting Makefile.orig produces another error: > > > ilib_for_link(link_name,files,libs,flag,'','floader.sce'); > Generate a loader file > Generate a Makefile > ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR > ilib_gen_Make: Copy tipos.mod to TMPDIR > ilib_gen_Make: Copy fsoma.f90 to TMPDIR > ilib_gen_Make: Modification of the Makefile in TMPDIR. > Running the Makefile > !--error 10000 > ilib_compile: An error occurred during the compilation: > libtool: compile: specify a tag with `--tag' > > make: *** [fsoma.lo] Error 1 > ilib_compile: The command was: > make CFLAGS=" -D__SCILAB_TOOLBOX__ > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " > CXXFLAGS=" -D__SCILAB_TOOLBOX__ > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ " > FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ > " > at line 129 of function ilib_compile called by : > at line 94 of function ilib_for_link called by : > lag,'','floader.sce') > > Regards, > > > On Sat, Feb 9, 2013 at 12:33 PM, Sylvestre Ledru < > sylvestre.ledru at scilab-enterprises.com> wrote: > >> Le 02/09/13 13:48, Eduardo Torrecillas a ?crit : >> > Hi all, >> > >> [...] >> > ilib_compile: An error occurred during the compilation: >> > libtool: unrecognized option `-c' >> > Try `libtool --help' for more information. >> > make: *** [fsoma.lo] Error 1 >> > ilib_compile: The command was: >> > make CFLAGS=" -D__SCILAB_TOOLBOX__ >> > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ >> > " CXXFLAGS=" -D__SCILAB_TOOLBOX__ >> > -I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ >> > " >> > >> FFLAGS="-I/home/eduardo/Software/scilab-5.4.0/share/scilab/../../include/scilab/ >> > " >> > at line 129 of function ilib_compile called by : >> > at line 94 of function ilib_for_link called by : >> > ,flag,'','floader.sce') >> > >> > Anyone can help me please? >> The first detection of the compiler is cached by Scilab. If at this time >> you didn't have a fortran compiler installed, you can have this kind of >> issue. >> >> What happens if you remove: >> >> /home/eduardo/Software/scilab-5.4.0/share/scilab/modules/dynamic_link/src/scripts/Makefile.orig >> >> >> ? >> >> Sylvestre >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > > -- > Eduardo Torrecillas > AER-09 -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Tue Feb 12 16:01:57 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Tue, 12 Feb 2013 07:01:57 -0800 (PST) Subject: [Scilab-users] large csv text file management issue Message-ID: <1360681317085-4025917.post@n3.nabble.com> Hi all ! I'm puzzling with a large csv text file (900 Mo, 2628001 rows, 11 columns) from which i would like to extract some data. I tried csvRead() with range option but it fails claiming with error 999 even with stacksize set to max. I open the file with the LargeTextFileViewer software where I've checked that the overall format was ok. Using this software i copied first 100 lines into a test file which is read succesfully by csvRead() using the range option so the command looks ok. The pb with csvread seems to occur before trying to convert the data into scilab memory : just while trying to open the huge text file. May csvRead (using the range option) work in a similar way as LTFviewer so that it can manage large text file? To overcome this limitation i tried to split my huge text file into smaller pieces but unfortunately I didn't found free software under windows to do that. here's a test file with a few lines, the original is far larger: test.plt Any idea to help ? Thanks David W7-32bit-scilab5.4.1branch -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.becu at maya-technologies.com Tue Feb 12 17:10:25 2013 From: stephane.becu at maya-technologies.com (=?iso-8859-1?Q?St=E9phane_B=E9cu?=) Date: Tue, 12 Feb 2013 17:10:25 +0100 Subject: [Scilab-users] Vectorization Message-ID: Hello, I have much difficulty to optimize my calculation. It consists of calculating the variance of a vector over last N elements . See the example in the attached file for a 3D matrix. With a PC under windows 7 and scilab 5.3, it needs 40 sec to calculate the variance for a 10*10*1000 matrix. This is too much long since I have much bigger files to work on. There must be a way to vectorize the problem but I do not see how ? Thanks in advance, St?phane -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: script.sce Type: application/octet-stream Size: 696 bytes Desc: script.sce URL: From eduardo.torrecillas at gmail.com Tue Feb 12 17:47:30 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Tue, 12 Feb 2013 14:47:30 -0200 Subject: [Scilab-users] Vectorization In-Reply-To: References: Message-ID: Hi St?phane, Maybe you could try to use external routines (C/FORTRAN) and link them to Scilab with dynamic_link. They turn calculations much faster! Regards, On Tue, Feb 12, 2013 at 2:10 PM, St?phane B?cu < stephane.becu at maya-technologies.com> wrote: > Hello, > > I have much difficulty to optimize my calculation. It consists of > calculating the variance of a vector over last N elements . See the example > in the attached file for a 3D matrix. With a PC under windows 7 and scilab > 5.3, it needs 40 sec to calculate the variance for a 10*10*1000 > matrix. This is too much long since I have much bigger files to work on. > > There must be a way to vectorize the problem but I do not see how ? > > Thanks in advance, > > St?phane > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue Feb 12 17:50:21 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 12 Feb 2013 17:50:21 +0100 Subject: [Scilab-users] Vectorization In-Reply-To: References: Message-ID: <511A72CD.4000207@inria.fr> You can try something like // CALCULATE VARIANCE OVER LAST N POINTS Ni = 100; Nj = 10; Nk = 10; A = rand(Ni,Nj,Nk); tic; A=matrix(A,Ni,-1);//transform A into a 2D array D1=zeros(Ni-N+1,Nj*Nk); for i=N:Ni, D1(i-(N-1),:)=variance(A(i-(N-1):i,:),1); end D1=matrix(D1,-1,Nj,Nk); //Transform D1 into a 3D array toc Are you sure of your variance definition? For me if v is a vector the variance of v is computed by sqrt(sum( (v-mean(v))^2)) Serge Steer INRIA Le 12/02/2013 17:10, St?phane B?cu a ?crit : > Hello, > I have much difficulty to optimize my calculation. It consists of > calculating the variance of a vector over last N elements . See > the example in the attached file for a 3D matrix. With a PC under > windows 7 and scilab 5.3, it needs 40 sec to calculate the variance > for a 10*10*1000 matrix. This is too much long since I have much > bigger files to work on. > There must be a way to vectorize the problem but I do not see how ? > Thanks in advance, > St?phane > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Tue Feb 12 18:34:12 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 12 Feb 2013 18:34:12 +0100 Subject: [Scilab-users] Vectorization In-Reply-To: <511A72CD.4000207@inria.fr> References: <511A72CD.4000207@inria.fr> Message-ID: <511A7D14.7020800@durietz.se> On 2013-02-12 17:50, Serge Steer wrote: -------------------- > Are you sure of your variance definition? For me if v is a vector the > variance of v is computed by sqrt(sum( (v-mean(v))^2)) That is standard deviation -- the variance is without sqrt. variance(v) /Stefan From sdr at durietz.se Tue Feb 12 18:47:06 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 12 Feb 2013 18:47:06 +0100 Subject: [Scilab-users] Vectorization In-Reply-To: <511A7D14.7020800@durietz.se> References: <511A72CD.4000207@inria.fr> <511A7D14.7020800@durietz.se> Message-ID: <511A801A.4030303@durietz.se> On 2013-02-12 18:34, Stefan Du Rietz wrote: -------------------- > On 2013-02-12 17:50, Serge Steer wrote: > -------------------- >> Are you sure of your variance definition? For me if v is a vector the >> variance of v is computed by sqrt(sum( (v-mean(v))^2)) > > That is standard deviation -- the variance is without sqrt. > > variance(v) > > /Stefan I was too quick ;-( -->stdev(v) == sqrt(variance(v)) ans = T but your formula was wrong ... /Stefan From sdr at durietz.se Wed Feb 13 00:06:44 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 13 Feb 2013 00:06:44 +0100 Subject: [Scilab-users] Vectorization and variance In-Reply-To: <511A801A.4030303@durietz.se> References: <511A72CD.4000207@inria.fr> <511A7D14.7020800@durietz.se> <511A801A.4030303@durietz.se> Message-ID: <511ACB04.2090908@durietz.se> On 2013-02-12 18:47, Stefan Du Rietz wrote: > On 2013-02-12 18:34, Stefan Du Rietz wrote: > -------------------- >> On 2013-02-12 17:50, Serge Steer wrote: >> -------------------- >>> Are you sure of your variance definition? For me if v is a vector the >>> variance of v is computed by sqrt(sum( (v-mean(v))^2)) >> >> That is standard deviation -- the variance is without sqrt. >> >> variance(v) >> >> /Stefan > > I was too quick ;-( > > -->stdev(v) == sqrt(variance(v)) > ans = > T > > but your formula was wrong ... > > /Stefan > A little more about variance (n is the number of elements in v): -->variance(v) == 1/(n-1) * sum( (v-mean(v))^2 ) ans = T which is not exactly equal to -->mean( (v-mean(v))^2 ) == 1/n * sum( (v-mean(v))^2 ) ans = T There is much written about why you should divide by n-1 and not by n (as for the common mean) and I don't know if I yet understand it fully ... /Stefan From remi.mercier at imelavi.fr Wed Feb 13 09:04:54 2013 From: remi.mercier at imelavi.fr (Tingsten) Date: Wed, 13 Feb 2013 00:04:54 -0800 (PST) Subject: [Scilab-users] large csv text file management issue In-Reply-To: <1360681317085-4025917.post@n3.nabble.com> References: <1360681317085-4025917.post@n3.nabble.com> Message-ID: <1360742694950-4025924.post@n3.nabble.com> Hello David, Here are few comments: -900Mo of file start to be pretty big and read a csv of this size in 1 shot is not so easy in Scilab (but by splitting the file you will have an easier job!). -There is a toolbox called csv_readwrite (available from Atoms) that brings some tools much quicker to open the csv files than the csvRead() function -Your question is almost an everyday question on this forum, so you should find some example with the search tool. Hope this help, R?mi -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025924.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.becu at maya-technologies.com Wed Feb 13 11:12:40 2013 From: stephane.becu at maya-technologies.com (=?iso-8859-1?Q?St=E9phane_B=E9cu?=) Date: Wed, 13 Feb 2013 11:12:40 +0100 Subject: [Scilab-users] =?iso-8859-1?q?RE=A0=3A__Vectorization?= References: <511A72CD.4000207@inria.fr> Message-ID: Thanks Serge for your help, Transforming a 3D array into a 2D allows to vectroize my problem in a simple way. I have noted the true definition of the variance... We did not talk about the same actually.. St?phane ________________________________ De: users-bounces at lists.scilab.org de la part de Serge Steer Date: mar. 12/02/2013 17:50 ?: International users mailing list for Scilab. Objet : Re: [Scilab-users] Vectorization You can try something like // CALCULATE VARIANCE OVER LAST N POINTS Ni = 100; Nj = 10; Nk = 10; A = rand(Ni,Nj,Nk); tic; A=matrix(A,Ni,-1);//transform A into a 2D array D1=zeros(Ni-N+1,Nj*Nk); for i=N:Ni, D1(i-(N-1),:)=variance(A(i-(N-1):i,:),1); end D1=matrix(D1,-1,Nj,Nk); //Transform D1 into a 3D array toc Are you sure of your variance definition? For me if v is a vector the variance of v is computed by sqrt(sum( (v-mean(v))^2)) Serge Steer INRIA Le 12/02/2013 17:10, St?phane B?cu a ?crit : Hello, I have much difficulty to optimize my calculation. It consists of calculating the variance of a vector over last N elements . See the example in the attached file for a 3D matrix. With a PC under windows 7 and scilab 5.3, it needs 40 sec to calculate the variance for a 10*10*1000 matrix. This is too much long since I have much bigger files to work on. There must be a way to vectorize the problem but I do not see how ? Thanks in advance, St?phane _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Wed Feb 13 14:59:59 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Wed, 13 Feb 2013 05:59:59 -0800 (PST) Subject: [Scilab-users] large csv text file management issue In-Reply-To: <1360742694950-4025924.post@n3.nabble.com> References: <1360681317085-4025917.post@n3.nabble.com> <1360742694950-4025924.post@n3.nabble.com> Message-ID: <1360763999510-4025926.post@n3.nabble.com> Hi R?mi, thanks for your comment. Actually functions from package csr_readwrite have been included in the core Scilab 5.4.1 and these function csvRead that i'm using now is one of them: so it's the "best" Scilab csv text tool for the time being as far I know. I think also that i have to split my file but the issue i reported yseterday was that it's already quite difficult to find a tool to open such a big file. I succeeded using LargeTextFileViewer software but now I would have to split the file by select/copy/past by hand what is not reasonnable since there are more than 2 000 000 lines in the file. That's why I was asking for people who already meet this problem and maybe already found the right tool to do that automatically or found an efficient way in scilab to open, get a given number of lines then write it in another file and so on. Major issue is just to be able to open/load a few lines from the original file. Thanks for your help, David -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025926.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ridder.peter at googlemail.com Wed Feb 13 15:19:01 2013 From: ridder.peter at googlemail.com (windkraft) Date: Wed, 13 Feb 2013 06:19:01 -0800 (PST) Subject: [Scilab-users] large csv text file management issue In-Reply-To: <1360763999510-4025926.post@n3.nabble.com> References: <1360681317085-4025917.post@n3.nabble.com> <1360742694950-4025924.post@n3.nabble.com> <1360763999510-4025926.post@n3.nabble.com> Message-ID: <1360765141869-4025927.post@n3.nabble.com> Usually you can split very large files with a hex editor For example http://mh-nexus.de/en/downloads.php?product=HxD -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025927.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Wed Feb 13 15:48:18 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Wed, 13 Feb 2013 15:48:18 +0100 Subject: [Scilab-users] large csv text file management issue In-Reply-To: <1360765141869-4025927.post@n3.nabble.com> References: <1360681317085-4025917.post@n3.nabble.com> <1360742694950-4025924.post@n3.nabble.com> <1360763999510-4025926.post@n3.nabble.com> <1360765141869-4025927.post@n3.nabble.com> Message-ID: <7248_1360766900_511BA7B4_7248_15809_1_908CBC9017354841B2F32BBEC70A05A101C38A142633@THSONEA01CMS01P.one.grp> Isn't "sed" appropriate for this ? You can instruct it to filter a number of lines, or only selected lines... And you can call it from Scilab using the function "unix_g". HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de windkraft Envoy??: mercredi 13 f?vrier 2013 15:19 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] large csv text file management issue Usually you can split very large files with a hex editor For example http://mh-nexus.de/en/downloads.php?product=HxD -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025927.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From Serge.Steer at inria.fr Wed Feb 13 18:39:26 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 13 Feb 2013 18:39:26 +0100 Subject: [Scilab-users] large csv text file management issue In-Reply-To: <1360681317085-4025917.post@n3.nabble.com> References: <1360681317085-4025917.post@n3.nabble.com> Message-ID: <511BCFCE.6070300@inria.fr> If you want to get only parts of such a big file you can use the following function (or similar) The function assumes the numbers are separated by space or tab and the decimal point is a point (not a comma) function M=getcsvpart(filename, from,to) u=mopen(filename,'r');//open the file //skip to the line numbered from using batch line acquisition n=floor((from-2)/10000); for k=1:n mgetl(u,n); end n=(from-2)-10000*n; if n>0 then mgetl(u,n);end //get and analyze the from -1 to find the number of columns t=mgetl(u,1); //the from -1 line //compute the number of columns t=strsubst(t," *"," "); ncol=size(tokens(t,[" ",char(10)]),'*'); //ncol=size(tokens(t,[","]),'*'); //for comma separated csv files //generate C format for reading fmt="%g"; fmt=strcat(fmt(ones(1,ncol))," "); //fmt=strcat(fmt(ones(1,ncol)),","); //for comma separated csv files //read the selected part of the file M=mfscanf(to-from+1,u,fmt); mclose(u) endfunction Serge Steer INRIA Le 12/02/2013 16:01, David Ch?ze a ?crit : > Hi all ! > > I'm puzzling with a large csv text file (900 Mo, 2628001 rows, 11 columns) > from which i would like to extract some data. I tried csvRead() with range > option but it fails claiming with error 999 even with stacksize set to max. > I open the file with the LargeTextFileViewer software where I've checked > that the overall format was ok. Using this software i copied first 100 lines > into a test file which is read succesfully by csvRead() using the range > option so the command looks ok. > The pb with csvread seems to occur before trying to convert the data into > scilab memory : just while trying to open the huge text file. > May csvRead (using the range option) work in a similar way as LTFviewer so > that it can manage large text file? > To overcome this limitation i tried to split my huge text file into smaller > pieces but unfortunately I didn't found free software under windows to do > that. > here's a test file with a few lines, the original is far larger: test.plt > > > > Any idea to help ? > > Thanks David > > W7-32bit-scilab5.4.1branch > > > > -- > View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From andrii.ryzhkov at gmail.com Thu Feb 14 00:30:10 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Wed, 13 Feb 2013 16:30:10 -0700 Subject: [Scilab-users] Can't install ATOMS modules Message-ID: Hi, I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install any ATOMS module I got an error: -->atomsInstall ('femtruss'); atomsExtract: The extraction of the archive 'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip' has failed. !--error 10000 at line 51 of function atomsError called by : at line 82 of function atomsExtract called by : at line 318 of function atomsInstall called by : atomsInstall ('femtruss'); I tried to run SciLab as administrator, tried 32bit version and even tried to re-install SciLab. Did not work. I previously had the same installations and it worked fine, but now I don't get it. Will appreciate any hint. Thanks. Best regards, Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Feb 14 13:34:56 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 14 Feb 2013 13:34:56 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: Message-ID: <511CD9F0.5050505@centre-cired.fr> i have te same proble with windows 8, any scialb version Andrii, are you running win 8 ? All, do you know how to install manually an atoms package? this means download, unzip, and register it manually (as it seemes the problems comes from unzipping the package once downloaded) thanx On 14/02/2013 00:30, Andrii Ryzhkov wrote: > Hi, > > I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install > any ATOMS module I got an error: > > -->atomsInstall ('femtruss'); > atomsExtract: The extraction of the archive > 'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip' > has failed. > !--error 10000 > > at line 51 of function atomsError called by : > at line 82 of function atomsExtract called by : > at line 318 of function atomsInstall called by : > atomsInstall ('femtruss'); > I tried to run SciLab as administrator, tried 32bit version and even > tried to re-install SciLab. Did not work. > I previously had the same installations and it worked fine, but now I > don't get it. > > Will appreciate any hint. Thanks. > > Best regards, > Andrii > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrii.ryzhkov at gmail.com Thu Feb 14 20:00:08 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Thu, 14 Feb 2013 12:00:08 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <511CD9F0.5050505@centre-cired.fr> References: <511CD9F0.5050505@centre-cired.fr> Message-ID: Adrien, I run Windows 8 64bit. But I did the same installation on other Windows 8 PCs and it was fine. As a temporary workaround , I managed to install ATOMS module manually. That's how I do it: 1) Try to install ATOMS module in GUI as usual. For example, "MinGw toolbox". It results in error, but the module is downloaded in C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\mingw\mingw_0.9.1-1.bin.x64.windows.zip 2) Go to the C:\Program Files\scilab-5.4.0\contrib and make here a folder named after module name "mingw" in my case. And inside the last one, a folder with a version number "0.9.1-1". 3) Unzip the content of the module package into C:\Program Files\scilab-5.4.0\contrib\mingw\0.9.1-1 Keep in mind, that package has an upper level folder and the actual content is inside of it. Unzip only this content. 4) Execute while running SciLab as administrator load(SCI+"\.atoms\installed.bin") Notice, you may have no a C:\Program Files\scilab-5.4.0\.atoms folder. I enclosed mine, unzip it. 5) Add description of your module installed_mat = [installed_mat; "mingw", "0.9.1-1", "allusers", "SCI\contrib\mingw\0.9.1-1", "I"] 6) Delete old file C:\Program Files\scilab-5.4.0\.atoms\installed.bin 7) Save new one save(SCI+"\.atoms\installed.bin",installed_mat) 8) Check in GUI if ATOMS module is installed. Best regards, Andrii Sincerely, Dr. Andrii Ryzhkov Fulbright Visiting Scholar University of Colorado at Boulder Department of Electrical, Computer, and Energy Engineering ECOT 431 425 UCB Boulder, CO 80309-0425 E-mail: andrii.ryzhkov at gmail.com Skype: andriy.ryzhkov Mobile: 303-475-1332 On Thu, Feb 14, 2013 at 5:34 AM, Adrien Vogt-Schilb wrote: > i have te same proble with windows 8, any scialb version > > Andrii, are you running win 8 ? > > All, do you know how to install manually an atoms package? > this means download, unzip, and register it manually > > (as it seemes the problems comes from unzipping the package once > downloaded) > > thanx > > > > On 14/02/2013 00:30, Andrii Ryzhkov wrote: > > Hi, > > I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to install > any ATOMS module I got an error: > > -->atomsInstall ('femtruss'); > atomsExtract: The extraction of the archive > 'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip' > has failed. > !--error 10000 > > at line 51 of function atomsError called by : > at line 82 of function atomsExtract called by : > at line 318 of function atomsInstall called by : > atomsInstall ('femtruss'); > > I tried to run SciLab as administrator, tried 32bit version and even tried > to re-install SciLab. Did not work. > I previously had the same installations and it worked fine, but now I > don't get it. > > Will appreciate any hint. Thanks. > > Best regards, > Andrii > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 73 83 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: .atoms.zip Type: application/zip Size: 182615 bytes Desc: not available URL: From david.cheze at cea.fr Fri Feb 15 08:22:13 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Thu, 14 Feb 2013 23:22:13 -0800 (PST) Subject: [Scilab-users] large csv text file management issue In-Reply-To: <511BCFCE.6070300@inria.fr> References: <1360681317085-4025917.post@n3.nabble.com> <511BCFCE.6070300@inria.fr> Message-ID: <1360912933489-4025944.post@n3.nabble.com> Thank you all for your proposals : I'll try each to see how it performs on my test case. Have a nice day, David -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025944.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Fri Feb 15 08:46:52 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 15 Feb 2013 08:46:52 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F106779125@301EX00100.sidel.com> Hello, just a detail, if I may, most people is surely aware of it but just in case... > 6) Delete old file It is good practice not to delete directly a config file, but to rename it instead (e.g. changing the file name extension to .old) to ba able to reverse in case things went wrong. Best regards. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From simon.gareste at scilab-enterprises.com Fri Feb 15 10:10:30 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Fri, 15 Feb 2013 10:10:30 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> Message-ID: <511DFB86.6070600@scilab-enterprises.com> Hi, Could you please indicate the results of: atomsGetConfig() atomsRepositoryList() You say you did the same installation on other Win 8 and it worked fine, even installing this specific module? Can you try the following operations : -Install a fresh 5.4.0 (and remove the C:\Users\AppData\Roaming\Scilab\scilab-5.4.0 folder before ever launching it) -download the binary of the module -launch Scilab -atomsSystemUpdate() -atomsSetConfig('offLine','True') -atomsInstall("path/to/the/module/file.zip) Best regards, Simon On 02/14/2013 08:00 PM, Andrii Ryzhkov wrote: > Adrien, > > I run Windows 8 64bit. But I did the same installation on other > Windows 8 PCs and it was fine. > As a temporary workaround , I managed to install ATOMS module > manually. That's how I do it: > > 1) Try to install ATOMS module in GUI as usual. For example, "MinGw > toolbox". It results in error, but the module is downloaded in > C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\mingw\mingw_0.9.1-1.bin.x64.windows.zip > > 2) Go to the C:\Program Files\scilab-5.4.0\contrib and make here a > folder named after module name "mingw" in my case. And inside the last > one, a folder with a version number "0.9.1-1". > > 3) Unzip the content of the module package into C:\Program > Files\scilab-5.4.0\contrib\mingw\0.9.1-1 > Keep in mind, that package has an upper level folder and the actual > content is inside of it. Unzip only this content. > > 4) Execute while running SciLab as administrator > load(SCI+"\.atoms\installed.bin") > Notice, you may have no a C:\Program Files\scilab-5.4.0\.atoms folder. > I enclosed mine, unzip it. > > 5) Add description of your module > installed_mat = [installed_mat; "mingw", "0.9.1-1", "allusers", > "SCI\contrib\mingw\0.9.1-1", "I"] > > 6) Delete old file > C:\Program Files\scilab-5.4.0\.atoms\installed.bin > > 7) Save new one > save(SCI+"\.atoms\installed.bin",installed_mat) > > 8) Check in GUI if ATOMS module is installed. > > Best regards, > Andrii > > > Sincerely, > > Dr. Andrii Ryzhkov > > Fulbright Visiting Scholar > University of Colorado at Boulder > Department of Electrical, Computer, and Energy Engineering > ECOT 431 > 425 UCB > Boulder, CO 80309-0425 > > E-mail: andrii.ryzhkov at gmail.com > Skype: andriy.ryzhkov > Mobile: 303-475-1332 > > > On Thu, Feb 14, 2013 at 5:34 AM, Adrien Vogt-Schilb > > wrote: > > i have te same proble with windows 8, any scialb version > > Andrii, are you running win 8 ? > > All, do you know how to install manually an atoms package? > this means download, unzip, and register it manually > > (as it seemes the problems comes from unzipping the package once > downloaded) > > thanx > > > > On 14/02/2013 00:30, Andrii Ryzhkov wrote: >> Hi, >> >> I have problem installing ATOMS in SciLab 5.4.0 x64. Trying to >> install any ATOMS module I got an error: >> >> -->atomsInstall ('femtruss'); >> atomsExtract: The extraction of the archive >> 'C:\Users\Andrii\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\femtruss\femtruss_1.2.1-1.bin.zip' >> has failed. >> !--error 10000 >> >> at line 51 of function atomsError called by : >> at line 82 of function atomsExtract called by : >> at line 318 of function atomsInstall called by : >> atomsInstall ('femtruss'); >> I tried to run SciLab as administrator, tried 32bit version and >> even tried to re-install SciLab. Did not work. >> I previously had the same installations and it worked fine, but >> now I don't get it. >> >> Will appreciate any hint. Thanks. >> >> Best regards, >> Andrii >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > -- > Adrien Vogt-Schilb (Cired) > Tel:(+33) 1 43 94 73 83 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrii.ryzhkov at gmail.com Fri Feb 15 10:32:17 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Fri, 15 Feb 2013 02:32:17 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <511DFB86.6070600@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> Message-ID: Hi, I have problems installing any ATOMS module. It is not about any specific one. And I really had SciLab 5.4.0 installed on couple of Win8 PCs and never had any problems. I did try to reinstall SciLab with manual deletion of the folder you've mentioned. I even reinstalled (restored to factory settings) Windows 8. Did not help. -->atomsGetConfig() ans = downloadTool: "curl" -->atomsRepositoryList() ans = !http://atoms.scilab.org/5.4 official ! I did steps you asked. The same result - error while extracting module package. Actually, what I noticed, files are downloaded correctly. I can easily unzip them, but SciLab can not. Best regards, Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.gareste at scilab-enterprises.com Fri Feb 15 11:02:28 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Fri, 15 Feb 2013 11:02:28 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> Message-ID: <511E07B4.6060103@scilab-enterprises.com> Hi, Any ideas on the differences between this Win 8? Maybe you have a different version (normal/Pro/Ultimate) than the previous ones ? Can you launch Scilab and execute the following: extract_cmd = getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); disp(extract_cmd); extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ + pathconvert(dir_out,%F) +""""; disp(extract_cmd); [rep,stat,err] = unix_g(extract_cmd); disp(err); Best regards, Simon On 02/15/2013 10:32 AM, Andrii Ryzhkov wrote: > Hi, > > I have problems installing any ATOMS module. It is not about any > specific one. And I really had SciLab 5.4.0 installed on couple of > Win8 PCs and never had any problems. > I did try to reinstall SciLab with manual deletion of the folder > you've mentioned. I even reinstalled (restored to factory settings) > Windows 8. Did not help. > > -->atomsGetConfig() > ans = > downloadTool: "curl" > -->atomsRepositoryList() > ans = > !http://atoms.scilab.org/5.4 official ! > I did steps you asked. The same result - error while extracting module > package. > Actually, what I noticed, files are downloaded correctly. I can easily > unzip them, but SciLab can not. > > Best regards, > Andrii > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.gareste at scilab-enterprises.com Fri Feb 15 11:10:18 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Fri, 15 Feb 2013 11:10:18 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <511E07B4.6060103@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> Message-ID: <511E098A.7070909@scilab-enterprises.com> Sorry, add before this archive_in=pathconvert("\path\to\the\zipfile"); disp("archive_in"); dir_out=pathconvert("\path\to\random\folder\to\extract\to"); disp("dir_out"); Simon On 02/15/2013 11:02 AM, Simon GARESTE wrote: > Hi, > > Any ideas on the differences between this Win 8? Maybe you have a > different version (normal/Pro/Ultimate) than the previous ones ? > > Can you launch Scilab and execute the following: > extract_cmd = > getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); > disp(extract_cmd); > extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ + > pathconvert(dir_out,%F) +""""; > disp(extract_cmd); > [rep,stat,err] = unix_g(extract_cmd); > disp(err); > > Best regards, > > Simon > On 02/15/2013 10:32 AM, Andrii Ryzhkov wrote: >> Hi, >> >> I have problems installing any ATOMS module. It is not about any >> specific one. And I really had SciLab 5.4.0 installed on couple of >> Win8 PCs and never had any problems. >> I did try to reinstall SciLab with manual deletion of the folder >> you've mentioned. I even reinstalled (restored to factory settings) >> Windows 8. Did not help. >> >> -->atomsGetConfig() >> ans = >> downloadTool: "curl" >> -->atomsRepositoryList() >> ans = >> !http://atoms.scilab.org/5.4 official ! >> I did steps you asked. The same result - error while extracting >> module package. >> Actually, what I noticed, files are downloaded correctly. I >> can easily unzip them, but SciLab can not. >> >> Best regards, >> Andrii >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Simon Gareste > Support & Development Engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.70 > http://www.scilab-enterprises.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tvitklg at rambler.ru Fri Feb 15 11:58:21 2013 From: tvitklg at rambler.ru (TViT) Date: Fri, 15 Feb 2013 02:58:21 -0800 (PST) Subject: [Scilab-users] Quadrature Mirror Filters In-Reply-To: <1360240317954-4025880.post@n3.nabble.com> References: <1360240317954-4025880.post@n3.nabble.com> Message-ID: <1360925901463-4025951.post@n3.nabble.com> Can there is an example of reception of a spectrum of a signal through wavelet transformation, whether there are functions in Scilab wavelet of transformations. DWT, CWT... Quadrature Mirror Filters it is necessary just for this purpose. It is required to receive a spectrum of a signal with the minimal computing resources. For example bank of filters from 20 passbands (as in MFCC). wavelets will be faster? Can polyphase FFT faster? -- View this message in context: http://mailinglists.scilab.org/Quadrature-Mirror-Filters-tp4025880p4025951.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Fri Feb 15 12:51:47 2013 From: sgougeon at free.fr (sgougeon at free.fr) Date: Fri, 15 Feb 2013 12:51:47 +0100 (CET) Subject: [Scilab-users] Quadrature Mirror Filters In-Reply-To: <1360925901463-4025951.post@n3.nabble.com> Message-ID: <1909969546.151048868.1360929107855.JavaMail.root@zimbra75-e12.priv.proxad.net> >Can there is an example of reception of a spectrum of a signal through >wavelet transformation, whether there are functions in Scilab wavelet of >transformations. DWT, CWT... Scilab ressources for wavelets processing are available here: http://atoms.scilab.org/toolboxes/swt http://atoms.scilab.org/toolboxes/Wavelab Samuel From david.cheze at cea.fr Fri Feb 15 17:47:58 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Fri, 15 Feb 2013 08:47:58 -0800 (PST) Subject: [Scilab-users] large csv text file management issue In-Reply-To: <7248_1360766900_511BA7B4_7248_15809_1_908CBC9017354841B2F32BBEC70A05A101C38A142633@THSONEA01CMS01P.one.grp> References: <1360681317085-4025917.post@n3.nabble.com> <1360742694950-4025924.post@n3.nabble.com> <1360763999510-4025926.post@n3.nabble.com> <1360765141869-4025927.post@n3.nabble.com> <7248_1360766900_511BA7B4_7248_15809_1_908CBC9017354841B2F32BBEC70A05A101C38A142633@THSONEA01CMS01P.one.grp> Message-ID: <1360946878992-4025953.post@n3.nabble.com> hi all, some feedback from test on big text files: I can't use sed to split files since I've only a windows7-32bit machine... I tried the hex editor (HxD) which works fine for splitting big file quite easily. On my W7-32bits scilab 5.4.1 machine, the max limit (stacksize("max")) for reading text file is between 100Mo and 200Mo. -->Finally i succeeded to read directly (around 5 min) the 900Mo text file using csvRead call on another machine WINXP-64bits scilab 5.4.0: great ! conclusion : move to 64bit definetely... Thank you all. David -- View this message in context: http://mailinglists.scilab.org/large-csv-text-file-management-issue-tp4025917p4025953.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From andrii.ryzhkov at gmail.com Sat Feb 16 04:25:32 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Fri, 15 Feb 2013 20:25:32 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <511E098A.7070909@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> Message-ID: Hi, Here's result: -->archive_in=pathconvert("d:\simplex_2.0.1-1.bin.x64.windows.zip"); -->disp(archive_in); d:\simplex_2.0.1-1.bin.x64.windows.zip\ -->dir_out=pathconvert("d:\"); -->disp(dir_out); d:\ -->extract_cmd = getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); -->disp(extract_cmd); C:\Program Files\scilab-5.4.0\tools\zip\unzip.exe -->extract_cmd = extract_cmd + " -q """ + archive_in + """ -d """ + pathconvert(dir_out,%F) +""""; -->disp(extract_cmd); C:\Program Files\scilab-5.4.0\tools\zip\unzip.exe -q "d:\simplex_2.0.1-1.bin.x64.windows .zip\" -d "d:" -->[rep,stat,err] = unix_g(extract_cmd); -->disp(err); !'C:\Program' is not recognized as an internal or external command, ! ! ! !operable program or batch file. ! Best regards, Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrii.ryzhkov at gmail.com Sat Feb 16 05:10:57 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Fri, 15 Feb 2013 21:10:57 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> Message-ID: Hi, It looks like the problem vanishes if install SciLab into root of the drive (C:\) and not a "Program Files". But still it is a question for my why usual install pattern works for majority of PCs and does not for mine (and some others as I see)? Best regards, Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From njordan.jameson at gmail.com Sat Feb 16 15:51:03 2013 From: njordan.jameson at gmail.com (Jordan Jameson) Date: Sat, 16 Feb 2013 09:51:03 -0500 Subject: [Scilab-users] Scilab Won't Open Message-ID: To Whom It May Concern: I have a Mac running OS 10.6.8 with a 2GHz Intel Core Duo processor. I have tried unsuccessfully to install Scilab on this computer several times. What happens is that I install the software, drag it into applications, and then I attempt to open it, at which point in time, it acts like it is going to open and then unexpectedly quits. Thus far, I have tried Scilab 5.4.0, 5.3.3, and I just tried 5.2.2, all with the same result. Could you help me understand what is going wrong? Thanks for your time and help. Best Regards, Jordan Jameson From dkajah at gmail.com Mon Feb 18 16:37:52 2013 From: dkajah at gmail.com (Daniel Penalva) Date: Mon, 18 Feb 2013 12:37:52 -0300 Subject: [Scilab-users] Help in use of string execution Message-ID: Hi guys, i cant get this to work: execstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); error : waiting for right parenthesis or evstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); error: invalid factor i really apreciate your help ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.elias at scilab-enterprises.com Mon Feb 18 16:53:33 2013 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Mon, 18 Feb 2013 16:53:33 +0100 Subject: [Scilab-users] Help in use of string execution In-Reply-To: References: Message-ID: <51224E7D.6030804@scilab-enterprises.com> Hi, Don't forget to use 2 quotes ' and double quotes " in string. like : execstr("current = createAllCurrents([""Na""; ""Kp""; ""L""])"); Antoine Le 18/02/2013 16:37, Daniel Penalva a ?crit : > Hi guys, i cant get this to work: > > execstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); > error : waiting for right parenthesis > > or > > evstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); > error: invalid factor > > i really apreciate your help ! > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Antoine ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dkajah at gmail.com Mon Feb 18 17:00:09 2013 From: dkajah at gmail.com (Daniel Penalva) Date: Mon, 18 Feb 2013 13:00:09 -0300 Subject: [Scilab-users] Help in use of string execution In-Reply-To: <51224E7D.6030804@scilab-enterprises.com> References: <51224E7D.6030804@scilab-enterprises.com> Message-ID: thank you ! naming you in my qualify ;-) On Mon, Feb 18, 2013 at 12:53 PM, Antoine ELIAS < antoine.elias at scilab-enterprises.com> wrote: > Hi, > > Don't forget to use 2 quotes ' and double quotes " in string. > > like : > > execstr("current = createAllCurrents([""Na""; ""Kp""; ""L""])"); > > Antoine > > Le 18/02/2013 16:37, Daniel Penalva a ?crit : > > Hi guys, i cant get this to work: > > execstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); > error : waiting for right parenthesis > > or > > evstr( " current = createAllCurrents( ["Na"; "Kp"; "L"] ) " ); > error: invalid factor > > i really apreciate your help ! > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > -- > Antoine ELIAS > Software developer > ----------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles > Phone: 01.80.77.04.70http://www.scilab-enterprises.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fitzyfish at gmail.com Mon Feb 18 20:52:10 2013 From: fitzyfish at gmail.com (fitzyfish) Date: Mon, 18 Feb 2013 11:52:10 -0800 (PST) Subject: [Scilab-users] Indirect function call Message-ID: <1361217130352-4025965.post@n3.nabble.com> Is there a Scilab equivalent for the MATLAB function handle @ to call a function indirectly e.g. sqr = @(x) x.^2; -- View this message in context: http://mailinglists.scilab.org/Indirect-function-call-tp4025965.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From simon.gareste at scilab-enterprises.com Tue Feb 19 09:56:02 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Tue, 19 Feb 2013 09:56:02 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> Message-ID: <51233E22.7020304@scilab-enterprises.com> Hi, This is indeed very strange. The problem comes from your extract_cmd, as it should not contain "C:\Program Files\scilab-5.4.0...." but something like "C:\Progra~1\scilab~1\..." Can you show us the result of disp(SCI) disp(WSCI) ? When you installed Scilab, did you provide a specific place to install it to, or you just left the default options? You don't have any specificity on this machine? Best regards, Simon On 02/16/2013 05:10 AM, Andrii Ryzhkov wrote: > Hi, > > It looks like the problem vanishes if install SciLab into root of the > drive (C:\) and not a "Program Files". But still it is a question for > my why usual install pattern works for majority of PCs and does not > for mine (and some others as I see)? > > Best regards, > Andrii > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Feb 19 10:02:58 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 19 Feb 2013 10:02:58 +0100 Subject: [Scilab-users] Indirect function call In-Reply-To: <1361217130352-4025965.post@n3.nabble.com> References: <1361217130352-4025965.post@n3.nabble.com> Message-ID: <51233FC2.8080802@laas.fr> On 18/02/2013 20:52, fitzyfish wrote: > Is there a Scilab equivalent for the MATLAB function handle @ to call a > function indirectly e.g. > sqr = @(x) x.^2; > > > > -- > View this message in context:http://mailinglists.scilab.org/Indirect-function-call-tp4025965.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users I am not sure I understood what you want to do with such a handle, but you can always store functions in a variable to get something like a callback function that you can change on the fly: f_callback=sqrt; this_is_two=f_callback(4); f_callback=sin; this_is_one=f_callback(%pi/2); Hope it helps, Antoine From samuel.enibe at unn.edu.ng Tue Feb 19 16:31:18 2013 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Tue, 19 Feb 2013 16:31:18 +0100 Subject: [Scilab-users] How to start with several variables in AUTOMATIC function of GROCER Message-ID: Dear sir, I would like to employ the AUTOMATIC function in GROCER toolbox to perform automatic regression starting with a rather LARGE set of variables and ending with the few that are most significant. However, I have noticed the following problems using the example attached: 1. Programme works with only 3 initial variables specified (see line 30 in attached file), which works, but line 31 with only 6 starting variables complains of TOO MANY EXOGENOUS VARIABLES 2. When it runs with 3 starting variables, the R2 value is not specified. How can I get this calculated and used. 3. The help files included with the AUTOMATIC package does not seem to answer these questions. ANY ASSISTANCE WILL BE GREATLY APPRECIATED -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Professor of Mechanical Engineering Director, National Centre for Equipment Maintenance & Development University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: analysis-automatic.sce Type: application/octet-stream Size: 1483 bytes Desc: not available URL: From grocer.toolbox at gmail.com Tue Feb 19 21:04:39 2013 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Tue, 19 Feb 2013 21:04:39 +0100 Subject: [Scilab-users] How to start with several variables in AUTOMATIC function of GROCER In-Reply-To: References: Message-ID: Dear Samuel. The error can be explained easily: one of the main principles of the program automatic is to find the best model that passes specification tests, that is tests that the residuals can be considered as white noise and that the model is stable (through standard Chow tests). And the Chow test estimates a number of coefficients equal to twice the number of exogenous varaibles (that is 12 coefficients with only 9 points!) As explained in chapter 15 of the manual (page 8-9), available on my web site (http://dubois.ensae.net/grocer.html), you can overcome this difficulty by reducing the set of specification tests. For instance: --> automatic(nc, x,'test=doornhans') works. This is at the expense of the philisophy of the program... ?ric. 2013/2/19 Samuel Enibe > Dear sir, > > I would like to employ the AUTOMATIC function in GROCER toolbox to perform > automatic regression starting with a rather LARGE set of variables and > ending with the few that are most significant. However, I have noticed the > following problems using the example attached: > > 1. Programme works with only 3 initial variables specified (see line 30 in > attached file), which works, but line 31 with only 6 starting variables > complains of TOO MANY EXOGENOUS VARIABLES > 2. When it runs with 3 starting variables, the R2 value is not specified. > How can I get this calculated and used. > 3. The help files included with the AUTOMATIC package does not seem to > answer these questions. > > ANY ASSISTANCE WILL BE GREATLY APPRECIATED > > > -- > Samuel Ogbonna Enibe > BEng (Nig), MSc (Reading, England), PhD (Nig) > Professor of Mechanical Engineering > Director, National Centre for Equipment Maintenance & Development > University of Nigeria, Nsukka, Nigeria > Tel: +2348063646798 > Email: samuel.enibe at unn.edu.ng > enibesam at yahoo.com > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrii.ryzhkov at gmail.com Wed Feb 20 02:45:52 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Tue, 19 Feb 2013 18:45:52 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <51233E22.7020304@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> <51233E22.7020304@scilab-enterprises.com> Message-ID: Hi, On completely default installation: -->disp(SCI) C:/Program Files/scilab-5.4.0 -->disp(WSCI) C:\Program Files\scilab-5.4.0 Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.gareste at scilab-enterprises.com Wed Feb 20 11:48:15 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Wed, 20 Feb 2013 11:48:15 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> <51233E22.7020304@scilab-enterprises.com> Message-ID: <5124A9EF.4080000@scilab-enterprises.com> Hi, Thank you. We found the bug , and fixed it . In short, you can see the difference between your machines at the value of the HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation key. This key creates (or not, depending on its value) a shortpath name for the folders when they are created. In your case, no shortpath name was created, hence the difference of path for SCI, and the ATOMS command to extract wasn't set between quotes (which makes it translatable by a windows command), so it couldn't figure out what to do when the SCI contained spaces. What you can do to fix your Scilab is quit every instance of it, then modify your SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at line 78 replace extract_cmd = getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); by extract_cmd = """" + getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """"; (or download this file ) and copy it to the path Then in SCI\share\scilab\modules\atoms\macros, execute buildmacros.bat and restart your scilab Best regards, Simon On 02/20/2013 02:45 AM, Andrii Ryzhkov wrote: > Hi, > > On completely default installation: > > -->disp(SCI) > C:/Program Files/scilab-5.4.0 > -->disp(WSCI) > C:\Program Files\scilab-5.4.0 > > Andrii > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.balazovic at yahoo.com Wed Feb 20 12:13:32 2013 From: peter.balazovic at yahoo.com (pepe) Date: Wed, 20 Feb 2013 03:13:32 -0800 (PST) Subject: [Scilab-users] Generic_block3 Message-ID: <1361358812684-4025973.post@n3.nabble.com> Hello, I want to find out how to use correctly generic_block3. I am using C function within this block as follow #include "scicos_block4.h" #include #include #include #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) // inputs #define in1 (r_IN(0,0)) // integrator input #define in2 (r_IN(1,0)) // integrator input // states #define X1 (GetState(blk)[0]) // integrator state #define X2 (GetState(blk)[1]) // integrator state #define Xdot1 (GetDerState(blk)[0]) // derivative of the integrator output #define Xdot2 (GetDerState(blk)[1]) // derivative of the integrator output // outputs #define out1 (r_OUT(0, 0)) // integrator output #define out2 (r_OUT(1, 0)) // integrator gain void myC_block(scicos_block *blk, int flag) { switch (flag) { case DerivativeState: Xdot1 = in1; Xdot2 = in1; break; case OutputUpdate: out1 = X1; out2 = X2; break; } } This C function runs correctly within block. If I change e.g. output declaration as follow #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) and used as Y[0] //first output Y[1] //second output then the function compiles and runs under xcos but there is warning and output is always zero. warning: scicosim error: Type not yet supported for outtb. Do you have any advice what can be wrong? How to use and handle inputs/outputs/states etc... correctly within C-function? Thank you! Peter -- View this message in context: http://mailinglists.scilab.org/Generic-block3-tp4025973.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From walter.lang at uni-siegen.de Wed Feb 20 12:32:25 2013 From: walter.lang at uni-siegen.de (Walter Lang) Date: Wed, 20 Feb 2013 03:32:25 -0800 (PST) Subject: [Scilab-users] Xcos startup delays win7 64bit Message-ID: <1361359945065-4025974.post@n3.nabble.com> Installed version 5.4.0 on win7 64bit Starup and function of Scilab is normal, but when i tried to start Xcos is needs 3 minutes with 70% cpu usage to start the palette browser. What is to do ? regards W.Lang -- View this message in context: http://mailinglists.scilab.org/Xcos-startup-delays-win7-64bit-tp4025974.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Wed Feb 20 12:56:21 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 20 Feb 2013 12:56:21 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <5124A9EF.4080000@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> <51233E22.7020304@scilab-enterprises.com> <5124A9EF.4080000@scilab-enterprises.com> Message-ID: <5124B9E5.2010000@centre-cired.fr> Dear Simon In my case, HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation = 2 Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI SCI = C:/Program Files/scilab-5.4.0 -->WSCI WSCI = C:\Program Files\scilab-5.4.0 I tried to implement your solution, but found that there was no folder "share" in my SCI. Instead, I modified atomsExtract.sci found at : C:\Program Files\scilab-5.4.0\modules\atoms\macros\atoms_internals as it is in Program Files, I had to run my text editor as administrator to be able to save the file. then I had a new error when trying to install a random atoms package: atomsExtract: The extraction of the archive 'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip' has failed. bon ap' On 20/02/2013 11:48, Simon GARESTE wrote: > Hi, > > Thank you. We found the bug > , and fixed it > . In short, you can see the > difference between your machines at the value of the > HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation > key. This key creates (or not, depending on its value) a shortpath > name for the folders when they are created. In your case, no shortpath > name was created, hence the difference of path for SCI, and the ATOMS > command to extract wasn't set between quotes (which makes it > translatable by a windows command), so it couldn't figure out what to > do when the SCI contained spaces. > > What you can do to fix your Scilab is quit every instance of it, then > modify your > SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at > line 78 replace > extract_cmd = > getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); > by > extract_cmd = """" + > getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """"; > (or download this file > ) > and copy it to the path > > Then in SCI\share\scilab\modules\atoms\macros, execute buildmacros.bat > and restart your scilab > > Best regards, > > Simon > > On 02/20/2013 02:45 AM, Andrii Ryzhkov wrote: >> Hi, >> >> On completely default installation: >> >> -->disp(SCI) >> C:/Program Files/scilab-5.4.0 >> -->disp(WSCI) >> C:\Program Files\scilab-5.4.0 >> >> Andrii >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Simon Gareste > Support & Development Engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.70 > http://www.scilab-enterprises.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.gareste at scilab-enterprises.com Wed Feb 20 13:15:48 2013 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Wed, 20 Feb 2013 13:15:48 +0100 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: <5124B9E5.2010000@centre-cired.fr> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> <51233E22.7020304@scilab-enterprises.com> <5124A9EF.4080000@scilab-enterprises.com> <5124B9E5.2010000@centre-cired.fr> Message-ID: <5124BE74.7000303@scilab-enterprises.com> Woops, sorry, on windows you don't have a "share" folder. It's indeed in SCI/modules/atoms/atoms_internals You applied the fix, but did you then run buildmacros.bat? This is necessary to have the fix taken into account (it removes the .bin files, then compile again the .sci/.sce to create new .bin files), otherwise it will use the atomsExtract.bin that was packaged with the version. Simon On 02/20/2013 12:56 PM, Adrien Vogt-Schilb wrote: > Dear Simon > > In my case, > HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation > = 2 > > Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI > SCI = > > C:/Program Files/scilab-5.4.0 > > -->WSCI > WSCI = > > C:\Program Files\scilab-5.4.0 > > > I tried to implement your solution, but found that there was no folder > "share" in my SCI. > Instead, I modified atomsExtract.sci found at : C:\Program > Files\scilab-5.4.0\modules\atoms\macros\atoms_internals > > as it is in Program Files, I had to run my text editor as > administrator to be able to save the file. > > then I had a new error when trying to install a random atoms package: > > atomsExtract: The extraction of the archive > 'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip' > has failed. > > > bon ap' > > On 20/02/2013 11:48, Simon GARESTE wrote: >> Hi, >> >> Thank you. We found the bug >> , and fixed it >> . In short, you can see the >> difference between your machines at the value of the >> HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation >> key. This key creates (or not, depending on its value) a shortpath >> name for the folders when they are created. In your case, no >> shortpath name was created, hence the difference of path for SCI, and >> the ATOMS command to extract wasn't set between quotes (which makes >> it translatable by a windows command), so it couldn't figure out what >> to do when the SCI contained spaces. >> >> What you can do to fix your Scilab is quit every instance of it, then >> modify your >> SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at >> line 78 replace >> extract_cmd = >> getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); >> by >> extract_cmd = """" + >> getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """"; >> (or download this file >> ) >> and copy it to the path >> >> Then in SCI\share\scilab\modules\atoms\macros, execute >> buildmacros.bat and restart your scilab >> >> Best regards, >> >> Simon >> >> On 02/20/2013 02:45 AM, Andrii Ryzhkov wrote: >>> Hi, >>> >>> On completely default installation: >>> >>> -->disp(SCI) >>> C:/Program Files/scilab-5.4.0 >>> -->disp(WSCI) >>> C:\Program Files\scilab-5.4.0 >>> >>> Andrii >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> -- >> Simon Gareste >> Support & Development Engineer >> ----------------------------------------------------------- >> Scilab Enterprises >> 143bis rue Yves Le Coz - 78000 Versailles, France >> Phone: +33.1.80.77.04.70 >> http://www.scilab-enterprises.com >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > -- > Adrien Vogt-Schilb (Cired) > Tel: (+33) 1 43 94 73 83 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From berns.buenaobra at gmail.com Wed Feb 20 13:28:51 2013 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Wed, 20 Feb 2013 20:28:51 +0800 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> Message-ID: Hi Andrii. Have you figured out a way to check the integrity of you zipped file? Say a checksum? Or some feature like here: http://kb.winzip.com/help/winzip/help_test.htm. Also maybe (just maybe) your harddisk is being prevented to be able to write temporary files by Scilab? By something...like some anti-malware utility, AV etc. Regards, Berns B. On Fri, Feb 15, 2013 at 5:32 PM, Andrii Ryzhkov wrote: > Hi, > > I have problems installing any ATOMS module. It is not about any specific > one. And I really had SciLab 5.4.0 installed on couple of Win8 PCs and > never had any problems. > I did try to reinstall SciLab with manual deletion of the folder you've > mentioned. I even reinstalled (restored to factory settings) Windows 8. Did > not help. > > -->atomsGetConfig() > ans = > > downloadTool: "curl" > > -->atomsRepositoryList() > ans = > > !http://atoms.scilab.org/5.4 official ! > > I did steps you asked. The same result - error while extracting module > package. > Actually, what I noticed, files are downloaded correctly. I can easily > unzip them, but SciLab can not. > > Best regards, > Andrii > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Feb 20 14:51:43 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 20 Feb 2013 14:51:43 +0100 Subject: [Scilab-users] Can't install ATOMS modules: FIXED In-Reply-To: <5124BE74.7000303@scilab-enterprises.com> References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> <511E07B4.6060103@scilab-enterprises.com> <511E098A.7070909@scilab-enterprises.com> <51233E22.7020304@scilab-enterprises.com> <5124A9EF.4080000@scilab-enterprises.com> <5124B9E5.2010000@centre-cired.fr> <5124BE74.7000303@scilab-enterprises.com> Message-ID: <5124D4EF.3010103@centre-cired.fr> Simon, actually it's in SCI\modules\atoms\*macros*\atoms_internals i forgot to run the batch file. I had to run it as administrator in order to make thing work. This mean open a prompt has administrator, and execue the bat from there (right clic run as admin did not work) i had to make sure scilab was closed before. now it works. i could succesfully instal an atoms package simply by typing: atomsInstall("csv_readwrite") (god, windows is so much more trouble than linux. grrrr) Andrii, did you tried the "run as administator stuff"? On 20/02/2013 13:15, Simon GARESTE wrote: > Woops, sorry, on windows you don't have a "share" folder. It's indeed > in SCI/modules/atoms/atoms_internals > > You applied the fix, but did you then run buildmacros.bat? This is > necessary to have the fix taken into account (it removes the .bin > files, then compile again the .sci/.sce to create new .bin files), > otherwise it will use the atomsExtract.bin that was packaged with the > version. > > > Simon > On 02/20/2013 12:56 PM, Adrien Vogt-Schilb wrote: >> Dear Simon >> >> In my case, >> HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation >> = 2 >> >> Also, SCI and WSCI return the "long pahtes" with spaces: -->SCI >> SCI = >> >> C:/Program Files/scilab-5.4.0 >> >> -->WSCI >> WSCI = >> >> C:\Program Files\scilab-5.4.0 >> >> >> I tried to implement your solution, but found that there was no >> folder "share" in my SCI. >> Instead, I modified atomsExtract.sci found at : C:\Program >> Files\scilab-5.4.0\modules\atoms\macros\atoms_internals >> >> as it is in Program Files, I had to run my text editor as >> administrator to be able to save the file. >> >> then I had a new error when trying to install a random atoms package: >> >> atomsExtract: The extraction of the archive >> 'C:\Users\Admin\AppData\Roaming\Scilab\scilab-5.4.0\atoms\x64\csv_readwrite\csv_readwrite_0.6.1-2.bin.x64.windows.zip' >> has failed. >> >> >> bon ap' >> >> On 20/02/2013 11:48, Simon GARESTE wrote: >>> Hi, >>> >>> Thank you. We found the bug >>> , and fixed it >>> . In short, you can see >>> the difference between your machines at the value of the >>> HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation >>> key. This key creates (or not, depending on its value) a shortpath >>> name for the folders when they are created. In your case, no >>> shortpath name was created, hence the difference of path for SCI, >>> and the ATOMS command to extract wasn't set between quotes (which >>> makes it translatable by a windows command), so it couldn't figure >>> out what to do when the SCI contained spaces. >>> >>> What you can do to fix your Scilab is quit every instance of it, >>> then modify your >>> SCI\share\scilab\modules\atoms\atoms_internals\atomsExtract.sci, at >>> line 78 replace >>> extract_cmd = >>> getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)); >>> by >>> extract_cmd = """" + >>> getshortpathname(pathconvert(SCI+"/tools/zip/unzip.exe",%F)) + """"; >>> (or download this file >>> ) >>> and copy it to the path >>> >>> Then in SCI\share\scilab\modules\atoms\macros, execute >>> buildmacros.bat and restart your scilab >>> >>> Best regards, >>> >>> Simon >>> >>> On 02/20/2013 02:45 AM, Andrii Ryzhkov wrote: >>>> Hi, >>>> >>>> On completely default installation: >>>> >>>> -->disp(SCI) >>>> C:/Program Files/scilab-5.4.0 >>>> -->disp(WSCI) >>>> C:\Program Files\scilab-5.4.0 >>>> >>>> Andrii >>>> >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> >>> -- >>> Simon Gareste >>> Support & Development Engineer >>> ----------------------------------------------------------- >>> Scilab Enterprises >>> 143bis rue Yves Le Coz - 78000 Versailles, France >>> Phone: +33.1.80.77.04.70 >>> http://www.scilab-enterprises.com >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> -- >> Adrien Vogt-Schilb (Cired) >> Tel: (+33) 1 43 94 73 83 >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -- > Simon Gareste > Support & Development Engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.70 > http://www.scilab-enterprises.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Wed Feb 20 14:58:06 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Wed, 20 Feb 2013 14:58:06 +0100 Subject: [Scilab-users] Xcos startup delays win7 64bit In-Reply-To: <1361359945065-4025974.post@n3.nabble.com> References: <1361359945065-4025974.post@n3.nabble.com> Message-ID: <5124D66E.1020204@scilab-enterprises.com> Le 20/02/2013 12:32, Walter Lang a ?crit : > Installed version 5.4.0 on win7 64bit > > Starup and function of Scilab is normal, but when i tried to start Xcos is > needs 3 minutes with 70% cpu usage to start the palette browser. > > What is to do ? > Do you have any Xcos extensions installed on your system ? If you don't, please report a bug with many information as possible. Sylvestre From clement.david at scilab-enterprises.com Wed Feb 20 16:26:51 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 20 Feb 2013 16:26:51 +0100 Subject: [Scilab-users] Generic_block3 In-Reply-To: <1361358812684-4025973.post@n3.nabble.com> References: <1361358812684-4025973.post@n3.nabble.com> Message-ID: <1361374011.1988.11.camel@CLONE03> Hello Peter, To get the first output port, use GetRealOutPortPtrs(blk, 1) and to get the second, use GetRealOutPortPtrs(blk, 2). In your current code, you might access the first and second element of the first input port. For more information take a look at the documentation [1]. [1]: http://help.scilab.org/docs/5.4.0/en_US/C_struct.html Regards, > #include "scicos_block4.h" > #include > #include > #include > > #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) > #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) > // inputs > #define in1 (r_IN(0,0)) // integrator input > #define in2 (r_IN(1,0)) // integrator input > > // states > #define X1 (GetState(blk)[0]) // integrator state > #define X2 (GetState(blk)[1]) // integrator state > > #define Xdot1 (GetDerState(blk)[0]) // derivative of the integrator > output > #define Xdot2 (GetDerState(blk)[1]) // derivative of the integrator > output > > // outputs > #define out1 (r_OUT(0, 0)) // integrator output > #define out2 (r_OUT(1, 0)) // integrator gain > > void myC_block(scicos_block *blk, int flag) > { > > switch (flag) > { > case DerivativeState: > Xdot1 = in1; > Xdot2 = in1; > break; > > case OutputUpdate: > out1 = X1; > out2 = X2; > break; > } > } > This C function runs correctly within block. > > If I change e.g. output declaration as follow > > #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) > > and used as > > Y[0] //first output > Y[1] //second output > > then the function compiles and runs under xcos but there is warning and > output is always zero. > > warning: > scicosim error: Type not yet supported for outtb. > > Do you have any advice what can be wrong? How to use and handle > inputs/outputs/states etc... correctly within C-function? > > Thank you! > > Peter > > > > > -- > View this message in context: http://mailinglists.scilab.org/Generic-block3-tp4025973.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From walter.lang at uni-siegen.de Wed Feb 20 16:44:01 2013 From: walter.lang at uni-siegen.de (Walter Lang) Date: Wed, 20 Feb 2013 07:44:01 -0800 (PST) Subject: [Scilab-users] Xcos startup delays win7 64bit In-Reply-To: <5124D66E.1020204@scilab-enterprises.com> References: <1361359945065-4025974.post@n3.nabble.com> <5124D66E.1020204@scilab-enterprises.com> Message-ID: <1361375041710-4025981.post@n3.nabble.com> During the install prozess, i vote the option "Full install". Walter -- View this message in context: http://mailinglists.scilab.org/Xcos-startup-delays-win7-64bit-tp4025974p4025981.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From andrii.ryzhkov at gmail.com Wed Feb 20 18:45:31 2013 From: andrii.ryzhkov at gmail.com (Andrii Ryzhkov) Date: Wed, 20 Feb 2013 10:45:31 -0700 Subject: [Scilab-users] Can't install ATOMS modules In-Reply-To: References: <511CD9F0.5050505@centre-cired.fr> <511DFB86.6070600@scilab-enterprises.com> Message-ID: Hi, With a little correction of the file path to SCI\ modules\atoms\macros\atoms_internals\atomsExtract.sci on Windows, this solution works fine. Thanks. Best regards, Andrii -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Wed Feb 20 21:41:23 2013 From: samuel.enibe at unn.edu.ng (samuel.enibe at unn.edu.ng) Date: Wed, 20 Feb 2013 20:41:23 +0000 Subject: [Scilab-users] How to start with several variables in AUTOMATIC function of GROCER Message-ID: <51253638.c462b40a.45f2.ffff812f@mx.google.com> Thank you so much, Eric. It worked very well. God bless you. Samuel Enibe Sent from my Nokia phone -----Original Message----- From: Eric Dubois Sent: 19/02/2013 9.04.39 pm Subject: Re: [Scilab-users] How to start with several variables in AUTOMATIC function of GROCER Dear Samuel. The error can be explained easily: one of the main principles of the program automatic is to find the best model that passes specification tests, that is tests that the residuals can be considered as white noise and that the model is stable (through standard Chow tests). And the Chow test estimates a number of coefficients equal to twice the number of exogenous varaibles (that is 12 coefficients with only 9 points!) As explained in chapter 15 of the manual (page 8-9), available on my web site (http://dubois.ensae.net/grocer.html), you can overcome this difficulty by reducing the set of specification tests. For instance: --> automatic(nc, x,'test=doornhans') works. This is at the expense of the philisophy of the program... ?ric. 2013/2/19 Samuel Enibe > Dear sir, > > I would like to employ the AUTOMATIC function in GROCER toolbox to perform > automatic regression starting with a rather LARGE set of variables and > ending with the few that are most significant. However, I have noticed the > following problems using the example attached: > > 1. Programme works with only 3 initial variables specified (see line 30 in > attached file), which works, but line 31 with only 6 starting variables > complains of TOO MANY EXOGENOUS VARIABLES > 2. When it runs with 3 starting variables, the R2 value is not specified. > How can I get this calculated and used. > 3. The help files included with the AUTOMATIC package does not seem to > answer these questions. > > ANY ASSISTANCE WILL BE GREATLY APPRECIATED > > > -- > Samuel Ogbonna Enibe > BEng (Nig), MSc (Reading, England), PhD (Nig) > Professor of Mechanical Engineering > Director, National Centre for Equipment Maintenance & Development > University of Nigeria, Nsukka, Nigeria > Tel: +2348063646798 > Email: samuel.enibe at unn.edu.ng > enibesam at yahoo.com > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > From fialho at nce.ufrj.br Wed Feb 20 23:36:29 2013 From: fialho at nce.ufrj.br (Marcos Fialho de Carvalho) Date: Wed, 20 Feb 2013 19:36:29 -0300 Subject: [Scilab-users] Installation problems Scilab 5.4.0 Message-ID: Hello, The install program do nothing. No message. The program began and finishing. Just it. If I try "Execute with..." and choose my user account, this message shows: "Setup was unable to create directory "C:\Documents and Settings\fialho\is-xxxxx.tmp". "Error 5: Access Denied" Install program: scilab-5.4.0.exe (32 bits) SO: Windows XP Professional - Service Pack 3 Computer: Core 2 Duo CPU E7500 @ 2.93GHz 2.93 GHz, 3.34 GB of RAM My user account has administrator power. I try: Create other user account with administrator power. Look for computer virus. Notting happens. Help, please. Thanks, Marcos Carvalho -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.balazovic at yahoo.com Thu Feb 21 09:00:01 2013 From: peter.balazovic at yahoo.com (pepe) Date: Thu, 21 Feb 2013 00:00:01 -0800 (PST) Subject: [Scilab-users] Generic_block3 In-Reply-To: <1361374011.1988.11.camel@CLONE03> References: <1361358812684-4025973.post@n3.nabble.com> <1361374011.1988.11.camel@CLONE03> Message-ID: <1361433601966-4025986.post@n3.nabble.com> Hello, Thank you very much for your answer! I have a similar question for #define W ((SCSREAL_COP *)(GetWorkPtrs(blk)) case Initialization: GetWorkPtrs(blk) = (double *)scicos_malloc(sizeof(double)*2); W[0] = 0; W[1] = 0; break; I need to use work array and I need to rad it out somehow since now I have no success. If you can help I would very appreciate. Thank you Best regards, Peter -- View this message in context: http://mailinglists.scilab.org/Generic-block3-tp4025973p4025986.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Thu Feb 21 09:18:56 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 21 Feb 2013 09:18:56 +0100 Subject: [Scilab-users] Generic_block3 In-Reply-To: <1361433601966-4025986.post@n3.nabble.com> References: <1361358812684-4025973.post@n3.nabble.com> <1361374011.1988.11.camel@CLONE03> <1361433601966-4025986.post@n3.nabble.com> Message-ID: <1361434736.1917.9.camel@CLONE03> Hello Peter, To use the work user_data pointer, I prefer a direct access as it is simpler to use with a specific struct. The scopes are good examples with huge specific struct [1], access [2] and storage into work [3] are really readable without macros. For double work array it might not be necessary to define a specific struct but defining it will probably help code readability. [1]: http://cgit.scilab.org/cgit.cgi/scilab/tree/scilab/modules/scicos_blocks/src/c/cscope.c#n51 [2]: http://cgit.scilab.org/cgit.cgi/scilab/tree/scilab/modules/scicos_blocks/src/c/cscope.c#n277 [3]: http://cgit.scilab.org/cgit.cgi/scilab/tree/scilab/modules/scicos_blocks/src/c/cscope.c#n352 On Thu, 2013-02-21 at 00:00 -0800, pepe wrote: > Hello, > > Thank you very much for your answer! I have a similar question for > > #define W ((SCSREAL_COP *)(GetWorkPtrs(blk)) > > case Initialization: > GetWorkPtrs(blk) = (double *)scicos_malloc(sizeof(double)*2); > W[0] = 0; > W[1] = 0; > break; > > I need to use work array and I need to rad it out somehow since now I have > no success. > If you can help I would very appreciate. > > Thank you > > Best regards, > Peter > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Generic-block3-tp4025973p4025986.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From walter.lang at uni-siegen.de Thu Feb 21 11:08:08 2013 From: walter.lang at uni-siegen.de (Walter Lang) Date: Thu, 21 Feb 2013 02:08:08 -0800 (PST) Subject: [Scilab-users] Xcos startup delays win7 64bit In-Reply-To: <1361359945065-4025974.post@n3.nabble.com> References: <1361359945065-4025974.post@n3.nabble.com> Message-ID: <1361441288507-4025988.post@n3.nabble.com> Message on the Scilab-Konsole when Xcos is starting: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException at javax.swing.LayoutComparator.compare(Unknown Source) at java.util.Arrays.mergeSort(Unknown Source) at java.util.Arrays.sort(Unknown Source) at java.util.Collections.sort(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source) at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source) at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source) at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source) at java.awt.Window.getMostRecentFocusOwner(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.SequencedEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.awt.EventQueue$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Walter -- View this message in context: http://mailinglists.scilab.org/Xcos-startup-delays-win7-64bit-tp4025974p4025988.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Thu Feb 21 14:41:58 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 21 Feb 2013 14:41:58 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle Message-ID: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> Hello, is it possible to mix LaTeX and non-LaTeX character string in xtitle? e.g. something like scale = 10; xtitle('foobar', '$x \times$'+string(scale)); does not give the expected result. Is it a known limitation ? Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From vogt at centre-cired.fr Thu Feb 21 14:46:00 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 21 Feb 2013 14:46:00 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> Message-ID: <51262518.2030502@centre-cired.fr> On 21/02/2013 14:41, Dang, Christophe wrote: > Hello, > > is it possible to mix LaTeX and non-LaTeX character string in xtitle? > > e.g. something like > > scale = 10; > xtitle('foobar', '$x \times$'+string(scale)); > > does not give the expected result. > > Is it a known limitation ? > > Regards > Hi why not using: xtitle('foobar', '$x \times '+string(scale)+'$'); ? -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 From Christophe.Dang at sidel.com Thu Feb 21 14:51:44 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 21 Feb 2013 14:51:44 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <51262518.2030502@centre-cired.fr> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> <51262518.2030502@centre-cired.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> De la part de Adrien Vogt-Schilb Envoy? : jeudi 21 f?vrier 2013 14:46 > why not using: > > xtitle('foobar', '$x \times '+string(scale)+'$'); OK, that's fine. It was just not intuitive to me (I guess it's a matter of parser). I think such example could be documented, e.g. in http://help.scilab.org/docs/5.4.0/en_US/math_rendering_features_in_graphic.html Anyway, thanks for the help. Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From calixte.denizet at scilab-enterprises.com Thu Feb 21 15:33:15 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Thu, 21 Feb 2013 15:33:15 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> <51262518.2030502@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> Message-ID: <5126302B.5090403@scilab-enterprises.com> Hi Christophe, If you want to use the default Java font: xtitle("$\times \jlmText{" +string(scale)+"}$") The font to use with the special command jlmText (it is not a standard LaTeX command) can be set with the command \jlmExternalFont, for example: xtitle("$\jlmExternalFont{Liberation Mono}\times \jlmText{" +string(scale)+"}$"). You can get the current loaded fonts in Scilab with the command xlfont() (see help) Best regards Calixte On 21/02/2013 14:51, Dang, Christophe wrote: > De la part de Adrien Vogt-Schilb > Envoy? : jeudi 21 f?vrier 2013 14:46 > >> why not using: >> >> xtitle('foobar', '$x \times '+string(scale)+'$'); > OK, that's fine. > > It was just not intuitive to me > (I guess it's a matter of parser). > > I think such example could be documented, e.g. in > http://help.scilab.org/docs/5.4.0/en_US/math_rendering_features_in_graphic.html > > Anyway, thanks for the help. > > Best regards > -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From Christophe.Dang at sidel.com Thu Feb 21 15:46:16 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 21 Feb 2013 15:46:16 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <5126302B.5090403@scilab-enterprises.com> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> <51262518.2030502@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> <5126302B.5090403@scilab-enterprises.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F10688AAB9@301EX00100.sidel.com> De la part de Calixte Denizet Envoy? : jeudi 21 f?vrier 2013 15:33 > If you want to use the default Java font: > > xtitle("$\times \jlmText{" +string(scale)+"}$") [...] > xtitle("$\jlmExternalFont{Liberation Mono}\times \jlmText{" +string(scale)+"}$"). Well, that's a nice playground. For the homogeneity of the rendering, I think I'll use LaTeX commands such as \mathrm{} or \text{}, but that's useful to know. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From antoine.monmayrant at laas.fr Thu Feb 21 16:08:02 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 21 Feb 2013 16:08:02 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <5126302B.5090403@scilab-enterprises.com> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> <51262518.2030502@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> <5126302B.5090403@scilab-enterprises.com> Message-ID: <51263852.4030800@laas.fr> On 21/02/2013 15:33, Calixte Denizet wrote: > Hi Christophe, > > If you want to use the default Java font: > > xtitle("$\times \jlmText{" +string(scale)+"}$") > > The font to use with the special command jlmText (it is not a standard > LaTeX command) can be set with the command \jlmExternalFont, for example: > xtitle("$\jlmExternalFont{Liberation Mono}\times \jlmText{" > +string(scale)+"}$"). > > You can get the current loaded fonts in Scilab with the command > xlfont() (see help) > > Best regards > > Calixte Hi Calixte, Is there a way to get LaTeX rendering for non mathmode (ie for plain text) without resorting to the use of "$\text{ ... plain text ... }$" ? Cheers, Antoine > > On 21/02/2013 14:51, Dang, Christophe wrote: >> De la part de Adrien Vogt-Schilb >> Envoy? : jeudi 21 f?vrier 2013 14:46 >> >>> why not using: >>> >>> xtitle('foobar', '$x \times '+string(scale)+'$'); >> OK, that's fine. >> >> It was just not intuitive to me >> (I guess it's a matter of parser). >> >> I think such example could be documented, e.g. in >> http://help.scilab.org/docs/5.4.0/en_US/math_rendering_features_in_graphic.html >> >> >> Anyway, thanks for the help. >> >> Best regards >> > > From calixte.denizet at scilab-enterprises.com Thu Feb 21 16:22:19 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Thu, 21 Feb 2013 16:22:19 +0100 Subject: [Scilab-users] LaTeX mixed with normal string in xtitle In-Reply-To: <51263852.4030800@laas.fr> References: <3B5FFC67498DFF49AE7271A584867D16F10688A968@301EX00100.sidel.com> <51262518.2030502@centre-cired.fr> <3B5FFC67498DFF49AE7271A584867D16F10688A990@301EX00100.sidel.com> <5126302B.5090403@scilab-enterprises.com> <51263852.4030800@laas.fr> Message-ID: <51263BAB.6@scilab-enterprises.com> > Hi Calixte, > Hi Antoine > Is there a way to get LaTeX rendering for non mathmode (ie for plain > text) without resorting to the use of "$\text{ ... plain text ... }$" ? > The goal of jlatexmath is to display maths essentially so the default mode is math... I'll see if I can add an option somewhere to be in text mode by default. Regards Calixte > Cheers, > > Antoine >> >> On 21/02/2013 14:51, Dang, Christophe wrote: >>> De la part de Adrien Vogt-Schilb >>> Envoy? : jeudi 21 f?vrier 2013 14:46 >>> >>>> why not using: >>>> >>>> xtitle('foobar', '$x \times '+string(scale)+'$'); >>> OK, that's fine. >>> >>> It was just not intuitive to me >>> (I guess it's a matter of parser). >>> >>> I think such example could be documented, e.g. in >>> http://help.scilab.org/docs/5.4.0/en_US/math_rendering_features_in_graphic.html >>> >>> >>> Anyway, thanks for the help. >>> >>> Best regards >>> >> >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From walter.lang at uni-siegen.de Fri Feb 22 14:10:15 2013 From: walter.lang at uni-siegen.de (Walter Lang) Date: Fri, 22 Feb 2013 05:10:15 -0800 (PST) Subject: [Scilab-users] Missing events with retangular sources like PULS_SC Message-ID: <1361538615916-4025996.post@n3.nabble.com> High to all, purpose of my example is to get more experience with the usage of Xcos blocks and the according simulation. A STEP_FUNCTION serial with a RATELIMITER produce the expected result. When the source is changed to PULS_SC the draw function (CMSCOPE) before and after the RATELIMITER is the same. Why ? What is wrong ? Walter -- View this message in context: http://mailinglists.scilab.org/Missing-events-with-retangular-sources-like-PULS-SC-tp4025996.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Fri Feb 22 18:46:53 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Fri, 22 Feb 2013 18:46:53 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table Message-ID: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> Hello, For graphic window with a large number of curves, the problem is in displaying legends: using the legend function, the last entries are not visible. The solution I am trying to code is the following: First split the legends in 2 columns with approximately the same number of entries for each column. After placing the first column on the graphics, automatically place the 2nd column side by side with the first one, i.e. at a position which depends on the length of the strings in the first column, using move. xstringl gives the length of one of the legends: PROBLEM = it is approximate and most probably not the easiest way... nc=40; names_legend='legend_'+string(1:nc); nc1=round(nc/2); //nc is the number of curves: split in 2 legends(names_legend(1:nc1),1:nc1,font_size=3,opt="ul");// put first column of legends a1=gca(); // Get the width of the text tw=0; for i=1:nc, tl=xstringl(0,0,names_legend(i),a1.font_style,a1.font_size); tw=max(tw,tl(3)); end; legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul"); // 2nd column on top of first move(a1.children(1),[tw*0.7513907+0.0585762,0]); //Move it horizontally (along x-axis); As a matter of fact, I don't know why I need to apply some linear relationship between tw and the value of the horizontal shift... This is awkward! I am unable to find an easy way to get the width of the box of the first column of the legend. Thank you for any help. Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Feb 22 21:12:27 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 22 Feb 2013 21:12:27 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> Message-ID: <5127D12B.7020005@free.fr> Hello Denis, Running your example in a fresh scilab session, its last line yields: -->move(a1.children(1),[tw*0.7513907+0.0585762,0]); !--error 246 Fonction non d?finie pour le type d'argument donn?. v?rifiez les arguments ou d?finir la fonction %s_move pour la surcharge. Regards Samuel From denis.crete at thalesgroup.com Sat Feb 23 01:54:31 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Sat, 23 Feb 2013 01:54:31 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <5127D12B.7020005@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> Message-ID: <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> Sorry, Samuel. In fact, it does not work with a handle on an "axis", but it works with a handle on a "figure": nc=40; names_legend='legend_'+string(1:nc); nc1=round(nc/2); //nc is the number of curves: split in 2 f1=gcf(); // Get handle on figure; legends(names_legend(1:nc1),1:nc1,font_size=3,opt="ul");// put first column of legends a1=gca(); // NOT USED ANYMORE // Get the width of the text tw=0; for i=1:nc, tl=xstringl(0,0,names_legend(i),f1.children(1).font_style,f1.children(1).font_size); tw=max(tw,tl(3)); end; legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul"); // 2nd column on top of first move(f1.children(1).children(1),[tw*0.7514+0.05858,0]); //Move it horizontally (along x-axis); I do not understand why it is not equivalent to refer to f1.children(1) or to refer to a1 ... Thank you for your help. Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy??: vendredi 22 f?vrier 2013 21:12 ??: International users mailing list for Scilab. Objet?: Re: [Scilab-users] Format legends of a graph as a 2D table Hello Denis, Running your example in a fresh scilab session, its last line yields: -->move(a1.children(1),[tw*0.7513907+0.0585762,0]); !--error 246 Fonction non d?finie pour le type d'argument donn?. v?rifiez les arguments ou d?finir la fonction %s_move pour la surcharge. Regards Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Sat Feb 23 13:18:53 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2013 13:18:53 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> Message-ID: <5128B3AD.8030403@free.fr> Here is a simpler, working and likely more robust sample: clf nc = 40; names_legend = 'legend_'+string(1:nc); nc1 = ceil(nc/2); //nc is the number of curves: split in 2 legends(names_legend(1:nc1),1:nc1,font_size=3,opt="ul");// put first column of legends // Get the width of this block: idL1 = gce(); tmp = idL1.children($).data(:,1); width = max(tmp)-min(tmp); // Display 2nd block legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul"); // on top of first move(gce(),[width,0]); //Move it horizontally (along x-axis); Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 23 13:24:25 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2013 13:24:25 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <5128B3AD.8030403@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128B3AD.8030403@free.fr> Message-ID: <5128B4F9.1060305@free.fr> Le 23/02/2013 13:18, Samuel Gougeon a ?crit : > Here is a simpler, working and likely more robust sample: Strange bug when copying/pasting from Scinotes... Here is the right sample (double checked ;): clf nc = 40; names_legend = 'legend_'+string(1:nc); nc1 = ceil(nc/2); //nc is the number of curves: split in 2 legends(names_legend(1:nc1), 1:nc1,font_size=3,opt="ul");// put first column of legends // Get the width of this block: idL1 = gce(); tmp = idL1.children($).data(:,1); width = max(tmp)-min(tmp); // Display 2nd block legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul"); // on top of first move(gce(),[width,0]); //Move it horizontally (along x-axis); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 23 13:29:44 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2013 13:29:44 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <5128B4F9.1060305@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128B3AD.8030403@free.fr> <5128B4F9.1060305@free.fr> Message-ID: <5128B638.9060308@free.fr> Le 23/02/2013 13:24, Samuel Gougeon a ?crit : > Le 23/02/2013 13:18, Samuel Gougeon a ?crit : >> Here is a simpler, working and likely more robust sample: > Strange bug when copying/pasting from Scinotes... > Here is the right sample (double checked ;): > .../... > // Display 2nd block > legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size > > =3,opt="ul"); // on top of first Aaarrr..! If this one turns to not be okay after being sent, please correct wrong line-wrapping by hand: clf nc = 40; names_legend = 'legend_'+string(1:nc); nc1 = ceil(nc/2); //nc is the number of curves: split in 2 legends(names_legend(1:nc1), 1:nc1,font_size=3,opt="ul");// put first column of legends // Get the width of this block: idL1 = gce(); tmp = idL1.children($).data(:,1); width = max(tmp)-min(tmp); // Display 2nd block legends(names_legend((nc1+1):nc),(nc1+1):nc,font_size=3,opt="ul"); // on top of first move(gce(),[width,0]); //Move it horizontally (along x-axis); -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Feb 23 14:10:42 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 23 Feb 2013 14:10:42 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> Message-ID: <5128BFD2.2010807@free.fr> Le 23/02/2013 01:54, CRETE Denis a ?crit : > .../... > I do not understand why it is not equivalent to refer to f1.children(1) or to refer to a1 ... > Thank you for your help. > Denis The following automatically splits nL legends if blocks of Lpc lines (if there are parasitic line-wrapping when receiving this sample, please correct them before running it. It is ok when sending it): clf nL = 40; // number of Legends Lpc = 15; // number of Lines per column names_legend = "legend_"+string(1:nL); x = 0; i = 1; j = min([Lpc, nL]); while i<=nL disp(i) legends(names_legend(i:j), i:j, font_size=3, opt="ul"); idL = gce(); move(idL, [x,0]); w = strange(idL.children($).data(:,1)); // width of this block idL.children($).line_mode = "off"; // masks the frame x = x+w; // updates the position of next block i = i+Lpc; j = min([j+Lpc, nL]); end Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: idcgeddh.png Type: image/png Size: 8375 bytes Desc: not available URL: From samuel.enibe at unn.edu.ng Sat Feb 23 22:19:31 2013 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Sat, 23 Feb 2013 13:19:31 -0800 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Thanks, Spougeon. This has partly solved the problem. Suppose I have two plots on the same graph, one is to use the left Y-axis, while the second is to use the right Y-axis. How should I handle it with gca() or any other command? Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria On Fri, Feb 8, 2013 at 8:14 AM, wrote: > Hello, > > according to your needs, you may do either: > > plot2d() > ax = gca(); > ax.y_location = 'right'; > > or > > demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy > // and look at the code, using > help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html > > Regards > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Sat Feb 23 22:25:22 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 23 Feb 2013 22:25:22 +0100 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <512933C2.4090400@durietz.se> http://help.scilab.org/docs/5.4.0/en_US/drawaxis.html /Stefan On 2013-02-23 22:19, Samuel Enibe wrote: > Thanks, Spougeon. > This has partly solved the problem. Suppose I have two plots on the same > graph, one is to use the left Y-axis, while the second is to use the > right Y-axis. How should I handle it with gca() or any other command? > > Samuel Ogbonna Enibe > University of Nigeria, Nsukka, Nigeria > > > On Fri, Feb 8, 2013 at 8:14 AM, > wrote: > > Hello, > > according to your needs, you may do either: > > plot2d() > ax = gca(); > ax.y_location = 'right'; > > or > > demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy > // and look at the code, using > help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html > > Regards > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From samuel.enibe at unn.edu.ng Sat Feb 23 23:02:15 2013 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Sat, 23 Feb 2013 14:02:15 -0800 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: <512933C2.4090400@durietz.se> References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <512933C2.4090400@durietz.se> Message-ID: Thanks, Stephan. Can you help me a little further. Suppose I have the data x = [0:0.1:1] y = sin(x) plot(x, y) xtitle("My Title", "Value of x", "Sin (x)") y2 = 2 * sin(x) //y2label = "2 * sin(x)" How do I plot y2 so that it uses the right Y-axis with its y2label properly specified On Sat, Feb 23, 2013 at 1:25 PM, Stefan Du Rietz wrote: > http://help.scilab.org/docs/5.**4.0/en_US/drawaxis.html > > /Stefan > > > On 2013-02-23 22:19, Samuel Enibe wrote: > >> Thanks, Spougeon. >> This has partly solved the problem. Suppose I have two plots on the same >> graph, one is to use the left Y-axis, while the second is to use the >> right Y-axis. How should I handle it with gca() or any other command? >> >> Samuel Ogbonna Enibe >> University of Nigeria, Nsukka, Nigeria >> >> >> On Fri, Feb 8, 2013 at 8:14 AM, > > wrote: >> >> Hello, >> >> according to your needs, you may do either: >> >> plot2d() >> ax = gca(); >> ax.y_location = 'right'; >> >> or >> >> demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy >> // and look at the code, using >> help newaxes // http://help.scilab.org/docs/5.** >> 4.0/en_US/newaxes.html >> >> Regards >> Samuel >> ______________________________**_________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/**mailman/listinfo/users >> >> >> >> >> -- >> >> >> >> >> ______________________________**_________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/**mailman/listinfo/users >> >> > ______________________________**_________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/**mailman/listinfo/users > -- Samuel Ogbonna Enibe BEng (Nig), MSc (Reading, England), PhD (Nig) Professor of Mechanical Engineering Director, National Centre for Equipment Maintenance & Development University of Nigeria, Nsukka, Nigeria Tel: +2348063646798 Email: samuel.enibe at unn.edu.ng enibesam at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Sat Feb 23 23:46:01 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 23 Feb 2013 23:46:01 +0100 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> <512933C2.4090400@durietz.se> Message-ID: <512946A9.4090705@durietz.se> Hi Samuel. you can have different y_tick.labels on the left and right y axes and multiply the y-data of the line with the right y axis with a factor. In your case the left y axis could have y_tick.labels from -1 to +1 and the right y axis from -2 to +2. But because both lines are drawn in the same axes (with the same y_tick.locations from -1 to +1), you have to multiply 2*sin(x) by 0.5 to make it correspond to the right y axis labels that are multiplied by 2 (1/0.5). However, in your case both lines will look be the same. But if you change the second to 2*cos(x) and give it another color or line style (which is somewhere noted to correspond to the right y axis) it could work. /Stefan On 2013-02-23 23:02, Samuel Enibe wrote: > Thanks, Stephan. > Can you help me a little further. > Suppose I have the data > x = [0:0.1:1] > y = sin(x) > plot(x, y) > xtitle("My Title", "Value of x", "Sin (x)") > > y2 = 2 * sin(x) > //y2label = "2 * sin(x)" > > How do I plot y2 so that it uses the right Y-axis with its y2label > properly specified > > On Sat, Feb 23, 2013 at 1:25 PM, Stefan Du Rietz > wrote: > > http://help.scilab.org/docs/5.__4.0/en_US/drawaxis.html > > > /Stefan > > > On 2013-02-23 22:19, Samuel Enibe wrote: > > Thanks, Spougeon. > This has partly solved the problem. Suppose I have two plots on > the same > graph, one is to use the left Y-axis, while the second is to use the > right Y-axis. How should I handle it with gca() or any other > command? > > Samuel Ogbonna Enibe > University of Nigeria, Nsukka, Nigeria > > > On Fri, Feb 8, 2013 at 8:14 AM, > >> wrote: > > Hello, > > according to your needs, you may do either: > > plot2d() > ax = gca(); > ax.y_location = 'right'; > > or > > demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy > // and look at the code, using > help newaxes // > http://help.scilab.org/docs/5.__4.0/en_US/newaxes.html > > > Regards > Samuel > _________________________________________________ > users mailing list > users at lists.scilab.org > __> > http://lists.scilab.org/__mailman/listinfo/users > > > > > > -- > > > > > _________________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/__mailman/listinfo/users > > > > _________________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/__mailman/listinfo/users > > > > > > -- > Samuel Ogbonna Enibe > BEng (Nig), MSc (Reading, England), PhD (Nig) > Professor of Mechanical Engineering > Director, National Centre for Equipment Maintenance & Development > University of Nigeria, Nsukka, Nigeria > Tel: +2348063646798 > Email: samuel.enibe at unn.edu.ng > enibesam at yahoo.com > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From denis.crete at thalesgroup.com Sun Feb 24 09:52:36 2013 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Sun, 24 Feb 2013 09:52:36 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <5128BFD2.2010807@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> Message-ID: <30467_1361695948_5129D4CC_30467_6045_1_908CBC9017354841B2F32BBEC70A05A101C38A48319A@THSONEA01CMS01P.one.grp> Thank you Samuel, this works great ! I added a frame around the whole table: clf nL = 40; // number of Legends Lpc = 15; // number of Lines per column names_legend = "legend_"+string(1:nL); x = 0; i = 1; j = min([Lpc, nL]); y0=[]; while i<=nL // disp(i) legends(names_legend(i:j), i:j, .. font_size=3, opt="ul"); idL = gce(); h=idL.children($); if i==1 then x0=h.data(1,1); end; y0=[y0;h.data(4,2)]; move(idL, [x,0]); // width of this block w = strange(h.data(:,1)); // masks the frame h.line_mode = "off"; x = x+w; //position of next block i = i+Lpc; j = min([j+Lpc, nL]); end; h.data([1,4],1)=[x0;x0]; h.data([3,4],2)=min(y0)*ones(2,1); h.fill_mode="off"; h.line_mode = "on"; Denis De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : samedi 23 f?vrier 2013 14:11 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] Format legends of a graph as a 2D table Le 23/02/2013 01:54, CRETE Denis a ?crit : .../... I do not understand why it is not equivalent to refer to f1.children(1) or to refer to a1 ... Thank you for your help. Denis The following automatically splits nL legends if blocks of Lpc lines (if there are parasitic line-wrapping when receiving this sample, please correct them before running it. It is ok when sending it): clf nL = 40; // number of Legends Lpc = 15; // number of Lines per column names_legend = "legend_"+string(1:nL); x = 0; i = 1; j = min([Lpc, nL]); while i<=nL disp(i) legends(names_legend(i:j), i:j, font_size=3, opt="ul"< /span>< span style="color:rgb(74,85,219);">); idL = gce(); move(idL, [x,0]); w = strange(idL.children($).data(:,1)); // width of this block idL.children($).line_mode = "off"; // masks the frame x = x+w; // updates the position of next block i = i+Lpc; j = min([j+Lpc, nL]); end [cid:image001.png at 01CE1274.AC9BA1B0] Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8375 bytes Desc: image001.png URL: From jrafaelbguerra at hotmail.com Sat Feb 23 16:47:14 2013 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 23 Feb 2013 12:47:14 -0300 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <5128BFD2.2010807@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> Message-ID: Hello, One alternative to your solution which can hide a lot of the plotted data if the legend names are big: is to keep the legends as short as possible by using only numbers and placing the full text of the curve legends on the figure's title: Does someone know how to further reduce the width of the legend box above (which would be better set to half of its size)? It would be important to have in plot2d the option to post the legends completely outside the plotting area. Could we achieve this by using subplots for instance? PS: Some of the limitations of the plot legends can be found in bugzilla bug tracker, for instance "bug" number: 7906. Best regards, Rafael Guerra From: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Saturday, February 23, 2013 10:11 AM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Format legends of a graph as a 2D table Le 23/02/2013 01:54, CRETE Denis a ?crit : .../... I do not understand why it is not equivalent to refer to f1.children(1) or to refer to a1 ... Thank you for your help. Denis The following automatically splits nL legends if blocks of Lpc lines (if there are parasitic line-wrapping when receiving this sample, please correct them before running it. It is ok when sending it): clf nL = 40; // number of Legends Lpc = 15; // number of Lines per column names_legend = "legend_"+string(1:nL); x = 0; i = 1; j = min([Lpc, nL]); while i<=nL disp(i) legends(names_legend(i:j), i:j, font_size=3, opt="ul"< /span>< span style="color:rgb(74,85,219);">); idL = gce(); move(idL, [x,0]); w = strange(idL.children($).data(:,1)); // width of this block idL.children($).line_mode = "off"; // masks the frame x = x+w; // updates the position of next block i = i+Lpc; j = min([j+Lpc, nL]); end Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 8375 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 69864 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.jpg Type: image/jpeg Size: 85703 bytes Desc: not available URL: From david.cheze at cea.fr Mon Feb 25 09:04:54 2013 From: david.cheze at cea.fr (=?UTF-8?Q?David_Ch=C3=A8ze?=) Date: Mon, 25 Feb 2013 00:04:54 -0800 (PST) Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> Message-ID: <1361779494159-4026018.post@n3.nabble.com> Hi Rafael, I may have misunderstood your request however as far i know you could use "out_upper_right" in the legend() options to draw out of the plotting area. see help David -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Format-legends-of-a-graph-as-a-2D-table-tp4025997p4026018.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From peter.balazovic at yahoo.com Mon Feb 25 09:52:44 2013 From: peter.balazovic at yahoo.com (pepe) Date: Mon, 25 Feb 2013 00:52:44 -0800 (PST) Subject: [Scilab-users] (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function Message-ID: <1361782364974-4026020.post@n3.nabble.com> Hello, I prepared my own C - function to have own simulation block. It compiles, link and load the function with no problem. But during the simulation I got (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. Attaching the function: #include "c:\Program Files (x86)\scilab-5.4.0\modules\scicos\includes\scicos_malloc.h" #include "c:\Program Files (x86)\scilab-5.4.0\libs\MALLOC\includes\MALLOC.h" #include "scicos_block4.h" #include #include #include #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) // inputs #define Ud (r_IN(0,0)) #define Uq (r_IN(1,0)) #define Tload (r_IN(2,0)) // states #define Id (GetState(blk)[0]) #define Iq (GetState(blk)[1]) #define Wm (GetState(blk)[2]) #define Theta (GetState(blk)[3]) #define dId (GetDerState(blk)[0]) #define dIq (GetDerState(blk)[1]) #define dWm (GetDerState(blk)[2]) #define dTheta (GetDerState(blk)[3]) // outputs #define Id_out (r_OUT(0, 0)) #define Iq_out (r_OUT(1, 0)) #define Te_out (r_OUT(2, 0)) //parameters #define Rs 1.01 #define Lq 0.001 #define Ld 0.001 #define ke 0.02 #define pp 2. #define Jm 0.008 #define B 0.000005 #define pi 3.14 #define sqrt3 1.732 void myPMSM_block(scicos_block *blk, int flag) { double *Te = (double *) * (blk->work); switch (flag) { case Initialization: Te = (double *) MALLOC(sizeof(double)); Te[0] = 0; break; case DerivativeState: Te[0] = 3./2.*pp/2.*(ke*Iq);// + (Ld - Lq)*Id*Iq); dId = 1./Ld*(Ud - Rs*Id + Lq*pp/2.*Iq*Wm); dIq = 1./Lq*(Uq - Rs*Iq);// - (Ld*Id + ke)*pp/2.*Wm); dWm = 1./Jm*(Te[0] - B*Wm - Tload); dTheta = Wm; break; case OutputUpdate: Id_out = Id; Iq_out = Iq; Te_out = Te[0]; break; case Ending: scicos_free(Te); break; } } After xcos block simulation I am getting within console this message: Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. Save your data and restart Scilab. Any idea how to resolve this? Thank you. Peter -- View this message in context: http://mailinglists.scilab.org/EXCEPTION-ACCESS-VIOLATION-with-scicosim-function-tp4026020.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Feb 25 10:09:03 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 25 Feb 2013 10:09:03 +0100 Subject: [Scilab-users] Plots on second Y axis In-Reply-To: References: <1776921249.132627694.1360340081532.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F1068CF66D@301EX00100.sidel.com> Hello, > Suppose I have two plots on the same graph, > one is to use the left Y-axis, > while the second is to use the right Y-axis. > How should I handle it with gca() or any other command? You might have a look at http://commons.wikimedia.org/wiki/File:Trace_ln_sqrt_1_2_deux_echelles_scilab.svg (picture + source code) This link was already posted Feb 11, 2013; 11:29am, see http://mailinglists.scilab.org/Scilab-users-Plot-command-tt4025898.html -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From clement.david at scilab-enterprises.com Mon Feb 25 10:57:16 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 25 Feb 2013 10:57:16 +0100 Subject: [Scilab-users] (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function In-Reply-To: <1361782364974-4026020.post@n3.nabble.com> References: <1361782364974-4026020.post@n3.nabble.com> Message-ID: <1361786236.1957.14.camel@CLONE03> Hello Pete, On the 'initialization' part you do not store anything on block->work user data pointer. Using the following snippets should work: // declare the data double* Te; // allocate the data Te = (double *) MALLOC(sizeof(double)); // retrieve the data (user data) Te = (double *) * (blk->work); // store the pointer into the simulator provided area (user data) *(block->work) = Te; On Mon, 2013-02-25 at 00:52 -0800, pepe wrote: > Hello, > I prepared my own C - function to have own simulation block. It compiles, > link and load the function with no problem. But during the simulation I got > (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. > Attaching the function: > > #include "c:\Program Files > (x86)\scilab-5.4.0\modules\scicos\includes\scicos_malloc.h" > #include "c:\Program Files > (x86)\scilab-5.4.0\libs\MALLOC\includes\MALLOC.h" > #include "scicos_block4.h" > #include > #include > #include > > #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) > #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) > > // inputs > #define Ud (r_IN(0,0)) > #define Uq (r_IN(1,0)) > #define Tload (r_IN(2,0)) > > // states > #define Id (GetState(blk)[0]) > #define Iq (GetState(blk)[1]) > #define Wm (GetState(blk)[2]) > #define Theta (GetState(blk)[3]) > > #define dId (GetDerState(blk)[0]) > #define dIq (GetDerState(blk)[1]) > #define dWm (GetDerState(blk)[2]) > #define dTheta (GetDerState(blk)[3]) > > // outputs > #define Id_out (r_OUT(0, 0)) > #define Iq_out (r_OUT(1, 0)) > #define Te_out (r_OUT(2, 0)) > > //parameters > #define Rs 1.01 > #define Lq 0.001 > #define Ld 0.001 > #define ke 0.02 > #define pp 2. > #define Jm 0.008 > #define B 0.000005 > #define pi 3.14 > #define sqrt3 1.732 > > void myPMSM_block(scicos_block *blk, int flag) > { > double *Te = (double *) * (blk->work); > > switch (flag) > { > case Initialization: > Te = (double *) MALLOC(sizeof(double)); > Te[0] = 0; > break; > > case DerivativeState: > Te[0] = 3./2.*pp/2.*(ke*Iq);// + (Ld - Lq)*Id*Iq); > dId = 1./Ld*(Ud - Rs*Id + Lq*pp/2.*Iq*Wm); > dIq = 1./Lq*(Uq - Rs*Iq);// - (Ld*Id + ke)*pp/2.*Wm); > dWm = 1./Jm*(Te[0] - B*Wm - Tload); > dTheta = Wm; > break; > > case OutputUpdate: > Id_out = Id; > Iq_out = Iq; > Te_out = Te[0]; > break; > > case Ending: > scicos_free(Te); > break; > > } > } > > > After xcos block simulation I am getting within console this message: > > Warning !!! > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > with "scicosim" function. > Save your data and restart Scilab. > > > Any idea how to resolve this? > > Thank you. > Peter > > > > -- > View this message in context: http://mailinglists.scilab.org/EXCEPTION-ACCESS-VIOLATION-with-scicosim-function-tp4026020.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From peter.balazovic at yahoo.com Mon Feb 25 14:45:58 2013 From: peter.balazovic at yahoo.com (pepe) Date: Mon, 25 Feb 2013 05:45:58 -0800 (PST) Subject: [Scilab-users] (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function In-Reply-To: <1361786236.1957.14.camel@CLONE03> References: <1361782364974-4026020.post@n3.nabble.com> <1361786236.1957.14.camel@CLONE03> Message-ID: <1361799958841-4026023.post@n3.nabble.com> Sorry, I have problems with this usage (really confused) since I got alwyas (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. I am doing this (I tried many combinations - I don't find right one :( ): void myPMSM_block(scicos_block *blk, int flag) { double* Te; switch (flag) { case Initialization: Te = (double *) MALLOC(sizeof(double)); *(blk->work) = Te; break; case DerivativeState: *Te = 3./2.*pp/2.*(ke*Iq);// + (Ld - Lq)*Id*Iq); dId = 1./Ld*(Ud - Rs*Id + Lq*pp/2.*Iq*Wm); //derivace i_d prud dIq = 1./Lq*(Uq - Rs*Iq);// - (Ld*Id + ke)*pp/2.*Wm); //derivace i_q prud dWm = 1./Jm*(Te[0] - B*Wm - Tload); //rychlost dTheta = Wm; //poloha der_theta = w_m break; case OutputUpdate: Id_out = Id; Iq_out = Iq; Te_out = Te[0]; break; case Ending: scicos_free(Te); break; } } -- View this message in context: http://mailinglists.scilab.org/EXCEPTION-ACCESS-VIOLATION-with-scicosim-function-tp4026020p4026023.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Mon Feb 25 19:02:47 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2013 19:02:47 +0100 Subject: [Scilab-users] legends_multicolumn() In-Reply-To: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> Message-ID: <512BA747.7070400@free.fr> Hello Denis, An improved legends_multicolumn() is now available at http://fileexchange.scilab.org/toolboxes/274000 Regards Samuel From sgougeon at free.fr Mon Feb 25 19:14:40 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 25 Feb 2013 19:14:40 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> Message-ID: <512BAA10.8080101@free.fr> Hello Rafael, Le 23/02/2013 16:47, Rafael Guerra a ?crit : > > Hello, > > One alternative to your solution which can hide a lot of the plotted > data if the legend names are big: > > (figure) > > is to keep the legends as short as possible by using only numbers and > placing the full text of the curve legends on the figure's title: > (figure) > Yes, it's a nice solution. > > .../... > > It would be important to have in plot2d the option to post the legends > completely outside the plotting area. Could we achieve this by using > subplots for instance? > it is not really the job of plot2d() to put legends, despite its leg=.. parameter. legends() (and legends_multicolumn() on fileexchange) allow to place the bloc of legends anywhere on the figure, without any clipping out of the data_bounds of the active axes. Yes, using subplot() can be helpful, or more simply increasing by hand the chosen margin of the axes where to put the legends: clf, plot2d() ax = gca(); ax.margins(2)=0.3; Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fgdcagag.png Type: image/png Size: 13268 bytes Desc: not available URL: From julien.langouet at gmail.com Tue Feb 26 00:08:52 2013 From: julien.langouet at gmail.com (julien.langouet) Date: Mon, 25 Feb 2013 15:08:52 -0800 (PST) Subject: [Scilab-users] Problem GUI beginner Message-ID: <1361833732907-4026027.post@n3.nabble.com> Hello, I'm a beginner, so I think my questions are pretty simple I want to create a program to calculate performance of an electric car which run fort the Shel Eco Marathon. We have to consume as less as possible energy to win. That's why I want to analyse electric data. In order to make my program easier to use, I decided to create a GUI to input all informations. The matter is that I don't understand how to use callbacks. / When I use a Slider step, I want to memorize what's written in it in a variable (for eg A). When I use an editbox, I want to keep the value that I entered in a variable (for eg B). And all of this when I clik OK. So I believe that these things are controlled in Callbacks functions. I tried many wys to do so, without any succeed. / Please can anybody give me an example or help me to understand how to control Callback. Thank you very much for your help Regards Julien Langouet PS : I created the code with the GUI Builder 2.2 module. Formulaire3.2.3.sci -- View this message in context: http://mailinglists.scilab.org/Problem-GUI-beginner-tp4026027.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Feb 26 09:57:06 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 26 Feb 2013 09:57:06 +0100 Subject: [Scilab-users] Problem GUI beginner In-Reply-To: <1361833732907-4026027.post@n3.nabble.com> References: <1361833732907-4026027.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F10691B5EA@301EX00100.sidel.com> Hello, > The matter is that I don't understand how to use callbacks. As you seem to be French speaking, I suggest you to have a look at : http://fr.wikibooks.org/wiki/D%C3%A9couvrir_Scilab/Programmation#Interface_graphique_utilisateur I personally had problem when encapsulating a GUI command in a function, see http://mailinglists.scilab.org/Scilab-users-uicontrol-in-a-function-tt4025603.html Otherwise, your request is a little vague. Maybe you could send us a small example of code you tried so someone can correct it. Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From vogt at centre-cired.fr Tue Feb 26 17:45:43 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 26 Feb 2013 17:45:43 +0100 Subject: [Scilab-users] Scilab is not a pipe Message-ID: <512CE6B7.1010400@centre-cired.fr> hi is there any reasons why I can't type from a console: scilab myfile.sce and expect scilab to execute myfile.sce and redirect output to the standard output? I can almost to that with scilab-cli -f and scilab-cli -e but i still have to exit manually at the end, or construct an alias ofr scilab-cli -e exec('#1');quit or something -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 From clement.david at scilab-enterprises.com Tue Feb 26 17:52:12 2013 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 26 Feb 2013 17:52:12 +0100 Subject: [Scilab-users] Scilab is *a real* pipe In-Reply-To: <512CE6B7.1010400@centre-cired.fr> References: <512CE6B7.1010400@centre-cired.fr> Message-ID: <1361897532.1949.36.camel@CLONE03> Hi, Try with : $ bin/scilab -nwni hi > > is there any reasons why I can't type from a console: > > scilab myfile.sce > > and expect scilab to execute myfile.sce and redirect output to the > standard output? > > I can almost to that with > scilab-cli -f > and > scilab-cli -e > > but i still have to exit manually at the end, or construct an alias ofr > scilab-cli -e exec('#1');quit > or something > -- Cl?ment DAVID Development Engineer / Account Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From sylvestre.ledru at scilab-enterprises.com Tue Feb 26 17:55:23 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 26 Feb 2013 17:55:23 +0100 Subject: [Scilab-users] Scilab is not a pipe In-Reply-To: <512CE6B7.1010400@centre-cired.fr> References: <512CE6B7.1010400@centre-cired.fr> Message-ID: <512CE8FB.3070906@scilab-enterprises.com> On 26/02/2013 17:45, Adrien Vogt-Schilb wrote: > hi > > is there any reasons why I can't type from a console: > > scilab myfile.sce It is this way for legacy reasons. We could change that for Scilab 6. > and expect scilab to execute myfile.sce and redirect output to the > standard output? > > I can almost to that with > scilab-cli -f > and > scilab-cli -e > > but i still have to exit manually at the end, or construct an alias ofr > scilab-cli -e exec('#1');quit > or something You can do: echo "disp(%pi)"|scilab-cli (note that the multiline is broken in 5.4.0 but works in 5.3.3 and will work in 5.4.1) Sylvestre From vogt at centre-cired.fr Tue Feb 26 21:03:48 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 26 Feb 2013 21:03:48 +0100 Subject: [Scilab-users] Scilab is not a pipe In-Reply-To: <512CE8FB.3070906@scilab-enterprises.com> References: <512CE6B7.1010400@centre-cired.fr> <512CE8FB.3070906@scilab-enterprises.com> Message-ID: <512D1524.6050102@centre-cired.fr> okay On 26/02/2013 17:55, Sylvestre Ledru wrote: > On 26/02/2013 17:45, Adrien Vogt-Schilb wrote: >> hi >> >> is there any reasons why I can't type from a console: >> >> scilab myfile.sce > It is this way for legacy reasons. We could change that for Scilab 6. > > >> and expect scilab to execute myfile.sce and redirect output to the >> standard output? >> >> I can almost to that with >> scilab-cli -f >> and >> scilab-cli -e >> >> but i still have to exit manually at the end, or construct an alias ofr >> scilab-cli -e exec('#1');quit >> or something > You can do: > echo "disp(%pi)"|scilab-cli > > (note that the multiline is broken in 5.4.0 but works in 5.3.3 and will > work in 5.4.1) > > Sylvestre > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Feb 27 01:43:20 2013 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 26 Feb 2013 21:43:20 -0300 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: <512BAA10.8080101@free.fr> References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> <512BAA10.8080101@free.fr> Message-ID: Hello Samuel, Thanks for the very useful tip about the plot margins and for the elaborated legends_multicolumn function. I think it is important to be able to place the plot legends automatically and to have the option but not be obliged to do it manually. For instance, the example below was generated automatically using the legend command and allowing for some extra margin at the top of the plot area: ax.margins(3)=0.3; // upper margin legend(names_legend, -5); // upper caption cid:image002.jpg at 01CE1469.28AD9830 The legends were chopped off but I think that with all the insight you provided, we can adapt your "legends_mc" function in order to create a sister "legend_mc" function; automated using the "legend" command, the width of the legend blocks and the plot margins property, so that we do not need to manually position the legends outside the plots. Thanks and regards, Rafael G. From: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Monday, February 25, 2013 3:15 PM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Format legends of a graph as a 2D table Hello Rafael, Le 23/02/2013 16:47, Rafael Guerra a ?crit : Hello, One alternative to your solution which can hide a lot of the plotted data if the legend names are big: (figure) is to keep the legends as short as possible by using only numbers and placing the full text of the curve legends on the figure's title: (figure) Yes, it's a nice solution. .../... It would be important to have in plot2d the option to post the legends completely outside the plotting area. Could we achieve this by using subplots for instance? it is not really the job of plot2d() to put legends, despite its leg=.. parameter. legends() (and legends_multicolumn() on fileexchange) allow to place the bloc of legends anywhere on the figure, without any clipping out of the data_bounds of the active axes. Yes, using subplot() can be helpful, or more simply increasing by hand the chosen margin of the axes where to put the legends: clf, plot2d() ax = gca(); ax.margins(2)=0.3; cid:image003.png at 01CE1465.D6E77AF0 Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 13268 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 42376 bytes Desc: not available URL: From arnaud.miege at gmail.com Wed Feb 27 12:17:24 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 03:17:24 -0800 (PST) Subject: [Scilab-users] PID tuning in Xcos Message-ID: <1361963844361-4026069.post@n3.nabble.com> Hi,I am trying to tune a PID controller in Xcos, very much in the same way as described in http://wiki.scilab.org/Xcos/Examples/PID Optimization of a PID . However, it doesn't seem to work, the output of the model is not changing at all, despite the PID gains being changed (albeit not very much) by the optimization routine. Am I doing anything wrong? Using Scilab 5.4.0. Files are attached below. Here is the output of the command window:Thanks in advance, Arnaud DC_motor_test.zcos tune_DC_motor_PID.sce -- View this message in context: http://mailinglists.scilab.org/PID-tuning-in-Xcos-tp4026069.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnaud.miege at gmail.com Wed Feb 27 13:08:20 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 04:08:20 -0800 (PST) Subject: [Scilab-users] Loading functions in Scilab Message-ID: <1361966900186-4026070.post@n3.nabble.com> Hi, I have started writing my own functions in Scilab (using 5.4.0), and having used MATLAB for many years, I assumed that once the function is written and saved into a file, all I had to do was call that function with the right syntax. However, I kept getting the error message with the function name at the end. It took me at least an hour to figure out that the function has to be loaded into Scilab with the exec function before it can be called. My question is why? Imagine you had tens, hundreds or even thousands of functions (I am used to the good practice of writing one file per function). Do you have to load each one in turn every time you start Scilab? This seems crazy... I'm relatively new to Scilab so apologies if this is obvious or has been discussed before. Thanks, Arnaud -- View this message in context: http://mailinglists.scilab.org/Loading-functions-in-Scilab-tp4026070.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From alexandre.herisse at scilab-enterprises.com Wed Feb 27 13:12:28 2013 From: alexandre.herisse at scilab-enterprises.com (Alexandre HERISSE) Date: Wed, 27 Feb 2013 13:12:28 +0100 Subject: [Scilab-users] PID tuning in Xcos In-Reply-To: <1361963844361-4026069.post@n3.nabble.com> References: <1361963844361-4026069.post@n3.nabble.com> Message-ID: <512DF82C.1020801@scilab-enterprises.com> Hi, In your scilab context, you are defining Kp and Ki variables. In the context of your xcos simulation, you define again Kp and Ki. This seems to be the root cause of the warnings. Please find the updated attached scilab script where Kp have been replaced by Kp0 and Ki have been replaced by Ki0. Note that the context of the xcos simulation is still updated with Kp and Ki. Could you give me your feedback ? Thanks. Le 27/02/2013 12:17, amiege a ?crit : > Hi, I am trying to tune a PID controller in Xcos, very much in the > same way as described in http://wiki.scilab.org/Xcos/Examples/PID > Optimization of a PID. However, it doesn't seem to work, the output of > the model is not changing at all, despite the PID gains being changed > (albeit not very much) by the optimization routine. Am I doing > anything wrong? Using Scilab 5.4.0. Files are attached below. > > Here is the output of the command window: > -->exec('D:\Work\Mathematical modelling\Scilab\tune_DC_motor_PID.sce', -1) > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredWarning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 1 - Kp = 2.000000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 2 - Kp = 2.001000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 3 - Kp = 1.999000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 4 - Kp = 2.002000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 5 - Kp = 1.998000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 6 - Kp = 2.000000 Ki = 0.011000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 7 - Kp = 2.000000 Ki = 0.009000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 8 - Kp = 2.000000 Ki = 0.012000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 9 - Kp = 2.000000 Ki = 0.008000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 10 - Kp = 2.000000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 11 - Kp = 2.001000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 12 - Kp = 1.999000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 13 - Kp = 2.002000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 14 - Kp = 1.998000 Ki = 0.010000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 15 - Kp = 2.000000 Ki = 0.011000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 16 - Kp = 2.000000 Ki = 0.009000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 17 - Kp = 2.000000 Ki = 0.012000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignoredEvaluation 18 - Kp = 2.000000 Ki = 0.008000 y = 0.218898 > Warning the variable Kp do not match any context variable name > ignoredWarning the variable Ki do not match any context variable name > ignored > Thanks in advance, > > Arnaud > > DC_motor_test.zcos > > tune_DC_motor_PID.sce > > ------------------------------------------------------------------------ > View this message in context: PID tuning in Xcos > > Sent from the Scilab users - Mailing Lists Archives mailing list > archive > > at Nabble.com. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Alexandre HERISSE Xcos developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tune_DC_motor_PID.sce Type: application/x-scilab-sce Size: 2123 bytes Desc: not available URL: From Christophe.Dang at sidel.com Wed Feb 27 13:14:28 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 27 Feb 2013 13:14:28 +0100 Subject: [Scilab-users] Loading functions in Scilab In-Reply-To: <1361966900186-4026070.post@n3.nabble.com> References: <1361966900186-4026070.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F10695D89A@301EX00100.sidel.com> Hello, > Imagine you had tens, hundreds or even thousands of functions [...] > Do you have to load each one in turn every time you start Scilab? Have you considered the creation of a library? see http://help.scilab.org/docs/5.4.0/en_US/library.html and if you are French speaking, http://fr.wikibooks.org/wiki/D%C3%A9couvrir_Scilab/Programmation#Biblioth.C3.A8que_de_fonctions Hope this helps. -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From sdr at durietz.se Wed Feb 27 13:24:56 2013 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 27 Feb 2013 13:24:56 +0100 Subject: [Scilab-users] Loading functions in Scilab In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F10695D89A@301EX00100.sidel.com> References: <1361966900186-4026070.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F10695D89A@301EX00100.sidel.com> Message-ID: <512DFB18.9060606@durietz.se> On 2013-02-27 13:14, Dang, Christophe wrote: -------------------- > Hello, > >> Imagine you had tens, hundreds or even thousands of functions > [...] >> Do you have to load each one in turn every time you start Scilab? > > Have you considered the creation of a library? > > see http://help.scilab.org/docs/5.4.0/en_US/library.html > > and if you are French speaking, > > http://fr.wikibooks.org/wiki/D%C3%A9couvrir_Scilab/Programmation#Biblioth.C3.A8que_de_fonctions > > Hope this helps. > You can also load all the functions in a directory with getd("path/my_directory") Regards Stefan From arnaud.miege at gmail.com Wed Feb 27 13:32:34 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 04:32:34 -0800 (PST) Subject: [Scilab-users] PID tuning in Xcos In-Reply-To: <512DF82C.1020801@scilab-enterprises.com> References: <1361963844361-4026069.post@n3.nabble.com> <512DF82C.1020801@scilab-enterprises.com> Message-ID: <1361968354673-4026074.post@n3.nabble.com> Alexandre HERISSE wrote > Hi, > > In your scilab context, you are defining Kp and Ki variables. > In the context of your xcos simulation, you define again Kp and Ki. > This seems to be the root cause of the warnings. > > Please find the updated attached scilab script where Kp have been > replaced by Kp0 and Ki have been replaced by Ki0. Note that the context > of the xcos simulation is still updated with Kp and Ki. > > Could you give me your feedback ? > > Thanks. Thanks, that works a treat and it makes sense. I can see now that if the variables are defined in the workspace, they take precedence over the context values of the model. Thanks again, Arnaud -- View this message in context: http://mailinglists.scilab.org/PID-tuning-in-Xcos-tp4026069p4026074.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Wed Feb 27 14:25:48 2013 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 27 Feb 2013 14:25:48 +0100 Subject: [Scilab-users] Scilab is not a pipe In-Reply-To: <512CE6B7.1010400@centre-cired.fr> References: <512CE6B7.1010400@centre-cired.fr> Message-ID: <512E095C.2020501@utc.fr> Le 26/02/13 17:45, Adrien Vogt-Schilb a ?crit : > hi > > is there any reasons why I can't type from a console: > > scilab myfile.sce > > and expect scilab to execute myfile.sce and redirect output to the > standard output? > > I can almost to that with > scilab-cli -f > and > scilab-cli -e > > but i still have to exit manually at the end, or construct an alias ofr > scilab-cli -e exec('#1');quit > or something > Hello, I hope you solved your problem, but it is a pity that nobody noticed your evocation of Magritte's famous painting :-) S. From vogt at centre-cired.fr Wed Feb 27 14:25:40 2013 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 27 Feb 2013 14:25:40 +0100 Subject: [Scilab-users] Scilab is not a pipe In-Reply-To: <512E095C.2020501@utc.fr> References: <512CE6B7.1010400@centre-cired.fr> <512E095C.2020501@utc.fr> Message-ID: <512E0954.6040406@centre-cired.fr> On 27/02/2013 14:25, St?phane Mottelet wrote: > Le 26/02/13 17:45, Adrien Vogt-Schilb a ?crit : >> hi >> >> is there any reasons why I can't type from a console: >> >> scilab myfile.sce >> >> and expect scilab to execute myfile.sce and redirect output to the >> standard output? >> >> I can almost to that with >> scilab-cli -f >> and >> scilab-cli -e >> >> but i still have to exit manually at the end, or construct an alias ofr >> scilab-cli -e exec('#1');quit >> or something >> > Hello, > > I hope you solved your problem, but it is a pity that nobody noticed > your evocation of Magritte's famous painting :-) > S. You know, in fact I was just stating that I did not know how to use Scilab as a pipeline, with the following sense: http://en.wikipedia.org/wiki/Pipeline_%28Unix%29 It's quite current to call this pipelines just "pipe", probably because they are so pleasant. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 73 83 From antoine.monmayrant at laas.fr Wed Feb 27 15:15:27 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 27 Feb 2013 15:15:27 +0100 Subject: [Scilab-users] Scilab is not a pipe In-Reply-To: <512E0954.6040406@centre-cired.fr> References: <512CE6B7.1010400@centre-cired.fr> <512E095C.2020501@utc.fr> <512E0954.6040406@centre-cired.fr> Message-ID: <512E14FF.8010902@laas.fr> > > It's quite current to call this pipelines just "pipe", probably > because they are so pleasant. I also thought there was a subliminal reference to Magritte's work in your precedent email and I don't want to check in the above sentence whether there is a double meaning or not... But you are right about the "pipe". Antoine From arnaud.miege at gmail.com Wed Feb 27 16:32:22 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 07:32:22 -0800 (PST) Subject: [Scilab-users] Loading functions in Scilab In-Reply-To: <512DFB18.9060606@durietz.se> References: <1361966900186-4026070.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F10695D89A@301EX00100.sidel.com> <512DFB18.9060606@durietz.se> Message-ID: <1361979142610-4026078.post@n3.nabble.com> Stefan Du Rietz wrote > On 2013-02-27 13:14, Dang, Christophe wrote: > -------------------- > You can also load all the functions in a directory with > > getd("path/my_directory") > > Regards > Stefan Thanks, I'll use that for now and look into building a library later. Arnaud -- View this message in context: http://mailinglists.scilab.org/Loading-functions-in-Scilab-tp4026070p4026078.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arnaud.miege at gmail.com Wed Feb 27 16:41:40 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 07:41:40 -0800 (PST) Subject: [Scilab-users] Using double quote character in regular expressions Message-ID: <1361979700138-4026079.post@n3.nabble.com> Hi, I am trying to scan a file using mopen, mtell and mgetl. I need to check each line against different regular expressions, one of them having some double quote characters inside it and that's causing me trouble. The regular expression is as follows: but that generates an error in Scilab (5.4.0): The lines I am trying to read look line of the following: Any suggestion on how to do this? I have been scratching my head and searching on Google for some time, but to no avail. Many thanks in advance, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Wed Feb 27 16:53:32 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 27 Feb 2013 16:53:32 +0100 Subject: [Scilab-users] Using double quote character in regular expressions In-Reply-To: <1361979700138-4026079.post@n3.nabble.com> References: <1361979700138-4026079.post@n3.nabble.com> Message-ID: <512E2BFC.7080400@laas.fr> On 27/02/2013 16:41, amiege wrote: > Hi, > > I am trying to scan a file using mopen, mtell and mgetl. I need to check > each line against different regular expressions, one of them having some > double quote characters inside it and that's causing me trouble. The regular > expression is as follows: > > > > but that generates an error in Scilab (5.4.0): > > > > The lines I am trying to read look line of the following: > > > Any suggestion on how to do this? I have been scratching my head and > searching on Google for some time, but to no avail. > > Many thanks in advance, > > Arnaud > > > > -- > View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users I cannot read your code and error samples. Is that a problem on the email you send? Antoine From arnaud.miege at gmail.com Wed Feb 27 17:00:14 2013 From: arnaud.miege at gmail.com (amiege) Date: Wed, 27 Feb 2013 08:00:14 -0800 (PST) Subject: [Scilab-users] Using double quote character in regular expressions In-Reply-To: <512E2BFC.7080400@laas.fr> References: <1361979700138-4026079.post@n3.nabble.com> <512E2BFC.7080400@laas.fr> Message-ID: <1361980814964-4026081.post@n3.nabble.com> Antoine Monmayrant wrote > I cannot read your code and error samples. > Is that a problem on the email you send? > > Antoine > _______________________________________________ > users mailing list > users at .scilab > http://lists.scilab.org/mailman/listinfo/users Sorry about this, not sure why that is. Display looks OK on http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html . Anyway, I think I have answered my own question. The trick appears to be to use 2 double quote characters and remove the / characters enclosing the expression. Not sure if the whole of the code definitely works, but progress has been made. Thanks, Arnaud -- View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079p4026081.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Wed Feb 27 17:05:35 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 27 Feb 2013 17:05:35 +0100 Subject: [Scilab-users] Using double quote character in regular expressions In-Reply-To: <1361980814964-4026081.post@n3.nabble.com> References: <1361979700138-4026079.post@n3.nabble.com> <512E2BFC.7080400@laas.fr> <1361980814964-4026081.post@n3.nabble.com> Message-ID: <512E2ECF.10808@laas.fr> On 27/02/2013 17:00, amiege wrote: > Antoine Monmayrant wrote >> I cannot read your code and error samples. >> Is that a problem on the email you send? >> >> Antoine >> _______________________________________________ >> users mailing list >> users at .scilab >> http://lists.scilab.org/mailman/listinfo/users > Sorry about this, not sure why that is. Display looks OK on > http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-td4026079.html > > . > > Anyway, I think I have answered my own question. The trick appears to be to > use 2 double quote characters and remove the / characters enclosing the > expression. Not sure if the whole of the code definitely works, but progress > has been made. Well, to get a " in a scilab string delimited by ", you need to put 4 ": a=""""; // a contains the string " > > Thanks, > > Arnaud > > > > -- > View this message in context: http://mailinglists.scilab.org/Using-double-quote-character-in-regular-expressions-tp4026079p4026081.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Thu Feb 28 00:06:08 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 28 Feb 2013 00:06:08 +0100 Subject: [Scilab-users] Format legends of a graph as a 2D table In-Reply-To: References: <31874_1361555206_5127AF06_31874_5041_1_908CBC9017354841B2F32BBEC70A05A101C38A48302A@THSONEA01CMS01P.one.grp> <5127D12B.7020005@free.fr> <31648_1361580864_51281340_31648_3899_1_908CBC9017354841B2F32BBEC70A05A101C38A4830DA@THSONEA01CMS01P.one.grp> <5128BFD2.2010807@free.fr> <512BAA10.8080101@free.fr> Message-ID: <512E9160.1090209@free.fr> Hello Rafael, Le 27/02/2013 01:43, Rafael Guerra a ?crit : > .../... > I think it is important to be able to place the plot legends > automatically and to have the option but not be obliged to do it manually. > > For instance, the example below was generated automatically using the > legend command and allowing for some extra margin at the top of the > plot area: > > ax.margins(3)=0.3; // upper margin > > legend(names_legend, -5); // upper caption > >
> > The legends were chopped off but I think that with all the insight you > provided, we can adapt your "legends_mc" function in order to create a > sister "legend_mc" function; automated using the "legend" command, the > width of the legend blocks and the plot margins property, so that we > do not need to manually position the legends outside the plots. > legends_mc() already allows automatic positionnings (see the list of features https://fileexchange.scilab.org/toolboxes/274000 ) legend() (singular) does not allow multicolumn blocs, because only 1 legend() child and with a single column is allowed and can be attached to each axes: next calls to legend() replace the previous bloc. I was wondering about improving the legending for a long time: http://bugzilla.scilab.org/show_bug.cgi?id=5371 http://bugzilla.scilab.org/show_bug.cgi?id=6966 and other reports. I hope that this legends_mc() should improve a bit the situation. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnaud.miege at gmail.com Thu Feb 28 12:52:11 2013 From: arnaud.miege at gmail.com (amiege) Date: Thu, 28 Feb 2013 03:52:11 -0800 (PST) Subject: [Scilab-users] Array of struct Message-ID: <1362052331531-4026086.post@n3.nabble.com> Hello, I am trying to convert some MATLAB (well actually Octave) code to Scilab (5.4.0) and have come upon a stumbling block, which I can't seem to be able to resolve. Let's say I define an empty struct pts: I then generate another struct by parsing a file with a custom function (actually looping through a number of files in a directory): I then want to append that struct object to pts: and that's where the problem starts because it only seems to take the first element of temp: I would have expected size(pts) to be 17x1, the same as temp. Any suggestions? Many thanks in advance, Arnaud -- View this message in context: http://mailinglists.scilab.org/Array-of-struct-tp4026086.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Feb 28 16:06:40 2013 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 28 Feb 2013 16:06:40 +0100 (CET) Subject: [Scilab-users] Array of struct In-Reply-To: <1362052331531-4026086.post@n3.nabble.com> Message-ID: <1726010321.189644476.1362064000795.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, here is what i get with a similar example: -->v=struct("b",%t,"r",%pi,"t","Hi") v = b: %t r: 3.1415927 t: "Hi" -->w = struct("b",%f,"r",%e,"t","Hola") w = b: %f r: 2.7182818 t: "Hola" -->v($+1)=w v = 2x1 struct array with fields: b r t -->v(2) ans = b: %f r: 2.7182818 t: "Hola" -->v.t ans = ans(1) Hi ans(2) Hola It looks to works as expected. It is hard to help you without knowning more about the structure that you use. Could you post some lines of code that fail and that could be copied/pasted for test? Samuel From krotersv at gmail.com Thu Feb 28 16:17:02 2013 From: krotersv at gmail.com (Stanislav) Date: Thu, 28 Feb 2013 07:17:02 -0800 (PST) Subject: [Scilab-users] Array of struct In-Reply-To: <1362052331531-4026086.post@n3.nabble.com> References: <1362052331531-4026086.post@n3.nabble.com> Message-ID: <1362064622335-4026089.post@n3.nabble.com> Hi. The size function does not work with structures (see help). Scilab has not only structure but also cell, list, tlist, mlist. Sometimes they much convenient than structure. Stanislav -- View this message in context: http://mailinglists.scilab.org/Array-of-struct-tp4026086p4026089.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Thu Feb 28 16:29:56 2013 From: sgougeon at free.fr (sgougeon at free.fr) Date: Thu, 28 Feb 2013 16:29:56 +0100 (CET) Subject: [Scilab-users] Array of struct In-Reply-To: <1362064622335-4026089.post@n3.nabble.com> Message-ID: <1916981843.27070.1362065396756.JavaMail.root@zimbra75-e12.priv.proxad.net> >De: "Stanislav" >Hi. >The size function does not work with structures (see help). It does (despite it is not documented): on the example that i posted: -->size(v) ans = 2. 1. It works also on 2D-arrays of structures Samuel From krotersv at gmail.com Thu Feb 28 16:40:15 2013 From: krotersv at gmail.com (Stanislav) Date: Thu, 28 Feb 2013 07:40:15 -0800 (PST) Subject: [Scilab-users] Unclear description of Sgrayplot and Matplot Message-ID: <1362066015554-4026091.post@n3.nabble.com> Hi. I want to know how to use optional argument strf in functions Sgrayplot and Matplot. Especially 'x'. According to the help: "x controls the display of captions.", and "They are given by the optional argument leg.". Actually I think that the reference to leg is a mistake. But what about 'x'? It seem to me neglected character: Sgrayplot and Matplot work even 'x' is any character: Sgrayplot(x,y,m, strf="q11", rect=[-20,-20,20,20] So. My question is: do anybody use strf in Matplot or Sgrayplot? How to use 'x' in strf? Stanislav -- View this message in context: http://mailinglists.scilab.org/Unclear-description-of-Sgrayplot-and-Matplot-tp4026091.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.