From ricci2 at unisi.it Thu Apr 1 08:43:18 2010 From: ricci2 at unisi.it (Maso Ricci) Date: Thu, 01 Apr 2010 08:43:18 +0200 Subject: [scilab-Users] lsqrsolve In-Reply-To: <4BB3BA15.80305@gmail.com> References: <4BB3218B.4010305@unisi.it> <4BB3BA15.80305@gmail.com> Message-ID: <4BB44086.3020305@unisi.it> thanks vincent, I will try Best regards Il 31/03/2010 23.09, vinsz ha scritto: > On 31/03/2010 11:18, Maso Ricci wrote: >> Hi, >> >> I am using the lsqrsolve function to fit some data. >> I wonder whether lsqrsolve accepts contrains in order to force the >> solution to be positive. >> >> thanks in advance for any comments and suggestions > > A common trick to force a parameter to remain positive is to use the > exp() function in the solver, for instance: > > function er = to_fit(X, m) > a = exp( X(1) ) > b = X(2) > [...] > endfunction > > x = lsqrsolve([log(a0), b0], to_fit, N) > a_fit = exp(x(1)) > > hope it helps, > Best regards, > > -- ---------------------------------------- Maso RICCI PhD Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via Aldo Moro,2 Siena phone: +390577234367 email: ricci2 at unisi.it ---------------------------------------- From yves.cainaud at solaronix.com Thu Apr 1 16:39:49 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Thu, 1 Apr 2010 16:39:49 +0200 Subject: [scilab-Users] Problem with Scilab Message-ID: Hi, I have the same problem. Whatever I do, I have '!--error 21 Invalid index.' New figure by scf()? Invalid index New color map ? Invalid index Addcolor() ? Invalid index This problem exist when I run the script by exec(), CMD+L or CMD+E from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. Last week everything was working well and with the same script, I don't understand. Yves From yves.cainaud at solaronix.com Thu Apr 1 17:03:51 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Thu, 1 Apr 2010 17:03:51 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: References: Message-ID: Sorry for spoiling the other thread, I have not the same problem. Whatever I do, I have '!--error 21 Invalid index.' New figure by scf()? Invalid index New color map ? Invalid index Addcolor() ? Invalid index This problem exist when I run the script by exec(), CMD+L or CMD+E from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. Last week everything was working well and with the same script, I don't understand. The script: ///Users/yves/Scilab/hexapolar_pattern3.txt //______________________________________ //______________________________________ //field_size in mm field_size=3000 // radius of the single pattern in mm radius0 = 1000 //max intensity //max=4.1/11.4*100 //% of 1000w/sqm max=53/125.6*100 //for Pe=1150W // radius of hexapolar pattern in mm radius = 505 // best central uniformity with 520mm //______________________________________ //______________________________________ w=winsid() // retrun the list off graphic windows xdel(w) // delete existinggraphic windows //xdel(f.figure_id) //xdel(f1.figure_id) //M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); M=M*max f1 = scf(); //Matplot(M) //f1.color_map = graycolormap(250); //xs2bmp(f,'/users/yves/normale.bmp'); // radius of hexapolar pattern m=int(size(M,1)); // radius of the single pattern in mm radius0 = 1000 pixel_size= 2*radius0/(m-2) r = int(m/2*radius/radius0); s= int(cosd(60)*r) l= int(sind(60)*r)*1 //extended screen_sizex= 7*r+m+s+7; screen_sizey=9*l+m; screen = zeros (screen_sizex, screen_sizey); i=3.5 centerx=(i-1)*r+1+m j=3.5 centery=(2*j-1)*l+1 for j = 1:5 for i = 1:8, screen_tmp = zeros (screen_sizex, screen_sizey); screen_tmp( (i-1)*r+1:(i-1)*r+m , (2*j-1)*l-l+1:(2*j-1)*l-l+m)=M; screen=screen+screen_tmp; end; end; for j = 1:4, for i = 1:8, screen_tmp = zeros (screen_sizex, screen_sizey); screen_tmp( (i-1)*r+1+s:(i-1)*r+m+s , (2*j-1)*l+1:(2*j-1)*l+m)=M; screen=screen+screen_tmp; end; end; f1.color_map = jetcolormap(120); //pM=screen*50; //Matplot(256-pM); //pM=screen*100/max(screen); Matplot(100-pM); Matplot(screen); xrect(1,screen_sizex,screen_sizey,screen_sizex) hrect=gce() //gets handle on the rectangle //hrect.foreground=60 hrect.foreground=addcolor(name2rgb('green')/255) //add a new color to the colortable and set it to the rectangle line cornerx=screen_sizex/2+field_size/pixel_size/2+10 //last number is optimized by hand cornery=screen_sizey/2-field_size/pixel_size/2-2 xrect(cornery,cornerx,field_size/pixel_size,field_size/pixel_size) hrect=gce() //gets handle on the rectangle //hrect.foreground=60 hrect.foreground=addcolor(name2rgb('green')/255) //add a new color to the colortable and set it to the rectangle line f2=scf(); // new figure -> current plot2d(screen(:, screen_sizex/4)); plot2d(screen(screen_sizex/4,:)); plot2d(screen(:, screen_sizex/4+l/2)); plot2d(screen(screen_sizex/4+r/2,:)); 6*radius 7*sind(60)*radius f3 = scf(); // new figure -> current surf(screen_crop); screen_sizex screen_sizey irr=screen(cornery:cornery+field_size/pixel_size,screen_sizex- cornerx:screen_sizex-cornerx+field_size/pixel_size) f4 = scf(); // new figure -> current f4.color_map = jetcolormap(120); Matplot(irr); unif=(maxi(irr)-mini(irr))/(maxi(irr)+mini(irr))*100; av=mean(irr) xstring(20,field_size/pixel_size +10,strcat(["average=",string(av),"% / +/-",string(unif),"% / size=", string(field_size)," mm x ",string(field_size)," mm "])) Yves From sdr at durietz.se Thu Apr 1 17:17:03 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 01 Apr 2010 17:17:03 +0200 Subject: [scilab-Users] unix-function In-Reply-To: <4BB3B6F5.8020608@durietz.se> References: <4BB3B6F5.8020608@durietz.se> Message-ID: <4BB4B8EF.9020503@durietz.se> On 2010-03-31 22:56, Stefan Du Rietz wrote: -------------------- > Hi, > > I want to start a Windows XP program (timer) with command line arguments > from Scilab (4.1.2; I have updated my graphic card (ATI Radeon 2.6 Pro, > AGP) drivers innumerable times, but Scilab 5.2.1 still crashes when I > plot anything...). > > Unfortunately, Scilab is "Not responding" until the timer program has > ended (several hours!). > > I need to call something from Scilab that sends the command to the program. > > I have tried batch files (which can work but in Windows it is impossible > (without VB scripts) to avoid a command window showing up. > > A shortcut (.lnk-file) works but how can I pass an argument from Scilab > to the program through it? I have tried an environment variable, but the > shortcut doesn't seem to be able to read it. > > I would be grateful for any tips. > > Most of the time, I love Scilab! > > Regards > Stefan > I found the solution myself thanks to Scilab! When I set the environment variable in a command prompt, it doesn't work in the short cut, but when I set it in Scilab (n is an integer) setenv("timer_time", string(n)); and use %timer_time% in the short cut, it works! Can anybody explain why? Regards Stefan From yves.cainaud at solaronix.com Thu Apr 1 17:50:31 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Thu, 1 Apr 2010 17:50:31 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: References: Message-ID: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> Update: After a Scilab crash, everything works well. But then, after another crash, everything goes error 21 again. Here is the good crash: Process: scilab-bin [318] Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ scilab-bin Identifier: org.scilab.modules.jvm.Scilab Version: ??? (???) Code Type: X86 (Native) Parent Process: sh [304] Date/Time: 2010-04-01 17:15:09.283 +0200 OS Version: Mac OS X 10.5.8 (9L31a) Report Version: 6 Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000001942bff8 Crashed Thread: 1 Application Specific Information: Java information: Version: Java HotSpot(TM) Client VM (1.5.0_22-147 mixed mode, sharing) Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_22-147) for macosx-x86, built on Nov 6 2009 10:33:51 by root with gcc 4.0.1 (Apple Inc. build 5465) Exception type: Bus Error (0xa) at pc=0x0019e9d4 ... Here is the bad crash: Process: scilab-bin [701] Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ scilab-bin Identifier: scilab-bin Version: ??? (???) Code Type: X86 (Native) Parent Process: launchd [76] Date/Time: 2010-04-01 17:33:36.650 +0200 OS Version: Mac OS X 10.5.8 (9L31a) Report Version: 6 Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 0 Dyld Error Message: Library not loaded: /Users/pmarecha/compilation_chain_5.2/ sci_binary/scilab-5.2.0.app/Contents/MacOS/lib/scilab/libscishell. 5.dylib Referenced from: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ scilab-bin Reason: image not found If only I could reproduce the good crash ... Yves On Apr 1, 2010, at 5:03 PM, Yves Cainaud wrote: > Sorry for spoiling the other thread, I have not the same problem. > > Whatever I do, I have '!--error 21 Invalid index.' > > New figure by scf()? Invalid index > New color map ? Invalid index > Addcolor() ? Invalid index > > This problem exist when I run the script by exec(), CMD+L or CMD+E > from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. > Last week everything was working well and with the same script, I > don't understand. > > The script: > > ///Users/yves/Scilab/hexapolar_pattern3.txt > > //______________________________________ > //______________________________________ > //field_size in mm > field_size=3000 > // radius of the single pattern in mm > radius0 = 1000 > //max intensity > //max=4.1/11.4*100 //% of 1000w/sqm > max=53/125.6*100 //for Pe=1150W > // radius of hexapolar pattern in mm > radius = 505 // best central uniformity with 520mm > > //______________________________________ > //______________________________________ > > w=winsid() // retrun the list off graphic windows > xdel(w) // delete existinggraphic windows > > //xdel(f.figure_id) > //xdel(f1.figure_id) > > //M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); > M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); > M=M*max > f1 = scf(); > //Matplot(M) > //f1.color_map = graycolormap(250); > //xs2bmp(f,'/users/yves/normale.bmp'); > // radius of hexapolar pattern > m=int(size(M,1)); > // radius of the single pattern in mm > radius0 = 1000 > pixel_size= 2*radius0/(m-2) > > r = int(m/2*radius/radius0); > s= int(cosd(60)*r) > l= int(sind(60)*r)*1 //extended > > screen_sizex= 7*r+m+s+7; > screen_sizey=9*l+m; > > screen = zeros (screen_sizex, screen_sizey); > i=3.5 > centerx=(i-1)*r+1+m > j=3.5 > centery=(2*j-1)*l+1 > for j = 1:5 > for i = 1:8, > screen_tmp = zeros (screen_sizex, screen_sizey); > screen_tmp( (i-1)*r+1:(i-1)*r+m , (2*j-1)*l-l+1:(2*j-1)*l-l+m)=M; > screen=screen+screen_tmp; > end; > end; > > for j = 1:4, > for i = 1:8, > screen_tmp = zeros (screen_sizex, screen_sizey); > screen_tmp( (i-1)*r+1+s:(i-1)*r+m+s , (2*j-1)*l+1:(2*j-1)*l+m)=M; > screen=screen+screen_tmp; > end; > end; > > > f1.color_map = jetcolormap(120); > //pM=screen*50; //Matplot(256-pM); > //pM=screen*100/max(screen); Matplot(100-pM); > Matplot(screen); > > xrect(1,screen_sizex,screen_sizey,screen_sizex) > hrect=gce() //gets handle on the rectangle > //hrect.foreground=60 > hrect.foreground=addcolor(name2rgb('green')/255) //add a new color > to the colortable and set it to the rectangle line > > cornerx=screen_sizex/2+field_size/pixel_size/2+10 //last number is > optimized by hand > cornery=screen_sizey/2-field_size/pixel_size/2-2 > xrect(cornery,cornerx,field_size/pixel_size,field_size/pixel_size) > hrect=gce() //gets handle on the rectangle > //hrect.foreground=60 > hrect.foreground=addcolor(name2rgb('green')/255) //add a new color > to the colortable and set it to the rectangle line > f2=scf(); // new figure -> current > plot2d(screen(:, screen_sizex/4)); > plot2d(screen(screen_sizex/4,:)); > plot2d(screen(:, screen_sizex/4+l/2)); > plot2d(screen(screen_sizex/4+r/2,:)); > > 6*radius > 7*sind(60)*radius > > f3 = scf(); // new figure -> current > surf(screen_crop); > > screen_sizex > screen_sizey > > irr=screen(cornery:cornery+field_size/pixel_size,screen_sizex- > cornerx:screen_sizex-cornerx+field_size/pixel_size) > > f4 = scf(); // new figure -> current > f4.color_map = jetcolormap(120); > Matplot(irr); > unif=(maxi(irr)-mini(irr))/(maxi(irr)+mini(irr))*100; > av=mean(irr) > xstring(20,field_size/pixel_size > +10,strcat(["average=",string(av),"% / +/-",string(unif),"% / > size=", string(field_size)," mm x ",string(field_size)," mm "])) > > Yves > From sylvestre.ledru at scilab.org Thu Apr 1 17:52:44 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 01 Apr 2010 17:52:44 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> References: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> Message-ID: <1270137164.8061.23200.camel@korcula.inria.fr> Does it happen also with Scilab 5.2.1 ? Do you have the execution stack ? Did you update recently your operating system ? Sylvestre Le jeudi 01 avril 2010 ? 17:50 +0200, Yves Cainaud a ?crit : > Update: > > After a Scilab crash, everything works well. > But then, after another crash, everything goes error 21 again. > Here is the good crash: > Process: scilab-bin [318] > Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ > scilab-bin > Identifier: org.scilab.modules.jvm.Scilab > Version: ??? (???) > Code Type: X86 (Native) > Parent Process: sh [304] > > Date/Time: 2010-04-01 17:15:09.283 +0200 > OS Version: Mac OS X 10.5.8 (9L31a) > Report Version: 6 > Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 > > Exception Type: EXC_BAD_ACCESS (SIGSEGV) > Exception Codes: KERN_INVALID_ADDRESS at 0x000000001942bff8 > Crashed Thread: 1 > > Application Specific Information: > > Java information: > Version: Java HotSpot(TM) Client VM (1.5.0_22-147 mixed mode, sharing) > Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_22-147) > for macosx-x86, built on Nov 6 2009 10:33:51 by root with gcc 4.0.1 > (Apple Inc. build 5465) > Exception type: Bus Error (0xa) at pc=0x0019e9d4 > ... > > Here is the bad crash: > Process: scilab-bin [701] > Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ > scilab-bin > Identifier: scilab-bin > Version: ??? (???) > Code Type: X86 (Native) > Parent Process: launchd [76] > > Date/Time: 2010-04-01 17:33:36.650 +0200 > OS Version: Mac OS X 10.5.8 (9L31a) > Report Version: 6 > Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 > > Exception Type: EXC_BREAKPOINT (SIGTRAP) > Exception Codes: 0x0000000000000002, 0x0000000000000000 > Crashed Thread: 0 > > Dyld Error Message: > Library not loaded: /Users/pmarecha/compilation_chain_5.2/ > sci_binary/scilab-5.2.0.app/Contents/MacOS/lib/scilab/libscishell. > 5.dylib > Referenced from: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ > scilab-bin > Reason: image not found > > > If only I could reproduce the good crash ... > > Yves > On Apr 1, 2010, at 5:03 PM, Yves Cainaud wrote: > > > Sorry for spoiling the other thread, I have not the same problem. > > > > Whatever I do, I have '!--error 21 Invalid index.' > > > > New figure by scf()? Invalid index > > New color map ? Invalid index > > Addcolor() ? Invalid index > > > > This problem exist when I run the script by exec(), CMD+L or CMD+E > > from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. > > Last week everything was working well and with the same script, I > > don't understand. > > > > The script: > > > > ///Users/yves/Scilab/hexapolar_pattern3.txt > > > > //______________________________________ > > //______________________________________ > > //field_size in mm > > field_size=3000 > > // radius of the single pattern in mm > > radius0 = 1000 > > //max intensity > > //max=4.1/11.4*100 //% of 1000w/sqm > > max=53/125.6*100 //for Pe=1150W > > // radius of hexapolar pattern in mm > > radius = 505 // best central uniformity with 520mm > > > > //______________________________________ > > //______________________________________ > > > > w=winsid() // retrun the list off graphic windows > > xdel(w) // delete existinggraphic windows > > > > //xdel(f.figure_id) > > //xdel(f1.figure_id) > > > > //M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); > > M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); > > M=M*max > > f1 = scf(); > > //Matplot(M) > > //f1.color_map = graycolormap(250); > > //xs2bmp(f,'/users/yves/normale.bmp'); > > // radius of hexapolar pattern > > m=int(size(M,1)); > > // radius of the single pattern in mm > > radius0 = 1000 > > pixel_size= 2*radius0/(m-2) > > > > r = int(m/2*radius/radius0); > > s= int(cosd(60)*r) > > l= int(sind(60)*r)*1 //extended > > > > screen_sizex= 7*r+m+s+7; > > screen_sizey=9*l+m; > > > > screen = zeros (screen_sizex, screen_sizey); > > i=3.5 > > centerx=(i-1)*r+1+m > > j=3.5 > > centery=(2*j-1)*l+1 > > for j = 1:5 > > for i = 1:8, > > screen_tmp = zeros (screen_sizex, screen_sizey); > > screen_tmp( (i-1)*r+1:(i-1)*r+m , (2*j-1)*l-l+1:(2*j-1)*l-l+m)=M; > > screen=screen+screen_tmp; > > end; > > end; > > > > for j = 1:4, > > for i = 1:8, > > screen_tmp = zeros (screen_sizex, screen_sizey); > > screen_tmp( (i-1)*r+1+s:(i-1)*r+m+s , (2*j-1)*l+1:(2*j-1)*l+m)=M; > > screen=screen+screen_tmp; > > end; > > end; > > > > > > f1.color_map = jetcolormap(120); > > //pM=screen*50; //Matplot(256-pM); > > //pM=screen*100/max(screen); Matplot(100-pM); > > Matplot(screen); > > > > xrect(1,screen_sizex,screen_sizey,screen_sizex) > > hrect=gce() //gets handle on the rectangle > > //hrect.foreground=60 > > hrect.foreground=addcolor(name2rgb('green')/255) //add a new color > > to the colortable and set it to the rectangle line > > > > cornerx=screen_sizex/2+field_size/pixel_size/2+10 //last number is > > optimized by hand > > cornery=screen_sizey/2-field_size/pixel_size/2-2 > > xrect(cornery,cornerx,field_size/pixel_size,field_size/pixel_size) > > hrect=gce() //gets handle on the rectangle > > //hrect.foreground=60 > > hrect.foreground=addcolor(name2rgb('green')/255) //add a new color > > to the colortable and set it to the rectangle line > > f2=scf(); // new figure -> current > > plot2d(screen(:, screen_sizex/4)); > > plot2d(screen(screen_sizex/4,:)); > > plot2d(screen(:, screen_sizex/4+l/2)); > > plot2d(screen(screen_sizex/4+r/2,:)); > > > > 6*radius > > 7*sind(60)*radius > > > > f3 = scf(); // new figure -> current > > surf(screen_crop); > > > > screen_sizex > > screen_sizey > > > > irr=screen(cornery:cornery+field_size/pixel_size,screen_sizex- > > cornerx:screen_sizex-cornerx+field_size/pixel_size) > > > > f4 = scf(); // new figure -> current > > f4.color_map = jetcolormap(120); > > Matplot(irr); > > unif=(maxi(irr)-mini(irr))/(maxi(irr)+mini(irr))*100; > > av=mean(irr) > > xstring(20,field_size/pixel_size > > +10,strcat(["average=",string(av),"% / +/-",string(unif),"% / > > size=", string(field_size)," mm x ",string(field_size)," mm "])) > > > > Yves > > > From yves.cainaud at solaronix.com Thu Apr 1 18:11:48 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Thu, 1 Apr 2010 18:11:48 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: <1270137164.8061.23200.camel@korcula.inria.fr> References: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> <1270137164.8061.23200.camel@korcula.inria.fr> Message-ID: > Does it happen also with Scilab 5.2.1 ? I will try 5.2.1. > > Do you have the execution stack ? Where do I find the execution stack? > > Did you update recently your operating system ? I don't think so, it was Itune stuff again. > > Sylvestre > > Le jeudi 01 avril 2010 ? 17:50 +0200, Yves Cainaud a ?crit : >> Update: >> >> After a Scilab crash, everything works well. >> But then, after another crash, everything goes error 21 again. >> Here is the good crash: >> Process: scilab-bin [318] >> Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >> scilab-bin >> Identifier: org.scilab.modules.jvm.Scilab >> Version: ??? (???) >> Code Type: X86 (Native) >> Parent Process: sh [304] >> >> Date/Time: 2010-04-01 17:15:09.283 +0200 >> OS Version: Mac OS X 10.5.8 (9L31a) >> Report Version: 6 >> Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 >> >> Exception Type: EXC_BAD_ACCESS (SIGSEGV) >> Exception Codes: KERN_INVALID_ADDRESS at 0x000000001942bff8 >> Crashed Thread: 1 >> >> Application Specific Information: >> >> Java information: >> Version: Java HotSpot(TM) Client VM (1.5.0_22-147 mixed mode, >> sharing) >> Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_22-147) >> for macosx-x86, built on Nov 6 2009 10:33:51 by root with gcc 4.0.1 >> (Apple Inc. build 5465) >> Exception type: Bus Error (0xa) at pc=0x0019e9d4 >> ... >> >> Here is the bad crash: >> Process: scilab-bin [701] >> Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >> scilab-bin >> Identifier: scilab-bin >> Version: ??? (???) >> Code Type: X86 (Native) >> Parent Process: launchd [76] >> >> Date/Time: 2010-04-01 17:33:36.650 +0200 >> OS Version: Mac OS X 10.5.8 (9L31a) >> Report Version: 6 >> Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 >> >> Exception Type: EXC_BREAKPOINT (SIGTRAP) >> Exception Codes: 0x0000000000000002, 0x0000000000000000 >> Crashed Thread: 0 >> >> Dyld Error Message: >> Library not loaded: /Users/pmarecha/compilation_chain_5.2/ >> sci_binary/scilab-5.2.0.app/Contents/MacOS/lib/scilab/libscishell. >> 5.dylib >> Referenced from: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >> scilab-bin >> Reason: image not found >> >> >> If only I could reproduce the good crash ... >> >> Yves >> On Apr 1, 2010, at 5:03 PM, Yves Cainaud wrote: >> >>> Sorry for spoiling the other thread, I have not the same problem. >>> >>> Whatever I do, I have '!--error 21 Invalid index.' >>> >>> New figure by scf()? Invalid index >>> New color map ? Invalid index >>> Addcolor() ? Invalid index >>> >>> This problem exist when I run the script by exec(), CMD+L or CMD+E >>> from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. >>> Last week everything was working well and with the same script, I >>> don't understand. >>> >>> The script: >>> >>> ///Users/yves/Scilab/hexapolar_pattern3.txt >>> >>> //______________________________________ >>> //______________________________________ >>> //field_size in mm >>> field_size=3000 >>> // radius of the single pattern in mm >>> radius0 = 1000 >>> //max intensity >>> //max=4.1/11.4*100 //% of 1000w/sqm >>> max=53/125.6*100 //for Pe=1150W >>> // radius of hexapolar pattern in mm >>> radius = 505 // best central uniformity with 520mm >>> >>> //______________________________________ >>> //______________________________________ >>> >>> w=winsid() // retrun the list off graphic windows >>> xdel(w) // delete existinggraphic windows >>> >>> //xdel(f.figure_id) >>> //xdel(f1.figure_id) >>> >>> //M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); >>> M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); >>> M=M*max >>> f1 = scf(); >>> //Matplot(M) >>> //f1.color_map = graycolormap(250); >>> //xs2bmp(f,'/users/yves/normale.bmp'); >>> // radius of hexapolar pattern >>> m=int(size(M,1)); >>> // radius of the single pattern in mm >>> radius0 = 1000 >>> pixel_size= 2*radius0/(m-2) >>> >>> r = int(m/2*radius/radius0); >>> s= int(cosd(60)*r) >>> l= int(sind(60)*r)*1 //extended >>> >>> screen_sizex= 7*r+m+s+7; >>> screen_sizey=9*l+m; >>> >>> screen = zeros (screen_sizex, screen_sizey); >>> i=3.5 >>> centerx=(i-1)*r+1+m >>> j=3.5 >>> centery=(2*j-1)*l+1 >>> for j = 1:5 >>> for i = 1:8, >>> screen_tmp = zeros (screen_sizex, screen_sizey); >>> screen_tmp( (i-1)*r+1:(i-1)*r+m , (2*j-1)*l-l+1:(2*j-1)*l-l+m)=M; >>> screen=screen+screen_tmp; >>> end; >>> end; >>> >>> for j = 1:4, >>> for i = 1:8, >>> screen_tmp = zeros (screen_sizex, screen_sizey); >>> screen_tmp( (i-1)*r+1+s:(i-1)*r+m+s , (2*j-1)*l+1:(2*j-1)*l+m)=M; >>> screen=screen+screen_tmp; >>> end; >>> end; >>> >>> >>> f1.color_map = jetcolormap(120); >>> //pM=screen*50; //Matplot(256-pM); >>> //pM=screen*100/max(screen); Matplot(100-pM); >>> Matplot(screen); >>> >>> xrect(1,screen_sizex,screen_sizey,screen_sizex) >>> hrect=gce() //gets handle on the rectangle >>> //hrect.foreground=60 >>> hrect.foreground=addcolor(name2rgb('green')/255) //add a new color >>> to the colortable and set it to the rectangle line >>> >>> cornerx=screen_sizex/2+field_size/pixel_size/2+10 //last number is >>> optimized by hand >>> cornery=screen_sizey/2-field_size/pixel_size/2-2 >>> xrect(cornery,cornerx,field_size/pixel_size,field_size/pixel_size) >>> hrect=gce() //gets handle on the rectangle >>> //hrect.foreground=60 >>> hrect.foreground=addcolor(name2rgb('green')/255) //add a new color >>> to the colortable and set it to the rectangle line >>> f2=scf(); // new figure -> current >>> plot2d(screen(:, screen_sizex/4)); >>> plot2d(screen(screen_sizex/4,:)); >>> plot2d(screen(:, screen_sizex/4+l/2)); >>> plot2d(screen(screen_sizex/4+r/2,:)); >>> >>> 6*radius >>> 7*sind(60)*radius >>> >>> f3 = scf(); // new figure -> current >>> surf(screen_crop); >>> >>> screen_sizex >>> screen_sizey >>> >>> irr=screen(cornery:cornery+field_size/pixel_size,screen_sizex- >>> cornerx:screen_sizex-cornerx+field_size/pixel_size) >>> >>> f4 = scf(); // new figure -> current >>> f4.color_map = jetcolormap(120); >>> Matplot(irr); >>> unif=(maxi(irr)-mini(irr))/(maxi(irr)+mini(irr))*100; >>> av=mean(irr) >>> xstring(20,field_size/pixel_size >>> +10,strcat(["average=",string(av),"% / +/-",string(unif),"% / >>> size=", string(field_size)," mm x ",string(field_size)," mm "])) >>> >>> Yves >>> >> > > From yves.cainaud at solaronix.com Thu Apr 1 18:15:50 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Thu, 1 Apr 2010 18:15:50 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: References: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> <1270137164.8061.23200.camel@korcula.inria.fr> Message-ID: <09B94887-30FB-459B-B2E6-1C5569FCD952@solaronix.com> Same with 5.2.1 alpha: error 21 On Apr 1, 2010, at 6:11 PM, Yves Cainaud wrote: >> Does it happen also with Scilab 5.2.1 ? > I will try 5.2.1. >> >> Do you have the execution stack ? > Where do I find the execution stack? >> >> Did you update recently your operating system ? > I don't think so, it was Itune stuff again. > >> >> Sylvestre >> >> Le jeudi 01 avril 2010 ? 17:50 +0200, Yves Cainaud a ?crit : >>> Update: >>> >>> After a Scilab crash, everything works well. >>> But then, after another crash, everything goes error 21 again. >>> Here is the good crash: >>> Process: scilab-bin [318] >>> Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >>> scilab-bin >>> Identifier: org.scilab.modules.jvm.Scilab >>> Version: ??? (???) >>> Code Type: X86 (Native) >>> Parent Process: sh [304] >>> >>> Date/Time: 2010-04-01 17:15:09.283 +0200 >>> OS Version: Mac OS X 10.5.8 (9L31a) >>> Report Version: 6 >>> Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 >>> >>> Exception Type: EXC_BAD_ACCESS (SIGSEGV) >>> Exception Codes: KERN_INVALID_ADDRESS at 0x000000001942bff8 >>> Crashed Thread: 1 >>> >>> Application Specific Information: >>> >>> Java information: >>> Version: Java HotSpot(TM) Client VM (1.5.0_22-147 mixed mode, >>> sharing) >>> Virtual Machine version: Java HotSpot(TM) Client VM (1.5.0_22-147) >>> for macosx-x86, built on Nov 6 2009 10:33:51 by root with gcc 4.0.1 >>> (Apple Inc. build 5465) >>> Exception type: Bus Error (0xa) at pc=0x0019e9d4 >>> ... >>> >>> Here is the bad crash: >>> Process: scilab-bin [701] >>> Path: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >>> scilab-bin >>> Identifier: scilab-bin >>> Version: ??? (???) >>> Code Type: X86 (Native) >>> Parent Process: launchd [76] >>> >>> Date/Time: 2010-04-01 17:33:36.650 +0200 >>> OS Version: Mac OS X 10.5.8 (9L31a) >>> Report Version: 6 >>> Anonymous UUID: 9B9FB9D5-6972-442D-A4FA-8A321B2FB751 >>> >>> Exception Type: EXC_BREAKPOINT (SIGTRAP) >>> Exception Codes: 0x0000000000000002, 0x0000000000000000 >>> Crashed Thread: 0 >>> >>> Dyld Error Message: >>> Library not loaded: /Users/pmarecha/compilation_chain_5.2/ >>> sci_binary/scilab-5.2.0.app/Contents/MacOS/lib/scilab/libscishell. >>> 5.dylib >>> Referenced from: /Applications/scilab-5.2.0.app/Contents/MacOS/bin/ >>> scilab-bin >>> Reason: image not found >>> >>> >>> If only I could reproduce the good crash ... >>> >>> Yves >>> On Apr 1, 2010, at 5:03 PM, Yves Cainaud wrote: >>> >>>> Sorry for spoiling the other thread, I have not the same problem. >>>> >>>> Whatever I do, I have '!--error 21 Invalid index.' >>>> >>>> New figure by scf()? Invalid index >>>> New color map ? Invalid index >>>> Addcolor() ? Invalid index >>>> >>>> This problem exist when I run the script by exec(), CMD+L or CMD+E >>>> from editor, with Scilab 5.2 or Scilab 5.1.1 in MacOSX 10.5.8. >>>> Last week everything was working well and with the same script, I >>>> don't understand. >>>> >>>> The script: >>>> >>>> ///Users/yves/Scilab/hexapolar_pattern3.txt >>>> >>>> //______________________________________ >>>> //______________________________________ >>>> //field_size in mm >>>> field_size=3000 >>>> // radius of the single pattern in mm >>>> radius0 = 1000 >>>> //max intensity >>>> //max=4.1/11.4*100 //% of 1000w/sqm >>>> max=53/125.6*100 //for Pe=1150W >>>> // radius of hexapolar pattern in mm >>>> radius = 505 // best central uniformity with 520mm >>>> >>>> //______________________________________ >>>> //______________________________________ >>>> >>>> w=winsid() // retrun the list off graphic windows >>>> xdel(w) // delete existinggraphic windows >>>> >>>> //xdel(f.figure_id) >>>> //xdel(f1.figure_id) >>>> >>>> //M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); >>>> M=fscanfMat("/users/yves/Scilab/Mesures_2010-03-25_fit.csv"); >>>> M=M*max >>>> f1 = scf(); >>>> //Matplot(M) >>>> //f1.color_map = graycolormap(250); >>>> //xs2bmp(f,'/users/yves/normale.bmp'); >>>> // radius of hexapolar pattern >>>> m=int(size(M,1)); >>>> // radius of the single pattern in mm >>>> radius0 = 1000 >>>> pixel_size= 2*radius0/(m-2) >>>> >>>> r = int(m/2*radius/radius0); >>>> s= int(cosd(60)*r) >>>> l= int(sind(60)*r)*1 //extended >>>> >>>> screen_sizex= 7*r+m+s+7; >>>> screen_sizey=9*l+m; >>>> >>>> screen = zeros (screen_sizex, screen_sizey); >>>> i=3.5 >>>> centerx=(i-1)*r+1+m >>>> j=3.5 >>>> centery=(2*j-1)*l+1 >>>> for j = 1:5 >>>> for i = 1:8, >>>> screen_tmp = zeros (screen_sizex, screen_sizey); >>>> screen_tmp( (i-1)*r+1:(i-1)*r+m , (2*j-1)*l-l+1:(2*j-1)*l-l >>>> +m)=M; >>>> screen=screen+screen_tmp; >>>> end; >>>> end; >>>> >>>> for j = 1:4, >>>> for i = 1:8, >>>> screen_tmp = zeros (screen_sizex, screen_sizey); >>>> screen_tmp( (i-1)*r+1+s:(i-1)*r+m+s , (2*j-1)*l+1:(2*j-1)*l >>>> +m)=M; >>>> screen=screen+screen_tmp; >>>> end; >>>> end; >>>> >>>> >>>> f1.color_map = jetcolormap(120); >>>> //pM=screen*50; //Matplot(256-pM); >>>> //pM=screen*100/max(screen); Matplot(100-pM); >>>> Matplot(screen); >>>> >>>> xrect(1,screen_sizex,screen_sizey,screen_sizex) >>>> hrect=gce() //gets handle on the rectangle >>>> //hrect.foreground=60 >>>> hrect.foreground=addcolor(name2rgb('green')/255) //add a new color >>>> to the colortable and set it to the rectangle line >>>> >>>> cornerx=screen_sizex/2+field_size/pixel_size/2+10 //last number is >>>> optimized by hand >>>> cornery=screen_sizey/2-field_size/pixel_size/2-2 >>>> xrect(cornery,cornerx,field_size/pixel_size,field_size/pixel_size) >>>> hrect=gce() //gets handle on the rectangle >>>> //hrect.foreground=60 >>>> hrect.foreground=addcolor(name2rgb('green')/255) //add a new color >>>> to the colortable and set it to the rectangle line >>>> f2=scf(); // new figure -> current >>>> plot2d(screen(:, screen_sizex/4)); >>>> plot2d(screen(screen_sizex/4,:)); >>>> plot2d(screen(:, screen_sizex/4+l/2)); >>>> plot2d(screen(screen_sizex/4+r/2,:)); >>>> >>>> 6*radius >>>> 7*sind(60)*radius >>>> >>>> f3 = scf(); // new figure -> current >>>> surf(screen_crop); >>>> >>>> screen_sizex >>>> screen_sizey >>>> >>>> irr=screen(cornery:cornery+field_size/pixel_size,screen_sizex- >>>> cornerx:screen_sizex-cornerx+field_size/pixel_size) >>>> >>>> f4 = scf(); // new figure -> current >>>> f4.color_map = jetcolormap(120); >>>> Matplot(irr); >>>> unif=(maxi(irr)-mini(irr))/(maxi(irr)+mini(irr))*100; >>>> av=mean(irr) >>>> xstring(20,field_size/pixel_size >>>> +10,strcat(["average=",string(av),"% / +/-",string(unif),"% / >>>> size=", string(field_size)," mm x ",string(field_size)," mm "])) >>>> >>>> Yves >>>> >>> >> >> > From sylvestre.ledru at scilab.org Fri Apr 2 10:38:28 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 02 Apr 2010 10:38:28 +0200 Subject: [scilab-Users] Too many errors 21 In-Reply-To: References: <117D4274-6896-4535-9919-A2C1D4C7C945@solaronix.com> <1270137164.8061.23200.camel@korcula.inria.fr> Message-ID: <1270197508.8061.40308.camel@korcula.inria.fr> Le jeudi 01 avril 2010 ? 18:11 +0200, Yves Cainaud a ?crit : > > Does it happen also with Scilab 5.2.1 ? > I will try 5.2.1. Thanks for the feedback in the other email > > Do you have the execution stack ? > Where do I find the execution stack? You provided it here: http://bugzilla.scilab.org/show_bug.cgi?id=6858 I continue the discussion there. > > Did you update recently your operating system ? > I don't think so, it was Itune stuff again. Lucky you ;) Sylvestre From romremu at yahoo.fr Fri Apr 2 13:56:01 2010 From: romremu at yahoo.fr (romain guillaume) Date: Fri, 2 Apr 2010 11:56:01 +0000 (GMT) Subject: outil graphique de scilab Message-ID: <263227.48888.qm@web23105.mail.ird.yahoo.com> Bonjour, je vient de t?l?charger scilab 5.2.1 mais quand je veut tracer une courbe (par exemple plot(x,y)) il ouvre la fen?tre graphique et tout ? coup tout se ferme (fen?tre graphique et console); sauriez vous pourquoi il fait ca? , s'il il faut t?l?charg? un outil graphique ? cot??? merci beaucoup romain mon e-mail est romremu at yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Fri Apr 2 14:12:41 2010 From: yann.collette at scilab.org (Collette yann) Date: Fri, 02 Apr 2010 14:12:41 +0200 Subject: [scilab-Users] outil graphique de scilab In-Reply-To: <263227.48888.qm@web23105.mail.ird.yahoo.com> References: <263227.48888.qm@web23105.mail.ird.yahoo.com> Message-ID: <4BB5DF39.8090409@scilab.org> romain guillaume a ?crit : > Bonjour, > je vient de t?l?charger scilab 5.2.1 mais quand je veut tracer une > courbe (par exemple plot(x,y)) il ouvre la fen?tre graphique et tout ? > coup tout se ferme (fen?tre graphique et console); > sauriez vous pourquoi il fait ca? , s'il il faut t?l?charg? un outil > graphique ? cot??? > > merci beaucoup > romain > mon e-mail est romremu at yahoo.fr > Il faut probablement mettre ? jour le driver de votre carte graphique. Quel OS utilisez-vous ? Quelle carte graphique avez vous ? YC From foncteur at club-internet.fr Fri Apr 2 18:59:31 2010 From: foncteur at club-internet.fr (Foncteur) Date: Fri, 02 Apr 2010 18:59:31 +0200 Subject: [scilab-Users] outil graphique de scilab In-Reply-To: <4BB5DF39.8090409@scilab.org> References: <263227.48888.qm@web23105.mail.ird.yahoo.com> <4BB5DF39.8090409@scilab.org> Message-ID: <4BB62273.8030906@club-internet.fr> Bonjour Romain Je rajouterai ?galement : es-tu sous Linux ou OSX ? si, oui, essaye avec gnuplot si le probl?me persiste. Sinon, tente un msconfig (D?marrer > Ex?cuter) et d?sactive le d?marrage s?lectif puis reboot. Peter Le 02.04.2010 14:12, Collette yann a ?crit : > > romain guillaume a ?crit : >> Bonjour, >> je vient de t?l?charger scilab 5.2.1 mais quand je veut tracer une >> courbe (par exemple plot(x,y)) il ouvre la fen?tre graphique et tout >> ? coup tout se ferme (fen?tre graphique et console); >> sauriez vous pourquoi il fait ca? , s'il il faut t?l?charg? un outil >> graphique ? cot??? >> >> merci beaucoup >> romain >> mon e-mail est romremu at yahoo.fr > Il faut probablement mettre ? jour le driver de votre carte graphique. > Quel OS utilisez-vous ? > Quelle carte graphique avez vous ? > > YC > > From sylvestre.ledru at scilab.org Fri Apr 2 22:02:13 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 02 Apr 2010 22:02:13 +0200 Subject: [scilab-Users] outil graphique de scilab In-Reply-To: <4BB62273.8030906@club-internet.fr> References: <263227.48888.qm@web23105.mail.ird.yahoo.com> <4BB5DF39.8090409@scilab.org> <4BB62273.8030906@club-internet.fr> Message-ID: <1270238533.7128.3263.camel@zlarin> This is an english speaker mailing list, please avoid french. Thanks Sylvestre Le vendredi 02 avril 2010 ? 18:59 +0200, Foncteur a ?crit : > Bonjour Romain > > Je rajouterai ?galement : > es-tu sous Linux ou OSX ? si, oui, essaye avec gnuplot > si le probl?me persiste. > Sinon, tente un msconfig (D?marrer > Ex?cuter) et > d?sactive le d?marrage s?lectif puis reboot. > > Peter > > > > Le 02.04.2010 14:12, Collette yann a ?crit : > > > > romain guillaume a ?crit : > >> Bonjour, > >> je vient de t?l?charger scilab 5.2.1 mais quand je veut tracer une > >> courbe (par exemple plot(x,y)) il ouvre la fen?tre graphique et tout > >> ? coup tout se ferme (fen?tre graphique et console); > >> sauriez vous pourquoi il fait ca? , s'il il faut t?l?charg? un outil > >> graphique ? cot??? > >> > >> merci beaucoup > >> romain > >> mon e-mail est romremu at yahoo.fr > > Il faut probablement mettre ? jour le driver de votre carte graphique. > > Quel OS utilisez-vous ? > > Quelle carte graphique avez vous ? > > > > YC > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From w_artichowicz at o2.pl Fri Apr 2 20:11:02 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Fri, 2 Apr 2010 20:11:02 +0200 Subject: How to import graphics file into figure window? Message-ID: Hello, I'd like to ask if there's a possibility to import graphics file (f.ex. *.png, *.bmp, *.jpg and so on) into Scilab figure window. If so, how one can do that? Thank's in advance. Best regards, W.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at ac-rennes.fr Fri Apr 2 22:11:45 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Fri, 02 Apr 2010 22:11:45 +0200 Subject: [scilab-Users] How to import graphics file into figure window? In-Reply-To: References: Message-ID: <1270239105.2368.27.camel@calixte-laptop> Hello Wojciech, It's possible in using the latex command \includegraphics : --> xstring(0.1,0.1,'$\includegraphics{/path/to/your/image.png}$') Calixte Le vendredi 02 avril 2010 ? 20:11 +0200, Wojciech Artichowicz a ?crit : > Hello, > > I?d like to ask if there?s a possibility to import graphics file > (f.ex. *.png, *.bmp, *.jpg and so on) into Scilab figure window. > > If so, how one can do that? > > > > Thank?s in advance. > > Best regards, > > W.A. > > From rfongtom at yahoo.com Mon Apr 5 07:12:03 2010 From: rfongtom at yahoo.com (Robert Fong) Date: Sun, 4 Apr 2010 22:12:03 -0700 (PDT) Subject: converting matrix to image Message-ID: <611590.13156.qm@web111912.mail.gq1.yahoo.com> Hi, I would like to convert a matrix of floating point numbers (representing gray scale) to an image file such as a jpg file, that can be displayed as am image. Matlab does this with the "image" function. Does Scilab have a similar function? If not does anyone have any a way to accomplish this? Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.guffens at googlemail.com Mon Apr 5 13:05:50 2010 From: vincent.guffens at googlemail.com (vinsz) Date: Mon, 05 Apr 2010 12:05:50 +0100 Subject: [scilab-Users] converting matrix to image In-Reply-To: <611590.13156.qm@web111912.mail.gq1.yahoo.com> References: <611590.13156.qm@web111912.mail.gq1.yahoo.com> Message-ID: <4BB9C40E.5040208@gmail.com> On 05/04/2010 06:12, Robert Fong wrote: > Hi, > I would like to convert a matrix of floating point numbers > (representing gray scale) to an image file such as a jpg file, that > can be displayed as am image. Matlab does this with the "image" > function. Does Scilab have a similar function? If not does anyone have > any a way to accomplish this? > > Robert > Hi, did you have a look at the Matplot and Matplot1 functions? These functions round the float entries to int so you may have to scale your matrix to obtain the desired result. -------------- next part -------------- An HTML attachment was scrubbed... URL: From macaleese at amolf.nl Mon Apr 5 17:43:48 2010 From: macaleese at amolf.nl (=?windows-1252?Q?Luke_Macaleese?=) Date: Mon, 5 Apr 2010 17:43:48 +0200 Subject: makelib / systematic dll and linking problem when installing toolboxes Message-ID: Hello , please forgive my layman's question, my experience is very limited but I couldn't find an appropriate answer in the archives: ? what I want: -install image processing toolboxes to use with Scilab-5.2.1 (SIP, SIVP, IPD...other?) ? what I did: -copied the available files in SCIDIR/contrib/ -tried to load them directly in the console or run "exec builder/loader.sce" ? what I experienced: -problems with libraries (see attached document for detailed error messages) -->when trying to load toolboxes directly from Scilab's console: libsip.dll does not exist -->when trying to first exec builder.sce, problem when building shared library, then either library non existing, not found... ? my system: -scilab-5.2.1 -MSYS1.0/MinGW5.1.6 -Tcl/Tk8.5.8 (installed +compiled at C:\) -OpenCV2.0 -ImageMagick-6.6.1-Q16 ? remark: only installed mingw_toolbox for Scilab, others (tcl/tk, openc2v and imagemagick were not specifically linked to scilab) ? thank you very much for any input! Luke -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: install-error-messages.txt Type: application/octet-stream Size: 8824 bytes Desc: not available URL: From lucianavliria at hotmail.com Tue Apr 6 00:41:12 2010 From: lucianavliria at hotmail.com (Luciana Liria) Date: Mon, 5 Apr 2010 22:41:12 +0000 Subject: Error 4 Message-ID: I am writing this email because i have some problems with Scilab. Firstly, i have one .sce file in wich a programmed two radiobuttoms with some sentences to select only one each time. When i run this .sce file i do not have problems. But this .sce file is called from a previous one. And when i do this, the radiobuttoms do not work as i hope. There is an "error 4". Well, i hope you can help me to solve this problem. Yours faithfully, Luciana Liria _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlosbronzini at live.com.ar Tue Apr 6 03:59:30 2010 From: carlosbronzini at live.com.ar (Carlos Alberto Bronzini) Date: Mon, 5 Apr 2010 22:59:30 -0300 Subject: Any Questions Message-ID: Dear. I use Scilab from two years ago in my Institute, and Ihave two questions, if it?s possible help me: My first questions: How can I use in Xcos the library of Modilica.org, i don?t Know that introduce the free Modelica Libray in the Xcos, and increase the components in Modelica ? And the second is: There is a funtion sdimilar al ZOH (Zero Order HOLDER) of Matlab. Best regards and I?m waiting your news. Carlos Bronzini _________________________________________________________________ Organiz? una reuni?n con Hotmail: pod?s enviar un email a tus amigos y con el Calendario agendar la fecha. Descubr? m?s. http://www.microsoft.com/latam/windows/windowslive/products/calendar.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From perrichon.pierre at wanadoo.fr Tue Apr 6 08:36:08 2010 From: perrichon.pierre at wanadoo.fr (Perrichon Pierre) Date: Tue, 6 Apr 2010 08:36:08 +0200 Subject: TR: Bug with BODE plotter ? Message-ID: De : Perrichon Pierre [mailto:perrichon.pierre at wanadoo.fr] Envoy? : mardi 6 avril 2010 08:33 ? : 'users at lists.scilab.org' Objet : Dear, I am studying different methods to translate un simple transfer function from %s to %z, and try different methods to track the better one, with a frequency approach. - Continuous (this is the base in %s) - Euler method - Bilinear method - Impulse response Then, I plot the different graphs using the BODE instruction. The plot is apparently not correct, because It shows that the Impulse method is the better one, except that the continuous curve has been shifted (see and compare graph 1 and 2) I had to redraw all the graphs using the repfreq, dbphi, and plot2d instructions to get correct results, which show that the Bilinear method is the best one (graph 4) So I think there is a bug in the Bode plot, or a method error (SIMO // SISO ?) Could you confirm ? Here is my program (also in the attached file) // Programme P2_2 // 06-04-2010 //---------------- s=%s; z=%z; Te=0.0003; // Sample time Fmin=1; //Hertz Fmax=1000; // Hertz //-------------------------------------------------------------------------- ------------------------------------------------ K=0.43; T=0.0075; a=0.2; //-------------------------------------------------------------------------- ------------------------------------------------ FT0=K*(1+T*s)/(1+a*T*s); // Continuous system FT0 = syslin('c', FT0); FT10_0 = tf2ss(FT0); //-------------------------------------------------------------------------- ------------------------------------------------ pz=(1-z^-1)/Te; // Euler Transform FT1 = K*(1+T*pz)/(1+a*T*pz); FT1 = syslin(Te, FT1 ); FT10_1 = tf2ss(FT1); //-------------------------------------------------------------------------- ------------------------------------------------ pz=2/Te*(1-z^-1)/(1+z^-1); // Bilinear transform FT2 = K*(1+T*pz)/(1+a*T*pz); FT2 = syslin(Te, FT2 ); FT10_2 = tf2ss(FT2); //-------------------------------------------------------------------------- ------------------------------------------------ b=1/(a*T); // Invariance impulsionnelle c=1/a; EXP=exp(-b*Te); N=c*(z-1) + 1 - EXP; D=z-EXP; FT3=K*(N/D); FT3 = syslin(Te, FT3 ); FT10_3 = tf2ss(FT3); //-------------------------------------------------------------------------- ------------------------------------------------ scf(1);clf(); // Create and clear screen 1 bode([FT10_0],Fmin,Fmax); legends(['Continu';], [1;], with_box=%t, opt=4 ); //-------------------------------------------------------------------------- ------------------------------------------------ scf(2);clf(); // Create and clear screen 2 bode([FT10_0;FT10_3],Fmin,Fmax); legends(['Continu';'Invariance'], [1;2], with_box=%t, opt=4 ); //-------------------------------------------------------------------------- ------------------------------------------------ scf(3);clf(); // Create and clear screen 3 bode([FT10_0;FT10_1;FT10_2;FT10_3],Fmin,Fmax); legends(['Continu';'Euler';'Bilineaire';'Invariance';], [1;2;3;4], with_box=%t, opt=4 ); //-------------------------------------------------------------------------- ------------------------------------------------ frq=Fmin:0.01:Fmax; [frq0,rep0] =repfreq(FT10_0,frq); [db0,phi0]=dbphi(rep0); [frq1,rep1] =repfreq(FT10_1,frq); [db1,phi1]=dbphi(rep1); [frq2,rep2] =repfreq(FT10_2,frq); [db2,phi2]=dbphi(rep2); [frq3,rep3] =repfreq(FT10_3,frq); [db3,phi3]=dbphi(rep3); //Affichage //------------ scf(4);clf(); // Create and clear screen 4 xgrid(); subplot(2,1,1); plot2d('ln',frq,db0,style=1); plot2d('ln',frq,db1,style=2); plot2d('ln',frq,db2,style=3); plot2d('ln',frq,db3,style=4); legends(['Continu';'Euler';'Bilineaire';'Invariance';], [1;2;3;4], with_box=%t, opt=4 ); xtitle('', 'Fr?quence Hz','Magnitude (Db)'); subplot(2,1,2); plot2d('ln',frq,phi0,style=1); plot2d('ln',frq,phi1,style=2); plot2d('ln',frq,phi2,style=3); plot2d('ln',frq,phi3,style=4); xgrid(); xtitle('', 'Fr?quence (Hz)','Phase (degr?)'); Best regards P.Perrichon Nous prot?geons notre environnement : n'imprimez ce mail que si n?cessaire. :._______________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: P2_2.txt URL: From guylaine.collewet at cemagref.fr Tue Apr 6 09:00:25 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 6 Apr 2010 09:00:25 +0200 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_converting_matrix_to_image?= References: <611590.13156.qm@web111912.mail.gq1.yahoo.com> Message-ID: Hello, did you check the image processing toolboxes ? http://atoms.scilab.org/categories/image_processing regards Guylaine Collewet -------- Message d'origine-------- De: Robert Fong [mailto:rfongtom at yahoo.com] Date: lun. 05/04/2010 07:12 ?: users at lists.scilab.org Objet : [scilab-Users] converting matrix to image Hi, I would like to convert a matrix of floating point numbers (representing gray scale) to an image file such as a jpg file, that can be displayed as am image. Matlab does this with the "image" function. Does Scilab have a similar function? If not does anyone have any a way to accomplish this? Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.cainaud at solaronix.com Tue Apr 6 10:14:10 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Tue, 6 Apr 2010 10:14:10 +0200 Subject: =?ISO-8859-1?Q?Re:_RE=A0:_[scilab-Users]_converting_matrix_to_im?= =?ISO-8859-1?Q?age?= In-Reply-To: References: <611590.13156.qm@web111912.mail.gq1.yahoo.com> Message-ID: Perhaps a combination of matplot and xs2jpg will do what you are looking for. Yves On Apr 6, 2010, at 9:00 AM, Collewet Guylaine wrote: > > Hello, > > did you check the image processing toolboxes ? > http://atoms.scilab.org/categories/image_processing > > regards > > Guylaine Collewet > > > > -------- Message d'origine-------- > De: Robert Fong [mailto:rfongtom at yahoo.com] > Date: lun. 05/04/2010 07:12 > ?: users at lists.scilab.org > Objet : [scilab-Users] converting matrix to image > > Hi, > I would like to convert a matrix of floating point numbers > (representing gray > scale) to an image file such as a jpg file, that can be displayed as > am > image. Matlab does this with the "image" function. Does Scilab have a > similar function? If not does anyone have any a way to accomplish > this? > > Robert > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johannes-Graus at web.de Tue Apr 6 10:36:07 2010 From: Johannes-Graus at web.de (Johannes Graus) Date: Tue, 6 Apr 2010 10:36:07 +0200 Subject: Import and execution of a modified function Message-ID: <2FD025BAFB1247B0BC9C67F0A391435E@Netty> Hello, at the beginning of my script file (script.sce) I import a function as follows: mode(0); exec('test.sci'); This function can be used afterwards. Then I make a change to the function test.sci and save it. When I execute my script again, scilab displays the following (translated from German): exec('c:\...path.....\test.sci', -1) Warning: redefining function: test. Use funcprot(0) to suppress this warning. The warning message makes sence because funcprot = 1 "= warning". But the execution of my script seems to be interrupted by this warning. Each time I try to execute it again, scilab displays exec('c:\...path.....\test.sci', -1) The easiest way to make it work again is to modify the script.sce and save it. How can I avoid this workaround and tell scilab to ignore changes in the functions despite of setting funcprot? Thx Yours, Johannes Graus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.jofret at scilab.org Tue Apr 6 11:34:44 2010 From: bruno.jofret at scilab.org (Bruno JOFRET) Date: Tue, 06 Apr 2010 11:34:44 +0200 Subject: [scilab-Users] Error 4 In-Reply-To: References: Message-ID: <4BBB0034.4060103@scilab.org> Hi Luciana, Error 4 means "Undefined variable". You are trying to use a variable that do not exists in the current environment. Check your variables name. Regards, Luciana Liria wrote: > I am writing this email because i have some problems with Scilab. > Firstly, i have one .sce file in wich a programmed two radiobuttoms with > some sentences to select only one each time. > When i run this .sce file i do not have problems. But this .sce file is > called from a previous one. And when i do this, the radiobuttoms do not > work as i hope. There is an "error 4". > Well, i hope you can help me to solve this problem. > Yours faithfully, > Luciana Liria > > ------------------------------------------------------------------------ -- Bruno JOFRET Software Architect The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.58.63 From lucianavliria at hotmail.com Tue Apr 6 13:45:05 2010 From: lucianavliria at hotmail.com (Luciana Liria) Date: Tue, 6 Apr 2010 11:45:05 +0000 Subject: Functions Message-ID: I am writing this email because i have some problems with Scilab. Firstly,i have one .sce file in wich a programmed two radiobuttoms with some sentences to select only one each time. When i run this .sce file i do not have problems. But this .sce file is called from a previous one. And when i do this, the radiobuttoms do not work as i hope. There is an "error 4" with Valor2_opc and Valor_opc ,i know that this error means "Undefined variable", but the Valor2_opc and Valor_opc are not variables, are functions. These are the sentences of the .sce file where are the functions: v_opc = figure(1, ... "figure_name", "Primer orden sistema mecanico",... "backgroundcolor", [0.6 0.2 0.2], ... "position", [200 100 600 400]); delmenu(v_opc.figure_id, ... gettext("&File")); delmenu(v_opc.figure_id, ... gettext("&Tools")); delmenu(v_opc.figure_id, ... gettext("&Edit")); delmenu(v_opc.figure_id, ... gettext("&?")); toolbar(v_opc.figure_id, "off"); m1_opc = uimenu(v_opc, ... "label", "Archivo"); m11_opc = uimenu(m1_opc, ... "label", "Salir", ... "callback", "exit"); m2_opc = uimenu(v_opc, ... "label", "Ayuda"); m21_opc = uimenu(m2_opc,... "label", "Acerca de", ... "callback", "about()"); marco_opc = uicontrol( v_opc, ... "style", "frame", ... "relief", "groove", ... "units", "pixels", ... "position", [50 20 500 350],... "background", [0.8 0.8 0.8]); tit_opc = uicontrol(marco_opc, ... "style", "text", ... "string", "Elija una opcion: ", ... "position", [30 300 150 45], ... "backgroundcolor", [0.8,0.8, 0.8], ... "fontname","Times",... "fontsize", 20, ... "fontweight", "demi", ... "horizontalalignment", "center"); Primer_Orden_opc = uicontrol(marco_opc, ... "style" , "radiobutton", ... "string" , "Analogias con modelos de Primer Orden", ... "position", [110 260 350 50], ... "fontname","Times",... "fontsize", 12, ... "fontweight", "bold", ... "min", 0, "max", 1, ... "value", 1, ... "callback","Validar_opc",... "background", [0.8 0.8 0.8]); lista1_opc = uicontrol(marco_opc, ... "style", "listbox", ... "position", [200 160 200 100], ... "string", ... ["Analogia con modelo mecanico", "Analogia con modelo termico"], ... "fontname","Times",... "fontsize", 12, ... "fontweight", "bold", ... "backgroundcolor", [0.8 0.8 0.8]); Segundo_Orden_opc = uicontrol(marco_opc, ... "style" , "radiobutton", ... "string" , "Analogias con modelos de Segundo Orden", ... "position", [110 150 350 50], ... "fontname","Times",... "fontsize", 12, ... "fontweight", "bold", ... "min", 0, "max", 1, ... "value", 0, ... "callback","Validar2_opc",... "background", [0.8 0.8 0.8]); lista2_opc = uicontrol(marco_opc, ... "style", "listbox", ... "position", [200 60 200 80], ... "string", ... ["Analogia con modelo mecanico", "Analogia con modelo termico"], ... "fontname","Times",... "fontsize", 12, ... "fontweight", "bold", ... "backgroundcolor", [0.8 0.8 0.8]); Aceptar_opc = uicontrol(marco_opc, ... "style", "pushbutton", ... "position", [400 20 70 35], ... "backgroundcolor",[0.7 0.6 0.6], ... "foregroundcolor", [0 0 0], ... "string", "Aceptar",... "fontsize",12, ... "fontweight", "bold",... "relief","sunken",... "callback", "Simulacion"); function Validar_opc set(Primer_Orden_opc,'value',1); set(Segundo_Orden_opc,'value',0); endfunction function Validar2_opc set(Primer_Orden_opc,'value',0); set(Segundo_Orden_opc,'value',1); endfunction function Simulacion clf(v_opc); exec('Primer_Orden_Mecanico.sce'); endfunction Well, i hope you can help me to solve this problem. Yours faithfully, Luciana Liria _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Tue Apr 6 13:49:49 2010 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Tue, 6 Apr 2010 07:49:49 -0400 Subject: Unable to unscribe from the list Message-ID: Hi, I have subscribed to the disgest because I would like to stop receiving all posts individually. Now I am receiving both digest and individual posts. How I can stop the posts to be send to me? Thanks Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From anders at simbalsyd.se Wed Apr 7 09:57:30 2010 From: anders at simbalsyd.se (Anders Sneckenborg) Date: Wed, 7 Apr 2010 09:57:30 +0200 Subject: plot in batch Message-ID: <14C7CA18C15381499784EEA3E73E5BF4022156949F@PRISMA.simbalsyd.local> Hi I have a script which takes long time to run and when running it creates several graphs. Every time a new graph is created the "cursor" focus is transfered to the new window. I use Scilab 5.2 under Windows XP. I tried the -nwni and -nogui flags but it seems they can not be used when creating graphs. Is it possible to run the script in the background? /Anders Sneckenborg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Apr 7 10:44:29 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 07 Apr 2010 10:44:29 +0200 Subject: [scilab-Users] makelib / systematic dll and linking problem when installing toolboxes In-Reply-To: References: Message-ID: <4BBC45ED.8000002@univ-lemans.fr> Hello Luke, ----- Message d'origine ----- De : Luke Macaleese Date : 05/04/2010 17:43: > > what I want: > > -install image processing toolboxes to use with Scilab-5.2.1 (SIP, > SIVP, IPD...other?) > Apparently (C:\ below) your OS is Windows. Only IPD binaries >=3.0 can be used on windows with Scilab >= 5.2. SIP binaries can be used on Windows with Scilab <= 4.2.1 SIVP can be used on windows with Scilab <= 5.1.0, but 5.0 and 5.1 SCilab releases were quite bad. To install IPD, the easiest way is to use ATOMS, since IPD is distributed on ATOMS. Just clik on the box icone on the console toolbar. It can be quite long (>1mn) before the ATOMS interface appears, but then the installation will be straightforward. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From manuel.juliachs at scilab.org Wed Apr 7 10:47:32 2010 From: manuel.juliachs at scilab.org (Manuel JULIACHS) Date: Wed, 07 Apr 2010 10:47:32 +0200 Subject: [scilab-Users] plot in batch In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF4022156949F@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF4022156949F@PRISMA.simbalsyd.local> Message-ID: <4BBC46A4.9000009@scilab.org> Anders Sneckenborg a ?crit : > > Hi > > > > I have a script which takes long time to run and when running it > creates several graphs. Every time a new graph is created the "cursor" > focus is transfered to the new window. > I use Scilab 5.2 under Windows XP. > I tried the -nwni and -nogui flags but it seems they can not be > used when creating graphs. > Is it possible to run the script in the background? > > /Anders Sneckenborg > > > Hello, when executing a drawing command which creates a new separate window, the newly created window necessarily grabs the focus. I'm not aware of any way to prevent this. What you might do is to draw your graphs in the same window, using the subplot command (which allows to put several graphs in separate subwindows), and postpone drawing until your script's execution is over, with the drawlater/drawnow commands. For example: scf(0); drawlater; // postpones drawing // script execution for graph #1 subplot(2,2,1); plot2d(); // first graph // script execution for graph #2 subplot(2,2,2); plot2d(); // 2nd graph // etc. drawnow; // executes the previous plot commands This will grab the focus only once, when the scf(0) command is performed, and allow your script to run without repeatedly grabbing the focus due to window creation. -- ------------------------- Manuel Juliachs Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.52.71 From anders at simbalsyd.se Wed Apr 7 10:54:37 2010 From: anders at simbalsyd.se (Anders Sneckenborg) Date: Wed, 7 Apr 2010 10:54:37 +0200 Subject: plot in batch Message-ID: <14C7CA18C15381499784EEA3E73E5BF402215694A1@PRISMA.simbalsyd.local> Hi I have a script which takes long time to run and when running it creates several graphs. Every time a new graph is created the "cursor" focus is transfered to the new window. I use Scilab 5.2 under Windows XP. I tried the -nwni and -nogui flags but it seems they can not be used when creating graphs. Is it possible to run the script in the background? /Anders Sneckenborg -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Apr 7 10:55:46 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 07 Apr 2010 10:55:46 +0200 Subject: [scilab-Users] converting matrix to image In-Reply-To: <611590.13156.qm@web111912.mail.gq1.yahoo.com> References: <611590.13156.qm@web111912.mail.gq1.yahoo.com> Message-ID: <4BBC4892.10605@univ-lemans.fr> Hi Robert, ----- Message d'origine ----- De : Robert Fong Date : 05/04/2010 07:12: > Hi, > I would like to convert a matrix of floating point numbers > (representing gray scale) to an image file such as a jpg file, that > can be displayed as am image. Matlab does this with the "image" > function. Does Scilab have a similar function? If not does anyone have > any a way to accomplish this? It is possible to display a real matrix as an image with Matplot or Matplot1 as said before. Here is an example clf Ncolors=70; // Number of colors whished M=grand(200,200,"uin",0,Ncolors); // Creating data. Replace by your own real matrix M RGB=graycolormap(Ncolors+1); // You can choose another colormap. Here is the grey one. LUT=addcolor(RGB); // Mandatory resampling of colors through all colors available in the colormap Matplot(matrix(LUT(M+1),size(M))) // Displays the matrix It is also possible to display the related colorbar in the margin: See colorbar() Once the matrix is displayed, use xs2jpg() or xs2gif() or xs2png... etc to record the graphic windows into a image file. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Apr 7 11:12:38 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 07 Apr 2010 11:12:38 +0200 Subject: [scilab-Users] lsqrsolve In-Reply-To: <4BB3218B.4010305@unisi.it> References: <4BB3218B.4010305@unisi.it> Message-ID: <4BBC4C86.2050905@univ-lemans.fr> ----- Message d'origine ----- De : Maso Ricci Date : 31/03/2010 12:18: > Hi, > > I am using the lsqrsolve function to fit some data. > I wonder whether lsqrsolve accepts contrains in order to force the > solution to be positive. > > thanks in advance for any comments and suggestions Did you check the leastsq() function based on the optim() one ? Its 'b', binf, bsup sequence of 3 input arguments allow to specify some boundaries. So, for instance, if the solution you are searching for is a scalar that must be positive, just set 'b',0,%inf. see help leastsq() HTH Samuel From macaleese at amolf.nl Wed Apr 7 11:29:59 2010 From: macaleese at amolf.nl (Luke MacAleese) Date: Wed, 07 Apr 2010 11:29:59 +0200 Subject: [scilab-Users] makelib / systematic dll and linking problem when installing toolboxes In-Reply-To: <4BBC45ED.8000002@univ-lemans.fr> References: <4BBC45ED.8000002@univ-lemans.fr> Message-ID: <4BBC5097.8030403@amolf.nl> Thanks Samuel, you're right: I forgot to mention that I use windowsXP > Only IPD binaries >=3.0 can be used on windows with Scilab >= 5.2. since I tried to install version5.0, this can't be the problem > SIP binaries can be used on Windows with Scilab <= 4.2.1 > SIVP can be used on windows with Scilab <= 5.1.0, but 5.0 and 5.1 > SCilab releases > were quite bad. To install IPD, the easiest way is to use ATOMS, since > IPD is distributed > on ATOMS. Just clik on the box icone on the console toolbar. It can be > quite long (>1mn) > before the ATOMS interface appears, but then the installation will be > straightforward. so if I follow you, I should either install scilab-4.2.1 and use sip, or install ipd on scilab-5.2. That's okay with me... but when I tried to use ATOMS - which I actually had already tried - then I get a window "Atoms error" with the message "installation failed!" so I'm still not sure what I do wrong... but thanks anyway! Luke From Samuel.Gougeon at univ-lemans.fr Wed Apr 7 11:59:30 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 07 Apr 2010 11:59:30 +0200 Subject: [scilab-Users] How to import graphics file into figure window? In-Reply-To: References: Message-ID: <4BBC5782.1050401@univ-lemans.fr> ----- Message d'origine ----- De : Wojciech Artichowicz Date : 02/04/2010 20:11: > > Hello, > > I'd like to ask if there's a possibility to import graphics file > (f.ex. *.png, *.bmp, *.jpg and so on) into Scilab figure window. > > If so, how one can do that? > If your OS is windows, you may instal and use the IPD (Image Processing Design) module through the ATOMS module manager. Then use functions ReadImage() and ShowColorImage(). If your OS is Linux-like, SIVP that is not (yet?) an ATOMS module but an external toolbox, will be useful (imread() + imshow()). Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From haraldgalda at yahoo.com Wed Apr 7 12:01:06 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Wed, 7 Apr 2010 03:01:06 -0700 (PDT) Subject: AW: [scilab-Users] makelib / systematic dll and linking problem when installing toolboxes In-Reply-To: <4BBC5097.8030403@amolf.nl> References: <4BBC45ED.8000002@univ-lemans.fr> <4BBC5097.8030403@amolf.nl> Message-ID: <901683.29275.qm@web112609.mail.gq1.yahoo.com> Hello Luke, I am the author of IPD. I suggest that you download the file IPD-5-0-Windows.zip from atoms.scilab.org/toolboxes/IPD/5.0 and extract it to the directory C:\Program Files\scilab-5.2.1\contrib\ Then there should be the directory C:\Program Files\scilab-5.2.1\contrib\IPD-5.0\ and you can load the toolbox after re-launching Scilab. You can execute the command atomsInstall(['IPD' '5.0']) on the Scilab command line instead. This still downloads and extracts IPD-5-0-Windows.zip, but the directory structure might be C:\Program Files\scilab-5.2.1\contrib\IPD\5.0\ then. If this happens, move the directory C:\Program Files\scilab-5.2.1\contrib\IPD\5.0\ to C:\Program Files\scilab-5.2.1\contrib\ and rename it to IPD-5.0. Then there will be the directory C:\Program Files\scilab-5.2.1\contrib\IPD-5.0\ You can choose another name for the directory. However, the online help examples assume that there is the directory contrib\IPD-5.0\demos\ Both ATOMS GUI and atomsInstall download and extract the ZIP file, but do not create the directory structure necessary for loading the toolbox. I do not know why. Best regards Harald ----- Urspr?ngliche Mail ---- Von: Luke MacAleese An: users at lists.scilab.org Gesendet: Mittwoch, den 7. April 2010, 11:29:59 Uhr Betreff: Re: [scilab-Users] makelib / systematic dll and linking problem when installing toolboxes Thanks Samuel, you're right: I forgot to mention that I use windowsXP > Only IPD binaries >=3.0 can be used on windows with Scilab >= 5.2. since I tried to install version5.0, this can't be the problem > SIP binaries can be used on Windows with Scilab <= 4.2.1 > SIVP can be used on windows with Scilab <= 5.1.0, but 5.0 and 5.1 SCilab releases > were quite bad. To install IPD, the easiest way is to use ATOMS, since IPD is distributed > on ATOMS. Just clik on the box icone on the console toolbar. It can be quite long (>1mn) > before the ATOMS interface appears, but then the installation will be straightforward. so if I follow you, I should either install scilab-4.2.1 and use sip, or install ipd on scilab-5.2. That's okay with me... but when I tried to use ATOMS - which I actually had already tried - then I get a window "Atoms error" with the message "installation failed!" so I'm still not sure what I do wrong... but thanks anyway! Luke __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com From macaleese at amolf.nl Wed Apr 7 15:52:30 2010 From: macaleese at amolf.nl (Luke MacAleese) Date: Wed, 07 Apr 2010 15:52:30 +0200 Subject: AW: [scilab-Users] makelib / systematic dll and linking problem when installing toolboxes In-Reply-To: <901683.29275.qm@web112609.mail.gq1.yahoo.com> References: <901683.29275.qm@web112609.mail.gq1.yahoo.com> Message-ID: <4BBC8E1E.5040501@amolf.nl> Dear Harald and Samuel, thanks for your messages first remark: it is not ATOMS that is intrinsically not working on my machine: I could load successfully (randomly picked) plotlib, sndfile and metanet toolboxes, but not IPD then, Harlan, I followed your advice and tried both ways: (1)through ATOMS: -->atomsInstall(['IPD' '5.0']) atomsDownload: The downloaded file doesn't check the MD5SUM: - file : 'C:\PROGRA~1\SCILAB~1.1\contrib\IPD\IPD-Windows-5.0.zip' - MD5SUM expected : '69ea6daa7627ee7e1a7e553262f8d48e' - MD5SUM watched : '481f7f9bf133b9937bfa30ce155fd861' !--error 10000 at line 234 of function atomsDownload called by : at line 282 of function atomsInstall called by : atomsInstall(['IPD' '5.0']) (2)loading it from the console toolboxes/ menu after having downloaded the zip file and extracted it to contrib\: Startup execution: loading initial environment IPD - Image Processing Design Toolbox 5.0 link: The file cxcore200.dll does not exist. Error occured when trying to load a library required by this toolbox. ---- bizarre? by the way, the reference to cxcore200.dll brings me back to my initial assumption of a problem while building libraries :( cheers Luke From delenne at msem.univ-montp2.fr Thu Apr 8 10:44:54 2010 From: delenne at msem.univ-montp2.fr (Carole DELENNE) Date: Thu, 8 Apr 2010 10:44:54 +0200 Subject: Export figure in eps with latex font Message-ID: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> Hello, I do some graphics with latex font in Scilab and this works well. But when I export them in pdf or eps (to use them in a latex file), all the latex charaters (greek letters, exponent, index, etc.) are replaced by strange characters like @ or ?. I don't know if the problem stems from scilab. Maybe it is because I work on Mac? maybe I just need to install the right font? if someone can help.... Carole From mabille at supagro.inra.fr Thu Apr 8 11:01:47 2010 From: mabille at supagro.inra.fr (=?ISO-8859-1?Q?Fr=E9d=E9ric_Mabille?=) Date: Thu, 8 Apr 2010 11:01:47 +0200 Subject: [scilab-Users] Export figure in eps with latex font In-Reply-To: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> References: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> Message-ID: <0559CC20-2EB2-487D-BDB4-055E2DB9499D@supagro.inra.fr> Hi, Montpellier ^ I also work on Mac, and I don't have such a problem. But I use .png files for exporting my graph. Did you try this ? Fred Le 8 avr. 10 ? 10:44, Carole DELENNE a ?crit : > Hello, > > I do some graphics with latex font in Scilab and this works well. > But when I export them in pdf or eps (to use them in a latex file), > all the latex charaters (greek letters, exponent, index, etc.) are > replaced by strange characters like @ or ?. > I don't know if the problem stems from scilab. > Maybe it is because I work on Mac? > maybe I just need to install the right font? > > if someone can help.... > > Carole Fr?d?ric Mabille INRA, UMR "Ing?nierie des Agropolym?res et Technologies Emergentes" Bat 31 2 Place P. Viala 34060 Montpellier Cedex 01 FRANCE mabille at supagro.inra.fr T?l : 33 (0)4 99 61 21 91 Fax. 33 (0)4 99 61 30 76 http://www.montpellier.inra.fr/umr-iate -------------- next part -------------- An HTML attachment was scrubbed... URL: From Calixte.Denizet at ac-rennes.fr Thu Apr 8 11:22:27 2010 From: Calixte.Denizet at ac-rennes.fr (Calixte.Denizet at ac-rennes.fr) Date: Thu, 08 Apr 2010 11:22:27 +0200 Subject: [scilab-Users] Export figure in eps with latex font In-Reply-To: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> References: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> Message-ID: Hello Carole, You probably use java 1.5. Could you make a bug report on bugzilla.scilab.org ? I'll try to find a solution quickly. Calixte ----- Message d'origine ----- De: Carole DELENNE Date: Jeudi, Avril 8, 2010 10:51 am Objet: [scilab-Users] Export figure in eps with latex font ?: users at lists.scilab.org Cc: Carole DELENNE > Hello, > > I do some graphics with latex font in Scilab and this works well. > But when I export them in pdf or eps (to use them in a latex file), > all the latex charaters (greek letters, exponent, index, etc.) are > replaced by strange characters like @ or ?. > I don't know if the problem stems from scilab. > Maybe it is because I work on Mac? > maybe I just need to install the right font? > > if someone can help.... > Carole From delenne at msem.univ-montp2.fr Thu Apr 8 11:47:34 2010 From: delenne at msem.univ-montp2.fr (Carole DELENNE) Date: Thu, 8 Apr 2010 11:47:34 +0200 Subject: Fwd: Export figure in eps with latex font References: <91C7C357-FF8D-4601-AF42-8B70F1B6D373> Message-ID: Yes, it works with .png, .jpg, etc. But it is not in vector format and the quality is poor (maybe I can enhance the resolution?) Carole D?but du message r?exp?di? : > Date : 8 avril 2010 11:01:48 HAEC > Objet : R?p : Export figure in eps with latex font > Source: Scilab Users mailing list > Auteur: Fr?d?ric Mabille > >
From: Fr?d?ric Mabille
> Hi, Montpellier ^
> I also work on Mac, and I don't have such a problem. But I use .png
> files for exporting my graph.
> Did you try this ?
> Fred
> Le 8 avr. 10 ? 10:44, Carole DELENNE a ?crit :
> > Hello,
> >
> > I do some graphics with latex font in Scilab and this works well.
> > But when I export them in pdf or eps (to use them in a latex file),
> > all the latex charaters (greek letters, exponent, index, etc.) are
> > replaced by strange characters like @ or ?.
> > I don't know if the problem stems from scilab.
> > Maybe it is because I work on Mac?
> > maybe I just need to install the right font?
> >
> > if someone can help....
> >
> > Carole
> Fr?d?ric Mabille
> INRA, UMR "Ing?nierie des Agropolym?res et Technologies Emergentes"
> Bat 31
> 2 Place P. Viala
> 34060 Montpellier Cedex 01
> FRANCE
> ####@####.####
> T?l : 33 (0)4 99 61 21 91
> Fax. 33 (0)4 99 61 30 76
> http://www.montpellier.inra.fr/umr-iate
> En savoir plus? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From delenne at msem.univ-montp2.fr Thu Apr 8 12:05:32 2010 From: delenne at msem.univ-montp2.fr (Carole DELENNE) Date: Thu, 8 Apr 2010 12:05:32 +0200 Subject: [scilab-Users] Re : [scilab-Users] Export figure in eps with latex font In-Reply-To: References: <1AD63499-821D-4263-8B24-C5751176B6B8@msem.univ-montp2.fr> Message-ID: <801CE69C-6459-43AA-9BD9-8B56D693060D@msem.univ-montp2.fr> yes, I have java 1.5. Maybe I can try to install 1.6? Carole Le 8 avr. 10 ? 11:22, a ?crit : > Hello Carole, > > You probably use java 1.5. Could you make a bug report on > bugzilla.scilab.org ? > > I'll try to find a solution quickly. > > Calixte > > > ----- Message d'origine ----- > De: Carole DELENNE > Date: Jeudi, Avril 8, 2010 10:51 am > Objet: [scilab-Users] Export figure in eps with latex font > ?: users at lists.scilab.org > Cc: Carole DELENNE > > >> Hello, >> >> I do some graphics with latex font in Scilab and this works well. >> But when I export them in pdf or eps (to use them in a latex file), >> all the latex charaters (greek letters, exponent, index, etc.) are >> replaced by strange characters like @ or ?. >> I don't know if the problem stems from scilab. >> Maybe it is because I work on Mac? >> maybe I just need to install the right font? >> >> if someone can help.... >> Carole From w_artichowicz at o2.pl Thu Apr 8 22:02:38 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Thu, 8 Apr 2010 22:02:38 +0200 Subject: script executable Message-ID: Hi, Is there any way to make an independent executable (*.exe) file from Scilab script code? Tahnks in advance. Regards, W.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From p-rao1 at ti.com Fri Apr 9 19:33:01 2010 From: p-rao1 at ti.com (Rao, Prithvi) Date: Fri, 9 Apr 2010 12:33:01 -0500 Subject: SCILAB and Java Message-ID: <89D40D70812A5B40829D775120E5E92757F7F389@dlee03.ent.ti.com> Hi I want to use SCILAB on XP with Java and I am requesting the following (which I cannot find and I have looked extensively): * Java API documentation (package javasci) * Java Example for Windows XP (the examples in the distribution appear to be written for Unix) This is great stuff and I am keen on using it in my work...so far no luck in making progress on XP. Thanks much! Regards, Prithvi -------------- next part -------------- An HTML attachment was scrubbed... URL: From yaldingkao at hotmail.com Sun Apr 11 09:37:42 2010 From: yaldingkao at hotmail.com (Yudong Gao) Date: Sun, 11 Apr 2010 07:37:42 +0000 Subject: How to display "Variable Browser" ? Message-ID: Dear Scilab I'm using the latest version 5.2.1. I couldn't find a variable browser that displays my workspace. Could you please show me how to find the viable browser in 5.2.1? Shouldn't it be somewhere in the "application" menu? but I could find it there.... Help much appreciated!!! _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Sun Apr 11 22:45:48 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sun, 11 Apr 2010 22:45:48 +0200 Subject: [scilab-Users] How to display "Variable Browser" ? In-Reply-To: References: Message-ID: <20100411224548.603862w06xbnspvk@webmail1.univ-lemans.fr> Hello, Yudong Gao a ?crit?: > > Dear Scilab > > I'm using the latest version 5.2.1. I couldn't find a variable > browser that displays my workspace. Could you please show me how to > find the viable browser in 5.2.1? The command is: browsevar > Shouldn't it be somewhere in the "application" menu? AFAIK, it as been unplugged from the menu because the present release is built with TCL/Tk that is not supported by the MacOS X distribution of Scilab. A new improved implementation is in preparation. See http://article.gmane.org/gmane.comp.mathematics.scilab.devel/1676 Regards Samuel From yves.cainaud at solaronix.com Mon Apr 12 14:49:46 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Mon, 12 Apr 2010 14:49:46 +0200 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: References: Message-ID: Is there a way to get the path of the directory where the current executed script is ? Yves From Samuel.Gougeon at univ-lemans.fr Mon Apr 12 15:26:12 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 12 Apr 2010 15:26:12 +0200 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: References: Message-ID: <4BC31F74.4040707@univ-lemans.fr> ----- Message d'origine ----- De : Yves Cainaud Date : 12/04/2010 14:49: > Is there a way to get the path of the directory where the current > executed script is ? get_absolute_file_path(script_filename) Please note that this command works only if the specified file is opened (it is so if it is being executed). The filename must be specified obviously without its path, even any relative one. Samuel From yves.cainaud at solaronix.com Mon Apr 12 15:31:42 2010 From: yves.cainaud at solaronix.com (Yves Cainaud) Date: Mon, 12 Apr 2010 15:31:42 +0200 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: <4BC31F74.4040707@univ-lemans.fr> References: <4BC31F74.4040707@univ-lemans.fr> Message-ID: Great, I will save hundreds of clics with that ! Yves On Apr 12, 2010, at 3:26 PM, Samuel Gougeon wrote: > get_absolute_file_path(script_filename) From bob.hyrsut at wanadoo.fr Mon Apr 12 19:47:37 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Mon, 12 Apr 2010 19:47:37 +0200 (CEST) Subject: PVM and Scilab 5.2 on windows Message-ID: <20816262.401592.1271094457438.JavaMail.www@wwinf1j30> Hello, I'm currently trying to move from Matlab to Scilab and I'd like to use the PVM module but I really don't understand how to activate it : when I try the pvm_start() command, Scilab says that the variable is not defined. Can you help me ? I work on a x86 and x64 (mostly) windows. Thanks for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.hyrsut at wanadoo.fr Mon Apr 12 19:29:19 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Mon, 12 Apr 2010 19:29:19 +0200 (CEST) Subject: PVM and Scilab 5.2 on windows Message-ID: <27220724.400714.1271093359156.JavaMail.www@wwinf1j30> Hello, I'm currently trying to move from Matlab to Scilab and I'd like to use the PVM modul but i really don't understand how to activate it : when i try the pvm_start() command, Scilab says that the variable is not defined. Can you help me ? I work on a x86 and x64 (mostly) windows. Thanks for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bern.Megrey at noaa.gov Mon Apr 12 20:12:11 2010 From: Bern.Megrey at noaa.gov (Bernard A. Megrey) Date: Mon, 12 Apr 2010 11:12:11 -0700 Subject: netcdf files Message-ID: <5A0B0CBE84AA4179BEFB2E476EE79F8B@afsc.noaa.gov> Can anyone tell me if SciLab can read netcdf files? -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.jacquet-lagreze at eurodecision.com Tue Apr 13 12:06:01 2010 From: eric.jacquet-lagreze at eurodecision.com (=?iso-8859-1?Q?Eric_Jacquet-Lagr=E8ze?=) Date: Tue, 13 Apr 2010 12:06:01 +0200 Subject: [scilab-Users] Umpfpack dll In-Reply-To: <5A0B0CBE84AA4179BEFB2E476EE79F8B@afsc.noaa.gov> References: <5A0B0CBE84AA4179BEFB2E476EE79F8B@afsc.noaa.gov> Message-ID: <003c01cadaf0$ec1e10c0$c45a3240$@jacquet-lagreze@eurodecision.com> Hello Has someone experience using UMPFPACK library (dll under windows) ? I would like to now how to access to the Umfpack method for solving spare linear systems using scilab-5.2.1 A = sparse( [ 2 3 0 0 0; 3 0 4 0 6; 0 -1 -3 2 0; 0 0 1 0 0; 0 4 2 0 1] ); b = [8 ; 45; -3; 3; 19]; Lusolve works well x=lusolve(A,b) x = 1. 2. 3. 4. 5. norm(A*x-b) ans = 0. But when I call umfpack, it does not find the dll: >x = umfpack(b,"/",A) !--error 999 Impossible de charger la biblioth?que umfpack.dll : La proc?dure sp?cifi?e est introuvable. Nevertheless umfpack.dll exists in the directory C:\Program Files\scilab-5.2.1\bin Eric JACQUET-LAGREZE EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Office : +33 (0)1 39 07 12 40 Mobile : +33 (0)6 07 32 36 23 www.eurodecision.com cid:image001.gif at 01CAB145.F4B20E50 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3345 bytes Desc: not available URL: From mathieu.dubois at limsi.fr Tue Apr 13 13:56:58 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 13 Apr 2010 13:56:58 +0200 Subject: [scilab-Users] script executable In-Reply-To: References: Message-ID: <4BC45C0A.3020607@limsi.fr> Hello, As far as I know, the answer is no... Maybe you can try to use the Java API to embed the scilab engine in your application... Mathieu From sylvestre.ledru at scilab.org Tue Apr 13 14:03:16 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 13 Apr 2010 14:03:16 +0200 Subject: [scilab-Users] script executable In-Reply-To: <4BC45C0A.3020607@limsi.fr> References: <4BC45C0A.3020607@limsi.fr> Message-ID: <1271160196.12987.1961.camel@korcula.inria.fr> Le mardi 13 avril 2010 ? 13:56 +0200, Mathieu Dubois a ?crit : > Hello, > > As far as I know, the answer is no... > > Maybe you can try to use the Java API to embed the scilab engine in your > application... Well, you can also have the Scilab engine available without the Java VM. See Call_Scilab: http://www.scilab.org/product/man/call_scilab.html You can also give a try to Scilab2C for such things: http://atoms.scilab.org/toolboxes/scilab2c/ but obviously, just a subset of Scilab is available. Sylvestre From anders at simbalsyd.se Wed Apr 14 22:19:29 2010 From: anders at simbalsyd.se (Anders Sneckenborg) Date: Wed, 14 Apr 2010 22:19:29 +0200 Subject: lowpassfilter Message-ID: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmontezano at hotmail.com Wed Apr 14 22:32:37 2010 From: dmontezano at hotmail.com (=?gb2312?B?s88g1ec=?=) Date: Wed, 14 Apr 2010 20:32:37 +0000 Subject: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> Message-ID: Hi Anders, In your script you have not defined variable f2. Regards, Dan _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Wed Apr 14 22:41:42 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Wed, 14 Apr 2010 20:41:42 +0000 (GMT) Subject: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> Message-ID: <288191.6565.qm@web28308.mail.ukl.yahoo.com> Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Wed Apr 14 23:00:29 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Wed, 14 Apr 2010 14:00:29 -0700 (PDT) Subject: Fw: SCILAB hangs when used in try-catch Message-ID: <390137.80826.qm@web28301.mail.ukl.yahoo.com> Hi SCILAB community, !Scilab Version: !5.2.0.1266391513 ! ! !Operating System: !Windows 7 6.1 ! ! !Java version : !1.6.0_18 ! ! !Java runtime information : !Java(TM) SE Runtime Environment (build 1.6.0_18-b07) ! ! !Java vm information : !Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) ! ! !Vendor specification: !Sun Microsystems Inc. I have a problem running a try-catch-end block when a while loop in inside it. For example, the following code just create magic matrices from 4 to 1 but at x=2, an error supposed to happen. The error is correctly detected, but I have to restart scilab because it does not respond.. x=5; try while (x>=0) x=x-1 disp("x sollte positiv sein") if (x < 2) then t = x +"sr"; else z=testmatrix("magic",x) end end catch x disp('catch: Ein Fehler ist aufgetreten'); z=testmatrix("magic",10) end I can not find the reason of this failure in the mailing list... maybe someone know something about it?? Regards, Julio Gonzalez-Saenz www.part-time-scientist.com www.neex-technologies.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From anders at simbalsyd.se Thu Apr 15 07:14:38 2010 From: anders at simbalsyd.se (Anders Sneckenborg) Date: Thu, 15 Apr 2010 07:14:38 +0200 Subject: SV: [scilab-Users] lowpassfilter In-Reply-To: <288191.6565.qm@web28308.mail.ukl.yahoo.com> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> Message-ID: <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local> Hi again I edited the code (removed dead code) and here it is again. It will execute exactly as before but without the disturbing dead code. //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- /Anders Fr?n: Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] Skickat: den 14 april 2010 22:42 Till: users at lists.scilab.org ?mne: Re: [scilab-Users] lowpassfilter Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Thu Apr 15 11:31:29 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Thu, 15 Apr 2010 09:31:29 +0000 (GMT) Subject: SV: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local> Message-ID: <563199.34022.qm@web28311.mail.ukl.yahoo.com> Hi Anders, I you plot the freq response of iir you see that the max value is around 0.75 same as your graphic shows.. I will take a closer look at the iir response.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Thu, 15 April, 2010 7:14:38 Subject: SV: [scilab-Users] lowpassfilter Hi again I edited the code (removed dead code) and here it is again. It will execute exactly as before but without the disturbing dead code. //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- /Anders Fr?n:Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] Skickat: den 14 april 2010 22:42 Till: users at lists.scilab.org ?mne: Re: [scilab-Users] lowpassfilter Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From:Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders I -------------- next part -------------- An HTML attachment was scrubbed... URL: From anders at simbalsyd.se Thu Apr 15 11:50:07 2010 From: anders at simbalsyd.se (Anders Sneckenborg) Date: Thu, 15 Apr 2010 11:50:07 +0200 Subject: SV: SV: [scilab-Users] lowpassfilter In-Reply-To: <563199.34022.qm@web28311.mail.ukl.yahoo.com> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local>,<563199.34022.qm@web28311.mail.ukl.yahoo.com> Message-ID: <14C7CA18C15381499784EEA3E73E5BF4023082C855@PRISMA.simbalsyd.local> Hi Julio How do you plot the freq response? Regards Anders ________________________________________ Fr?n: Julio Gonzalez-Saenz [julio.gonzalez at ymail.com] Skickat: den 15 april 2010 11:31 Till: users at lists.scilab.org ?mne: Re: SV: [scilab-Users] lowpassfilter Hi Anders, I you plot the freq response of iir you see that the max value is around 0.75 same as your graphic shows.. I will take a closer look at the iir response.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Thu, 15 April, 2010 7:14:38 Subject: SV: [scilab-Users] lowpassfilter Hi again I edited the code (removed dead code) and here it is again. It will execute exactly as before but without the disturbing dead code. //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- /Anders Fr?n: Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] Skickat: den 14 april 2010 22:42 Till: users at lists.scilab.org ?mne: Re: [scilab-Users] lowpassfilter Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders I From julio.gonzalez at ymail.com Thu Apr 15 16:32:13 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Thu, 15 Apr 2010 14:32:13 +0000 (GMT) Subject: SV: SV: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF4023082C855@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local>,<563199.34022.qm@web28311.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF4023082C855@PRISMA.simbalsyd.local> Message-ID: <448414.37605.qm@web28303.mail.ukl.yahoo.com> Hi Anders, I ran this script and the plot is the freq response. it looks like a lowpass filter but not like I am used to it.. clear clc f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); [hzm,fr]=frmag(hz,256); //<-- 256 points.. you can change this value.. plot2d(fr',hzm') ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Thu, 15 April, 2010 11:50:07 Subject: SV: SV: [scilab-Users] lowpassfilter Hi Julio How do you plot the freq response? Regards Anders ________________________________________ Fr?n: Julio Gonzalez-Saenz [julio.gonzalez at ymail.com] Skickat: den 15 april 2010 11:31 Till: users at lists.scilab.org ?mne: Re: SV: [scilab-Users] lowpassfilter Hi Anders, I you plot the freq response of iir you see that the max value is around 0.75 same as your graphic shows.. I will take a closer look at the iir response.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Thu, 15 April, 2010 7:14:38 Subject: SV: [scilab-Users] lowpassfilter Hi again I edited the code (removed dead code) and here it is again. It will execute exactly as before but without the disturbing dead code. //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- /Anders Fr?n: Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] Skickat: den 14 april 2010 22:42 Till: users at lists.scilab.org ?mne: Re: [scilab-Users] lowpassfilter Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders I -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.jacquet-lagreze at eurodecision.com Thu Apr 15 16:59:45 2010 From: eric.jacquet-lagreze at eurodecision.com (=?iso-8859-1?Q?Eric_Jacquet-Lagr=E8ze?=) Date: Thu, 15 Apr 2010 16:59:45 +0200 Subject: [scilab-Users] Umpfpack dll References: <5A0B0CBE84AA4179BEFB2E476EE79F8B@afsc.noaa.gov> Message-ID: <003201cadcac$494fc290$dbef47b0$@jacquet-lagreze@eurodecision.com> Hello I did found the solution to my previous problem (impossibility to run Umpfpack dll under windows: When installing UMFPACK, this component is proposed, but after there are mentions to the libraries. cid:image002.png at 01CADC05.ECE5A2A0 The default option ?Intel Kernel Library for Scilab?, does not work. If we select teh library Blas, Lapack de r?f?rence pour Scilab, it works well : cid:image003.png at 01CADC06.04C69C80 Eric JACQUET-LAGREZE Directeur associ? / Associate manager EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Office : +33 (0)1 39 07 12 40 Mobile : +33 (0)6 07 32 36 23 www.eurodecision.com cid:image001.gif at 01CAB145.F4B20E50 De : Eric Jacquet-Lagr?ze [mailto:eric.jacquet-lagreze at eurodecision.com] Envoy? : mardi 13 avril 2010 12:06 ? : 'users at lists.scilab.org' Objet : [scilab-Users] Umpfpack dll Hello Has someone experience using UMPFPACK library (dll under windows) ? I would like to now how to access to the Umfpack method for solving spare linear systems using scilab-5.2.1 A = sparse( [ 2 3 0 0 0; 3 0 4 0 6; 0 -1 -3 2 0; 0 0 1 0 0; 0 4 2 0 1] ); b = [8 ; 45; -3; 3; 19]; Lusolve works well x=lusolve(A,b) x = 1. 2. 3. 4. 5. norm(A*x-b) ans = 0. But when I call umfpack, it does not find the dll: >x = umfpack(b,"/",A) !--error 999 Impossible de charger la biblioth?que umfpack.dll : La proc?dure sp?cifi?e est introuvable. Nevertheless umfpack.dll exists in the directory C:\Program Files\scilab-5.2.1\bin Eric JACQUET-LAGREZE EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Office : +33 (0)1 39 07 12 40 Mobile : +33 (0)6 07 32 36 23 www.eurodecision.com cid:image001.gif at 01CAB145.F4B20E50 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 24226 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 24366 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.gif Type: image/gif Size: 3345 bytes Desc: not available URL: From allan.cornet at scilab.org Thu Apr 15 17:03:44 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 15 Apr 2010 17:03:44 +0200 Subject: [scilab-Users] Umpfpack dll In-Reply-To: <003201cadcac$494fc290$dbef47b0$@jacquet-lagreze@eurodecision.com> References: <5A0B0CBE84AA4179BEFB2E476EE79F8B@afsc.noaa.gov> <003201cadcac$494fc290$dbef47b0$@jacquet-lagreze@eurodecision.com> Message-ID: <003701cadcac$d7c4b940$874e2bc0$@cornet@scilab.org> Hi, Fixed in nightly build (branch 5.2) and next 5.2.2 http://bugzilla.scilab.org/show_bug.cgi?id=6897 Thanks you Allan CORNET -- ------------------------------ Allan CORNET ------------------------------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France ------------------------------ De : Eric Jacquet-Lagr?ze [mailto:eric.jacquet-lagreze at eurodecision.com] Envoy? : jeudi 15 avril 2010 17:00 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Umpfpack dll Hello I did found the solution to my previous problem (impossibility to run Umpfpack dll under windows: When installing UMFPACK, this component is proposed, but after there are mentions to the libraries. cid:image002.png at 01CADC05.ECE5A2A0 The default option ?Intel Kernel Library for Scilab?, does not work. If we select teh library Blas, Lapack de r?f?rence pour Scilab, it works well : cid:image003.png at 01CADC06.04C69C80 Eric JACQUET-LAGREZE Directeur associ? / Associate manager EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Office : +33 (0)1 39 07 12 40 Mobile : +33 (0)6 07 32 36 23 www.eurodecision.com cid:image001.gif at 01CAB145.F4B20E50 De : Eric Jacquet-Lagr?ze [mailto:eric.jacquet-lagreze at eurodecision.com] Envoy? : mardi 13 avril 2010 12:06 ? : 'users at lists.scilab.org' Objet : [scilab-Users] Umpfpack dll Hello Has someone experience using UMPFPACK library (dll under windows) ? I would like to now how to access to the Umfpack method for solving spare linear systems using scilab-5.2.1 A = sparse( [ 2 3 0 0 0; 3 0 4 0 6; 0 -1 -3 2 0; 0 0 1 0 0; 0 4 2 0 1] ); b = [8 ; 45; -3; 3; 19]; Lusolve works well x=lusolve(A,b) x = 1. 2. 3. 4. 5. norm(A*x-b) ans = 0. But when I call umfpack, it does not find the dll: >x = umfpack(b,"/",A) !--error 999 Impossible de charger la biblioth?que umfpack.dll : La proc?dure sp?cifi?e est introuvable. Nevertheless umfpack.dll exists in the directory C:\Program Files\scilab-5.2.1\bin Eric JACQUET-LAGREZE EURODECISION 9A rue de la Porte de Buc 78000 VERSAILLES Office : +33 (0)1 39 07 12 40 Mobile : +33 (0)6 07 32 36 23 www.eurodecision.com cid:image001.gif at 01CAB145.F4B20E50 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24226 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 24366 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.gif Type: image/gif Size: 3345 bytes Desc: not available URL: From sdr at durietz.se Thu Apr 15 17:06:00 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 15 Apr 2010 17:06:00 +0200 Subject: SV: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local> Message-ID: <4BC72B58.4080308@durietz.se> Hi Anders, everything is OK. At the cut-off frequency the amplitude of the filter output (your red curve) should be 1/sqrt(2) (- 3 dB), i.e. around 0.7, and it actually is. Regards Stefan On 2010-04-15 07:14, Anders Sneckenborg wrote: -------------------- > Hi again > > > > I edited the code (removed dead code) and here it is again. It will > execute exactly as before but without the disturbing dead code. > > > > //--------------------------- > > f1 = 0.1; //Hz > > tSamp = 0.01; //s > > tMax = 200; > > > > t = 0:tSamp:tMax; > > y = sin(2*%pi*f1*t); > > > > Order = 1; > > Fcutoff = 0.1; > > Fs = 1/tSamp; > > hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); > > sl = tf2ss(hz); > > yf = flts(y,sl); > > > > plot(t,y,'-b'); > > plot(t,yf,'-r'); > > //--------------------------- > > > > /Anders > > > > > > *Fr?n:* Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] > *Skickat:* den 14 april 2010 22:42 > *Till:* users at lists.scilab.org > *?mne:* Re: [scilab-Users] lowpassfilter > > > > Hi Anders, > > Can you please double check the semicolon on the function y definition? > You also have a f1 and f2 but only f1 is defined.. > > Regards, > > > Julio Gonzalez-Saenz > www.part-time-scientists.com > www.neex-technologies.com > > > > > > ------------------------------------------------------------------------ > > *From:* Anders Sneckenborg > *To:* "users at lists.scilab.org" > *Sent:* Wed, 14 April, 2010 22:19:29 > *Subject:* [scilab-Users] lowpassfilter > > Hi > > > > When running the following script I expected the filtered signal to have > an amplitude of 0.5. > > My intention was to lowpassfilter a signal with the same frequency as > the cutoff frequency. Am I doing something wrong? > > > > //--------------------------- > > f1 = 0.1; //Hz > > tSamp = 0.01; //s > > tMax = 200; > > > > t = 0:tSamp:tMax; > > y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); > > > > Order = 1; > > Fcutoff = 0.1; > > Fs = 1/tSamp; > > hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); > > sl = tf2ss(hz); > > yf = flts(y,sl); > > > > plot(t,y,'-b'); > > plot(t,yf,'-r'); > > //--------------------------- > > > > Best regards > > Anders > > > > > From dmontezano at hotmail.com Thu Apr 15 17:11:45 2010 From: dmontezano at hotmail.com (=?utf-8?B?6K+aIOeUhA==?=) Date: Thu, 15 Apr 2010 15:11:45 +0000 Subject: SV: SV: [scilab-Users] lowpassfilter In-Reply-To: <14C7CA18C15381499784EEA3E73E5BF4023082C855@PRISMA.simbalsyd.local> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local>,<288191.6565.qm@web28308.mail.ukl.yahoo.com>,<14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local>,<563199.34022.qm@web28311.mail.ukl.yahoo.com>,<14C7CA18C15381499784EEA3E73E5BF4023082C855@PRISMA.simbalsyd.local> Message-ID: Hello Anders, Your filter is correctly designed and the magnitude response is also correct. Check your graphic and you will see that the peak value of your waveform is 0.707 (i.e. sqrt(0.5)) which is the correct value for the 1st order Butterworth filter you designed. Rgds, Dan ________________________________________________ Hi Julio How do you plot the freq response? Regards Anders ________________________________________ Fr?n: Julio Gonzalez-Saenz [julio.gonzalez at ymail.com] Skickat: den 15 april 2010 11:31 Till: users at lists.scilab.org ?mne: Re: SV: [scilab-Users] lowpassfilter Hi Anders, I you plot the freq response of iir you see that the max value is around 0.75 same as your graphic shows.. I will take a closer look at the iir response.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Thu, 15 April, 2010 7:14:38 Subject: SV: [scilab-Users] lowpassfilter Hi again I edited the code (removed dead code) and here it is again. It will execute exactly as before but without the disturbing dead code. //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = sin(2*%pi*f1*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- /Anders Fr?n: Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com] Skickat: den 14 april 2010 22:42 Till: users at lists.scilab.org ?mne: Re: [scilab-Users] lowpassfilter Hi Anders, Can you please double check the semicolon on the function y definition? You also have a f1 and f2 but only f1 is defined.. Regards, Julio Gonzalez-Saenz www.part-time-scientists.com www.neex-technologies.com ________________________________ From: Anders Sneckenborg To: "users at lists.scilab.org" Sent: Wed, 14 April, 2010 22:19:29 Subject: [scilab-Users] lowpassfilter Hi When running the following script I expected the filtered signal to have an amplitude of 0.5. My intention was to lowpassfilter a signal with the same frequency as the cutoff frequency. Am I doing something wrong? //--------------------------- f1 = 0.1; //Hz tSamp = 0.01; //s tMax = 200; t = 0:tSamp:tMax; y = 1*sin(2*%pi*f1*t); + 0.5*sin(2*%pi*f2*t); Order = 1; Fcutoff = 0.1; Fs = 1/tSamp; hz = iir(Order,'lp','butt',[Fcutoff/Fs 0],[0 0]); sl = tf2ss(hz); yf = flts(y,sl); plot(t,y,'-b'); plot(t,yf,'-r'); //--------------------------- Best regards Anders I _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmontezano at hotmail.com Thu Apr 15 17:45:04 2010 From: dmontezano at hotmail.com (=?gb2312?B?s88g1ec=?=) Date: Thu, 15 Apr 2010 15:45:04 +0000 Subject: markov state sequence with grand() In-Reply-To: <4BC72B58.4080308@durietz.se> References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local>,<4BC72B58.4080308@durietz.se> Message-ID: Hello fellow Scilab Users, I am using the grand() function to generate a state sequence for a 2-state Markov chain. It works fine to generate the sequence, but I don't quite understand how the initial state parameter 'x0' works. Here is the code I use: //------------------- N=50; //length of sequence P=[0.6 0.4;0.1 0.9]; //state transition matrix q=grand(N,'markov',P,[1]); //initial state is '1' q=-(q*2.0-3.0); //normalize to -1:+1 range clf(); plot2d3([1:N],[q],[0],rect=[0,-1.5,N,1.5],leg='2-state Markov chain'); //------------------ If you run this piece of code a few times, sometimes it will start with state '1', but not always. >From the help page I understand that: - if I want the chain to start in state '1', then I just have to make 'x0 = [1]', as in the code above; - if I want the state sequence to start from state '2', then I should do 'x0=[2]'. - if I want to get paths starting from both states I would make x0=[1 2], and each column of q (the output) would represent a path starting at the corresponding state. However, if I make x0=[1] or x0=[2], I get realizations starting from any of the states (sometimes state 1 and sometimes state 2) and that does not make much sense to me, because then, what are the limiting-state probabilities that the function is using to choose the initial state? According to what is explained in the grand() help page, if I make, for example, x0=[1], shouldn't the sequence 'always' start in state 1? I appreciate any help and clarifications on the behaviour of this function. Best regards to all, Dan _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From grodriguez at frsn.utn.edu.ar Thu Apr 15 17:37:44 2010 From: grodriguez at frsn.utn.edu.ar (Rodriguez, Georgina) Date: Thu, 15 Apr 2010 12:37:44 -0300 Subject: about guis Message-ID: Hello, I want to know about showing a matrix in a editable uicontrol, in a GUI. Is it possible? Thanks, Georgina Rodr?guez -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.guffens at googlemail.com Thu Apr 15 19:12:55 2010 From: vincent.guffens at googlemail.com (vinsz) Date: Thu, 15 Apr 2010 18:12:55 +0100 Subject: [scilab-Users] markov state sequence with grand() In-Reply-To: References: <14C7CA18C15381499784EEA3E73E5BF402308135F5@PRISMA.simbalsyd.local> <288191.6565.qm@web28308.mail.ukl.yahoo.com> <14C7CA18C15381499784EEA3E73E5BF402308135F8@PRISMA.simbalsyd.local>,<4BC72B58.4080308@durietz.se> Message-ID: <4BC74917.4080701@gmail.com> On 15/04/2010 16:45, ? ? wrote: > Hello fellow Scilab Users, > > I am using the grand() function to generate a state sequence for a > 2-state Markov chain. > It works fine to generate the sequence, but I don't quite understand > how the initial state parameter 'x0' works. Here is the code I use: > > //------------------- > N=50; //length of sequence > P=[0.6 0.4;0.1 0.9]; //state transition matrix > q=grand(N,'markov',P,[1]); //initial state is '1' > q=-(q*2.0-3.0); //normalize to -1:+1 range > > clf(); > plot2d3([1:N],[q],[0],rect=[0,-1.5,N,1.5],leg='2-state Markov chain'); > //------------------ > > If you run this piece of code a few times, sometimes it will start > with state '1', but not always. > > From the help page I understand that: > > - if I want the chain to start in state '1', then I just have to make > 'x0 = [1]', as in the code above; > > - if I want the state sequence to start from state '2', then I should > do 'x0=[2]'. > > - if I want to get paths starting from both states I would make x0=[1 > 2], and each column of q (the output) would represent a path starting > at the corresponding state. > > However, if I make x0=[1] or x0=[2], I get realizations starting from > any of the states (sometimes state 1 and sometimes state 2) and that > does not make much sense to me, because then, what are the > limiting-state probabilities that the function is using to choose the > initial state? > According to what is explained in the grand() help page, if I make, > for example, x0=[1], shouldn't the sequence 'always' start in state 1? > > I appreciate any help and clarifications on the behaviour of this > function. > Hi Dan, I think the initial state is not reported in the grand() output. You therefore see the other state according to your transition matrix. For instance: N = 10000 b = zeros(N, 1) ; for i=1:N b(i) = grand(1,'markov',P,[1]); end ii = find(b==2); size(ii,'*')/N ans = 0.4095 This is close enough to the probability to go from state 1 to state 2 being in state 1. Hope it helps, -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmontezano at hotmail.com Thu Apr 15 19:33:04 2010 From: dmontezano at hotmail.com (=?utf-8?B?6K+aIOeUhA==?=) Date: Thu, 15 Apr 2010 17:33:04 +0000 Subject: =?utf-8?Q?Re:_[scila?= =?utf-8?Q?b-Users]_m?= =?utf-8?Q?arkov_stat?= =?utf-8?Q?e_sequence?= =?utf-8?Q?_with_gran?= =?utf-8?B?ZCgp4oCP?= Message-ID: Hello vinsz, Thank you very much for taking time to help me. Yes, you are correct. I see how the function works now. The first state in the generated sequence is not the one indicated by the parameter but rather the next one in the chain starting from that initial state. All very clear now. Thank you again. Dan ______________________________ On 15/04/2010 16:45, ? ? wrote: Hello fellow Scilab Users, I am using the grand() function to generate a state sequence for a 2-state Markov chain. It works fine to generate the sequence, but I don't quite understand how the initial state parameter 'x0' works. Here is the code I use: //------------------- N=50; //length of sequence P=[0.6 0.4;0.1 0.9]; //state transition matrix q=grand(N,'markov',P,[1]); //initial state is '1' q=-(q*2.0-3.0); //normalize to -1:+1 range clf(); plot2d3([1:N],[q],[0],rect=[0,-1.5,N,1.5],leg='2-state Markov chain'); //------------------ If you run this piece of code a few times, sometimes it will start with state '1', but not always. From the help page I understand that: - if I want the chain to start in state '1', then I just have to make 'x0 = [1]', as in the code above; - if I want the state sequence to start from state '2', then I should do 'x0=[2]'. - if I want to get paths starting from both states I would make x0=[1 2], and each column of q (the output) would represent a path starting at the corresponding state. However, if I make x0=[1] or x0=[2], I get realizations starting from any of the states (sometimes state 1 and sometimes state 2) and that does not make much sense to me, because then, what are the limiting-state probabilities that the function is using to choose the initial state? According to what is explained in the grand() help page, if I make, for example, x0=[1], shouldn't the sequence 'always' start in state 1? I appreciate any help and clarifications on the behaviour of this function. Hi Dan, I think the initial state is not reported in the grand() output. You therefore see the other state according to your transition matrix. For instance: N = 10000 b = zeros(N, 1) ; for i=1:N b(i) = grand(1,'markov',P,[1]); end ii = find(b==2); size(ii,'*')/N ans = 0.4095 This is close enough to the probability to go from state 1 to state 2 being in state 1. Hope it helps, _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From transfer at transfer.ro Fri Apr 16 08:52:44 2010 From: transfer at transfer.ro (transfer.ro) Date: Fri, 16 Apr 2010 09:52:44 +0300 (EEST) Subject: petrialucian@yahoo.com sent you the following files : notepad.exe Message-ID: <20100416065245.037601008251@s1.webmaker.ro> An HTML attachment was scrubbed... URL: From transfer at transfer.ro Fri Apr 16 09:36:45 2010 From: transfer at transfer.ro (transfer.ro) Date: Fri, 16 Apr 2010 10:36:45 +0300 (EEST) Subject: petrialucian@yahoo.com sent you the following files : notepad.exe Message-ID: <20100416073645.865D4100825E@s1.webmaker.ro> An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Apr 16 09:50:08 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 16 Apr 2010 09:50:08 +0200 Subject: [scilab-Users] petrialucian@yahoo.com sent you the following files : notepad.exe In-Reply-To: <20100416073645.865D4100825E@s1.webmaker.ro> References: <20100416073645.865D4100825E@s1.webmaker.ro> Message-ID: <1271404208.29175.22006.camel@korcula.inria.fr> Please, could you avoid sending email with notepad.exe, your email are hard to read on some mailers. Thanks Sylvestre Le vendredi 16 avril 2010 ? 10:36 +0300, transfer.ro a ?crit : > Transfer.ro > petrialucian at yahoo.com ti-a trimis > fisiere folosind Transfer.ro > impreuna cu urmatorul mesaj: > > > petrialucian at yahoo.com has sent you > some files using Transfer.ro with > the following message: > > > Pls Help me with this program. What > i want to do is : > I have 1 txt file that looks like > this : > /Curent : 99 > /Power : 12345 > /Name : ABCDEF > /Presure : 991234 > /Name1 : dfmne > ------------------------- > 12345 > 678910 > -111213 > -141516 > -171819 > > And i what to process the > information. So if i enter from the > keyboard Curent the program should > show me it\'s value, that is \"99 > \"...and soo on. Thenumbers below > the \"-----------\" should be in 2 > vectors, one V1 for positive nr and > V2 for negative. I made this for a > startes but it doesn\'t work :( . > Pls give me some hints soo and cand > get on with it ! TKS A LOT > > /// > strMrVarNames =[\"Curent\";\"Power > \";\"Torque\";\"Presure\";\"Angle > \"]; > strMrValues = [\"\";\"\";\"\";\"\"; > \"\"]; > [txt]=mgetl(\'Var_fin.txt\'); //get > all lines > iNrOfLines=size (txt,1); > iNrOfLines1=size(strMrVarNames,1) > for i=1:iNrOfLines > txt(i); > //if we have \ '/\' > if strindex( txt(i),\'/\') == 1 > then > > A=(tokens(txt(i),[\'/\',\': > \']))\'; //Splits text in 2 coloms > (value and name) > //A(1,$); //gives the value > //A($,1); //gives the variable > > Name=A($,1) > Value=A(1,$); > for j=1:iNrOfLines1 > val; > strMrVarNames(j); > if > strcmp(Name,strMrVarNames(i,j))==1 > then > disp(\"OK\") > strMrValues=Value; > else strMrValues(i)=\"null\"; > > end//if > end//for > end //if > end > strMrValues > strMrVarNames > > Fisierele care ti-au fost > transferate sunt > notepad.exe > Click pe linkul de mai jos pentru a > le downloada: > Click on the link below to download > the files: > http://www.transfer.ro/storage/transfer_ro-16Apr-6fea271b8c.zip > Fisierele vor fi sterse automat > dupa 10 zile. > The files will be deleted > automaticaly after 10 days. > Pentru a salva fisierele in > calculator click iar apoi alegeti' > Save AS' > Transfer.ro este un serviciu > profesional securizat care permite > transferul de fisiere mari (pana la > 1GB) catre orice adresa de e-mail. > > Pentru sugestii,probleme sau > feedback ne puteti contacta la > simina at transfer.ro sau telefonic > Luni-Vineri intre orele 10-18 la > 031-710.10.73 > > > > 12345 678910 -111213 -141516 -171819 And i what to process the information. So if i enter from the keyboard Curent the program should show me it\'s value, that is \"99\"...and soo on. Thenumbers below the \"-----------\" should be in 2 vectors, one V1 for positive nr and V2 for negative. I made this for a startes but it doesn\'t work :( . Pls give me some hints soo and cand get on with it ! TKS A LOT /// strMrVarNames =[\"Curent\";\"Power\";\"Torque\";\"Presure\";\"Angle\"]; strMrValues = [\"\";\"\";\"\";\"\";\"\"]; [txt]=mgetl(\'Var_fin.txt\'); //get all lines iNrOfLines= size (txt,1); iNrOfLines1=size(strMrVarNames,1) for i=1:iNrOfLines txt(i); //if we have \'/\' if strindex( txt(i),\'/\') == 1 then A=(tokens(txt(i),[\'/\',\':\']))\'; //Splits text in 2 coloms (value and name) //A(1,$); //gives the value //A($,1); //gives the variable Name=A($,1) Value=A(1,$); for j=1:iNrOfLines1 val; strMrVarNames(j); if strcmp(Name,strMrVarNames(i,j))==1 then disp(\"OK\") strMrValues=Value; else strMrValues(i)=\"null\"; end//if end//for end //if end strMrValues strMrVarNames<< From Samuel.Gougeon at univ-lemans.fr Fri Apr 16 12:23:43 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 16 Apr 2010 12:23:43 +0200 Subject: [scilab-Users] about guis In-Reply-To: References: Message-ID: <4BC83AAF.2020901@univ-lemans.fr> Hello Rodriguez, ---- Message d'origine ----- De : Rodriguez, Georgina Date : 15/04/2010 17:37: > > Hello, I want to know about showing a matrix in a editable uicontrol, > in a GUI. Is it possible? > Yes, with editvar. try: a=rand(10,10); editvar a or: b=x_matrix("a",a); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Fri Apr 16 15:55:59 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Fri, 16 Apr 2010 13:55:59 +0000 (GMT) Subject: [scilab-Users] petrialucian@yahoo.com sent you the following files : notepad.exe In-Reply-To: <1271404208.29175.22006.camel@korcula.inria.fr> References: <20100416073645.865D4100825E@s1.webmaker.ro> <1271404208.29175.22006.camel@korcula.inria.fr> Message-ID: <202900.68220.qm@web28313.mail.ukl.yahoo.com> Hi Petria, I have tried to put your file in a nice format. Can you please double check if the instructions are correctly? You previous email is difficult to read.. Julio www.part-time-scientists.com www.neex-technologies.com strMrVarNames =[\"Curent\";\"Power\";\"Torque\";\"Presure\";\"Angle\"]; strMrValues = [\"\";\"\";\"\";\"\";\"\"]; [txt]=mgetl(\'Var_fin.txt\'); //get all lines iNrOfLines=size (txt,1); iNrOfLines1=size(strMrVarNames,1); for i=1:iNrOfLines txt(i); //if we have \ '/\' if strindex( txt(i),\'/\') == 1 then A=(tokens(txt(i),[\'/\',\':\']))\'; //Splits text in 2 coloms (value and name) //A(1,$); //gives the value //A($,1); //gives the variable Name=A($,1) Value=A(1,$); for j=1:iNrOfLines1 val; strMrVarNames(j); if strcmp(Name,strMrVarNames(i,j))==1 then disp(\"OK\") strMrValues=Value; else strMrValues(i)=\"null\"; end//if end//for end //if end strMrValues strMrVarNames ________________________________ From: Sylvestre Ledru To: users at lists.scilab.org Sent: Fri, 16 April, 2010 9:50:08 Subject: Re: [scilab-Users] petrialucian at yahoo.com sent you the following files : notepad.exe Please, could you avoid sending email with notepad.exe, your email are hard to read on some mailers. Thanks Sylvestre Le vendredi 16 avril 2010 ? 10:36 +0300, transfer.ro a ?crit : > Transfer.ro > petrialucian at yahoo.com ti-a trimis > fisiere folosind Transfer.ro > impreuna cu urmatorul mesaj: > > > petrialucian at yahoo.com has sent you > some files using Transfer.ro with > the following message: > > > Pls Help me with this program. What > i want to do is : > I have 1 txt file that looks like > this : > /Curent : 99 > /Power : 12345 > /Name : ABCDEF > /Presure : 991234 > /Name1 : dfmne > ------------------------- > 12345 > 678910 > -111213 > -141516 > -171819 > > And i what to process the > information. So if i enter from the > keyboard Curent the program should > show me it\'s value, that is \"99 > \"...and soo on. Thenumbers below > the \"-----------\" should be in 2 > vectors, one V1 for positive nr and > V2 for negative. I made this for a > startes but it doesn\'t work :( . > Pls give me some hints soo and cand > get on with it ! TKS A LOT > > /// > strMrVarNames =[\"Curent\";\"Power > \";\"Torque\";\"Presure\";\"Angle > \"]; > strMrValues = [\"\";\"\";\"\";\"\"; > \"\"]; > [txt]=mgetl(\'Var_fin.txt\'); //get > all lines > iNrOfLines=size (txt,1); > iNrOfLines1=size(strMrVarNames,1) > for i=1:iNrOfLines > txt(i); > //if we have \ '/\' > if strindex( txt(i),\'/\') == 1 > then > > A=(tokens(txt(i),[\'/\',\': > \']))\'; //Splits text in 2 coloms > (value and name) > //A(1,$); //gives the value > //A($,1); //gives the variable > > Name=A($,1) > Value=A(1,$); > for j=1:iNrOfLines1 > val; > strMrVarNames(j); > if > strcmp(Name,strMrVarNames(i,j))==1 > then > disp(\"OK\") > strMrValues=Value; > else strMrValues(i)=\"null\"; > > end//if > end//for > end //if > end > strMrValues > strMrVarNames > > Fisierele care ti-au fost > transferate sunt > notepad.exe > Click pe linkul de mai jos pentru a > le downloada: > Click on the link below to download > the files: > http://www.transfer.ro/storage/transfer_ro-16Apr-6fea271b8c.zip > Fisierele vor fi sterse automat > dupa 10 zile. > The files will be deleted > automaticaly after 10 days. > Pentru a salva fisierele in > calculator click iar apoi alegeti' > Save AS' > Transfer.ro este un serviciu > profesional securizat care permite > transferul de fisiere mari (pana la > 1GB) catre orice adresa de e-mail. > > Pentru sugestii,probleme sau > feedback ne puteti contacta la > simina at transfer.ro sau telefonic > Luni-Vineri intre orele 10-18 la > 031-710.10.73 > > > > 12345 678910 -111213 -141516 -171819 And i what to process the information. So if i enter from the keyboard Curent the program should show me it\'s value, that is \"99\"...and soo on. Thenumbers below the \"-----------\" should be in 2 vectors, one V1 for positive nr and V2 for negative. I made this for a startes but it doesn\'t work :( . Pls give me some hints soo and cand get on with it ! TKS A LOT /// strMrVarNames =[\"Curent\";\"Power\";\"Torque\";\"Presure\";\"Angle\"]; strMrValues = [\"\";\"\";\"\";\"\";\"\"]; [txt]=mgetl(\'Var_fin.txt\'); //get all lines iNrOfLines= size (txt,1); iNrOfLines1=size(strMrVarNames,1) for i=1:iNrOfLines txt(i); //if we have \'/\' if strindex( txt(i),\'/\') == 1 then A=(tokens(txt(i),[\'/\',\':\']))\'; //Splits text in 2 coloms (value and name) //A(1,$); //gives the value //A($,1); //gives the variable Name=A($,1) Value=A(1,$); for j=1:iNrOfLines1 val; strMrVarNames(j); if strcmp(Name,strMrVarNames(i,j))==1 then disp(\"OK\") strMrValues=Value; else strMrValues(i)=\"null\"; end//if end//for end //if end strMrValues strMrVarNames<< -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Fri Apr 16 16:36:34 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Fri, 16 Apr 2010 14:36:34 +0000 (GMT) Subject: [scilab-Users] petrialucian@yahoo.com sent you the following files : notepad.exe In-Reply-To: <1271404208.29175.22006.camel@korcula.inria.fr> References: <20100416073645.865D4100825E@s1.webmaker.ro> <1271404208.29175.22006.camel@korcula.inria.fr> Message-ID: <912936.31673.qm@web28309.mail.ukl.yahoo.com> Hi I have clean up a little bit your program.. it had a couple of errors, specially with quotes and froward/backlash usage.. Please take a look .. maybe we can proceed from this point an on... Julio clear clc strMrVarNames =['Curent';'Power';'Torque';'Presure';'Angle']; strMrValues = ["";"";"";"";""]; [txt]=mgetl('D:\vals.txt'); //get all lines txt iNrOfLines=size (txt,1); iNrOfLines1=size(strMrVarNames,1); for i=1:iNrOfLines //if we have \ '/\' if strindex( txt(i),'/') == 1 then A=(tokens(txt(i),[':'])); //Splits text in 2 coloms (value and name) //A(1,$); //gives the value //A($,1); //gives the variable Name=A(1,$); Value=A($,1); for j=1:iNrOfLines1 if strcmp(Name,strMrVarNames(j)) then disp('OK') strMrValues=Value; else strMrValues(i)='NULL'; end//if end//for end //if end strMrValues strMrVarNames ________________________________ From: Sylvestre Ledru To: users at lists.scilab.org Sent: Fri, 16 April, 2010 9:50:08 Subject: Re: [scilab-Users] petrialucian at yahoo.com sent you the following files : notepad.exe Please, could you avoid sending email with notepad.exe, your email are hard to read on some mailers. Thanks Sylvestre Le vendredi 16 avril 2010 ? 10:36 +0300, transfer.ro a ?crit : > Transfer.ro > petrialucian at yahoo.com ti-a trimis > fisiere folosind Transfer.ro > impreuna cu urmatorul mesaj: > > > petrialucian at yahoo.com has sent you > some files using Transfer.ro with > the following message: > > > Pls Help me with this program. What > i want to do is : > I have 1 txt file that looks like > this : > /Curent : 99 > /Power : 12345 > /Name : ABCDEF > /Presure : 991234 > /Name1 : dfmne > ------------------------- > 12345 > 678910 > -111213 > -141516 > -171819 > > And i what to process the > information. So if i enter from the > keyboard Curent the program should > show me it\'s value, that is \"99 > \"...and soo on. Thenumbers below > the \"-----------\" should be in 2 > vectors, one V1 for positive nr and > V2 for negative. I made this for a > startes but it doesn\'t work :( . > Pls give me some hints soo and cand > get on with it ! TKS A LOT > > /// > strMrVarNames =[\"Curent\";\"Power > \";\"Torque\";\"Presure\";\"Angle > \"]; > strMrValues = [\"\";\"\";\"\";\"\"; > \"\"]; > [txt]=mgetl(\'Var_fin.txt\'); //get > all lines > iNrOfLines=size (txt,1); > iNrOfLines1=size(strMrVarNames,1) > for i=1:iNrOfLines > txt(i); > //if we have \ '/\' > if strindex( txt(i),\'/\') == 1 > then > > A=(tokens(txt(i),[\'/\',\': > \']))\'; //Splits text in 2 coloms > (value and name) > //A(1,$); //gives the value > //A($,1); //gives the variable > > Name=A($,1) > Value=A(1,$); > for j=1:iNrOfLines1 > val; > strMrVarNames(j); > if > strcmp(Name,strMrVarNames(i,j))==1 > then > disp(\"OK\") > strMrValues=Value; > else strMrValues(i)=\"null\"; > > end//if > end//for > end //if > end > strMrValues > strMrVarNames > > Fisierele care ti-au fost > transferate sunt > notepad.exe > Click pe linkul de mai jos pentru a > le downloada: > Click on the link below to download > the files: > http://www.transfer.ro/storage/transfer_ro-16Apr-6fea271b8c.zip > Fisierele vor fi sterse automat > dupa 10 zile. > The files will be deleted > automaticaly after 10 days. > Pentru a salva fisierele in > calculator click iar apoi alegeti' > Save AS' > Transfer.ro este un serviciu > profesional securizat care permite > transferul de fisiere mari (pana la > 1GB) catre orice adresa de e-mail. > > Pentru sugestii,probleme sau > feedback ne puteti contacta la > simina at transfer.ro sau telefonic > Luni-Vineri intre orele 10-18 la > 031-710.10.73 > > > > 12345 678910 -111213 -141516 -171819 And i what to process the information. So if i enter from the keyboard Curent the program should show me it\'s value, that is \"99\"...and soo on. Thenumbers below the \"-----------\" should be in 2 vectors, one V1 for positive nr and V2 for negative. I made this for a startes but it doesn\'t work :( . Pls give me some hints soo and cand get on with it ! TKS A LOT /// strMrVarNames =[\"Curent\";\"Power\";\"Torque\";\"Presure\";\"Angle\"]; strMrValues = [\"\";\"\";\"\";\"\";\"\"]; [txt]=mgetl(\'Var_fin.txt\'); //get all lines iNrOfLines= size (txt,1); iNrOfLines1=size(strMrVarNames,1) for i=1:iNrOfLines txt(i); //if we have \'/\' if strindex( txt(i),\'/\') == 1 then A=(tokens(txt(i),[\'/\',\':\']))\'; //Splits text in 2 coloms (value and name) //A(1,$); //gives the value //A($,1); //gives the variable Name=A($,1) Value=A(1,$); for j=1:iNrOfLines1 val; strMrVarNames(j); if strcmp(Name,strMrVarNames(i,j))==1 then disp(\"OK\") strMrValues=Value; else strMrValues(i)=\"null\"; end//if end//for end //if end strMrValues strMrVarNames<< -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Sat Apr 17 21:46:19 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Sat, 17 Apr 2010 12:46:19 -0700 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: <4BC31F74.4040707@univ-lemans.fr> References: <4BC31F74.4040707@univ-lemans.fr> Message-ID: <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> This looks useful, but I can't get it to work. I open the editor and load two files. One is a function called by the other file. I execute the tester. Then go to the console and invoke get_absolute_file_path(script_filename). I find the file name wants to be inside double quotes, but even then I get an error that the file is not open in Scilab, despite having just executed it. I have tried both the function and the tester and get the same error -- file not open in Scilab. As far as I can tell, both are open. What am I doing wrong? Thanks Gary Nelson On Apr 12, 2010, at 6:26 AM, Samuel Gougeon wrote: > get_absolute_file_path(script_filename) Gary Nelson gnelson at quantasonics.com From ychattah at gmail.com Mon Apr 19 06:59:36 2010 From: ychattah at gmail.com (Yoni Chattah) Date: Mon, 19 Apr 2010 07:59:36 +0300 Subject: cell array Message-ID: Hi, I'm a matlab user that start to work with scilab and i try to define a cell array. and insert matrix to each cell and read data from each cell .is somebody can help me best. computidoo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Apr 19 10:03:45 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 19 Apr 2010 10:03:45 +0200 Subject: [scilab-Users] cell array In-Reply-To: References: Message-ID: <4BCC0E61.9020709@limsi.fr> Hello Yoni, I think that the cell function works more or less like in Matlab. You can create a cell array with a=cell(2,2) and then insert element with a(1,1).entries=... To read element you have to use: a(1,1).entries HTH, Mathieu Yoni Chattah wrote: > Hi, > I'm a matlab user that start to work with scilab and i try to define a > cell array. > and insert matrix to each cell and read data from each cell .is > somebody can help me > best. > computidoo From Samuel.Gougeon at univ-lemans.fr Mon Apr 19 12:21:53 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 19 Apr 2010 12:21:53 +0200 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> Message-ID: <4BCC2EC1.6000300@univ-lemans.fr> ----- Message d'origine ----- De : Gary Nelson Date : 17/04/2010 21:46: > This looks useful, but I can't get it to work. > > I open the editor and load two files. One is a function called by the other file. I execute the tester. > Then go to the console and invoke get_absolute_file_path(script_filename). > > I find the file name wants to be inside double quotes, yes, script_filename should be a string (variable or literal) > but even then I get an error that the file is not open in Scilab, despite having just executed it. I have tried both the function and the tester and get the same error -- file not open in Scilab. > Interesting remark. Actually, for a file, being opened in the editor does not mean being opened in the Scilab session (console), even if the editor has been launched from the session. I agree that this does not look obvious. To check that : open a file in xpad (embedded editor); then in the console: dispfiles() => The file opened in xpad is not listed. Moreover : The file is opened while it is beING executed. This is why in practical, get_absolute_file_path() can be used either in .sce scripts (list of instructions) ; or whether the file has been opened with mopen() of file(... "open"), and is currently running. Samuel From alexanjo at yahoo.com Mon Apr 19 12:52:00 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Mon, 19 Apr 2010 03:52:00 -0700 (PDT) Subject: unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Message-ID: <590595.254.qm@web58006.mail.re3.yahoo.com> dear lists.scilab.org creating subplots is not working for me using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' plot() results in 2nd subplot only, while first one disappears any ideas how to resolves this? ciao, jordan From Samuel.Gougeon at univ-lemans.fr Mon Apr 19 13:02:29 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 19 Apr 2010 13:02:29 +0200 Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <590595.254.qm@web58006.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> Message-ID: <4BCC3845.5040807@univ-lemans.fr> Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, > graphics driver = 'intel integrated graphics chipset' > subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel From gnelson at quantasonics.com Mon Apr 19 13:15:30 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 04:15:30 -0700 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: <4BCC2EC1.6000300@univ-lemans.fr> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC2EC1.6000300@univ-lemans.fr> Message-ID: <39A22392-A3BC-4522-9984-8671E2AD2FB2@quantasonics.com> I am now more perplexed. I am trying to develop a DSP system with lots of functions that I identify with exec( ) and that seems to work but does not apparently leave the functions "open" as files Are you saying I have to use mopen(function file name)? Thanks Gary Nelson On Apr 19, 2010, at 3:21 AM, Samuel Gougeon wrote: > ----- Message d'origine ----- > De : Gary Nelson > Date : 17/04/2010 21:46: >> This looks useful, but I can't get it to work. >> >> I open the editor and load two files. One is a function called by the other file. I execute the tester. >> Then go to the console and invoke get_absolute_file_path(script_filename). >> >> I find the file name wants to be inside double quotes, > yes, script_filename should be a string (variable or literal) >> but even then I get an error that the file is not open in Scilab, despite having just executed it. I have tried both the function and the tester and get the same error -- file not open in Scilab. >> > Interesting remark. Actually, for a file, being opened in the editor does not mean being opened in the Scilab session (console), even if the editor has been launched from the session. I agree that this does not look obvious. To check that : open a file in xpad (embedded editor); then in the console: dispfiles() => The file opened in xpad is not listed. > Moreover : The file is opened while it is beING executed. This is why in practical, get_absolute_file_path() can be used either in .sce scripts (list of instructions) ; or whether the file has been opened with mopen() of file(... "open"), and is currently running. > > Samuel > > Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Mon Apr 19 13:21:42 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 04:21:42 -0700 Subject: debugging? In-Reply-To: <4BCC2EC1.6000300@univ-lemans.fr> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC2EC1.6000300@univ-lemans.fr> Message-ID: <240B8846-1A6A-432C-BA08-C94CFE44C833@quantasonics.com> I am finding scilab to be very difficult to debug. Is there any way to single step through a routine? Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Mon Apr 19 13:39:47 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 04:39:47 -0700 Subject: [scilab-Users] index error not helpful In-Reply-To: <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> Message-ID: What is wrong with this seemingly simple test clc() n=[1:20] z=exp(%i*2*%pi.*n./10) phz=atan(imag(z),real(z)) ifq=diff(phz) ifq=[ifq,ifq($)] plot(n,phz,n,ifq) The lengths of all vectors are 20 yet I get an error 21 index error Thanks Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Mon Apr 19 13:43:32 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 04:43:32 -0700 Subject: [scilab-Users] index error not helpful In-Reply-To: <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> Message-ID: What is wrong with this seemingly simple test clc() n=[1:20] z=exp(%i*2*%pi.*n./10) phz=atan(imag(z),real(z)) ifq=diff(phz) ifq=[ifq,ifq($)] plot(n,phz,n,ifq) The lengths of all vectors are 20 yet I get an error 21 index error Thanks Gary Nelson gnelson at quantasonics.com From Samuel.Gougeon at univ-lemans.fr Mon Apr 19 13:50:25 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 19 Apr 2010 13:50:25 +0200 Subject: [scilab-Users] How to get the current script directory ? In-Reply-To: <39A22392-A3BC-4522-9984-8671E2AD2FB2@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC2EC1.6000300@univ-lemans.fr> <39A22392-A3BC-4522-9984-8671E2AD2FB2@quantasonics.com> Message-ID: <4BCC4381.7040407@univ-lemans.fr> ----- Message d'origine ----- De : Gary Nelson Date : 19/04/2010 13:15: > I am now more perplexed. > I am trying to develop a DSP system with lots of functions that I identify with exec( ) and that seems to work > but does not apparently leave the functions "open" as files > Are you saying I have to use mopen(function file name)? > Thanks > Gary Nelson > A file containing the definition of a macro is opened only _during_ its compilation in session with exec(). For your application, the better way is to gather your functions in a library. See genlib(). Then, it would be possible to use whereis() and libraryinfo() to recover the path to files. Samuel From Samuel.Gougeon at univ-lemans.fr Mon Apr 19 13:53:14 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 19 Apr 2010 13:53:14 +0200 Subject: [scilab-Users] debugging? In-Reply-To: <240B8846-1A6A-432C-BA08-C94CFE44C833@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC2EC1.6000300@univ-lemans.fr> <240B8846-1A6A-432C-BA08-C94CFE44C833@quantasonics.com> Message-ID: <4BCC442A.9010606@univ-lemans.fr> ----- Message d'origine ----- De : Gary Nelson Date : 19/04/2010 13:21: > I am finding scilab to be very difficult to debug. Is there any way to single step through a routine? > The debugger running up to Scilab 4.1.2 is broken. There is no longer available debugger for Scilab. By the way: Please open separed threads for distincts question on the mailing list, instead of just renaming a reply to a previous thread (see the mis-threading effect of your pratice). Thank you. Samuel From Samuel.Gougeon at univ-lemans.fr Mon Apr 19 14:12:13 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 19 Apr 2010 14:12:13 +0200 Subject: [scilab-Users] index error not helpful In-Reply-To: References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> Message-ID: <4BCC489D.7050506@univ-lemans.fr> ----- Message d'origine ----- De : Gary Nelson Date : 19/04/2010 13:43: > What is wrong with this seemingly simple test > > clc() > n=[1:20] > z=exp(%i*2*%pi.*n./10) > phz=atan(imag(z),real(z)) > ifq=diff(phz) > ifq=[ifq,ifq($)] > plot(n,phz,n,ifq) > > The lengths of all vectors are 20 yet I get an error 21 index error > I do not get any syntax error. It runs well for me. From julio.gonzalez at ymail.com Mon Apr 19 15:13:46 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 06:13:46 -0700 (PDT) Subject: [scilab-Users] index error not helpful In-Reply-To: <4BCC489D.7050506@univ-lemans.fr> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC489D.7050506@univ-lemans.fr> Message-ID: <83429.47857.qm@web28315.mail.ukl.yahoo.com> I don't either. It plots two graphics one in blue and one in green with 20 points.# Julio ________________________________ From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, 19 April, 2010 14:12:13 Subject: Re: [scilab-Users] index error not helpful ----- Message d'origine ----- De : Gary Nelson Date : 19/04/2010 13:43: > What is wrong with this seemingly simple test > > clc() > n=[1:20] > z=exp(%i*2*%pi.*n./10) > phz=atan(imag(z),real(z)) > ifq=diff(phz) > ifq=[ifq,ifq($)] > plot(n,phz,n,ifq) > > The lengths of all vectors are 20 yet I get an error 21 index error > I do not get any syntax error. It runs well for me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at gmail.com Mon Apr 19 15:51:55 2010 From: stephane.mottelet at gmail.com (mottelet) Date: Mon, 19 Apr 2010 06:51:55 -0700 (PDT) Subject: XMLlab 1.72 Message-ID: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> Hi all, I just uploaded the latest version of XMLlab at http://xmllab.org. This release fixes some problems encountered with the latest Scilab version (Scilab >= 5.2.1). Please note that this version won't work with Scilab versions < 5. S. From bruno.jofret at scilab.org Mon Apr 19 17:22:55 2010 From: bruno.jofret at scilab.org (Bruno JOFRET) Date: Mon, 19 Apr 2010 17:22:55 +0200 Subject: [scilab-Users] Fw: SCILAB hangs when used in try-catch In-Reply-To: <390137.80826.qm@web28301.mail.ukl.yahoo.com> References: <390137.80826.qm@web28301.mail.ukl.yahoo.com> Message-ID: <4BCC754F.4050909@scilab.org> hi, You have an error in that line if (x < 2) then t = x +"sr"; You try to make an addition between a double and a string. This is not allowed in scilab so it will try to call an overload method. try this : if (x < 2) then t = string(x) +"sr"; And this should no more have any failure. Regards, Julio Gonzalez-Saenz wrote: > > Hi SCILAB community, > > !Scilab Version: !5.2.0.1266391513 > ! ! > !Operating System: !Windows 7 6.1 > ! ! > !Java version : !1.6.0_18 > ! ! > !Java runtime information : !Java(TM) SE Runtime Environment (build > 1.6.0_18-b07) > ! ! > !Java vm information : !Java HotSpot(TM) Client VM (build > 16.0-b13, mixed mode) > ! ! > !Vendor specification: !Sun Microsystems Inc. > > > I have a problem running a try-catch-end block when a while loop in > inside it. > > For example, the following code just create magic matrices from 4 to 1 > but at x=2, an error supposed to happen. The error is correctly > detected, but I have to restart scilab because it does not respond.. > > x=5; > try > while (x>=0) > x=x-1 > disp("x sollte positiv sein") > if (x < 2) then t = x +"sr"; > else z=testmatrix("magic",x) > end > end > catch > x > disp('catch: Ein Fehler ist aufgetreten'); > z=testmatrix("magic",10) > end > > I can not find the reason of this failure in the mailing list... maybe > someone know something about it?? > > Regards, > > Julio Gonzalez-Saenz > www.part-time-scientist.com > www.neex-technologies.com > > -- Bruno JOFRET Software Architect The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.58.63 From gnelson at quantasonics.com Mon Apr 19 17:48:19 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 08:48:19 -0700 Subject: [scilab-Users] index error not helpful In-Reply-To: <83429.47857.qm@web28315.mail.ukl.yahoo.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC489D.7050506@univ-lemans.fr> <83429.47857.qm@web28315.mail.ukl.yahoo.com> Message-ID: <665FFBB2-9C78-41EF-8F4E-5B8E5B75438A@quantasonics.com> It will not run for me. I am running on a macbook pro with osx 10.6.3 I get the index error even if I try to plot(n,n) Is there any test to run to find out why? Thanks Gary Nelson On Apr 19, 2010, at 6:13 AM, Julio Gonzalez-Saenz wrote: > I don't either. It plots two graphics one in blue and one in green with 20 points.# > > Julio > > From: Samuel Gougeon > To: users at lists.scilab.org > Sent: Mon, 19 April, 2010 14:12:13 > Subject: Re: [scilab-Users] index error not helpful > > ----- Message d'origine ----- > De : Gary Nelson > Date : 19/04/2010 13:43: > > What is wrong with this seemingly simple test > > > > clc() > > n=[1:20] > > z=exp(%i*2*%pi.*n./10) > > phz=atan(imag(z),real(z)) > > ifq=diff(phz) > > ifq=[ifq,ifq($)] > > plot(n,phz,n,ifq) > > > > The lengths of all vectors are 20 yet I get an error 21 index error > > > I do not get any syntax error. It runs well for me. > > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Mon Apr 19 17:58:19 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 08:58:19 -0700 Subject: [scilab-Users] index error not helpful In-Reply-To: <83429.47857.qm@web28315.mail.ukl.yahoo.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC489D.7050506@univ-lemans.fr> <83429.47857.qm@web28315.mail.ukl.yahoo.com> Message-ID: <8F4EF145-7E34-4AB0-B0D5-798F7E856E46@quantasonics.com> This is what I get. Line 7 is the plot command. plot(phz) !--error 21 Invalid index. at line 7 of exec file called by : exec('/test if.sce', -1) On Apr 19, 2010, at 6:13 AM, Julio Gonzalez-Saenz wrote: > I don't either. It plots two graphics one in blue and one in green with 20 points.# > > Julio > > From: Samuel Gougeon > To: users at lists.scilab.org > Sent: Mon, 19 April, 2010 14:12:13 > Subject: Re: [scilab-Users] index error not helpful > > ----- Message d'origine ----- > De : Gary Nelson > Date : 19/04/2010 13:43: > > What is wrong with this seemingly simple test > > > > clc() > > n=[1:20] > > z=exp(%i*2*%pi.*n./10) > > phz=atan(imag(z),real(z)) > > ifq=diff(phz) > > ifq=[ifq,ifq($)] > > plot(n,phz,n,ifq) > > > > The lengths of all vectors are 20 yet I get an error 21 index error > > > I do not get any syntax error. It runs well for me. > > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Mon Apr 19 19:40:39 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 17:40:39 +0000 (GMT) Subject: [scilab-Users] Fw: SCILAB hangs when used in try-catch In-Reply-To: <4BCC754F.4050909@scilab.org> References: <390137.80826.qm@web28301.mail.ukl.yahoo.com> <4BCC754F.4050909@scilab.org> Message-ID: <633028.32546.qm@web28303.mail.ukl.yahoo.com> Hi Bruno, Yes.. I know, this is exactly I wanted to do.. to check the correct behavior in my try-catch method.. I need an error so that try block is not executed but catch-block. And this type of error is the easiest one.. Regards, Julio ________________________________ From: Bruno JOFRET To: users at lists.scilab.org Sent: Mon, 19 April, 2010 17:22:55 Subject: Re: [scilab-Users] Fw: SCILAB hangs when used in try-catch hi, You have an error in that line if (x < 2) then t = x +"sr"; You try to make an addition between a double and a string. This is not allowed in scilab so it will try to call an overload method. try this : if (x < 2) then t = string(x) +"sr"; And this should no more have any failure. Regards, Julio Gonzalez-Saenz wrote: > > Hi SCILAB community, > > !Scilab Version: !5.2.0.1266391513 ! ! > !Operating System: !Windows 7 6.1 ! ! > !Java version : !1.6.0_18 ! ! > !Java runtime information : !Java(TM) SE Runtime Environment (build 1.6.0_18-b07) > ! ! > !Java vm information : !Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) > ! ! > !Vendor specification: !Sun Microsystems Inc. > > I have a problem running a try-catch-end block when a while loop in inside it. > > For example, the following code just create magic matrices from 4 to 1 but at x=2, an error supposed to happen. The error is correctly detected, but I have to restart scilab because it does not respond.. > > x=5; > try > while (x>=0) > x=x-1 > disp("x sollte positiv sein") > if (x < 2) then t = x +"sr"; > else z=testmatrix("magic",x) > end > end > catch > x > disp('catch: Ein Fehler ist aufgetreten'); > z=testmatrix("magic",10) > end > > I can not find the reason of this failure in the mailing list... maybe someone know something about it?? > > Regards, > > Julio Gonzalez-Saenz > www.part-time-scientist.com > www.neex-technologies.com > > -- Bruno JOFRET Software Architect The Scilab Consortium Digiteo Foundation Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.58.63 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Mon Apr 19 19:43:49 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 17:43:49 +0000 (GMT) Subject: [scilab-Users] index error not helpful In-Reply-To: <8F4EF145-7E34-4AB0-B0D5-798F7E856E46@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC489D.7050506@univ-lemans.fr> <83429.47857.qm@web28315.mail.ukl.yahoo.com> <8F4EF145-7E34-4AB0-B0D5-798F7E856E46@quantasonics.com> Message-ID: <307303.46824.qm@web28314.mail.ukl.yahoo.com> I assumed you forgot the variable "n" in plot(phz) when copy and paste, don't you?? Otherwise, I can't see why you get the error.. and we dont. Julio ________________________________ From: Gary Nelson To: users at lists.scilab.org Sent: Mon, 19 April, 2010 17:58:19 Subject: Re: [scilab-Users] index error not helpful This is what I get. Line 7 is the plot command. plot(phz) !--error 21 Invalid index. at line 7 of exec file called by : exec('/test if.sce', -1) On Apr 19, 2010, at 6:13 AM, Julio Gonzalez-Saenz wrote: I don't either. It plots two graphics one in blue and one in green with 20 points.# > >Julio > > > > ________________________________ From: Samuel Gougeon >To: users at lists.scilab.org >Sent: Mon, 19 April, 2010 14:12:13 >Subject: Re: [scilab-Users] index error not helpful > >----- Message d'origine ----- >De : Gary Nelson >Date : 19/04/2010 13:43: >> What is wrong with this seemingly simple test >> >> clc() >> n=[1:20] >> z=exp(%i*2*%pi.*n./10) >> phz=atan(imag(z),real(z)) >> ifq=diff(phz) >> ifq=[ifq,ifq($)] >> plot(n,phz,n,ifq) >> >> The lengths of all vectors are 20 yet I get an error 21 index error >> >I do not get any syntax error. It runs well for me. > > > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Mon Apr 19 21:16:59 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Mon, 19 Apr 2010 21:16:59 +0200 Subject: [scilab-Users] debugging? In-Reply-To: <240B8846-1A6A-432C-BA08-C94CFE44C833@quantasonics.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC2EC1.6000300@univ-lemans.fr> <240B8846-1A6A-432C-BA08-C94CFE44C833@quantasonics.com> Message-ID: <4BCCAC2B.50709@free.fr> Gary Nelson said on 19/04/2010 13:21: > > I am finding scilab to be very difficult to debug. Is there any way > to single step through a routine? Hi, Two pointers: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=1713 http://groups.google.fr/group/comp.soft-sys.math.scilab/browse_thread/thread/f853a4de842d71b4 Regards, Francois From gnelson at quantasonics.com Mon Apr 19 21:21:03 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 12:21:03 -0700 Subject: [scilab-Users] index error not helpful In-Reply-To: <307303.46824.qm@web28314.mail.ukl.yahoo.com> References: <4BC31F74.4040707@univ-lemans.fr> <5518085C-68FE-40C5-95F3-F65104D6FF91@quantasonics.com> <4BCC489D.7050506@univ-lemans.fr> <83429.47857.qm@web28315.mail.ukl.yahoo.com> <8F4EF145-7E34-4AB0-B0D5-798F7E856E46@quantasonics.com> <307303.46824.qm@web28314.mail.ukl.yahoo.com> Message-ID: Julio Yes, I actually tried all combinations of plot including leaving out the n, and plot(n,n) THey all give exactly the same error. I have been doing this in the editor, but also tried copying the text and pasting it into the console. Same result. Is this a Mac-only bug? How can we find out?? Thanks On Apr 19, 2010, at 10:43 AM, Julio Gonzalez-Saenz wrote: > I assumed you forgot the variable "n" in plot(phz) when copy and paste, don't you?? > > Otherwise, I can't see why you get the error.. and we dont. > > Julio > > > From: Gary Nelson > To: users at lists.scilab.org > Sent: Mon, 19 April, 2010 17:58:19 > Subject: Re: [scilab-Users] index error not helpful > > This is what I get. Line 7 is the plot command. > > > plot(phz) > !--error 21 > Invalid index. > > at line 7 of exec file called by : > exec('/test if.sce', -1) > > > On Apr 19, 2010, at 6:13 AM, Julio Gonzalez-Saenz wrote: > >> I don't either. It plots two graphics one in blue and one in green with 20 points.# >> >> Julio >> >> From: Samuel Gougeon >> To: users at lists.scilab.org >> Sent: Mon, 19 April, 2010 14:12:13 >> Subject: Re: [scilab-Users] index error not helpful >> >> ----- Message d'origine ----- >> De : Gary Nelson >> Date : 19/04/2010 13:43: >> > What is wrong with this seemingly simple test >> > >> > clc() >> > n=[1:20] >> > z=exp(%i*2*%pi.*n./10) >> > phz=atan(imag(z),real(z)) >> > ifq=diff(phz) >> > ifq=[ifq,ifq($)] >> > plot(n,phz,n,ifq) >> > >> > The lengths of all vectors are 20 yet I get an error 21 index error >> > >> I do not get any syntax error. It runs well for me. >> >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Mon Apr 19 21:32:58 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 12:32:58 -0700 Subject: index error Message-ID: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. The result, of course, is that I am stalled. I want to make scilab work for this project. Do I have to re-install scilab? Gary Nelson gnelson at quantasonics.com From calixte.denizet at ac-rennes.fr Mon Apr 19 21:35:48 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Mon, 19 Apr 2010 21:35:48 +0200 Subject: [scilab-Users] index error In-Reply-To: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> Message-ID: <1271705748.4594.194.camel@calixte-laptop> Hello Gary, You should make a bug report : bugzilla.scilab.org Calixte Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : > I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. > > The result, of course, is that I am stalled. I want to make scilab work for this project. > > Do I have to re-install scilab? > > Gary Nelson > gnelson at quantasonics.com > > > From sylvestre.ledru at scilab.org Mon Apr 19 21:38:39 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 19 Apr 2010 21:38:39 +0200 Subject: [scilab-Users] index error In-Reply-To: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> Message-ID: <1271705919.6303.486.camel@zlarin> It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only run Linux at home and your code is working). If you are really in an hurry, you can give it a try on an other operating system. Sylvestre Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : > I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. > > The result, of course, is that I am stalled. I want to make scilab work for this project. > > Do I have to re-install scilab? > > Gary Nelson > gnelson at quantasonics.com > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From julio.gonzalez at ymail.com Tue Apr 20 00:18:34 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 15:18:34 -0700 (PDT) Subject: [scilab-Users] XMLlab 1.72 In-Reply-To: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> References: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> Message-ID: <792023.87802.qm@web28312.mail.ukl.yahoo.com> Hi Stephane, I load the new version of XMLlab (1.72) and I have problems with the graphics. When I run the examples in the XML it works pwrfect. I can see all the examples, specially the Lapace Equation and the Earth-Moon orbit.. But as I ran this simple test: clc() n=[1:20] z=exp(%i*2*%pi.*n./10); phz=atan(imag(z),real(z)); plot(n,phz) I can not see any plot in the screen. But without the module running, I can plot.. I noticed that when I finished installing the module, seems like the the program does not include a reg key and libplot is not working correctly.. just speculating... Also, I can not un-install the module. I have to delete the entire directory (brute force).. Best Regards, ________________________________ From: mottelet To: users at lists.scilab.org Cc: users at lists.scilab.org Sent: Mon, 19 April, 2010 15:51:55 Subject: [scilab-Users] XMLlab 1.72 Hi all, I just uploaded the latest version of XMLlab at http://xmllab.org. This release fixes some problems encountered with the latest Scilab version (Scilab >= 5.2.1). Please note that this version won't work with Scilab versions < 5. S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Tue Apr 20 00:48:36 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 15:48:36 -0700 Subject: [scilab-Users] index error In-Reply-To: <1271705919.6303.486.camel@zlarin> References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> <1271705919.6303.486.camel@zlarin> Message-ID: Update: I just restarted the computer and a fresh copy of scilab and editor: result-- no errors So far I can't reproduce what I did to cause the error to get "stuck" There is an error in there someplace, but I will need to find a way to force it to occur. Should I report a bug anyway? Thanks On Apr 19, 2010, at 12:38 PM, Sylvestre Ledru wrote: > It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only > run Linux at home and your code is working). > > If you are really in an hurry, you can give it a try on an other > operating system. > > Sylvestre > > Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : >> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. >> >> The result, of course, is that I am stalled. I want to make scilab work for this project. >> >> Do I have to re-install scilab? >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > Gary Nelson gnelson at quantasonics.com From alexanjo at yahoo.com Tue Apr 20 01:02:25 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Mon, 19 Apr 2010 16:02:25 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <4BCC3845.5040807@univ-lemans.fr> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> Message-ID: <936721.75611.qm@web58003.mail.re3.yahoo.com> hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel From julio.gonzalez at ymail.com Tue Apr 20 01:05:05 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 23:05:05 +0000 (GMT) Subject: [scilab-Users] index error In-Reply-To: References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> <1271705919.6303.486.camel@zlarin> Message-ID: <420834.56691.qm@web28305.mail.ukl.yahoo.com> Hi Gary, I don't think dev might reproduce the error if you can not!!! It would be nice if you run across of the error again to help others... but having worked on dev, I would say that it will be closs as none-reproduceble.. My 0.02. jg ________________________________ From: Gary Nelson To: users at lists.scilab.org Sent: Tue, 20 April, 2010 0:48:36 Subject: Re: [scilab-Users] index error Update: I just restarted the computer and a fresh copy of scilab and editor: result-- no errors So far I can't reproduce what I did to cause the error to get "stuck" There is an error in there someplace, but I will need to find a way to force it to occur. Should I report a bug anyway? Thanks On Apr 19, 2010, at 12:38 PM, Sylvestre Ledru wrote: > It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only > run Linux at home and your code is working). > > If you are really in an hurry, you can give it a try on an other > operating system. > > Sylvestre > > Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : >> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. >> >> The result, of course, is that I am stalled. I want to make scilab work for this project. >> >> Do I have to re-install scilab? >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Tue Apr 20 01:08:11 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 19 Apr 2010 23:08:11 +0000 (GMT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <936721.75611.qm@web58003.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> Message-ID: <587459.70669.qm@web28311.mail.ukl.yahoo.com> Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexanjo at yahoo.com Tue Apr 20 01:54:04 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Mon, 19 Apr 2010 16:54:04 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <587459.70669.qm@web28311.mail.ukl.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> Message-ID: <517232.67141.qm@web58001.mail.re3.yahoo.com> dear julio attached is a screen-shot of the console--showing code--and resulting graphic window ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tue, April 20, 2010 11:08:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: application/octet-stream Size: 68664 bytes Desc: not available URL: From gnelson at quantasonics.com Tue Apr 20 02:25:31 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 19 Apr 2010 17:25:31 -0700 Subject: library Message-ID: Greetings again During an earlier thread, I mentioned that I was using exec to load functions and someone told me to use libraries. I have read over the genlib info and would like to see a couple of examples of working code. Where can I look? Thanks Gary Nelson gnelson at quantasonics.com From stephane.mottelet at utc.fr Tue Apr 20 08:51:34 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Tue, 20 Apr 2010 08:51:34 +0200 Subject: [scilab-Users] XMLlab 1.72 In-Reply-To: <792023.87802.qm@web28312.mail.ukl.yahoo.com> References: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> <792023.87802.qm@web28312.mail.ukl.yahoo.com> Message-ID: <4BCD4EF6.4040306@utc.fr> Hi, Julio Gonzalez-Saenz a ?crit : > Hi Stephane, > > I load the new version of XMLlab (1.72) and I have problems with the > graphics. When I run the examples in the XML it works pwrfect. I can > see all the examples, specially the Lapace Equation and the Earth-Moon > orbit.. But as I ran this simple test: > > clc() > n=[1:20] > z=exp(%i*2*%pi.*n./10); > phz=atan(imag(z),real(z)); > plot(n,phz) > > I can not see any plot in the screen. But without the module running, > I can plot.. XMLlab plots graphics in pixmap mode, so if you plot in a simulations's window (after the simulation has stopped) then the window is still in pixmap mode. If you don't especially need to plot over the simulation plots, then close the window and plot in a "fresh" one, and otherwise set the pixmap mode to off with set(gcf(),'pixmap','off'). > > I noticed that when I finished installing the module, seems like the > the program does not include a reg key and libplot is not working > correctly.. just speculating... > I assume you are using windows, but what is libplot ? > Also, I can not un-install the module. I have to delete the entire > directory (brute force).. > OS, Scilab version, Error message ? > Best Regards, S. > > ------------------------------------------------------------------------ > *From:* mottelet > *To:* users at lists.scilab.org > *Cc:* users at lists.scilab.org > *Sent:* Mon, 19 April, 2010 15:51:55 > *Subject:* [scilab-Users] XMLlab 1.72 > > Hi all, > > I just uploaded the latest version of XMLlab at http://xmllab.org. > This release fixes some problems encountered with the latest Scilab > version (Scilab >= 5.2.1). Please note that this version won't work > with Scilab versions < 5. > > S. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From whalesuit at gmail.com Tue Apr 20 13:29:40 2010 From: whalesuit at gmail.com (Eric E) Date: Tue, 20 Apr 2010 06:29:40 -0500 Subject: Martina von dem Bottlenberg Message-ID: http://peinture-en-perigord.com/home.php From sylvestre.ledru at scilab.org Tue Apr 20 14:34:49 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 20 Apr 2010 14:34:49 +0200 Subject: [scilab-Users] index error In-Reply-To: References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> <1271705919.6303.486.camel@zlarin> Message-ID: <1271766889.23634.2121.camel@zlarin> Well, I hate it-was-not-working-but-after-a-reboot-everything-is-fine bugs ... Did you upgrade your system between your two reboots ? You can report it. I prefer having a bug that we/you cannot reproduce than missing a bug but if you are the only one, it is going to be hard to fix... Sylvestre Le lundi 19 avril 2010 ? 15:48 -0700, Gary Nelson a ?crit : > Update: I just restarted the computer and a fresh copy of scilab and editor: result-- no errors > > So far I can't reproduce what I did to cause the error to get "stuck" > > There is an error in there someplace, but I will need to find a way to force it to occur. > > Should I report a bug anyway? > > Thanks > > > On Apr 19, 2010, at 12:38 PM, Sylvestre Ledru wrote: > > > It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only > > run Linux at home and your code is working). > > > > If you are really in an hurry, you can give it a try on an other > > operating system. > > > > Sylvestre > > > > Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : > >> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. > >> > >> The result, of course, is that I am stalled. I want to make scilab work for this project. > >> > >> Do I have to re-install scilab? > >> > >> Gary Nelson > >> gnelson at quantasonics.com > >> > >> > >> > > > > -- > > ------------------------- > > Sylvestre Ledru > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > > > > Gary Nelson > gnelson at quantasonics.com > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From resconserv at gmail.com Tue Apr 20 16:04:09 2010 From: resconserv at gmail.com (H Carl) Date: Tue, 20 Apr 2010 10:04:09 -0400 Subject: URL read/write Message-ID: I have been unable to find any SciLab commands that would allow reading/writing to a url. Does that possibility exist? It would be very helpful for taking advantage of a site's webservices. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Tue Apr 20 18:12:11 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Tue, 20 Apr 2010 09:12:11 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <517232.67141.qm@web58001.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> Message-ID: <558750.28306.qm@web28307.mail.ukl.yahoo.com> Dear Jordan, I can see the graphics but not the code... Regards, Julio ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:54:04 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio attached is a screen-shot of the console--showing code--and resulting graphic window ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tue, April 20, 2010 11:08:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Tue Apr 20 23:20:41 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 20 Apr 2010 14:20:41 -0700 Subject: [scilab-Users] index error In-Reply-To: <1271766889.23634.2121.camel@zlarin> References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> <1271705919.6303.486.camel@zlarin> <1271766889.23634.2121.camel@zlarin> Message-ID: <770EFC48-7D3B-492A-9135-8389DCC42FD3@quantasonics.com> On Apr 20, 2010, at 5:34 AM, Sylvestre Ledru wrote: > Well, I hate it-was-not-working-but-after-a-reboot-everything-is-fine > bugs ... I agree. Only thing worse is problems with septic tanks > Did you upgrade your system between your two reboots ? No. > > You can report it. I prefer having a bug that we/you cannot reproduce > than missing a bug but if you are the only one, it is going to be hard > to fix... What occurred appears to have been an indexing error (or other parsing error) that left some state machine in a failure state. It was a solid failure that resisted all attempts to change the code -- until the reboot. I tried to retrace my steps and create the error, but could not. I will submit a report to bugzilla FWIW and hope I can stumble across it again. Thanks for all your help on this. Gary > > Sylvestre > > Le lundi 19 avril 2010 ? 15:48 -0700, Gary Nelson a ?crit : >> Update: I just restarted the computer and a fresh copy of scilab and editor: result-- no errors >> >> So far I can't reproduce what I did to cause the error to get "stuck" >> >> There is an error in there someplace, but I will need to find a way to force it to occur. >> >> Should I report a bug anyway? >> >> Thanks >> >> >> On Apr 19, 2010, at 12:38 PM, Sylvestre Ledru wrote: >> >>> It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only >>> run Linux at home and your code is working). >>> >>> If you are really in an hurry, you can give it a try on an other >>> operating system. >>> >>> Sylvestre >>> >>> Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : >>>> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. >>>> >>>> The result, of course, is that I am stalled. I want to make scilab work for this project. >>>> >>>> Do I have to re-install scilab? >>>> >>>> Gary Nelson >>>> gnelson at quantasonics.com >>>> >>>> >>>> >>> >>> -- >>> ------------------------- >>> Sylvestre Ledru >>> ------------------------- >>> The Scilab Consortium >>> Digiteo >>> Domaine de Voluceau >>> Rocquencourt - B.P. 105 >>> 78153 Le Chesnay Cedex >>> France >>> >>> >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Tue Apr 20 23:24:33 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 20 Apr 2010 14:24:33 -0700 Subject: [scilab-Users] index error In-Reply-To: <1271766889.23634.2121.camel@zlarin> References: <4904EC4E-487E-4FDB-BBA9-808BB4EB331D@quantasonics.com> <1271705919.6303.486.camel@zlarin> <1271766889.23634.2121.camel@zlarin> Message-ID: <756120FE-FC52-4749-B9B7-7D8E9400D59B@quantasonics.com> On Apr 20, 2010, at 5:34 AM, Sylvestre Ledru wrote: > Well, I hate it-was-not-working-but-after-a-reboot-everything-is-fine > bugs ... I agree. Only thing worse is problems with septic tanks > Did you upgrade your system between your two reboots ? No. > > You can report it. I prefer having a bug that we/you cannot reproduce > than missing a bug but if you are the only one, it is going to be hard > to fix... What occurred appears to have been an indexing error (or other parsing error) that left some state machine in a failure state. It was a solid failure that resisted all attempts to change the code -- until the reboot. I tried to retrace my steps and create the error, but could not. I will submit a report to bugzilla FWIW and hope I can stumble across it again. Thanks for all your help on this. Gary > > Sylvestre > > Le lundi 19 avril 2010 ? 15:48 -0700, Gary Nelson a ?crit : >> Update: I just restarted the computer and a fresh copy of scilab and editor: result-- no errors >> >> So far I can't reproduce what I did to cause the error to get "stuck" >> >> There is an error in there someplace, but I will need to find a way to force it to occur. >> >> Should I report a bug anyway? >> >> Thanks >> >> >> On Apr 19, 2010, at 12:38 PM, Sylvestre Ledru wrote: >> >>> It is probably a Mac OS X bug. I will try to reproduce tomorrow (I only >>> run Linux at home and your code is working). >>> >>> If you are really in an hurry, you can give it a try on an other >>> operating system. >>> >>> Sylvestre >>> >>> Le lundi 19 avril 2010 ? 12:32 -0700, Gary Nelson a ?crit : >>>> I understand that my index error is not reproducable on other machines. Nevertheless, it is persistent here. >>>> >>>> The result, of course, is that I am stalled. I want to make scilab work for this project. >>>> >>>> Do I have to re-install scilab? >>>> >>>> Gary Nelson >>>> gnelson at quantasonics.com >>>> >>>> >>>> >>> >>> -- >>> ------------------------- >>> Sylvestre Ledru >>> ------------------------- >>> The Scilab Consortium >>> Digiteo >>> Domaine de Voluceau >>> Rocquencourt - B.P. 105 >>> 78153 Le Chesnay Cedex >>> France >>> >>> >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > Gary Nelson gnelson at quantasonics.com From julio.gonzalez at ymail.com Wed Apr 21 01:00:16 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Tue, 20 Apr 2010 23:00:16 +0000 (GMT) Subject: [scilab-Users] XMLlab 1.72 In-Reply-To: <4BCD4EF6.4040306@utc.fr> References: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> <792023.87802.qm@web28312.mail.ukl.yahoo.com> <4BCD4EF6.4040306@utc.fr> Message-ID: <902429.24449.qm@web28310.mail.ukl.yahoo.com> Hi Stephane, I did closed my SCI session after running the example, but still when I run plot, it remembers that I was using the other display and I can get rid of it. Only a removal of some files fixes the problem.. Attached are three files: 1. Installation with an error 2. Successful install message 3. Error during the un-install. !Scilab Version: 5.2.0.1266391513 !Operating System: Windows 7 6.1 !Java version : 1.6.0_18 !Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_18-b07) !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) !Vendor specification: Sun Microsystems Inc. Regards, Julio ________________________________ From: St?phane Mottelet To: users at lists.scilab.org Sent: Tue, 20 April, 2010 8:51:34 Subject: Re: [scilab-Users] XMLlab 1.72 Hi, Julio Gonzalez-Saenz a ?crit : > >Hi >Stephane, > >>I load the new version of XMLlab (1.72) and I have problems with the >graphics. When I run the examples in the XML it works pwrfect. I can >see all the examples, specially the Lapace Equation and the Earth-Moon >orbit.. But as I ran this simple test: > >>clc() >>n=[1:20] >>z=exp(%i*2*%pi.*n./10); >>phz=atan(imag(z),real(z)); >>plot(n,phz) > > >> I can not see any plot in the screen. But without the module running, >I can plot.. > XMLlab plots graphics in pixmap mode, so if you plot in a simulations's window (after the simulation has stopped) then the window is still in pixmap mode. If you don't especially need to plot over the simulation plots, then close the window and plot in a "fresh" one, and otherwise set the pixmap mode to off with set(gcf(),'pixmap','off'). >>I noticed that when I finished installing the module, seems like the >the program does not include a reg key and libplot is not working >correctly.. just speculating... > > I assume you are using windows, but what is libplot ? Also, I can not un-install the module. I have to delete the >entire directory (brute force).. > > OS, Scilab version, Error message ? Best Regards, > S. > > ________________________________ From: >mottelet >To: users at lists.scilab.org >Cc: users at lists.scilab.org >Sent: Mon, 19 April, >2010 15:51:55 >Subject: >[scilab-Users] XMLlab 1.72 > >>Hi all, > >>I just uploaded the latest version of XMLlab at http://xmllab.org. >>This release fixes some problems encountered with the latest Scilab >>version (Scilab >= 5.2.1). Please note that this version won't work >>with Scilab versions < 5. > >>S. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XML install_3.png Type: image/png Size: 34133 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XML install.png Type: image/png Size: 28569 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XML install_2.png Type: image/png Size: 106960 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Wed Apr 21 09:48:29 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 21 Apr 2010 09:48:29 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: References: Message-ID: <4BCEADCD.6010307@univ-lemans.fr> Hello, ----- Message d'origine ----- De : H Carl Date : 20/04/2010 16:04: > I have been unable to find any SciLab commands that would allow > reading/writing to a url. Does that possibility exist? It would be > very helpful for taking advantage of a site's webservices. > Thanks. You can use Curl that is embedded into scilab. If you are using Scilab under Windows, here is an example : URL="http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf"; filename="curl_manual.pdf"; rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL) The file targetted by the URL will be recorded into the specified local file. If you are using another operating system, you just have to customize the path leading to the curl executable file. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Apr 21 09:55:01 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 21 Apr 2010 09:55:01 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: <4BCEADCD.6010307@univ-lemans.fr> References: <4BCEADCD.6010307@univ-lemans.fr> Message-ID: <1271836501.1523.8889.camel@korcula.inria.fr> Le mercredi 21 avril 2010 ? 09:48 +0200, Samuel Gougeon a ?crit : > Hello, > > ----- Message d'origine ----- > De : H Carl > Date : 20/04/2010 16:04: > > I have been unable to find any SciLab commands that would allow > > reading/writing to a url. Does that possibility exist? It would be > > very helpful for taking advantage of a site's webservices. > > Thanks. > You can use Curl that is embedded into scilab. > If you are using Scilab under Windows, here is an example : > URL="http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf"; > filename="curl_manual.pdf"; > rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL) > The file targetted by the URL will be recorded into the specified > local file. > If you are using another operating system, you just have to customize > the > path leading to the curl executable file. Please note that we might remove curl one day without any notice. It is not intended to be used for a Scilab application. And note that it is not the case under Linux/Mac OS X. Sylvestre From Samuel.Gougeon at univ-lemans.fr Wed Apr 21 10:02:44 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 21 Apr 2010 10:02:44 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: <4BCEADCD.6010307@univ-lemans.fr> References: <4BCEADCD.6010307@univ-lemans.fr> Message-ID: <4BCEB124.8020802@univ-lemans.fr> ----- Message d'origine ----- De : Samuel Gougeon Date : 21/04/2010 09:48: > Hello, > > ----- Message d'origine ----- > De : H Carl > Date : 20/04/2010 16:04: >> I have been unable to find any SciLab commands that would allow >> reading/writing to a url. Does that possibility exist? It would be >> very helpful for taking advantage of a site's webservices. >> Thanks. > You can use Curl that is embedded into scilab. > If you are using Scilab under Windows, here is an example : > URL="http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf"; > > filename="curl_manual.pdf"; > rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL) > The file targetted by the URL will be recorded into the specified > local file. > If you are using another operating system, you just have to customize the > path leading to the curl executable file. After the Sylvestre's remark, please note that, like it is presented on the curl main webpage, and like Scilab, / Curl is free and open software that compiles and runs under a wide variety of operating systems. Curl exists thanks to efforts from many contributors . / Therefore, you can freely instal it on your machine, and use it through the unix() scilab's command. So, back-compatibility cannot be a concern. Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Apr 21 10:06:15 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 21 Apr 2010 10:06:15 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: <4BCEB124.8020802@univ-lemans.fr> References: <4BCEADCD.6010307@univ-lemans.fr> <4BCEB124.8020802@univ-lemans.fr> Message-ID: <1271837175.1523.8969.camel@korcula.inria.fr> Le mercredi 21 avril 2010 ? 10:02 +0200, Samuel Gougeon a ?crit : > ----- Message d'origine ----- > De : Samuel Gougeon > Date : 21/04/2010 09:48: > > Hello, > > > > ----- Message d'origine ----- > > De : H Carl > > Date : 20/04/2010 16:04: > > > I have been unable to find any SciLab commands that would allow > > > reading/writing to a url. Does that possibility exist? It would > > > be very helpful for taking advantage of a site's webservices. > > > Thanks. > > You can use Curl that is embedded into scilab. > > If you are using Scilab under Windows, here is an example : > > URL="http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf"; > > filename="curl_manual.pdf"; > > rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL) > > The file targetted by the URL will be recorded into the specified > > local file. > > If you are using another operating system, you just have to > > customize the > > path leading to the curl executable file. > After the Sylvestre's remark, please note that, like it is presented > on the curl main webpage, > and like Scilab, > > > Curl is free and open software that compiles and runs under a wide > variety of operating systems. > Curl exists thanks to efforts from many contributors. > > Therefore, you can freely instal it on your machine, and use it > through the unix() scilab's command. > So, back-compatibility cannot be a concern. Obviously but it is important to highlight that a Scilab script cannot expect to find curl on every Scilab distribution ... Sylvestre From alexanjo at yahoo.com Wed Apr 21 12:29:40 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Wed, 21 Apr 2010 03:29:40 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <558750.28306.qm@web28307.mail.ukl.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> Message-ID: <805717.73016.qm@web58007.mail.re3.yahoo.com> dear julio code is: subplot(2,1,1) plot(1:10) subplot(2,1,2) plot(1:10) attached is a screen-shot of the result after issuing subplot(2,1,2) and plot(1:10) commands, the first subplot--subplot(2,1,1)--disappears! any hints how to further troubleshoot this odd and persistent behaviour i am having with scilab 5.x? ciao, jordan p.s. i do not experience this behaviour with scilab 4.1.2 ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Wed, April 21, 2010 4:12:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Dear Jordan, I can see the graphics but not the code... Regards, Julio ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:54:04 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio attached is a screen-shot of the console--showing code--and resulting graphic window ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tue, April 20, 2010 11:08:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-1.png Type: application/octet-stream Size: 55513 bytes Desc: not available URL: From communication at scilab.org Wed Apr 21 14:05:59 2010 From: communication at scilab.org (Scilab Communication) Date: Wed, 21 Apr 2010 14:05:59 +0200 Subject: Release of Scilab 5.2.2 Message-ID: <4BCEEA27.3010309@scilab.org> Dear all, The Scilab R&D Team is pleased to announce the release of Scilab 5.2.2. Download and information can be found at: http://www.scilab.org/en/products/scilab/download Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From stephane.mottelet at utc.fr Wed Apr 21 14:51:33 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 21 Apr 2010 14:51:33 +0200 Subject: [scilab-Users] XMLlab 1.72 In-Reply-To: <902429.24449.qm@web28310.mail.ukl.yahoo.com> References: <3abd0af0-d70a-4271-975d-bfb0973d30b5@z11g2000yqz.googlegroups.com> <792023.87802.qm@web28312.mail.ukl.yahoo.com> <4BCD4EF6.4040306@utc.fr> <902429.24449.qm@web28310.mail.ukl.yahoo.com> Message-ID: <4BCEF4D5.40509@utc.fr> Le 21/04/2010 01:00, Julio Gonzalez-Saenz a ?crit : > Hi Stephane, > > I did closed my SCI session after running the example, but still when > I run plot, it remembers that I was using the other display and I can > get rid of it. What do you mean by "it remembers that I was using the other display" ? > Only a removal of some files fixes the problem.. Which files ? > > Attached are three files: > > 1. Installation with an error > 2. Successful install message > 3. Error during the un-install. > > !Scilab Version: 5.2.0.1266391513 > !Operating System: Windows 7 6.1 > !Java version : 1.6.0_18 > !Java runtime information : Java(TM) SE Runtime Environment (build > 1.6.0_18-b07) > !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, > mixed mode) > !Vendor specification: Sun Microsystems Inc. > > Regards, > > Julio I am afffraid I cannot reproduce your problems... What is this Zugriff verweigert registry key ? The only thing I can say is that it has nothing to do with XMLlab.. I cannot test any further because I don't have any Windows 7 machine here. You can hack the bin/tcl/uninstall.tcl file by removing any registry stuff. S. > ------------------------------------------------------------------------ > *From:* St?phane Mottelet > *To:* users at lists.scilab.org > *Sent:* Tue, 20 April, 2010 8:51:34 > *Subject:* Re: [scilab-Users] XMLlab 1.72 > > Hi, > > Julio Gonzalez-Saenz a ?crit : >> Hi Stephane, >> >> I load the new version of XMLlab (1.72) and I have problems with the >> graphics. When I run the examples in the XML it works pwrfect. I can >> see all the examples, specially the Lapace Equation and the >> Earth-Moon orbit.. But as I ran this simple test: >> >> clc() >> n=[1:20] >> z=exp(%i*2*%pi.*n./10); >> phz=atan(imag(z),real(z)); >> plot(n,phz) >> >> I can not see any plot in the screen. But without the module >> running, I can plot.. > XMLlab plots graphics in pixmap mode, so if you plot in a > simulations's window (after the > simulation has stopped) then the window is still in pixmap mode. If > you don't especially > need to plot over the simulation plots, then close the window and plot > in a "fresh" one, and > otherwise set the pixmap mode to off with set(gcf(),'pixmap','off'). >> >> I noticed that when I finished installing the module, seems like the >> the program does not include a reg key and libplot is not working >> correctly.. just speculating... >> > I assume you are using windows, but what is libplot ? >> Also, I can not un-install the module. I have to delete the entire >> directory (brute force).. >> > OS, Scilab version, Error message ? >> Best Regards, > > S. >> >> ------------------------------------------------------------------------ >> *From:* mottelet >> *To:* users at lists.scilab.org >> *Cc:* users at lists.scilab.org >> *Sent:* Mon, 19 April, 2010 15:51:55 >> *Subject:* [scilab-Users] XMLlab 1.72 >> >> Hi all, >> >> I just uploaded the latest version of XMLlab at http://xmllab.org. >> This release fixes some problems encountered with the latest Scilab >> version (Scilab >= 5.2.1). Please note that this version won't work >> with Scilab versions < 5. >> >> S. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tremillon.laure at gmail.com Wed Apr 21 16:32:33 2010 From: tremillon.laure at gmail.com (Laure) Date: Wed, 21 Apr 2010 14:32:33 +0000 (UTC) Subject: Code generation problem (Flex) Message-ID: Hello, I try to compile a file with Scicos version 44b7 for a Flex Board. I try to genrate the code under scicos but an error appears : ECLIPSE_HOME directory found. -------------------------------------------------------- Step 1: Template Generation RT-Druid is generating the scheleton application which will be compiled together with the Scicos generated code -------------------------------------------------------- Buildfile: C:\Evidence\eclipse/Evidence/build.xml an_example: [rtdruid.Oil.Example] [rtdruid.Oil.Example] [EXAMPLE WRITER Search Template (ID = -- output) ... ] [rtdruid.Oil.Example] [ ... NOT FOUND] BUILD FAILED C:\Evidence\eclipse\Evidence\build.xml:18: The specified example is not found. Availables are :[] Then I can not retrieve the files .cof and .elf for compiling under MPLAB. Thank you in advance for your help. Cordially From julio.gonzalez at ymail.com Wed Apr 21 17:05:06 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Wed, 21 Apr 2010 08:05:06 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <805717.73016.qm@web58007.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> Message-ID: <218312.69080.qm@web28312.mail.ukl.yahoo.com> Dear Jordan, Can you please run this simple subplot program: clf() omega0=1; k=[0.2 1 3]; n=0; for kappa=k n=n+1; omega=sqrt(omega0^2-kappa^2); t=0:0.01:8*%pi; if (omega==0) y=exp(-kappa.*t).*t; else y=exp(-kappa.*t).*sin(omega*t)/omega; end if n==1 subplot(2,1,1) // It will spawn over two columns else subplot(2,2,n+1) end plot(t,y); legend(['kappa = '+ string(kappa)]); // I could not figutre out // how to write greek characteres. num2str does not exist in SCILAB end ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Wed, 21 April, 2010 12:29:40 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio code is: subplot(2,1,1) plot(1:10) subplot(2,1,2) plot(1:10) attached is a screen-shot of the result after issuing subplot(2,1,2) and plot(1:10) commands, the first subplot--subplot(2,1,1)--disappears! any hints how to further troubleshoot this odd and persistent behaviour i am having with scilab 5.x? ciao, jordan p.s. i do not experience this behaviour with scilab 4.1.2 ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Wed, April 21, 2010 4:12:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Dear Jordan, I can see the graphics but not the code... Regards, Julio ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:54:04 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio attached is a screen-shot of the console--showing code--and resulting graphic window ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tue, April 20, 2010 11:08:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot_4_Jordan.png Type: image/png Size: 11171 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Wed Apr 21 17:08:56 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 21 Apr 2010 17:08:56 +0200 Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <218312.69080.qm@web28312.mail.ukl.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> Message-ID: <1271862536.1523.12036.camel@korcula.inria.fr> > legend(['kappa = '+ string(kappa)]); // I could not figutre out > // how to write greek characteres. num2str does not exist in > SCILAB Actually, you can from Scilab 5.2.0. Try: legend(['$\kappa = '+ string(kappa)+'$']); Sylvestre From julio.gonzalez at ymail.com Wed Apr 21 17:25:18 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Wed, 21 Apr 2010 15:25:18 +0000 (GMT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <1271862536.1523.12036.camel@korcula.inria.fr> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> <1271862536.1523.12036.camel@korcula.inria.fr> Message-ID: <164193.42056.qm@web28306.mail.ukl.yahoo.com> Thanks Sylvestre! This is much nicer!!! :-) Own you one!!!! ;-) Julio ________________________________ From: Sylvestre Ledru To: users at lists.scilab.org Sent: Wed, 21 April, 2010 17:08:56 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears > legend(['kappa = '+ string(kappa)]); // I could not figutre out > // how to write greek characteres. num2str does not exist in > SCILAB Actually, you can from Scilab 5.2.0. Try: legend(['$\kappa = '+ string(kappa)+'$']); Sylvestre -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Apr 21 17:30:02 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 21 Apr 2010 17:30:02 +0200 Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <164193.42056.qm@web28306.mail.ukl.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> <1271862536.1523.12036.camel@korcula.inria.fr> <164193.42056.qm@web28306.mail.ukl.yahoo.com> Message-ID: <1271863802.1523.12220.camel@korcula.inria.fr> You are welcome ;) Don't hesitate to have a look on the changelog of new releases. We try to show the new features like this one. See: Scilab 5.2.0: http://www.scilab.org/content/download/1038/10017/file/CHANGES_5.2.0.pdf Scilab 5.2.1: http://www.scilab.org/content/download/1136/11155/file/changes5.2-5.2.1.pdf Scilab 5.2.2: http://www.scilab.org/content/download/1273/12237/file/changes5.2-5.2.2.pdf Le mercredi 21 avril 2010 ? 15:25 +0000, Julio Gonzalez-Saenz a ?crit : > Thanks Sylvestre! This is much nicer!!! :-) Own you one!!!! ;-) > > Julio > > > > ______________________________________________________________________ > From: Sylvestre Ledru > To: users at lists.scilab.org > Sent: Wed, 21 April, 2010 17:08:56 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > > > legend(['kappa = '+ string(kappa)]); // I could not figutre out > > // how to write greek characteres. num2str does not exist in > > SCILAB > Actually, you can from Scilab 5.2.0. > Try: > legend(['$\kappa = '+ string(kappa)+'$']); > > Sylvestre > > > > From fabriziod75 at gmail.com Wed Apr 21 22:09:06 2010 From: fabriziod75 at gmail.com (fabrizio de nisi) Date: Wed, 21 Apr 2010 22:09:06 +0200 Subject: Xcos C compiler Message-ID: Hello, I'm trying to use Xcos after Scilab 5.2.1 installation with Windows 7 (64 bit). When I use some Xcos demos (electrical systems) I have the following message: "Compatible C compailer required". I have installed Microsoft Visual Studio but I haven't solved the problem. Could you help me? Thanks, Fabrizio De Nisi -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexanjo at yahoo.com Thu Apr 22 00:56:42 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Wed, 21 Apr 2010 15:56:42 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <218312.69080.qm@web28312.mail.ukl.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> Message-ID: <10366.66413.qm@web58008.mail.re3.yahoo.com> dear julio attached is the screenshot of my result of runing your code... i looked at the your attached screenshot of your result yes, that is what i expect! instead, i get my attached screenshot! ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Thu, April 22, 2010 3:05:06 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Dear Jordan, Can you please run this simple subplot program: clf() omega0=1; k=[0.2 1 3]; n=0; for kappa=k n=n+1; omega=sqrt(omega0^2-kappa^2); t=0:0.01:8*%pi; if (omega==0) y=exp(-kappa.*t).*t; else y=exp(-kappa.*t).*sin(omega*t)/omega; end if n==1 subplot(2,1,1) // It will spawn over two columns else subplot(2,2,n+1) end plot(t,y); legend(['kappa = '+ string(kappa)]); // I could not figutre out // how to write greek characteres. num2str does not exist in SCILAB end ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Wed, 21 April, 2010 12:29:40 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio code is: subplot(2,1,1) plot(1:10) subplot(2,1,2) plot(1:10) attached is a screen-shot of the result after issuing subplot(2,1,2) and plot(1:10) commands, the first subplot--subplot(2,1,1)--disappears! any hints how to further troubleshoot this odd and persistent behaviour i am having with scilab 5.x? ciao, jordan p.s. i do not experience this behaviour with scilab 4.1.2 ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Wed, April 21, 2010 4:12:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Dear Jordan, I can see the graphics but not the code... Regards, Julio ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:54:04 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears dear julio attached is a screen-shot of the console--showing code--and resulting graphic window ciao, jordan ________________________________ From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tue, April 20, 2010 11:08:11 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hi Jordan, Can you please post your code?? ________________________________ From: jordan alexander To: users at lists.scilab.org Sent: Tue, 20 April, 2010 1:02:25 Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears hello >To change the adressed area, just do >subplot(nL,nC, nB) after issuing the command plot(), the first subplot, i.e. subplot(1,2,1), has disappeared and i am unable to make it re-appear. issuing subplot(1,2,1) after plot() does not make the first one re-appear issuing gca indicates there are two Axes children, yet only the second is visible issuing xs2eps(0,'test.eps') after plot() creates file with both plots visible any other hints here to get the first subplot visible? jordan ----- Original Message ---- From: Samuel Gougeon To: users at lists.scilab.org Sent: Mon, April 19, 2010 11:02:29 PM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears Hello, ----- Message d'origine ----- De : jordan alexander Date : 19/04/2010 12:52: > dear lists.scilab.org > > creating subplots is not working for me > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, graphics driver = 'intel integrated graphics chipset' subplot(nL,nC, nA) virtually shares the current graphic windows in nL lines and nC columns of rectangular sub-area, and adresses the nA'th one for the forthcoming plotting commands. To change the adressed area, just do subplot(nL,nC, nB) Then the nB'th one becomes the current one. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: application/octet-stream Size: 65339 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Thu Apr 22 01:02:50 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 22 Apr 2010 01:02:50 +0200 Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <10366.66413.qm@web58008.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> <10366.66413.qm@web58008.mail.re3.yahoo.com> Message-ID: <1271890970.10183.353.camel@zlarin> I think this might be related to your driver of your graphic card. Scilab needs up-to-date OpenGL driver. Sylvestre Le mercredi 21 avril 2010 ? 15:56 -0700, jordan alexander a ?crit : > dear julio > > attached is the screenshot of my result of runing your code... > > > i looked at the your attached screenshot of your result > > yes, that is what i expect! > > instead, i get my attached screenshot! > > ciao, jordan > > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Thu, April 22, 2010 3:05:06 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Dear Jordan, > > Can you please run this simple subplot program: > > clf() > omega0=1; > k=[0.2 1 3]; > n=0; > for kappa=k > n=n+1; > omega=sqrt(omega0^2-kappa^2); > t=0:0.01:8*%pi; > if (omega==0) > y=exp(-kappa.*t).*t; > else > y=exp(-kappa.*t).*sin(omega*t)/omega; > end > if n==1 > subplot(2,1,1) // It will spawn over two columns > else > subplot(2,2,n+1) > end > plot(t,y); > legend(['kappa = '+ string(kappa)]); // I could not figutre out > // how to write greek characteres. num2str does not exist in > SCILAB > end > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Wed, 21 April, 2010 12:29:40 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > dear julio > > code is: > > subplot(2,1,1) > plot(1:10) > subplot(2,1,2) > plot(1:10) > > attached is a screen-shot of the result > > after issuing subplot(2,1,2) and plot(1:10) commands, the first > subplot--subplot(2,1,1)--disappears! > > any hints how to further troubleshoot this odd and persistent > behaviour i am having with scilab 5.x? > > ciao, jordan > > p.s. i do not experience this behaviour with scilab 4.1.2 > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Wed, April 21, 2010 4:12:11 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Dear Jordan, > > I can see the graphics but not the code... > > Regards, > > Julio > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Tue, 20 April, 2010 1:54:04 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > dear julio > > attached is a screen-shot of the console--showing code--and resulting > graphic window > > ciao, jordan > > > > > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Tue, April 20, 2010 11:08:11 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Hi Jordan, > > Can you please post your code?? > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Tue, 20 April, 2010 1:02:25 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > hello > > >To change the adressed area, just do > >subplot(nL,nC, nB) > > > after issuing the command plot(), the first subplot, i.e. > subplot(1,2,1), has disappeared and i am unable to make it re-appear. > issuing subplot(1,2,1) after plot() does not make the first one > re-appear > > issuing gca indicates there are two Axes children, yet only the second > is visible > > issuing xs2eps(0,'test.eps') after plot() creates file with both > plots visible > > any other hints here to get the first subplot visible? > > jordan > > > ----- Original Message ---- > From: Samuel Gougeon > To: users at lists.scilab.org > Sent: Mon, April 19, 2010 11:02:29 PM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Hello, > ----- Message d'origine ----- > De : jordan alexander > Date : 19/04/2010 12:52: > > dear lists.scilab.org > > > > creating subplots is not working for me > > > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, > graphics driver = 'intel integrated graphics chipset' > subplot(nL,nC, nA) virtually shares the current graphic windows in > nL lines and nC columns of rectangular sub-area, and adresses the > nA'th one for the forthcoming plotting commands. > To change the adressed area, just do > subplot(nL,nC, nB) > Then the nB'th one becomes the current one. > > Samuel > > > > > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From alexanjo at yahoo.com Thu Apr 22 07:53:57 2010 From: alexanjo at yahoo.com (jordan alexander) Date: Wed, 21 Apr 2010 22:53:57 -0700 (PDT) Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <1271890970.10183.353.camel@zlarin> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> <10366.66413.qm@web58008.mail.re3.yahoo.com> <1271890970.10183.353.camel@zlarin> Message-ID: <68146.85247.qm@web58007.mail.re3.yahoo.com> dear sylvestre who do you suggest i contact at scilab to update the OpenGL driver? ciao, jordan ----- Original Message ---- From: Sylvestre Ledru To: users at lists.scilab.org Sent: Thu, April 22, 2010 11:02:50 AM Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears I think this might be related to your driver of your graphic card. Scilab needs up-to-date OpenGL driver. Sylvestre Le mercredi 21 avril 2010 ? 15:56 -0700, jordan alexander a ?crit : > dear julio > > attached is the screenshot of my result of runing your code... > > > i looked at the your attached screenshot of your result > > yes, that is what i expect! > > instead, i get my attached screenshot! > > ciao, jordan > > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Thu, April 22, 2010 3:05:06 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Dear Jordan, > > Can you please run this simple subplot program: > > clf() > omega0=1; > k=[0.2 1 3]; > n=0; > for kappa=k > n=n+1; > omega=sqrt(omega0^2-kappa^2); > t=0:0.01:8*%pi; > if (omega==0) > y=exp(-kappa.*t).*t; > else > y=exp(-kappa.*t).*sin(omega*t)/omega; > end > if n==1 > subplot(2,1,1) // It will spawn over two columns > else > subplot(2,2,n+1) > end > plot(t,y); > legend(['kappa = '+ string(kappa)]); // I could not figutre out > // how to write greek characteres. num2str does not exist in > SCILAB > end > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Wed, 21 April, 2010 12:29:40 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > dear julio > > code is: > > subplot(2,1,1) > plot(1:10) > subplot(2,1,2) > plot(1:10) > > attached is a screen-shot of the result > > after issuing subplot(2,1,2) and plot(1:10) commands, the first > subplot--subplot(2,1,1)--disappears! > > any hints how to further troubleshoot this odd and persistent > behaviour i am having with scilab 5.x? > > ciao, jordan > > p.s. i do not experience this behaviour with scilab 4.1.2 > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Wed, April 21, 2010 4:12:11 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Dear Jordan, > > I can see the graphics but not the code... > > Regards, > > Julio > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Tue, 20 April, 2010 1:54:04 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > dear julio > > attached is a screen-shot of the console--showing code--and resulting > graphic window > > ciao, jordan > > > > > > ______________________________________________________________________ > From: Julio Gonzalez-Saenz > To: users at lists.scilab.org > Sent: Tue, April 20, 2010 11:08:11 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Hi Jordan, > > Can you please post your code?? > > > > ______________________________________________________________________ > From: jordan alexander > To: users at lists.scilab.org > Sent: Tue, 20 April, 2010 1:02:25 > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > hello > > >To change the adressed area, just do > >subplot(nL,nC, nB) > > > after issuing the command plot(), the first subplot, i.e. > subplot(1,2,1), has disappeared and i am unable to make it re-appear. > issuing subplot(1,2,1) after plot() does not make the first one > re-appear > > issuing gca indicates there are two Axes children, yet only the second > is visible > > issuing xs2eps(0,'test.eps') after plot() creates file with both > plots visible > > any other hints here to get the first subplot visible? > > jordan > > > ----- Original Message ---- > From: Samuel Gougeon > To: users at lists.scilab.org > Sent: Mon, April 19, 2010 11:02:29 PM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > plot() produces 2nd subplot only, first disappears > > Hello, > ----- Message d'origine ----- > De : jordan alexander > Date : 19/04/2010 12:52: > > dear lists.scilab.org > > > > creating subplots is not working for me > > > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, > graphics driver = 'intel integrated graphics chipset' > subplot(nL,nC, nA) virtually shares the current graphic windows in > nL lines and nC columns of rectangular sub-area, and adresses the > nA'th one for the forthcoming plotting commands. > To change the adressed area, just do > subplot(nL,nC, nB) > Then the nB'th one becomes the current one. > > Samuel > > > > > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From allan.cornet at scilab.org Thu Apr 22 08:23:50 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 22 Apr 2010 08:23:50 +0200 Subject: [scilab-Users] Xcos C compiler In-Reply-To: References: Message-ID: <002b01cae1e4$5f65f170$1e31d450$@cornet@scilab.org> Hi, If you install Scilab x64 on your Windows 64 bits , you need to have visual studio with x64 component support installed (and supported by Visual studio). During installation of Ms Visual studio, please be sure to install x64 component. Best regards Allan CORNET De : fabrizio de nisi [mailto:fabriziod75 at gmail.com] Envoy? : mercredi 21 avril 2010 22:09 ? : users at lists.scilab.org Objet : [scilab-Users] Xcos C compiler Hello, I'm trying to use Xcos after Scilab 5.2.1 installation with Windows 7 (64 bit). When I use some Xcos demos (electrical systems) I have the following message: "Compatible C compailer required". I have installed Microsoft Visual Studio but I haven't solved the problem. Could you help me? Thanks, Fabrizio De Nisi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu Apr 22 08:37:32 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 22 Apr 2010 08:37:32 +0200 Subject: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears In-Reply-To: <68146.85247.qm@web58007.mail.re3.yahoo.com> References: <590595.254.qm@web58006.mail.re3.yahoo.com> <4BCC3845.5040807@univ-lemans.fr> <936721.75611.qm@web58003.mail.re3.yahoo.com> <587459.70669.qm@web28311.mail.ukl.yahoo.com> <517232.67141.qm@web58001.mail.re3.yahoo.com> <558750.28306.qm@web28307.mail.ukl.yahoo.com> <805717.73016.qm@web58007.mail.re3.yahoo.com> <218312.69080.qm@web28312.mail.ukl.yahoo.com> <10366.66413.qm@web58008.mail.re3.yahoo.com> <1271890970.10183.353.camel@zlarin> <68146.85247.qm@web58007.mail.re3.yahoo.com> Message-ID: <1271918252.10974.1371.camel@zlarin> The OpenGL driver is included with your graphic drivers. Just update your graphic card driver on your system to a recent version and it should fix this issue. Sylvestre Le mercredi 21 avril 2010 ? 22:53 -0700, jordan alexander a ?crit : > dear sylvestre > > who do you suggest i contact at scilab to update the OpenGL driver? > > ciao, jordan > > > > ----- Original Message ---- > From: Sylvestre Ledru > To: users at lists.scilab.org > Sent: Thu, April 22, 2010 11:02:50 AM > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. plot() produces 2nd subplot only, first disappears > > I think this might be related to your driver of your graphic card. > Scilab needs up-to-date OpenGL driver. > > > Sylvestre > > Le mercredi 21 avril 2010 ? 15:56 -0700, jordan alexander a ?crit : > > dear julio > > > > attached is the screenshot of my result of runing your code... > > > > > > i looked at the your attached screenshot of your result > > > > yes, that is what i expect! > > > > instead, i get my attached screenshot! > > > > ciao, jordan > > > > > > ______________________________________________________________________ > > From: Julio Gonzalez-Saenz > > To: users at lists.scilab.org > > Sent: Thu, April 22, 2010 3:05:06 AM > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > Dear Jordan, > > > > Can you please run this simple subplot program: > > > > clf() > > omega0=1; > > k=[0.2 1 3]; > > n=0; > > for kappa=k > > n=n+1; > > omega=sqrt(omega0^2-kappa^2); > > t=0:0.01:8*%pi; > > if (omega==0) > > y=exp(-kappa.*t).*t; > > else > > y=exp(-kappa.*t).*sin(omega*t)/omega; > > end > > if n==1 > > subplot(2,1,1) // It will spawn over two columns > > else > > subplot(2,2,n+1) > > end > > plot(t,y); > > legend(['kappa = '+ string(kappa)]); // I could not figutre out > > // how to write greek characteres. num2str does not exist in > > SCILAB > > end > > > > > > > > ______________________________________________________________________ > > From: jordan alexander > > To: users at lists.scilab.org > > Sent: Wed, 21 April, 2010 12:29:40 > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > dear julio > > > > code is: > > > > subplot(2,1,1) > > plot(1:10) > > subplot(2,1,2) > > plot(1:10) > > > > attached is a screen-shot of the result > > > > after issuing subplot(2,1,2) and plot(1:10) commands, the first > > subplot--subplot(2,1,1)--disappears! > > > > any hints how to further troubleshoot this odd and persistent > > behaviour i am having with scilab 5.x? > > > > ciao, jordan > > > > p.s. i do not experience this behaviour with scilab 4.1.2 > > > > ______________________________________________________________________ > > From: Julio Gonzalez-Saenz > > To: users at lists.scilab.org > > Sent: Wed, April 21, 2010 4:12:11 AM > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > Dear Jordan, > > > > I can see the graphics but not the code... > > > > Regards, > > > > Julio > > > > > > > > ______________________________________________________________________ > > From: jordan alexander > > To: users at lists.scilab.org > > Sent: Tue, 20 April, 2010 1:54:04 > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > dear julio > > > > attached is a screen-shot of the console--showing code--and resulting > > graphic window > > > > ciao, jordan > > > > > > > > > > > > ______________________________________________________________________ > > From: Julio Gonzalez-Saenz > > To: users at lists.scilab.org > > Sent: Tue, April 20, 2010 11:08:11 AM > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > Hi Jordan, > > > > Can you please post your code?? > > > > > > > > ______________________________________________________________________ > > From: jordan alexander > > To: users at lists.scilab.org > > Sent: Tue, 20 April, 2010 1:02:25 > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > hello > > > > >To change the adressed area, just do > > >subplot(nL,nC, nB) > > > > > > after issuing the command plot(), the first subplot, i.e. > > subplot(1,2,1), has disappeared and i am unable to make it re-appear. > > issuing subplot(1,2,1) after plot() does not make the first one > > re-appear > > > > issuing gca indicates there are two Axes children, yet only the second > > is visible > > > > issuing xs2eps(0,'test.eps') after plot() creates file with both > > plots visible > > > > any other hints here to get the first subplot visible? > > > > jordan > > > > > > ----- Original Message ---- > > From: Samuel Gougeon > > To: users at lists.scilab.org > > Sent: Mon, April 19, 2010 11:02:29 PM > > Subject: Re: [scilab-Users] unable to create multiple subplots, e.g. > > plot() produces 2nd subplot only, first disappears > > > > Hello, > > ----- Message d'origine ----- > > De : jordan alexander > > Date : 19/04/2010 12:52: > > > dear lists.scilab.org > > > > > > creating subplots is not working for me > > > > > > using scilab 5.x running on fedora 11, thinkpad t500 laptop, > > graphics driver = 'intel integrated graphics chipset' > > subplot(nL,nC, nA) virtually shares the current graphic windows in > > nL lines and nC columns of rectangular sub-area, and adresses the > > nA'th one for the forthcoming plotting commands. > > To change the adressed area, just do > > subplot(nL,nC, nB) > > Then the nB'th one becomes the current one. > > > > Samuel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From jprovost_2000 at yahoo.fr Thu Apr 22 21:39:00 2010 From: jprovost_2000 at yahoo.fr (=?iso-8859-1?Q?J=E9r=E9my_Provost?=) Date: Thu, 22 Apr 2010 21:39:00 +0200 Subject: inactive interface Message-ID: Dear All I have just installed scilab 5.2.2 for Mac OS X - snow leopard . My problem is that the interface remains inactive (bar menu, icons, etc.) : nothing works. I can type and perform calculation but that 's all Have you a solution? Best regards J?r?my Provost jprovost_2000 at yahoo.fr +33 (0)6.09.15.36.80 http://web.me.com/jeremyprovost/JrmyOntheWeb/Jrmy_On_The_Web/Jrmy_On_The_Web.html From sylvestre.ledru at scilab.org Thu Apr 22 21:43:21 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 22 Apr 2010 21:43:21 +0200 Subject: [scilab-Users] inactive interface In-Reply-To: References: Message-ID: <1271965401.10974.3753.camel@zlarin> Le jeudi 22 avril 2010 ? 21:39 +0200, J?r?my Provost a ?crit : > Dear All > > I have just installed scilab 5.2.2 for Mac OS X - snow leopard . Did you have this before ? > My problem is that the interface remains inactive (bar menu, icons, etc.) : nothing works. Could you try to start Scilab from an terminal and type: cd scilab-5.2.2.app/Contents/MacOS/ LANG=C ./bin/scilab or LANG=en_US ./bin/scilab or LANG=en_US.UTF-8 ./bin/scilab Anyway, could you report a bug with a screenshot and some information about you configuration ? Thanks Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From hinow at uwm.edu Thu Apr 22 22:29:17 2010 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 22 Apr 2010 15:29:17 -0500 (CDT) Subject: FFT for nonequispaced data Message-ID: <118085019.1797011271968157143.JavaMail.root@mail02.pantherlink.uwm.edu> dear all, is there a scilab implementation of a discrete (fast) Fourier transform for nonequispaced data (NDFT)? thanks for all help, best regards, Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From enauful at sc.rr.com Thu Apr 22 22:55:53 2010 From: enauful at sc.rr.com (enauful) Date: Thu, 22 Apr 2010 16:55:53 -0400 Subject: Toolbox Virus Message-ID: <000001cae25e$32a8d8d0$97fa8a70$@rr.com> I found a scilab toolbox from this url: http://www.cert.fr/dcsd/idco/perso/Magni/toolboxes.html When I downloaded this toolbox: Symbolic Toolbox and overloading module for Scilab And tried to unzip, I got a virus message. It looked like a reputable site. The other downloads had no problems. Any other experience with this. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at brown-web.net Sat Apr 24 15:42:59 2010 From: steve at brown-web.net (Steve Brown) Date: Sat, 24 Apr 2010 06:42:59 -0700 Subject: What is the easiest way to upgrade to a new version? Message-ID: I'm currently running SciLab 5.2.1 on Ubuntu 9.1 What is the easiest way to upgrade to 5.2.2? Please be specific because I'm relatively new to using Linux. -- Steve Brown -------------- next part -------------- An HTML attachment was scrubbed... URL: From mansboat at gmail.com Sat Apr 24 20:12:05 2010 From: mansboat at gmail.com (Steve Brown) Date: Sat, 24 Apr 2010 11:12:05 -0700 Subject: What's the easiest way to upgrade scilab? Message-ID: I'm currently running SciLab 5.2.1 on Ubuntu 9.1 What is the easiest way to upgrade to 5.2.2? Please be specific because I'm relatively new to using Linux. -- Steve Brown -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Sat Apr 24 21:32:24 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sat, 24 Apr 2010 21:32:24 +0200 Subject: [scilab-Users] What's the easiest way to upgrade scilab? In-Reply-To: References: Message-ID: <4BD34748.5080407@laas.fr> Steve Brown a ?crit : > I'm currently running SciLab 5.2.1 on Ubuntu 9.1 > > What is the easiest way to upgrade to 5.2.2? > > Please be specific because I'm relatively new to using Linux. > > -- > Steve Brown From my experience on Fedora 9 -> 11, the best solution is just to grab the latest binary package from www.scilab.org and install it locally. It goes something like: cd ~ mkdir mylastscilab cd mylastscilab wget http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-i686.tar.gz # or wget http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-x86_64.tar.gz if you use 64bit linux untar -xvf scilab-5.2.2.bin.linux-i686.tar.gz scilab-5.2.2/bin/scilab enjoy! I never use the version of Scilab that is provided by the official repos of my distro, it's always a bit outdated. Antoine From jasonkrupert at yahoo.com Mon Apr 26 04:54:15 2010 From: jasonkrupert at yahoo.com (Jason Rupert) Date: Sun, 25 Apr 2010 19:54:15 -0700 (PDT) Subject: Subscribing to the SciLab Mailing Support List Message-ID: <207169.33306.qm@web56003.mail.re3.yahoo.com> What steps do I need to take in order to subscribe to the SciLab Mailing Support List? Thanks for your help and feedback. Sincerely, Jason Rupert jasonkrupert at yahoo.com From julio.gonzalez at ymail.com Mon Apr 26 10:59:36 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 26 Apr 2010 08:59:36 +0000 (GMT) Subject: [scilab-Users] Subscribing to the SciLab Mailing Support List In-Reply-To: <207169.33306.qm@web56003.mail.re3.yahoo.com> References: <207169.33306.qm@web56003.mail.re3.yahoo.com> Message-ID: <841739.50233.qm@web28310.mail.ukl.yahoo.com> Do you mean this list (user list)?? Hi Jason, These are the SCILAB mailing list possibilities... dev Scilab development mailing list distributor Discussion and collaboration list for distributors of Scilab gsoc Google Summer of Code localization Scilab Localization mailing list lyces Scilab pour les lyc?es mailing list (only in French) user Scilab Users mailing list To subscribe to the user list, send a message to: Regards, Julio ________________________________ From: Jason Rupert To: users at lists.scilab.org Sent: Mon, 26 April, 2010 4:54:15 Subject: [scilab-Users] Subscribing to the SciLab Mailing Support List What steps do I need to take in order to subscribe to the SciLab Mailing Support List? Thanks for your help and feedback. Sincerely, Jason Rupert jasonkrupert at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Apr 26 17:24:26 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 26 Apr 2010 17:24:26 +0200 Subject: covariance matrix and leastsq Message-ID: <4BD5B02A.6080507@laas.fr> Hi everyone, I am using leastsq to fit some experimental data with different kind of model functions. In order to properly analyse the result of these fits, I would like to get an estimate of the standard error on each parameter (or an interval of confidence at 95%). So far, the only way I found to retrieve the interval of confidence is to do bootstrapping but it requires repeating the fitting procedure ~ 100 times. I am looking for a less computer-intensive solution. As far as I understood, leastsq is using minpack to implement the Levenberg-Marquardt algorithm. Is there a way to get access to the covariance matrix with leastsq, optim or any other scilab routine? This would be way faster and easier than bootstrapping. Thanks in advance for your help, Antoine From rashaz111 at yahoo.com Mon Apr 26 19:02:59 2010 From: rashaz111 at yahoo.com (Mrs. Khan) Date: Mon, 26 Apr 2010 10:02:59 -0700 (PDT) Subject: Sharing data between Scilab and Scicos Message-ID: <57061.27616.qm@web113813.mail.gq1.yahoo.com> Hello! I am trying to develop a model/GUI in Scicos that allows a user to: 1. Acquire images from a target hardware 2. Apply image processing algorithm to acquired image 3. Plot relevant parameters 4. Change parameters of the hardware At the moment, I am concentrating on step 1. My problem right now is: 1. After reading the BMP image using a C routine, I convert the image array to a Scilab matrix. How can I use this Scilab matrix as an input to the CMATVIEW block to view the image? Other relevant information: I will only be dealing with gray-scale images. The colormap information of BMP file is not important. The image array I mentioned above, only contains pixel information. The Scilab matrix will be a two-dimensional structure of pixels. I set the CMATVIEW parameters to: { graycolormap(256), 0, 255} In order to share data between Scilab and Scicos, I added the following lines in the C routine (The C routine is executed when the function is called with flag 4): // CreateVarFromPtr(1, "i", &xout, &yout, &out); // (*blk).outptr[0]=istk(1); "xout" is the height of the BMP file in pixels "yout" is the width of the BMP file in pixels "out" is the array of pixel data But, the CMATVIEW block does not display image. There are no error messages in either Scilab/Scicos during simulation. When I stop simulation, the display window of CMATVIEW freezes and I am unable to close it after that. I am using a Generic block for this C routine. The output port of Generic Block is connected to the input port of CMATVIEW. I modified the output port size of Generic Block to [80, 80] which are the row and column widths of the image. I hope this description is clear. Please feel free to contact me if you need clarification or additional information. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Tue Apr 27 03:18:43 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 26 Apr 2010 18:18:43 -0700 Subject: [scilab-users] stack size Message-ID: I am developing a signal analysis package and have a prototype working on small segments of data. When I tried to apply the routines to a large data file, I got a stack overflow error. I inserted stacksize(max) and find that the largest stack is as follows: -->stacksize() ans = 5000000. 76970. I am running this on a MacBookPro with 4GB of ram. Is there any way to increase the stack beyond the apparent limits? Is there some other better way to deal with this? Gary Nelson gnelson at quantasonics.com From Andreas.Stewering-Bone at gmx.de Tue Apr 27 08:41:29 2010 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Tue, 27 Apr 2010 08:41:29 +0200 Subject: XCos Blocks Message-ID: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> Hello, Is there any documentation about XCos Block building and compiling? I have working blocks under Scilab 4.x and Scicoslab, but I do not know under Xcos: - how to compile and link the c-source against the xcos-libs? - how to build up the hdf5 files? Greatings Andreas From sebastian.urban at kit.edu Tue Apr 27 10:40:16 2010 From: sebastian.urban at kit.edu (Sebastian Urban) Date: Tue, 27 Apr 2010 10:40:16 +0200 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: References: Message-ID: <4BD6A2F0.3010408@kit.edu> Dear Gary, I was running in the same problem and found that you can set higher stacksizes by giving a specific number, e.g. stacksize(2.8e8). You can try to find your max that way. If you bet too high, you'll receive an error notification immediately, no harm. Is there a less annoying way to set the (real) max? Sebastian Gary Nelson wrote: > I am developing a signal analysis package and have a prototype working on small segments of data. When I tried to apply the routines to a large data file, I got a stack overflow error. > I inserted stacksize(max) and find that the largest stack is as follows: > > -->stacksize() > ans = > > 5000000. 76970. > > I am running this on a MacBookPro with 4GB of ram. Is there any way to increase the stack beyond the apparent limits? > > Is there some other better way to deal with this? > > > > Gary Nelson > gnelson at quantasonics.com -- Karlsruhe Institute of Technology (KIT) Institute for Stochastics Sebastian Urban Research Assistant Kaiserstra?e 89, Allianz building (05.20), room 5A-05 D-76133 Karlsruhe, Germany phone: +49 (0) 721 608-6967 fax: +49 (0) 721 608-6066 e-mail: sebastian.urban at kit.edu http://www.math.kit.edu/stoch/~urban/en KIT -- http://www.kit.edu/ University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association From Francis.Drossaert at pgs.com Tue Apr 27 11:22:54 2010 From: Francis.Drossaert at pgs.com (Francis Drossaert) Date: Tue, 27 Apr 2010 10:22:54 +0100 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: <4BD6A2F0.3010408@kit.edu> References: <4BD6A2F0.3010408@kit.edu> Message-ID: <31F3753170EA6B45A8DA96C0FD58E026A1D7DBB5@lonms20.onshore.pgs.com> I found that I can set the maximum to approximately 1GB - 1MB i.e. stacksize(1023*1024*1024) on my 8GB Linux machine. Going over that Scilab just crashes. With previous Scilab versions I only could get 256MB. Believe it or not, regularly I needed a bit more than that. However when using this maximum I found the help function does not work very well or makes Scilab crash. This might also affect or Scilab functions (probably the editor too etc). So perhaps it is good to leave some headroom. To avoid setting the stacksize manually every time you can make a text-file called .scilab with the line stacksize(512*1024*1024) and put the file in your /.Scilab/.scilab-5.2.2 folder in usually your home directory. This file is executed in the beginning every time Scilab starts. -----Original Message----- From: Sebastian Urban [mailto:sebastian.urban at kit.edu] Sent: 27 April 2010 09:40 To: users at lists.scilab.org Subject: Re: [scilab-Users] [scilab-users] stack size Dear Gary, I was running in the same problem and found that you can set higher stacksizes by giving a specific number, e.g. stacksize(2.8e8). You can try to find your max that way. If you bet too high, you'll receive an error notification immediately, no harm. Is there a less annoying way to set the (real) max? Sebastian Gary Nelson wrote: > I am developing a signal analysis package and have a prototype working on small segments of data. When I tried to apply the routines to a large data file, I got a stack overflow error. > I inserted stacksize(max) and find that the largest stack is as follows: > > -->stacksize() > ans = > > 5000000. 76970. > > I am running this on a MacBookPro with 4GB of ram. Is there any way to increase the stack beyond the apparent limits? > > Is there some other better way to deal with this? > > > > Gary Nelson > gnelson at quantasonics.com -- Karlsruhe Institute of Technology (KIT) Institute for Stochastics Sebastian Urban Research Assistant Kaiserstra?e 89, Allianz building (05.20), room 5A-05 D-76133 Karlsruhe, Germany phone: +49 (0) 721 608-6967 fax: +49 (0) 721 608-6066 e-mail: sebastian.urban at kit.edu http://www.math.kit.edu/stoch/~urban/en KIT -- http://www.kit.edu/ University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only. If you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely on this e-mail in any way except as permitted by the author. From clement.david at scilab.org Tue Apr 27 11:32:22 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Tue, 27 Apr 2010 11:32:22 +0200 Subject: [scilab-Users] XCos Blocks In-Reply-To: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> Message-ID: <1272360742.2216.17.camel@pinarellu.inria.fr> Hello, First the Xcos API has been described in the wiki : [http://wiki.scilab.org/Xcos/PrivateAPI] and [http://wiki.scilab.org/Xcos/PublicAPI]. On the 5.2.x branch, you can reuse your current scicos implementation as the core is the same. As in Scicoslab, you just need to load your block interface function into the interpreter (myblock.c), provide macros block descriptor (MYBLOCK_f.sci) and a reference instance in a palette (MYPALETTE.cosf). Then just open your palette on xcos as a normal diagram or use palettes/Open as palette button. For the 5.3.x branch (current master), we will probably provide an API to add/remove/customize h5 blocks from Scilab. Thus user will be able to implement Xcos palettes as Scilab toolboxes. Regards, Cl?ment > Hello, > > Is there any documentation about XCos Block building and compiling? > I have working blocks under Scilab 4.x and Scicoslab, but I do not know under > Xcos: > - how to compile and link the c-source against the xcos-libs? > - how to build up the hdf5 files? > > > Greatings > > > Andreas From amarvibhandik at gmail.com Tue Apr 27 13:13:16 2010 From: amarvibhandik at gmail.com (amar Vibhandik) Date: Tue, 27 Apr 2010 16:43:16 +0530 Subject: problem about scilab 5.2.2 linux version Message-ID: respected sir i am AMAR VIBHANDIK,persuing masters in chem engg. sir while doing untar of scilab5.2.2.bin.linux-x86_64.tar.gz error are coming as stdin :unexpected end of file tar:unexpected EOF in archive tar:error is not recoverable:exiting now sir plz send me solution of above problem thanking you yours faithfully -- Mr. AMAR DILIP VIBHANDIK (Research Scholar) ICT,Matunga(E),MUMBAI 400019 MAHARASHTRA -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.bohnert at developpement-durable.gouv.fr Tue Apr 27 13:41:27 2010 From: cedric.bohnert at developpement-durable.gouv.fr (BOHNERT Cedric - CETE Est/LRPC de Strasbourg/6 Acoustique) Date: Tue, 27 Apr 2010 13:41:27 +0200 Subject: calling java components from scilab, possible? Message-ID: <4BD6CD67.9060803@developpement-durable.gouv.fr> Dear scilab users, I am currently working on a scilab project for signal processing. It is actually a set of different functions processing simulated MLS signals. Each functions are called sequencially, produce a 2d-plot of the signal and the user can click on the plot to add a Black-Harris windows and finally some characteristics are computed. I would like to unify and generate all computations through a friendly GUI. I have searched the web for more information and I have found we can call scilab from different low-level languages (C, fortran, java...). My question is to know wether it is possible to call some Java from scilab, such a graphical components, in order for me to develop a java-based GUI ? Thank you for any answers. From xendoo at gmail.com Tue Apr 27 13:42:20 2010 From: xendoo at gmail.com (xendo) Date: Tue, 27 Apr 2010 13:42:20 +0200 Subject: [scilab-Users] problem about scilab 5.2.2 linux version In-Reply-To: References: Message-ID: There is nothing wrong with Scilab here, tar file that you've downloaded is probably broken. Try downloading it again (http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-x86_64.tar.gz untars fine on my computer) On 27 April 2010 13:13, amar Vibhandik wrote: > respected sir > i am AMAR VIBHANDIK,persuing masters in chem engg. > ?sir while doing untar of scilab5.2.2.bin.linux-x86_64.tar.gz error are > coming as > > stdin :unexpected end of file > tar:unexpected EOF in archive > tar:error is not recoverable:exiting now > > sir plz send me solution of above problem > thanking yo > yours faithfully > > > -- > Mr. AMAR DILIP VIBHANDIK > ? ? ?(Research Scholar) > ICT,Matunga(E),MUMBAI > 400019 > MAHARASHTRA > From calixte.denizet at ac-rennes.fr Tue Apr 27 14:31:24 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Tue, 27 Apr 2010 14:31:24 +0200 Subject: [scilab-Users] calling java components from scilab, possible? In-Reply-To: <4BD6CD67.9060803@developpement-durable.gouv.fr> References: <4BD6CD67.9060803@developpement-durable.gouv.fr> Message-ID: <1272371484.2185.16.camel@calixte-laptop> Hello Cedric, You can try the toolbox JIMS : http://forge.scilab.org/index.php/p/JIMS/ I only tested it under GNU/Linux. If you meet a problem in using it, don't hesitate to contact me Calixte Le mardi 27 avril 2010 ? 13:41 +0200, BOHNERT Cedric - CETE Est/LRPC de Strasbourg/6 Acoustique a ?crit : > Dear scilab users, > > I am currently working on a scilab project for signal processing. > > It is actually a set of different functions processing simulated MLS > signals. > > Each functions are called sequencially, produce a 2d-plot of the signal > and the user > can click on the plot to add a Black-Harris windows and finally some > characteristics are computed. > > I would like to unify and generate all computations through a friendly GUI. > > I have searched the web for more information and I have found we can > call scilab from different low-level languages (C, fortran, java...). > > My question is to know wether it is possible to call some Java from > scilab, such a graphical components, in order for me to develop a > java-based GUI ? > > Thank you for any answers. From d.picard at opgc.univ-bpclermont.fr Tue Apr 27 16:43:18 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 27 Apr 2010 16:43:18 +0200 Subject: plot time series Message-ID: <4BD6F806.3020006@opgc.univ-bpclermont.fr> Hello, I need to plot time series but I did not manage to plot date and time in a human readable as the x axis scale from the original serial date number. Thanks. From sdr at durietz.se Tue Apr 27 17:46:42 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 27 Apr 2010 17:46:42 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD6F806.3020006@opgc.univ-bpclermont.fr> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> Message-ID: <4BD706E2.1090700@durietz.se> Hello David, you can read/try my attached function weektick and maybe find out how to do. Ask me if there is anything obscure. Stefan On 2010-04-27 16:43, David PICARD wrote: -------------------- > Hello, > > I need to plot time series but I did not manage to plot date and time in > a human readable as the x axis scale from the original serial date number. > > Thanks. > From sdr at durietz.se Tue Apr 27 17:49:23 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 27 Apr 2010 17:49:23 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD6F806.3020006@opgc.univ-bpclermont.fr> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> Message-ID: <4BD70783.70003@durietz.se> Sorry, I forgot the files... Stefan On 2010-04-27 16:43, David PICARD wrote: -------------------- > Hello, > > I need to plot time series but I did not manage to plot date and time in > a human readable as the x axis scale from the original serial date number. > > Thanks. > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: datestr.sci URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: weekday.sci URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: weektick.sci URL: From d.picard at opgc.univ-bpclermont.fr Tue Apr 27 18:00:37 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 27 Apr 2010 18:00:37 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD70783.70003@durietz.se> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> Message-ID: <4BD70A25.5020309@opgc.univ-bpclermont.fr> Thank you for your code. However, Scilab stops on undefined trimdv() at datestr.sci:25... Stefan Du Rietz a ?crit : > Sorry, I forgot the files... > > Stefan > > On 2010-04-27 16:43, David PICARD wrote: > -------------------- >> Hello, >> >> I need to plot time series but I did not manage to plot date and time >> in a human readable as the x axis scale from the original serial date >> number. >> >> Thanks. >> > From sdr at durietz.se Tue Apr 27 18:09:33 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 27 Apr 2010 18:09:33 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD70A25.5020309@opgc.univ-bpclermont.fr> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> <4BD70A25.5020309@opgc.univ-bpclermont.fr> Message-ID: <4BD70C3D.2090902@durietz.se> Sorry once again... trimdv() fixes a date vector with wrong numbers due to addition. Stefan On 2010-04-27 18:00, David PICARD wrote: -------------------- > Thank you for your code. However, Scilab stops on undefined trimdv() at > datestr.sci:25... > > > Stefan Du Rietz a ?crit : >> Sorry, I forgot the files... >> >> Stefan >> >> On 2010-04-27 16:43, David PICARD wrote: >> -------------------- >>> Hello, >>> >>> I need to plot time series but I did not manage to plot date and time >>> in a human readable as the x axis scale from the original serial date >>> number. >>> >>> Thanks. >>> >> > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: trimdv.sci URL: From ginters.buss at gmail.com Tue Apr 27 18:11:06 2010 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Tue, 27 Apr 2010 19:11:06 +0300 Subject: [scilab-Users] plot time series In-Reply-To: <4BD70A25.5020309@opgc.univ-bpclermont.fr> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> <4BD70A25.5020309@opgc.univ-bpclermont.fr> Message-ID: You could try Grocer (say, function pltseries), an econometrics toolbox for Scilab: http://dubois.ensae.net/grocer.html It's also in Atoms. Ginters On Tue, Apr 27, 2010 at 7:00 PM, David PICARD < d.picard at opgc.univ-bpclermont.fr> wrote: > Thank you for your code. However, Scilab stops on undefined trimdv() at > datestr.sci:25... > > > Stefan Du Rietz a ?crit : > > Sorry, I forgot the files... >> >> Stefan >> >> On 2010-04-27 16:43, David PICARD wrote: >> -------------------- >> >>> Hello, >>> >>> I need to plot time series but I did not manage to plot date and time in >>> a human readable as the x axis scale from the original serial date number. >>> >>> Thanks. >>> >>> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Tue Apr 27 18:36:06 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 27 Apr 2010 18:36:06 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD70C3D.2090902@durietz.se> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> <4BD70A25.5020309@opgc.univ-bpclermont.fr> <4BD70C3D.2090902@durietz.se> Message-ID: <4BD71276.5090008@durietz.se> And I think you need this too... Stefan On 2010-04-27 18:09, Stefan Du Rietz wrote: -------------------- > Sorry once again... > > trimdv() fixes a date vector with wrong numbers due to addition. > > Stefan > > On 2010-04-27 18:00, David PICARD wrote: > -------------------- >> Thank you for your code. However, Scilab stops on undefined trimdv() >> at datestr.sci:25... >> >> >> Stefan Du Rietz a ?crit : >>> Sorry, I forgot the files... >>> >>> Stefan >>> >>> On 2010-04-27 16:43, David PICARD wrote: >>> -------------------- >>>> Hello, >>>> >>>> I need to plot time series but I did not manage to plot date and >>>> time in a human readable as the x axis scale from the original >>>> serial date number. >>>> >>>> Thanks. >>>> >>> >> > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: eomday.sci URL: From huubvanniekerk at gmail.com Tue Apr 27 18:39:28 2010 From: huubvanniekerk at gmail.com (Huub) Date: Tue, 27 Apr 2010 18:39:28 +0200 Subject: What's the easiest way to upgrade scilab? In-Reply-To: <4BD34748.5080407@laas.fr> References: <4BD34748.5080407@laas.fr> Message-ID: On 4/24/10 9:32 PM, Antoine Monmayrant wrote: > Steve Brown a ?crit : >> I'm currently running SciLab 5.2.1 on Ubuntu 9.1 >> >> What is the easiest way to upgrade to 5.2.2? >> >> Please be specific because I'm relatively new to using Linux. >> >> -- >> Steve Brown > From my experience on Fedora 9 -> 11, the best solution is just to grab > the latest binary package from www.scilab.org and install it locally. > It goes something like: > > cd ~ > mkdir mylastscilab > cd mylastscilab > wget > http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-i686.tar.gz > # or wget > http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-x86_64.tar.gz if > you use 64bit linux > untar -xvf scilab-5.2.2.bin.linux-i686.tar.gz > scilab-5.2.2/bin/scilab > > enjoy! > > I never use the version of Scilab that is provided by the official repos > of my distro, it's always a bit outdated. > > Antoine > Keep in mind that with the latest Fedora versions you'll have to resolve the SELinux warnings to get Scilab to work. For 5.2.2 the warnings (and subsequent actions) were down to 2 and fairly easy and quickly to deal with. From sylvestre.ledru at scilab.org Tue Apr 27 18:43:49 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 27 Apr 2010 18:43:49 +0200 Subject: [scilab-Users] Re: What's the easiest way to upgrade scilab? In-Reply-To: References: <4BD34748.5080407@laas.fr> Message-ID: <1272386629.7223.5831.camel@korcula.inria.fr> Le mardi 27 avril 2010 ? 18:39 +0200, Huub a ?crit : > On 4/24/10 9:32 PM, Antoine Monmayrant wrote: > > Steve Brown a ?crit : > > I never use the version of Scilab that is provided by the official repos > > of my distro, it's always a bit outdated. > > > > Antoine > > > > Keep in mind that with the latest Fedora versions you'll have to resolve > the SELinux warnings to get Scilab to work. For 5.2.2 the warnings (and > subsequent actions) were down to 2 and fairly easy and quickly to deal with. > FYI, I am working with some contributors closely to see all Scilab dependencies included into Fedora (Like JOGL) in order to have Scilab included into the Fedora distribution. This should happen soon (or not). Sylvestre From andreas.dvorak at tgm.ac.at Tue Apr 27 18:52:42 2010 From: andreas.dvorak at tgm.ac.at (Andreas F. Dvorak) Date: Tue, 27 Apr 2010 18:52:42 +0200 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: References: Message-ID: <7A71C885-57CE-4BCD-9BB4-69AE85E370A7@tgm.ac.at> Dear Gary, try stacksize('max') with all other programs closed. Since Scilab 5.2.2 stacksize('max') works fine on my MacBook Pro with also 4GB. If u use an older version then update. -->stacksize('max') -->stacksize() ans = 1.750D+08 32936. Andreas Am 27.04.2010 um 03:18 schrieb Gary Nelson: > I am developing a signal analysis package and have a prototype working on small segments of data. When I tried to apply the routines to a large data file, I got a stack overflow error. > I inserted stacksize(max) and find that the largest stack is as follows: > > -->stacksize() > ans = > > 5000000. 76970. > > I am running this on a MacBookPro with 4GB of ram. Is there any way to increase the stack beyond the apparent limits? > > Is there some other better way to deal with this? > > > > Gary Nelson > gnelson at quantasonics.com > > > From gnelson at quantasonics.com Tue Apr 27 22:03:09 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 27 Apr 2010 13:03:09 -0700 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: <7A71C885-57CE-4BCD-9BB4-69AE85E370A7@tgm.ac.at> References: <7A71C885-57CE-4BCD-9BB4-69AE85E370A7@tgm.ac.at> Message-ID: <6B42ED72-5A4D-42ED-903F-6803DE032C25@quantasonics.com> stacksize(max) continues to say 5e6. I tried stacksize(1e8) and my routines ran once and crashed on second attempt. I ithen inserted stacksize(5e7) and all is well and larger data sets work. Should this be reported as a bug given that it causes a crash? Thanks Gary Nelson On Apr 27, 2010, at 9:52 AM, Andreas F. Dvorak wrote: > Dear Gary, > > try stacksize('max') with all other programs closed. Since Scilab 5.2.2 stacksize('max') works fine on my MacBook Pro with also 4GB. If u use an older version then update. > > -->stacksize('max') > > -->stacksize() > ans = > > 1.750D+08 32936. > > Andreas > > > > Am 27.04.2010 um 03:18 schrieb Gary Nelson: > >> I am developing a signal analysis package and have a prototype working on small segments of data. When I tried to apply the routines to a large data file, I got a stack overflow error. >> I inserted stacksize(max) and find that the largest stack is as follows: >> >> -->stacksize() >> ans = >> >> 5000000. 76970. >> >> I am running this on a MacBookPro with 4GB of ram. Is there any way to increase the stack beyond the apparent limits? >> >> Is there some other better way to deal with this? >> >> >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> > > > > Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Tue Apr 27 23:27:13 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 27 Apr 2010 14:27:13 -0700 Subject: [scilab users] wav file has to be in root directory Message-ID: <3230AAD3-91EA-48C6-A11D-FE6098531EC0@quantasonics.com> This works: file="/WavefunctionProject/VanaquaShorterAFTOS" save(file,aftos); from comsole clear aftos aftos ...get undefined variable error load(file,aftos) aftos ...shows the data correctly Above works and clearly proves that the matrix aftos is written out and then read back and it does not have to be in the root directory However this does not work file1="/WavefunctionProject/VanaquaShorter.wav" [porp1,yze]=loadwave(file1); generates this-- !--error 10000 loadwave: Cannot open file /VanaquaShorter.wav. at line 22 of function loadwave called by : [porp1,yze]=loadwave(file1); at line 124 of exec file called by : exec('/WavefunctionProject/ Scilab PC/testOctvGen.sce', -1) But this does work file1="/VanaquaShorter.wav" [porp1,yze]=loadwave(file1); I can't see what I am doing wrong. Can you help? Gary Nelson gnelson at quantasonics.com From kdl at ansto.gov.au Wed Apr 28 02:56:42 2010 From: kdl at ansto.gov.au (Klaus-Dieter Liss) Date: Wed, 28 Apr 2010 10:56:42 +1000 Subject: font size in help browser [SEC=UNCLASSIFIED] Message-ID: <4BD787CA.2090803@ansto.gov.au> hello, how to increase the font size in the help browser to a readable size? I am trying scilab 5.2.2 on a linux 64 bit machine. cheers, klaus. -- -- Dr. Klaus-Dieter Liss Senior Research Fellow The Bragg Institute, ANSTO Locked Bag 2001, Kirrawee DC, NSW 2232, Australia New Illawarra Road, Lucas Heights, NSW 2232, Australia T: +61-2-9717+9479 F: +61-2-9717+3606 M: 0419 166 978 E: kdl at ansto.gov.au http://www.ansto.gov.au/research/bragg_institute/science/scientific_projects/thermo private: http://liss.freeshell.org/ From grocer.toolbox at gmail.com Wed Apr 28 08:30:02 2010 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Wed, 28 Apr 2010 08:30:02 +0200 Subject: [scilab-Users] covariance matrix and leastsq In-Reply-To: <4BD5B02A.6080507@laas.fr> References: <4BD5B02A.6080507@laas.fr> Message-ID: Hi. In my package Grocer (available trough Atoms or on my web site : http://dubois.ensae.net/grocer.html), wirtten with Emmanuel Michaux, you will find among other things a function ols that provide standard errors of coefficients as well as the covaraince matrix of the coefficients. Eric. 2010/4/26 Antoine Monmayrant > Hi everyone, > > I am using leastsq to fit some experimental data with different kind of > model functions. > In order to properly analyse the result of these fits, I would like to get > an estimate of the standard error on each parameter (or an interval of > confidence at 95%). > So far, the only way I found to retrieve the interval of confidence is to > do bootstrapping but it requires repeating the fitting procedure ~ 100 > times. > I am looking for a less computer-intensive solution. > As far as I understood, leastsq is using minpack to implement the > Levenberg-Marquardt algorithm. > Is there a way to get access to the covariance matrix with leastsq, optim > or any other scilab routine? > This would be way faster and easier than bootstrapping. > > Thanks in advance for your help, > > Antoine > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Apr 28 09:09:40 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 28 Apr 2010 09:09:40 +0200 Subject: [scilab-Users] covariance matrix and leastsq In-Reply-To: References: <4BD5B02A.6080507@laas.fr> Message-ID: <4BD7DF34.6070204@laas.fr> Cool, thanks a lot. I'll give at try today and see how it fits my needs! (pun intended) Antoine On 04/28/2010 08:30 AM, Eric Dubois wrote: > Hi. > > In my package Grocer (available trough Atoms or on my web site : > http://dubois.ensae.net/grocer.html), wirtten with Emmanuel Michaux, you > will find among other things a function ols that provide standard errors of > coefficients as well as the covaraince matrix of the coefficients. > > Eric. > > 2010/4/26 Antoine Monmayrant > > >> Hi everyone, >> >> I am using leastsq to fit some experimental data with different kind of >> model functions. >> In order to properly analyse the result of these fits, I would like to get >> an estimate of the standard error on each parameter (or an interval of >> confidence at 95%). >> So far, the only way I found to retrieve the interval of confidence is to >> do bootstrapping but it requires repeating the fitting procedure ~ 100 >> times. >> I am looking for a less computer-intensive solution. >> As far as I understood, leastsq is using minpack to implement the >> Levenberg-Marquardt algorithm. >> Is there a way to get access to the covariance matrix with leastsq, optim >> or any other scilab routine? >> This would be way faster and easier than bootstrapping. >> >> Thanks in advance for your help, >> >> Antoine >> >> >> > From chaithras30 at gmail.com Wed Apr 28 08:29:29 2010 From: chaithras30 at gmail.com (Chaithra S) Date: Wed, 28 Apr 2010 11:59:29 +0530 Subject: Register Message-ID: Dear sir, Am new user to Scilab, want to register, please permit me. I am Doing a project on speech where i need to concatenate diphones using TD-PSOLA algorithm, if any body has idea, can you please suggest. I will be very much grateful to you. Thanks in advance -- Thanks and Regards CHAITHRA S -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.picard at opgc.univ-bpclermont.fr Wed Apr 28 10:36:07 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Wed, 28 Apr 2010 10:36:07 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD70783.70003@durietz.se> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> Message-ID: <4BD7F377.5040907@opgc.univ-bpclermont.fr> Fine, I can get time and date as a string, but how do I put it on the x axis scale of a plot ? Stefan Du Rietz a ?crit : > Sorry, I forgot the files... > > Stefan > > On 2010-04-27 16:43, David PICARD wrote: > -------------------- >> Hello, >> >> I need to plot time series but I did not manage to plot date and time >> in a human readable as the x axis scale from the original serial date >> number. >> >> Thanks. >> > From sdr at durietz.se Wed Apr 28 12:53:35 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 28 Apr 2010 12:53:35 +0200 Subject: [scilab-Users] plot time series In-Reply-To: <4BD7F377.5040907@opgc.univ-bpclermont.fr> References: <4BD6F806.3020006@opgc.univ-bpclermont.fr> <4BD70783.70003@durietz.se> <4BD7F377.5040907@opgc.univ-bpclermont.fr> Message-ID: <4BD813AF.3090203@durietz.se> See lines 17-22 in the attached file (updated) for an example. Stefan On 2010-04-28 10:36, David PICARD wrote: -------------------- > Fine, I can get time and date as a string, but how do I put it on the x > axis scale of a plot ? > > Stefan Du Rietz a ?crit : >> Sorry, I forgot the files... >> >> Stefan >> >> On 2010-04-27 16:43, David PICARD wrote: >> -------------------- >>> Hello, >>> >>> I need to plot time series but I did not manage to plot date and time >>> in a human readable as the x axis scale from the original serial date >>> number. >>> >>> Thanks. >>> >> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: weektick.sci URL: From Samuel.Gougeon at univ-lemans.fr Wed Apr 28 14:31:01 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 28 Apr 2010 14:31:01 +0200 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: <4BD6A2F0.3010408@kit.edu> References: <4BD6A2F0.3010408@kit.edu> Message-ID: <4BD82A85.40605@univ-lemans.fr> ----- Message d'origine ----- De : Sebastian Urban Date : 27/04/2010 10:40: > Dear Gary, > > I was running in the same problem and found that you can set higher > stacksizes by giving a specific number, e.g. stacksize(2.8e8). > You can try to find your max that way. If you bet too high, you'll > receive an error notification immediately, no harm. > Beter than betting, you can get the instantaneous available RAM by: tmp=getdebuginfo(); tmp=tokens(tmp(3),":"); strtod(tmp(2))*1024 By the way, the total installed RAM is tmp=getdebuginfo(); tmp=tokens(tmp(2),":"); strtod(tmp(2))*1024 So, you can now tune the stacksize in a well-informed way. Cheers Samuel From Samuel.Gougeon at univ-lemans.fr Wed Apr 28 14:38:48 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 28 Apr 2010 14:38:48 +0200 Subject: [scilab-users] stack size In-Reply-To: <4BD82A85.40605@univ-lemans.fr> References: <4BD6A2F0.3010408@kit.edu> <4BD82A85.40605@univ-lemans.fr> Message-ID: <4BD82C58.9060805@univ-lemans.fr> Even better, try: [free, total]=getmemory() * 1024 ;) From bouchra.bensiali at yahoo.fr Wed Apr 28 15:42:33 2010 From: bouchra.bensiali at yahoo.fr (Bouchra BENSIALI) Date: Wed, 28 Apr 2010 06:42:33 -0700 (PDT) Subject: Problem using ode "rkf" Message-ID: <860467.42620.qm@web24402.mail.ird.yahoo.com> Hello world ! I have a problem using ode "rkf". I?defined a function like that : --- function Xdot = F(t,X) ? [v1,v2,v3] = fonc(t,X(1),X(2)); ? xdot = v1; ? ydot = v2; ? Adot = v3; ? Xdot = [xdot; ydot; Adot]; endfunction --- then I used : --- Sol = ode("rkf",X0,t0,t0:pas_temps:tf,F); --- In this case, xdot and ydot don't depend on A=X(3), I obtain however a different result for x=X(1) and y=X(2) compared with the result obtained by integrating only x and y (same initial condition, etc.). I?noticed that it depended on how I define Adot. For example, doing this : --- function Xdot = F(t,X) ??printf("t=%f \n",t); ? ? [v1,v2,v3] = fonc(t,X(1),X(2)); ? xdot = v1; ? ydot = v2; ? Adot = 1; ? Xdot = [xdot; ydot; Adot]; endfunction ? Sol = ode("rkf",X0,t0,t0:pas_temps:tf,F); --- with t0=0.17, pas_temps=0.001 et tf=t0+pas_temps leads to : --- t=0.170000 t=0.170250 t=0.170375 t=0.170923 t=0.171000 t=0.170500 t=0.171000 --- I verified that these times correspond to the intermediate?times used by the "rkf" method : t0, t0+1/4*pas_temps, t0+3/8*pas_temps, t0+12/13*pas_temps, t0+pas_temps, t0+1/2*pas_temps, as said here http://math.fullerton.edu/mathews/n2003/RungeKuttaFehlbergMod.html. Now if I use for example : --- function Xdot = F(t,X) ??printf("t=%f \n",t); ? ??[v1,v2,v3] = fonc(t,X(1),X(2)); ? xdot = v1; ? ydot = v2; ? Adot = v3; ? Xdot = [xdot; ydot; Adot]; endfunction ? Sol = ode("rkf",X0,t0,t0:pas_temps:tf,F); --- ? then Scilab returns that : --- t=0.170000 t=0.170250 t=0.170375 t=0.170923 t=0.171000 t=0.170500 t=0.170218 t=0.170326 t=0.170803 t=0.170870 t=0.170435 t=0.170870 t=0.170903 t=0.170919 t=0.170990 t=0.171000 t=0.170935 t=0.171000 --- and as a consequence that changes the results for x and y (they are supposed not to change because they don't depend on A). I checked?the definition of v3 and don't see errors. For me, the number of intermediate times is supposed to be the same, am I right ? An explanation of that mystery ? Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aleks300178 at mail.ru Wed Apr 28 16:58:29 2010 From: aleks300178 at mail.ru (=?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2?=) Date: Wed, 28 Apr 2010 18:58:29 +0400 Subject: About function intc (Cauchy integral) Message-ID: Good Day! Please, enter in function intc (Cauchy integral) absolute and relative error like in function intg (definite integral). Alexandr Gaisin From huubvanniekerk at gmail.com Wed Apr 28 17:04:48 2010 From: huubvanniekerk at gmail.com (Huub) Date: Wed, 28 Apr 2010 17:04:48 +0200 Subject: Toolbox for modeling and control ? Message-ID: Hi, Which Scilab toolbox does resemble the Matlab/Octave control toolbox? Is this CelestLab? Thanks. From Jean-Pierre.Dussault at USherbrooke.ca Wed Apr 28 19:46:56 2010 From: Jean-Pierre.Dussault at USherbrooke.ca (Jean-Pierre Dussault) Date: Wed, 28 Apr 2010 13:46:56 -0400 Subject: =?ISO-8859-1?Q?O=28n=B2=29_substitution_for_triangular_s?= =?ISO-8859-1?Q?ystems?= In-Reply-To: References: Message-ID: <4BD87490.3040300@USherbrooke.ca> An HTML attachment was scrubbed... URL: From Andreas.Stewering-Bone at gmx.de Thu Apr 29 10:42:59 2010 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Thu, 29 Apr 2010 10:42:59 +0200 Subject: [scilab-Users] XCos Blocks In-Reply-To: <1272360742.2216.17.camel@pinarellu.inria.fr> References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> <1272360742.2216.17.camel@pinarellu.inria.fr> Message-ID: <201004291042.59191.Andreas.Stewering-Bone@gmx.de> Hello The Compilation of the C-Files is no problem, but if I want to load the generated lib, scilab cannot solve Xcos depended symbols like get_block_number The Headerfile scilab-5.2.2/include/scilab/scicos_block4.h defines this function. Error Message: Loading macros in /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/macros/utils/ link(ethercos_io_runtime_path+'libethercos_io_runtime'+getdynlibext(), ['etl_scicos'],'c'); !--error 236 link: das gemeinsame Archiv wurde nicht geladen: /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime/libethercos_io_runtime.so: undefined symbol: get_block_number at line 9 of exec file called by : exec('loader.sce'); at line 25 of exec file called by : exec loader.sce I have tried to load the Xcos libs via loadScicosLibs before, with no success. ldd libethercos_io_runtime.so gives me following output ab at shuttle4:~/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime$ ldd libethercos_io_runtime.so linux-gate.so.1 => (0xb7f2b000) librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7ef2000) libethercat.so.1 => /opt/etherlab/lib/libethercat.so.1 (0xb7eeb000) libethercos_io.so.0 => /tmp/SD_17628_/.libs/libethercos_io.so.0 (0xb7ee9000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dfb000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7dd5000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c7a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c6d000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7c53000) /lib/ld-linux.so.2 (0xb7f2c000) following Symbols are requested objdump -T libethercos_io_runtime.so libethercos_io_runtime.so: file format elf32-i386 DYNAMIC SYMBOL TABLE: 00000000 D *UND* 00000000 get_block_number ........ Greatings Andreas Am Tuesday 27 April 2010 11:32:22 schrieb Cl?ment DAVID: > Hello, > > First the Xcos API has been described in the wiki : > [http://wiki.scilab.org/Xcos/PrivateAPI] and > [http://wiki.scilab.org/Xcos/PublicAPI]. > > On the 5.2.x branch, you can reuse your current scicos implementation as > the core is the same. As in Scicoslab, you just need to load your block > interface function into the interpreter (myblock.c), provide macros > block descriptor (MYBLOCK_f.sci) and a reference instance in a palette > (MYPALETTE.cosf). > > Then just open your palette on xcos as a normal diagram or use > palettes/Open as palette button. > > For the 5.3.x branch (current master), we will probably provide an API > to add/remove/customize h5 blocks from Scilab. Thus user will be able to > implement Xcos palettes as Scilab toolboxes. > > Regards, > > Cl?ment > > > Hello, > > > > Is there any documentation about XCos Block building and compiling? > > I have working blocks under Scilab 4.x and Scicoslab, but I do not know > > under Xcos: > > - how to compile and link the c-source against the xcos-libs? > > - how to build up the hdf5 files? > > > > > > Greatings > > > > > > Andreas From clement.david at scilab.org Thu Apr 29 13:55:23 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Thu, 29 Apr 2010 13:55:23 +0200 Subject: [scilab-Users] XCos Blocks In-Reply-To: <201004291042.59191.Andreas.Stewering-Bone@gmx.de> References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> <1272360742.2216.17.camel@pinarellu.inria.fr> <201004291042.59191.Andreas.Stewering-Bone@gmx.de> Message-ID: <1272542123.2233.3.camel@pinarellu.inria.fr> Hello, On Xcos, we lazy-load the scicos library on the simulation part. Thus the `loadScicosLibs` macros doesn't load libsciscicos.so. For your purpose simply load it with a raw scicos call. For example use : --> scicos_debug(); before linking your library. For the record, I posted a bug [http://bugzilla.scilab.org/show_bug.cgi?id=7005] for discussion about loading this library on the `loadScicosLibs` macros. Regards, -- Cl?ment DAVID > Hello > > The Compilation of the C-Files is no problem, > > but if I want to load the generated lib, scilab cannot solve Xcos depended > symbols like > get_block_number > > The Headerfile scilab-5.2.2/include/scilab/scicos_block4.h defines this > function. > > Error Message: > > Loading macros > in /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/macros/utils/ > link(ethercos_io_runtime_path+'libethercos_io_runtime'+getdynlibext(), > ['etl_scicos'],'c'); > !--error > 236 > link: das gemeinsame Archiv wurde nicht > geladen: /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime/libethercos_io_runtime.so: > undefined symbol: get_block_number > at line 9 of exec file called by : > exec('loader.sce'); > at line 25 of exec file called by : > exec loader.sce > > > I have tried to load the Xcos libs via > loadScicosLibs > before, with no success. > > ldd libethercos_io_runtime.so gives me following output > > ab at shuttle4:~/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime$ ldd > libethercos_io_runtime.so > linux-gate.so.1 => (0xb7f2b000) > librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7ef2000) > libethercat.so.1 => /opt/etherlab/lib/libethercat.so.1 (0xb7eeb000) > libethercos_io.so.0 => /tmp/SD_17628_/.libs/libethercos_io.so.0 (0xb7ee9000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dfb000) > libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7dd5000) > libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c7a000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c6d000) > libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7c53000) > /lib/ld-linux.so.2 (0xb7f2c000) > > > following Symbols are requested > > objdump -T libethercos_io_runtime.so > > libethercos_io_runtime.so: file format elf32-i386 > > DYNAMIC SYMBOL TABLE: > 00000000 D *UND* 00000000 get_block_number > ........ > > > > Greatings > > Andreas > > > Am Tuesday 27 April 2010 11:32:22 schrieb Cl?ment DAVID: > > Hello, > > > > First the Xcos API has been described in the wiki : > > [http://wiki.scilab.org/Xcos/PrivateAPI] and > > [http://wiki.scilab.org/Xcos/PublicAPI]. > > > > On the 5.2.x branch, you can reuse your current scicos implementation as > > the core is the same. As in Scicoslab, you just need to load your block > > interface function into the interpreter (myblock.c), provide macros > > block descriptor (MYBLOCK_f.sci) and a reference instance in a palette > > (MYPALETTE.cosf). > > > > Then just open your palette on xcos as a normal diagram or use > > palettes/Open as palette button. > > > > For the 5.3.x branch (current master), we will probably provide an API > > to add/remove/customize h5 blocks from Scilab. Thus user will be able to > > implement Xcos palettes as Scilab toolboxes. > > > > Regards, > > > > Cl?ment > > > > > Hello, > > > > > > Is there any documentation about XCos Block building and compiling? > > > I have working blocks under Scilab 4.x and Scicoslab, but I do not know > > > under Xcos: > > > - how to compile and link the c-source against the xcos-libs? > > > - how to build up the hdf5 files? > > > > > > > > > Greatings > > > > > > > > > Andreas > > From pauline.l.m.fabre at gmail.com Thu Apr 29 14:05:39 2010 From: pauline.l.m.fabre at gmail.com (Pauline F) Date: Thu, 29 Apr 2010 14:05:39 +0200 Subject: aide programmation scilab Message-ID: Bonjour, Je me permets de vous contacter suite ? des recherches sur internet pour faire fonctionner le logiciel Scilab. J'esp?re vivement que vous pourrez m'apporter votre aide afin que je puisse continuer mon programme. Je suis actuellement en stage et effectue l??tude d?une acc?l?ration avec le logiciel Scilab. Je dois extraire les valeurs de l?acc?l?ration ? partir d?un dossier excel et les int?grer afin d?obtenir la vitesse et le d?placement. Pour cela il me faut utiliser la m?thode d?int?gration ? partir de trap?ze en partant non pas du d?but de la courbe mais du point ou commence le mouvement c'est-?-dire lorsque l??cart type ? de la moyenne des donn?es d?passe 3?. (Cf sch?ma en annexe). Je d?bute avec Scilab. Je suis pour le moment parvenue ? extraire toutes les valeurs du tableau excel : -->chdir('D:\acc?l?rom?tres stage\'); -->Feuille = readxls('scilab excel.xls'); -->Dxls = Feuille(1).value; -->T=Dxls(:,1); -->ax=Dxls(:,2); -->ay=Dxls(:,3); -->az=Dxls(:,4); Ensuite j?ai voulu commencer par int?grer chaque points pour obtenir la valeur de la vitesse (en x ici) j?ai dans un premier cas utilis? : vx=0; for k=ax vx=vx+inttrap(k,T);end; L? il n?y a apparemment pas d?erreur cependant lorsque je veux afficher la courbe de vx en fonction de T rien n?appara?t. Ensuite j?utilise la formule d?int?gration par la m?thode des trap?zes : vx=zeros(1,1);for n=1:3000 vx(:,n+1)=vx(n)+(ax(:,n+1)-ax(:,n))*.(0.01/2);end; Et l? erreur 21 ! Erreur d?index?. Je n?arrive pas ? comprendre mes erreurs. Depuis plusieurs jours j?essaie de me documenter mais le programme reste toujours au m?me niveau. De plus j?ai supprim? ici toutes les premi?res valeurs manuellement alors qu?il me faudrait un syst?me qui d?finisse automatiquement le z?ro ? l?endroit o? le mouvement commence. Comment faire ? Je pense utiliser une boucle if en calculant l??cart type ? chaque fois et en d?clarant que si cet ?cart type est ?gal ? trois fois celui qui pr?c?de, la valeur de la vitesse est nulle. Mais comment faire pour d?finir cette valeur comme le d?part du calcul de la vitesse ? Faut il inclure la boucle for dans le if ? Mais dans ce cas comment le faire ? En esp?rant que vous pourrez me venir en aide. Merci d?avance pour votre r?ponse. Cordialement, FABRE Pauline. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: annexe.gif Type: image/gif Size: 2188 bytes Desc: not available URL: From michael.baudin at scilab.org Thu Apr 29 14:14:55 2010 From: michael.baudin at scilab.org (=?KOI8-R?Q?Michae=22l_Baudin?=) Date: Thu, 29 Apr 2010 14:14:55 +0200 Subject: [scilab-Users] About function intc (Cauchy integral) In-Reply-To: References: Message-ID: <4BD9783F.1090809@scilab.org> Dear Alexandr, Please report this bug at : http://bugzilla.scilab.org/ or we will not able to trace this issue. Best regards, Michae"l ????????? a e'crit : > Good Day! > > Please, enter in function intc (Cauchy integral) absolute and relative error like in function intg (definite integral). > > Alexandr Gaisin > -- Michae"l Baudin Inge'nieur de de'veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Thu Apr 29 14:23:37 2010 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Thu, 29 Apr 2010 14:23:37 +0200 Subject: [scilab-Users] aide programmation scilab In-Reply-To: References: Message-ID: <4BD97A49.1040007@scilab.org> Dear Pauline, Please switch to english, so that other non-french users can understand you. I do not understand your scientific problem, I will simply give you some practical advices. It is likely that you are using an integer index n which is either too large or too small with respect to the size of your array vx. The line vx=zeros(1,1);for n=1:3000 vx(:,n+1)=vx(n)+(ax(:,n+1)-ax(:,n))*.(0.01/2);end; which generates the error message is too long: you cannot trace back to the problem. What happens if you run this ? vx=zeros(1,1); for n=1:3000 vx(:,n+1)=vx(n)+(ax(:,n+1)-ax(:,n))*.(0.01/2); end; If you do not understand what is the problem, you can insert a pause in the loop and directly play with your algorithm with resume (which will make you go on to the next loop) and abort (which will make you go out of the loop) : vx=zeros(1,1); for n=1:3000 pause vx(:,n+1)=vx(n)+(ax(:,n+1)-ax(:,n))*.(0.01/2); end; Hope this helps. Best regards, Micha?l Pauline F a ?crit : > > Bonjour, > > Je me permets de vous contacter suite ? des recherches sur internet > pour faire fonctionner le logiciel Scilab. J'esp?re vivement que vous > pourrez m'apporter votre aide afin que je puisse continuer mon programme. > > Je suis actuellement en stage et effectue l??tude d?une acc?l?ration > avec le logiciel Scilab. Je dois extraire les valeurs de > l?acc?l?ration ? partir d?un dossier excel et les int?grer afin > d?obtenir la vitesse et le d?placement. Pour cela il me faut utiliser > la m?thode d?int?gration ? partir de trap?ze en partant non pas du > d?but de la courbe mais du point ou commence le mouvement c'est-?-dire > lorsque l??cart type ? de la moyenne des donn?es d?passe 3?. (Cf > sch?ma en annexe). > > Je d?bute avec Scilab. Je suis pour le moment parvenue ? extraire > toutes les valeurs du tableau excel : > > > > -->chdir('D:\acc?l?rom?tres stage\'); > > -->Feuille = readxls('scilab excel.xls'); > > -->Dxls = Feuille(1).value; > > -->T=Dxls(:,1); > > -->ax=Dxls(:,2); > > -->ay=Dxls(:,3); > > -->az=Dxls(:,4); > > > > Ensuite j?ai voulu commencer par int?grer chaque points pour obtenir > la valeur de la vitesse (en x ici) j?ai dans un premier cas utilis? : > > > > vx=0; for k=ax vx=vx+inttrap(k,T);end; > > > > L? il n?y a apparemment pas d?erreur cependant lorsque je veux > afficher la courbe de vx en fonction de T rien n?appara?t. > > Ensuite j?utilise la formule d?int?gration par la m?thode des trap?zes : > > > > vx=zeros(1,1);for n=1:3000 > vx(:,n+1)=vx(n)+(ax(:,n+1)-ax(:,n))*.(0.01/2);end; > > > > Et l? erreur 21 ! Erreur d?index?. > > > > Je n?arrive pas ? comprendre mes erreurs. Depuis plusieurs jours > j?essaie de me documenter mais le programme reste toujours au m?me niveau. > > De plus j?ai supprim? ici toutes les premi?res valeurs manuellement > alors qu?il me faudrait un syst?me qui d?finisse automatiquement le > z?ro ? l?endroit o? le mouvement commence. Comment faire ? Je pense > utiliser une boucle if en calculant l??cart type ? chaque fois et en > d?clarant que si cet ?cart type est ?gal ? trois fois celui qui > pr?c?de, la valeur de la vitesse est nulle. Mais comment faire pour > d?finir cette valeur comme le d?part du calcul de la vitesse ? Faut il > inclure la boucle for dans le if ? Mais dans ce cas comment le faire ? > En esp?rant que vous pourrez me venir en aide. Merci d?avance pour > votre r?ponse. > > Cordialement, > > FABRE Pauline. > > > ------------------------------------------------------------------------ > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From ray at aarden.us Thu Apr 29 14:25:03 2010 From: ray at aarden.us (ray joseph) Date: Thu, 29 Apr 2010 07:25:03 -0500 Subject: [scilab-Users] XCos Blocks References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> <1272360742.2216.17.camel@pinarellu.inria.fr> <201004291042.59191.Andreas.Stewering-Bone@gmx.de> <1272542123.2233.3.camel@pinarellu.inria.fr> Message-ID: <016301cae796$ff07eaa0$6501a8c0@HOUC35439> Cl?ment DAVID, Thank you for your experience and efforts. As a new comer, I do not fully understand. Please consider providing a complete set of steps necessary. Regards, ray ----- Original Message ----- From: "Cl?ment DAVID" To: Cc: Sent: Thursday, April 29, 2010 6:55 AM Subject: Re: [scilab-Users] XCos Blocks > Hello, > > On Xcos, we lazy-load the scicos library on the simulation part. Thus > the `loadScicosLibs` macros doesn't load libsciscicos.so. > > For your purpose simply load it with a raw scicos call. For example > use : > --> scicos_debug(); > > before linking your library. > > For the record, I posted a bug > [http://bugzilla.scilab.org/show_bug.cgi?id=7005] for discussion about > loading this library on the `loadScicosLibs` macros. > > Regards, > > -- > Cl?ment DAVID > > > Hello > > > > The Compilation of the C-Files is no problem, > > > > but if I want to load the generated lib, scilab cannot solve Xcos depended > > symbols like > > get_block_number > > > > The Headerfile scilab-5.2.2/include/scilab/scicos_block4.h defines this > > function. > > > > Error Message: > > > > Loading macros > > in /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/macros/utils/ > > link(ethercos_io_runtime_path+'libethercos_io_runtime'+getdynlibext(), > > ['etl_scicos'],'c'); > > !--error > > 236 > > link: das gemeinsame Archiv wurde nicht > > geladen: /home/ab/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime/libethercos _io_runtime.so: > > undefined symbol: get_block_number > > at line 9 of exec file called by : > > exec('loader.sce'); > > at line 25 of exec file called by : > > exec loader.sce > > > > > > I have tried to load the Xcos libs via > > loadScicosLibs > > before, with no success. > > > > ldd libethercos_io_runtime.so gives me following output > > > > ab at shuttle4:~/etherlab-scicos/ethercos_io_scicoslab-clone/src/runtime$ ldd > > libethercos_io_runtime.so > > linux-gate.so.1 => (0xb7f2b000) > > librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7ef2000) > > libethercat.so.1 => /opt/etherlab/lib/libethercat.so.1 (0xb7eeb000) > > libethercos_io.so.0 => /tmp/SD_17628_/.libs/libethercos_io.so.0 (0xb7ee9000) > > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dfb000) > > libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7dd5000) > > libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c7a000) > > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c6d000) > > libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7c53000) > > /lib/ld-linux.so.2 (0xb7f2c000) > > > > > > following Symbols are requested > > > > objdump -T libethercos_io_runtime.so > > > > libethercos_io_runtime.so: file format elf32-i386 > > > > DYNAMIC SYMBOL TABLE: > > 00000000 D *UND* 00000000 get_block_number > > ........ > > > > > > > > Greatings > > > > Andreas > > > > > > Am Tuesday 27 April 2010 11:32:22 schrieb Cl?ment DAVID: > > > Hello, > > > > > > First the Xcos API has been described in the wiki : > > > [http://wiki.scilab.org/Xcos/PrivateAPI] and > > > [http://wiki.scilab.org/Xcos/PublicAPI]. > > > > > > On the 5.2.x branch, you can reuse your current scicos implementation as > > > the core is the same. As in Scicoslab, you just need to load your block > > > interface function into the interpreter (myblock.c), provide macros > > > block descriptor (MYBLOCK_f.sci) and a reference instance in a palette > > > (MYPALETTE.cosf). > > > > > > Then just open your palette on xcos as a normal diagram or use > > > palettes/Open as palette button. > > > > > > For the 5.3.x branch (current master), we will probably provide an API > > > to add/remove/customize h5 blocks from Scilab. Thus user will be able to > > > implement Xcos palettes as Scilab toolboxes. > > > > > > Regards, > > > > > > Cl?ment > > > > > > > Hello, > > > > > > > > Is there any documentation about XCos Block building and compiling? > > > > I have working blocks under Scilab 4.x and Scicoslab, but I do not know > > > > under Xcos: > > > > - how to compile and link the c-source against the xcos-libs? > > > > - how to build up the hdf5 files? > > > > > > > > > > > > Greatings > > > > > > > > > > > > Andreas > > > > > > From clement.david at scilab.org Thu Apr 29 14:57:01 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Thu, 29 Apr 2010 14:57:01 +0200 Subject: [scilab-Users] XCos Blocks In-Reply-To: <016301cae796$ff07eaa0$6501a8c0@HOUC35439> References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> <1272360742.2216.17.camel@pinarellu.inria.fr> <201004291042.59191.Andreas.Stewering-Bone@gmx.de> <1272542123.2233.3.camel@pinarellu.inria.fr> <016301cae796$ff07eaa0$6501a8c0@HOUC35439> Message-ID: <1272545821.2233.27.camel@pinarellu.inria.fr> Hello, Some of the problem is related to the Scilab dynamic linking infrastructure. For more information see the call example [http://www.scilab.org/product/man/call.html]. The problem there was that on `loadScicosLibs` when only load the Scicos macros (Scilab functions) and not the Scicos natives libraries (C functions). The next steps will load the Scilab macros and native functions: loadScicosLibs(); // macros scicos_debug(); // invoke a dynamic link with libsciscicos.so // do something Regards, -- Cl?ment DAVID > Cl?ment DAVID, > > Thank you for your experience and efforts. As a new comer, I do not fully > understand. Please consider providing a complete set of steps necessary. > > Regards, > ray From t_sedgman at yahoo.com Thu Apr 29 15:23:50 2010 From: t_sedgman at yahoo.com (tom sedgman) Date: Thu, 29 Apr 2010 06:23:50 -0700 (PDT) Subject: Stacksize problem Message-ID: <239807.67305.qm@web38508.mail.mud.yahoo.com> Hi, i'm trying to perform some signal analysis and i keep getting error 17, i've added the stacksize function but the problem persists, has anyone else had this problem? any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Thu Apr 29 15:39:41 2010 From: yann.collette at scilab.org (Collette yann) Date: Thu, 29 Apr 2010 15:39:41 +0200 Subject: [scilab-Users] Stacksize problem In-Reply-To: <239807.67305.qm@web38508.mail.mud.yahoo.com> References: <239807.67305.qm@web38508.mail.mud.yahoo.com> Message-ID: <4BD98C1D.50104@scilab.org> Hello, The maximum memory of Scilab is limited to around 1Go. So, if your data set is too big, it will never fit in the Scilab stack. You can try to use: stacksize('max') to get the maximum stacksize or try to load a smaller data set. YC Le 29/04/2010 15:23, tom sedgman a ?crit : > Hi, > > i'm trying to perform some signal analysis and i keep getting error > 17, i've added the stacksize function but the problem persists, has > anyone else had this problem? any help would be greatly appreciated. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_sedgman at yahoo.com Thu Apr 29 15:53:23 2010 From: t_sedgman at yahoo.com (tom sedgman) Date: Thu, 29 Apr 2010 06:53:23 -0700 (PDT) Subject: [scilab-Users] Stacksize problem In-Reply-To: <4BD98C1D.50104@scilab.org> Message-ID: <693333.83614.qm@web38508.mail.mud.yahoo.com> Thanks, resolved it. --- On Thu, 29/4/10, Collette yann wrote: From: Collette yann Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 14:39 Hello, The maximum memory of Scilab is limited to around 1Go. So, if your data set is too big, it will never fit in the Scilab stack. You can try to use: stacksize('max') to get the maximum stacksize or try to load a smaller data set. YC Le 29/04/2010 15:23, tom sedgman a ?crit?: Hi, i'm trying to perform some signal analysis and i keep getting error 17, i've added the stacksize function but the problem persists, has anyone else had this problem? any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Thu Apr 29 16:40:47 2010 From: ray at aarden.us (ray joseph) Date: Thu, 29 Apr 2010 09:40:47 -0500 Subject: [scilab-Users] XCos Blocks References: <201004270841.29899.Andreas.Stewering-Bone@gmx.de> <1272360742.2216.17.camel@pinarellu.inria.fr> <201004291042.59191.Andreas.Stewering-Bone@gmx.de> <1272542123.2233.3.camel@pinarellu.inria.fr> <016301cae796$ff07eaa0$6501a8c0@HOUC35439> <1272545821.2233.27.camel@pinarellu.inria.fr> Message-ID: <018501cae7a9$f5d92b20$6501a8c0@HOUC35439> Cl?ment DAVID, That was great. Thank you. ray ----- Original Message ----- From: "Cl?ment DAVID" To: Sent: Thursday, April 29, 2010 7:57 AM Subject: Re: [scilab-Users] XCos Blocks > Hello, > > Some of the problem is related to the Scilab dynamic linking > infrastructure. For more information see the call example > [http://www.scilab.org/product/man/call.html]. > > The problem there was that on `loadScicosLibs` when only load the Scicos > macros (Scilab functions) and not the Scicos natives libraries (C > functions). > > The next steps will load the Scilab macros and native functions: > > loadScicosLibs(); // macros > scicos_debug(); // invoke a dynamic link with libsciscicos.so > > // do something > > > Regards, > > -- > Cl?ment DAVID > > > Cl?ment DAVID, > > > > Thank you for your experience and efforts. As a new comer, I do not fully > > understand. Please consider providing a complete set of steps necessary. > > > > Regards, > > ray > > > From ray at aarden.us Thu Apr 29 16:44:22 2010 From: ray at aarden.us (ray joseph) Date: Thu, 29 Apr 2010 09:44:22 -0500 Subject: [scilab-Users] Stacksize problem References: <693333.83614.qm@web38508.mail.mud.yahoo.com> Message-ID: <019e01cae7aa$75621820$6501a8c0@HOUC35439> Tom, Please consider letting us know what you found / how the issue was resolved. No experiment is a failure unless we fail to learn from it. ray ----- Original Message ----- From: tom sedgman To: users at lists.scilab.org Sent: Thursday, April 29, 2010 8:53 AM Subject: Re: [scilab-Users] Stacksize problem Thanks, resolved it. --- On Thu, 29/4/10, Collette yann wrote: From: Collette yann Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 14:39 Hello, The maximum memory of Scilab is limited to around 1Go. So, if your data set is too big, it will never fit in the Scilab stack. You can try to use: stacksize('max') to get the maximum stacksize or try to load a smaller data set. YC Le 29/04/2010 15:23, tom sedgman a ?crit : Hi, i'm trying to perform some signal analysis and i keep getting error 17, i've added the stacksize function but the problem persists, has anyone else had this problem? any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_sedgman at yahoo.com Thu Apr 29 16:52:31 2010 From: t_sedgman at yahoo.com (tom sedgman) Date: Thu, 29 Apr 2010 07:52:31 -0700 (PDT) Subject: Amplitude Demodulation Message-ID: <196719.54998.qm@web38504.mail.mud.yahoo.com> Hi again everyone, I've got stuck, I'm trying to write code to calculate the amplitude and frequency of a low frequency amplitude modulation in a recording. My knowledge of coding is limited and online help isn't providing any answers. Any help on how to proceed would be greatly appreciated. Many thanks Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_sedgman at yahoo.com Thu Apr 29 17:06:25 2010 From: t_sedgman at yahoo.com (tom sedgman) Date: Thu, 29 Apr 2010 08:06:25 -0700 (PDT) Subject: [scilab-Users] Stacksize problem In-Reply-To: <019e01cae7aa$75621820$6501a8c0@HOUC35439> Message-ID: <225780.51072.qm@web38507.mail.mud.yahoo.com> I realised that it was only happening irregularly, the problem was resolved by reducing background tasks that my computer was running, and by adding the command clear at the start of the code, and keeping the file length shorter. --- On Thu, 29/4/10, ray joseph wrote: From: ray joseph Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 15:44 Tom, ? Please consider letting us know what you found / how the issue was resolved.? ? No experiment is a failure unless we fail to learn from it. ? ray ----- Original Message ----- From: tom sedgman To: users at lists.scilab.org Sent: Thursday, April 29, 2010 8:53 AM Subject: Re: [scilab-Users] Stacksize problem Thanks, resolved it. --- On Thu, 29/4/10, Collette yann wrote: From: Collette yann Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 14:39 Hello, The maximum memory of Scilab is limited to around 1Go. So, if your data set is too big, it will never fit in the Scilab stack. You can try to use: stacksize('max') to get the maximum stacksize or try to load a smaller data set. YC Le 29/04/2010 15:23, tom sedgman a ?crit?: Hi, i'm trying to perform some signal analysis and i keep getting error 17, i've added the stacksize function but the problem persists, has anyone else had this problem? any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Thu Apr 29 17:09:13 2010 From: ray at aarden.us (ray joseph) Date: Thu, 29 Apr 2010 10:09:13 -0500 Subject: [scilab-Users] Amplitude Demodulation References: <196719.54998.qm@web38504.mail.mud.yahoo.com> Message-ID: <01c101cae7ad$ee2fa9e0$6501a8c0@HOUC35439> Tom, Brute force says fast Fourier transform (FFT). With AM, the two signals undergo multiplication to produce a signal that can be represented by A*sin(wc)*sin(wi). This resolves to a signal of A*(cos(wc-wi) - cos(wc+wi))/2. Please let me know how this helps. ray ----- Original Message ----- From: tom sedgman To: users at lists.scilab.org Sent: Thursday, April 29, 2010 9:52 AM Subject: [scilab-Users] Amplitude Demodulation Hi again everyone, I've got stuck, I'm trying to write code to calculate the amplitude and frequency of a low frequency amplitude modulation in a recording. My knowledge of coding is limited and online help isn't providing any answers. Any help on how to proceed would be greatly appreciated. Many thanks Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Thu Apr 29 17:13:49 2010 From: ray at aarden.us (ray joseph) Date: Thu, 29 Apr 2010 10:13:49 -0500 Subject: [scilab-Users] Stacksize problem References: <225780.51072.qm@web38507.mail.mud.yahoo.com> Message-ID: <01d801cae7ae$9272c000$6501a8c0@HOUC35439> Tom, Great, I'll keep that issue in my bag of tricks - keep the over down. ray ----- Original Message ----- From: tom sedgman To: users at lists.scilab.org Sent: Thursday, April 29, 2010 10:06 AM Subject: Re: [scilab-Users] Stacksize problem I realised that it was only happening irregularly, the problem was resolved by reducing background tasks that my computer was running, and by adding the command clear at the start of the code, and keeping the file length shorter. --- On Thu, 29/4/10, ray joseph wrote: From: ray joseph Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 15:44 Tom, Please consider letting us know what you found / how the issue was resolved. No experiment is a failure unless we fail to learn from it. ray ----- Original Message ----- From: tom sedgman To: users at lists.scilab.org Sent: Thursday, April 29, 2010 8:53 AM Subject: Re: [scilab-Users] Stacksize problem Thanks, resolved it. --- On Thu, 29/4/10, Collette yann wrote: From: Collette yann Subject: Re: [scilab-Users] Stacksize problem To: users at lists.scilab.org Date: Thursday, 29 April, 2010, 14:39 Hello, The maximum memory of Scilab is limited to around 1Go. So, if your data set is too big, it will never fit in the Scilab stack. You can try to use: stacksize('max') to get the maximum stacksize or try to load a smaller data set. YC Le 29/04/2010 15:23, tom sedgman a ?crit : Hi, i'm trying to perform some signal analysis and i keep getting error 17, i've added the stacksize function but the problem persists, has anyone else had this problem? any help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.garo at insa-rennes.fr Thu Apr 29 16:52:51 2010 From: olivier.garo at insa-rennes.fr (olivier garo) Date: Thu, 29 Apr 2010 16:52:51 +0200 Subject: install scilab onto a windows HPC cluster In-Reply-To: <019e01cae7aa$75621820$6501a8c0@HOUC35439> References: <693333.83614.qm@web38508.mail.mud.yahoo.com> <019e01cae7aa$75621820$6501a8c0@HOUC35439> Message-ID: <4BD99D43.4010600@insa-rennes.fr> Hello i would like to install scilab on my cluster wich is under windows hpc 2008? is it compatible? should i wait the 5.3 version of scilab? thank you olivier From vladimir.rodriguez at reduc.edu.cu Thu Apr 29 17:55:43 2010 From: vladimir.rodriguez at reduc.edu.cu (vladimir.rodriguez at reduc.edu.cu) Date: Thu, 29 Apr 2010 11:55:43 -0400 (EDT) Subject: [scilab-Users] =?iso-8859-1?Q?O(n=B2?=) substitution for triangular systems In-Reply-To: <4BD87490.3040300@USherbrooke.ca> References: <4BD87490.3040300@USherbrooke.ca> Message-ID: <37589.200.55.149.5.1272556543.squirrel@mail.reduc.edu.cu> Hi, I need to plot a polar chart. I have three values per point, radius, angle and "Intensity". I want the third value to be represented by a color in a polar plane. I wonder which is the function I must use. Thanks From vladimir.rodriguez at reduc.edu.cu Thu Apr 29 18:01:36 2010 From: vladimir.rodriguez at reduc.edu.cu (vladimir.rodriguez at reduc.edu.cu) Date: Thu, 29 Apr 2010 12:01:36 -0400 (EDT) Subject: [scilab-Users] Polar Chart In-Reply-To: <4BD87490.3040300@USherbrooke.ca> References: <4BD87490.3040300@USherbrooke.ca> Message-ID: <38154.200.55.149.5.1272556896.squirrel@mail.reduc.edu.cu> --------Sorry about last subject --------- Hi, I need to plot a polar chart. I have three values per point, radius, angle and "Intensity". I want the third value to be represented by a color in a polar plane. I wonder which is the function I must use. Thanks From Samuel.Gougeon at univ-lemans.fr Thu Apr 29 19:41:58 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 29 Apr 2010 19:41:58 +0200 Subject: [scilab-Users] Polar Chart In-Reply-To: <38154.200.55.149.5.1272556896.squirrel@mail.reduc.edu.cu> References: <4BD87490.3040300@USherbrooke.ca> <38154.200.55.149.5.1272556896.squirrel@mail.reduc.edu.cu> Message-ID: <4BD9C4E6.6040409@univ-lemans.fr> Hi, ----- Message d'origine ----- De : vladimir.rodriguez at reduc.edu.cu Date : 29/04/2010 18:01: > --------Sorry about last subject --------- > Hi, I need to plot a polar chart. I have three values per point, radius, angle > and "Intensity". I want the third value to be represented by a color in a polar > plane. > I wonder which is the function I must use. > As far as i know, there is no such built-in function in Scilab. The nearest one is polarplot(), if you need to get the polar frame in the background. Else, result of plot2d() may be easier to handle and customize. Anyway, you will have to add some lines of code to customize the plot afterwards. Regards Samuel From bouchra.bensiali at yahoo.fr Thu Apr 29 20:14:45 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Thu, 29 Apr 2010 11:14:45 -0700 (PDT) Subject: Access to ode code Message-ID: <24350.47935.qm@web24408.mail.ird.yahoo.com> Hi, I want to have access to the Scilab code of the function ode. In the documentation, it is said that "Les sous programmes associ?s se trouvent dans le repertoire routines/integ: lsode.f lsoda.f lsodar.f?", but I don't find the?directory integ?within routines. How to have access to it? Thank you in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at ac-rennes.fr Thu Apr 29 20:43:17 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Thu, 29 Apr 2010 20:43:17 +0200 Subject: [scilab-Users] Access to ode code In-Reply-To: <24350.47935.qm@web24408.mail.ird.yahoo.com> References: <24350.47935.qm@web24408.mail.ird.yahoo.com> Message-ID: <1272566597.2236.17.camel@calixte-laptop> Hello, i) You should report the bug at bugzilla.scilab.org ii) I found these files in the directory scilab/modules/differential_equations/src/fortran in the source distribution (http://www.scilab.org/communities/developer_zone/scilab_versions/stable) Calixte Le jeudi 29 avril 2010 ? 11:14 -0700, Bouchra Bensiali a ?crit : > Hi, > > I want to have access to the Scilab code of the function ode. In the > documentation, it is said that "Les sous programmes associ?s se > trouvent dans le repertoire routines/integ: lsode.f lsoda.f > lsodar.f ", but I don't find the directory integ within routines. How > to have access to it? > > Thank you in advance for your help. > From Andreas.Stewering-Bone at gmx.de Thu Apr 29 21:23:27 2010 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Thu, 29 Apr 2010 21:23:27 +0200 Subject: figure problem Message-ID: <201004292123.27255.Andreas.Stewering-Bone@gmx.de> Hello, Are there any differences between figure() handling especially listboxes and their index handling between scilab 4.x and 5.x. Following Code is running under Scilab 4.x but has problems under Scilab 5.x hfig = figure(... 'Tag', 'Select Slave', ... 'BackgroundColor', [0.745098 0.745098 0.745098], ... 'Position', [100 170 400 300]); set(hfig,'figure_name','Select Slave'); hlist = uicontrol(hfig, 'style', 'listbox', ... 'tag', 'ListBox1', ... 'string', 'ListBox1', ... 'position', [20 20 360 200]); hobj = uicontrol(hfig, 'Style', 'pushbutton', ... 'Tag', 'Button4', ... 'String', 'Quit', ... 'Callback', 'fin=%t;', ... 'BackgroundColor', [0.745098 0.745098 0.745098], ... 'ForegroundColor', [0 0 0], ... 'Position', [250 260 100 20]); hobj = uicontrol(hfig, 'Style', 'pushbutton', ... 'Tag', 'Button5', ... 'String', 'Select', ... 'Callback', 'slave_selected_id=1', ... 'BackgroundColor', [0.745098 0.745098 0.745098], ... 'ForegroundColor', [0 0 0], ... 'Position', [50 260 100 20]); set(hlist, 'string', initial); set(hlist, 'value',slaveconfig.slave_selected_id); while ~fin if slave_selected_id >= 0 then slaveconfig.slave_selected_id = get(hlist,'value'); fin = %t; end sleep(1) end Greatings Andreas From bouchra.bensiali at yahoo.fr Thu Apr 29 21:48:33 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Thu, 29 Apr 2010 12:48:33 -0700 (PDT) Subject: [scilab-Users] Access to ode code In-Reply-To: <1272566597.2236.17.camel@calixte-laptop> References: <24350.47935.qm@web24408.mail.ird.yahoo.com> <1272566597.2236.17.camel@calixte-laptop> Message-ID: <916456.55069.qm@web24407.mail.ird.yahoo.com> Thank you for the answer. In fact the documentation was the one of scilab-4.1.2. I just tried with the link you gave (scilab-5.2.2), and it's ok. It was just because I didn't download the sources (shame on me!), I did it for scilab-4.1.2. and it's?also ok.?So no problem. Thanks again. ________________________________ De : calixte ? : users at lists.scilab.org Envoy? le : Jeu 29 avril 2010, 20 h 43 min 17 s Objet?: Re: [scilab-Users] Access to ode code Hello, i) You should report the bug at bugzilla.scilab.org ii) I found these files in the directory scilab/modules/differential_equations/src/fortran in the source distribution (http://www.scilab.org/communities/developer_zone/scilab_versions/stable) Calixte Le jeudi 29 avril 2010 ? 11:14 -0700, Bouchra Bensiali a ?crit : > Hi, >? > I want to have access to the Scilab code of the function ode. In the > documentation, it is said that "Les sous programmes associ?s se > trouvent dans le repertoire routines/integ: lsode.f lsoda.f > lsodar.f ", but I don't find the directory integ within routines. How > to have access to it? >? > Thank you in advance for your help. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akritski at neterra.net Fri Apr 30 10:44:57 2010 From: akritski at neterra.net (Aleksandar Kritski (Neterra PoP Varna)) Date: Fri, 30 Apr 2010 11:44:57 +0300 Subject: Error 193 Message-ID: I am unable to start scilab at all. When started it fails with this error: "Wscilex.exe failed with error 193: %1 is not a valid Win32 application." The console version gives the same error. "scilex can't launch scilab. Error code : 193 %1 is not a valid Win32 application." Anyone stumbled upon such thing by any chance? Best Regards~ -- --- Aleksandar Kritski Support Engineer Neterra PoP Varna Telephone: +359 52 654 644 Fax: +359 2 975 34 36 Mobile: +359 887 990 933 www.neterra.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bouchra.bensiali at yahoo.fr Fri Apr 30 16:21:41 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Fri, 30 Apr 2010 07:21:41 -0700 (PDT) Subject: A question about ode "rkf" Message-ID: <456667.1537.qm@web24407.mail.ird.yahoo.com> Hi, I wonder if the "rkf" method uses a fixed number of intermediate times as said here http://math.fullerton.edu/mathews/n2003/RungeKuttaFehlbergMod.html. For example, if I define a function F: -- function Xdot=F(t,X) ? //printf("t=%f \n",t) ? ? Xdot = ... ; ? endfunction; -- and make a first integration: -- pas_temps = 0.001; t0 = 170*pas_temps; tf = 180*pas_temps; X0 = ... ; Trajectoire1 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- and a second integration beginning with the result obtained at time t=0.178 (for example): -- t0 = 178*pas_temps; tf = 180*pas_temps; X0 = Trajectoire1(:,9); Trajectoire2 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- then is Trajectoire2 supposed to be the same as Trajectoire1(:,9:11)? Because I have an example that gives different results and found (by using printf("t=%f \n",t)) that the number of intermediate times changed from one integration to another. Thank you in advance for your help. I'm really stuck. -------------- next part -------------- An HTML attachment was scrubbed... URL: