From end48war at yahoo.fr Mon Aug 2 08:14:17 2010 From: end48war at yahoo.fr (azerty azerty) Date: Mon, 2 Aug 2010 06:14:17 +0000 (GMT) Subject: create custom palette under xcos Message-ID: <904586.30553.qm@web25802.mail.ukl.yahoo.com> Hi, I am trying (unsuccessfully up to now) to create a custom palette under xcos with my own functions. My C function seems to work OK (with a generic block). I created the interface function and did the following steps without receiving error from Scilab: genlib("my_lib",pwd()); create_palette(pwd()); load lib; When I try to load my palette in Xcos, I get the message : "Unknown diagram version: Scicos 4.3" Does someone know where my problem could be? I guess it is my interface function but I can't find where. Thank you by advance, Benoit -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Aug 2 10:55:02 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 2 Aug 2010 10:55:02 +0200 Subject: [scilab-Users] Running Scilab 5.2.2 and Xcos from a USB stick In-Reply-To: References: Message-ID: <029d01cb3220$64ec4860$2ec4d920$@cornet@scilab.org> Hi, You can try : http://atoms.scilab.org/toolboxes/Scilab_USB/5.2.2 And http://atoms.scilab.org/toolboxes/Scilab_USB/5.3.0-b1 Best regards Allan CORNET De : Darryl Morrell [mailto:morrell at asu.edu] Envoy? : samedi 17 juillet 2010 00:37 ? : users at lists.scilab.org Objet : [scilab-Users] Running Scilab 5.2.2 and Xcos from a USB stick I wish to run Scilab 5.2.2 and Xcos from a USB stick on windows XP professional. I was unable to find instructions to do this, so I simply copied the folder scilab-5.2.2 from the installation onto the USB stick. When I run Scilab from the USB stick, it starts up okay. I can start Xcos and create a simple simulation. However, when I run the simulation, nothing happens. When I try to quit Scilab, nothing happens. I eventually have to halt the program using the Task Manager. Are there instructions to run Scilab from a USB stick? I would greatly appreciate any help. Darryl Morrell -------------- next part -------------- An HTML attachment was scrubbed... URL: From e0425956 at student.tuwien.ac.at Mon Aug 2 14:57:38 2010 From: e0425956 at student.tuwien.ac.at (Alexander Raab) Date: Mon, 2 Aug 2010 14:57:38 +0200 Subject: xstring displays strings formatted with prettyprint without space Message-ID: <20100802145738.qw8xthz2ec4o0448@webmail.tuwien.ac.at> Hi, I have a problem with xstring and prettyprint. Scilab 5.2.2 and 5.3.0 beta2 xstring(0,0,"Hello World") works correct xstring(0,0,prettyprint("Hello World")) space is missing between the 2 words xstring(0,0,prettyprint("Hello\ World")) works correct Is it necessary to use "\ " instead of " " ? best regards Alexander From calixte.denizet at ac-rennes.fr Mon Aug 2 15:50:11 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Mon, 02 Aug 2010 15:50:11 +0200 Subject: [scilab-Users] xstring displays strings formatted with prettyprint without space In-Reply-To: <20100802145738.qw8xthz2ec4o0448@webmail.tuwien.ac.at> References: <20100802145738.qw8xthz2ec4o0448@webmail.tuwien.ac.at> Message-ID: <1280757011.2257.8.camel@calixte-laptop> Le lundi 02 ao?t 2010 ? 14:57 +0200, Alexander Raab a ?crit : > Hi, > Hello Alexander, > I have a problem with xstring and prettyprint. > > Scilab 5.2.2 and 5.3.0 beta2 > > > xstring(0,0,"Hello World") works correct > > xstring(0,0,prettyprint("Hello World")) space is missing between the 2 words > > xstring(0,0,prettyprint("Hello\ World")) works correct > > Is it necessary to use "\ " instead of " " ? > prettyprint("Hello World") generates the string $Hello World$ and in math mode in LaTeX white spaces are ignored. prettyprint is used to convert Scilab's variables into LaTeX, TeX and MathML (help prettyprint) You can use LaTeX expression directly in xstring : --> xstring(0,0,"$\mbox{Hello World}$"); since in a mbox you're in text mode. You can create a function to enclose your string with '$\mbox{' and '}$' Cheers, Calixte > best regards > Alexander > > From sanjeev211988 at gmail.com Mon Aug 2 17:49:42 2010 From: sanjeev211988 at gmail.com (sanjeev pandey) Date: Mon, 2 Aug 2010 18:49:42 +0300 Subject: Scicos Hardware in Loop(HIL) and RTAI modules for Scilab on Windows OS? Message-ID: Hi, Are Scicos Hardware in Loop (HIL) and RTAI modules available on the Scilab (Windows version)? If not please let me know if there is some development in this regard for future versions or if the similar module is being developed for Xcos? Thanks in anticipation. Best Regards, -- Sanjeev Pandey Graduate Student, Process Systems Engineering Helsinki University of Technology,Finland -------------- next part -------------- An HTML attachment was scrubbed... URL: From e0425956 at student.tuwien.ac.at Mon Aug 2 17:57:10 2010 From: e0425956 at student.tuwien.ac.at (Alexander Raab) Date: Mon, 2 Aug 2010 17:57:10 +0200 Subject: [scilab-Users] xstring displays strings formatted with prettyprint without space In-Reply-To: <1280757011.2257.8.camel@calixte-laptop> References: <20100802145738.qw8xthz2ec4o0448@webmail.tuwien.ac.at> <1280757011.2257.8.camel@calixte-laptop> Message-ID: <7F5E6C94-F769-48AB-AC61-2A27FAE41583@student.tuwien.ac.at> Thx, works perfect now. Alexander Am 02.08.2010 um 15:50 schrieb calixte : > Le lundi 02 ao?t 2010 ? 14:57 +0200, Alexander Raab a ?crit : >> Hi, >> > > Hello Alexander, > >> I have a problem with xstring and prettyprint. >> >> Scilab 5.2.2 and 5.3.0 beta2 >> >> >> xstring(0,0,"Hello World") works correct >> >> xstring(0,0,prettyprint("Hello World")) space is missing between >> the 2 words >> >> xstring(0,0,prettyprint("Hello\ World")) works correct >> >> Is it necessary to use "\ " instead of " " ? >> > > prettyprint("Hello World") generates the string $Hello World$ and in > math mode in LaTeX white spaces are ignored. > > prettyprint is used to convert Scilab's variables into LaTeX, TeX and > MathML (help prettyprint) > > You can use LaTeX expression directly in xstring : > > --> xstring(0,0,"$\mbox{Hello World}$"); > > since in a mbox you're in text mode. > > You can create a function to enclose your string with '$\mbox{' and > '}$' > > Cheers, > > Calixte > >> best regards >> Alexander >> >> > > From saczuk at aster.pl Tue Aug 3 02:42:11 2010 From: saczuk at aster.pl (Maciej Saczuk) Date: Tue, 03 Aug 2010 02:42:11 +0200 Subject: Sci2c and other C code generators ? Message-ID: <4C5765E3.7090103@aster.pl> Has anybody used Sci2c (Scilab2c) toolbox ? It looks interesting - I'm looking for C code generator for embedded systems. I know RTW Embedded Coder from Mathworks - but I'm curious if there is anyone who has used these tools and may be able to compare them. There is almost no information on the net about Sci2c! Anyway, I appreciate any kind of help/comment (where to look for C code generation from Scilab/Xcos for embedded processors). I'm using mainly C2000 from Ti and dsPIC from Microchip. Thanks From clement.david at scilab.org Tue Aug 3 09:17:10 2010 From: clement.david at scilab.org (=?UTF-8?B?Q2zDqW1lbnQgREFWSUQ=?=) Date: Tue, 03 Aug 2010 09:17:10 +0200 Subject: [scilab-Users] create custom palette under xcos In-Reply-To: <904586.30553.qm@web25802.mail.ukl.yahoo.com> References: <904586.30553.qm@web25802.mail.ukl.yahoo.com> Message-ID: <4C57C276.3080204@scilab.org> Hi, Your problem is related to http://bugzilla.scilab.org/show_bug.cgi?id=7643 . As a workaround you can use the xcosPal API to add palettes (this is the prefered way for toolboxes). Regards, -- Cl?ment > Hi, > > I am trying (unsuccessfully up to now) to create a custom palette > under xcos with my own functions. > > My C function seems to work OK (with a generic block). > > I created the interface function and did the following steps without > receiving error from Scilab: > genlib("my_lib",pwd()); > create_palette(pwd()); > load lib; > > When I try to load my palette in Xcos, I get the message : "Unknown > diagram version: Scicos 4.3" > > Does someone know where my problem could be? I guess it is my > interface function but I can't find where. > > Thank you by advance, > > Benoit > -------------- next part -------------- A non-text attachment was scrubbed... Name: clement_david.vcf Type: text/x-vcard Size: 439 bytes Desc: not available URL: From rafael at freedom.ind.br Tue Aug 3 13:20:07 2010 From: rafael at freedom.ind.br (Rafael Campos Las Heras) Date: Tue, 03 Aug 2010 08:20:07 -0300 Subject: [scilab-Users] Scicos Hardware in Loop(HIL) and RTAI modules for Scilab on Windows OS? In-Reply-To: References: Message-ID: <1280834407.4703.2.camel@eng-rafael> Hi Sanjev, On Mon, 2010-08-02 at 18:49 +0300, sanjeev pandey wrote: > Hi, > > Are Scicos Hardware in Loop (HIL) and RTAI modules available on the > Scilab (Windows version)? If not please let me know if there is some > development in this regard for future versions or if the similar > module is being developed for Xcos? RTAI modules are not compatible with Xcos. If you want to use them take a look to Scicoslab, a fork of the Scilab 4.x, in GTK and not programmed in Java. Also HIL modules could work with Scicoslab. > > Thanks in anticipation. > > Best Regards, > > -- > Sanjeev Pandey > > Graduate Student, > Process Systems Engineering > Helsinki University of Technology,Finland Regards, -- Rafael Campos Las Heras From sanjeev211988 at gmail.com Tue Aug 3 13:44:13 2010 From: sanjeev211988 at gmail.com (sanjeev pandey) Date: Tue, 3 Aug 2010 14:44:13 +0300 Subject: [scilab-Users] Scicos Hardware in Loop(HIL) and RTAI modules for Scilab on Windows OS? In-Reply-To: <1280834407.4703.2.camel@eng-rafael> References: <1280834407.4703.2.camel@eng-rafael> Message-ID: Thanks for the information. Can i expect any future module similar to RTAI & HIL in future for Xcos? This information would be very helpful for my project. On Tue, Aug 3, 2010 at 2:20 PM, Rafael Campos Las Heras < rafael at freedom.ind.br> wrote: > Hi Sanjev, > > On Mon, 2010-08-02 at 18:49 +0300, sanjeev pandey wrote: > > Hi, > > > > Are Scicos Hardware in Loop (HIL) and RTAI modules available on the > > Scilab (Windows version)? If not please let me know if there is some > > development in this regard for future versions or if the similar > > module is being developed for Xcos? > > RTAI modules are not compatible with Xcos. If you want to use them take > a look to Scicoslab, a fork of the Scilab 4.x, in GTK and not programmed > in Java. > Also HIL modules could work with Scicoslab. > > > > > Thanks in anticipation. > > > > Best Regards, > > > > -- > > Sanjeev Pandey > > > > Graduate Student, > > Process Systems Engineering > > Helsinki University of Technology,Finland > > Regards, > -- > Rafael Campos Las Heras > > -- Sanjeev Pandey Graduate Student, Process Systems Engineering Helsinki University of Technology,Finland -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Aug 3 14:40:22 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 03 Aug 2010 14:40:22 +0200 Subject: [scilab-Users] Scicos Hardware in Loop(HIL) and RTAI modules for Scilab on Windows OS? In-Reply-To: References: <1280834407.4703.2.camel@eng-rafael> Message-ID: <1280839222.5095.112.camel@zlarin> Le mardi 03 ao?t 2010 ? 14:44 +0300, sanjeev pandey a ?crit : > Thanks for the information. Can i expect any future module similar to > RTAI & HIL in future for Xcos? This information would be very helpful > for my project. You can expect that in the future. Lately, we have been adding many helpers to facilitate the development of modules for Xcos. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From eduardo at softwork.co.il Tue Aug 3 16:52:12 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Tue, 03 Aug 2010 17:52:12 +0300 Subject: Problem with xs2jpg on Linux In-Reply-To: <1280839222.5095.112.camel@zlarin> References: <1280834407.4703.2.camel@eng-rafael> <1280839222.5095.112.camel@zlarin> Message-ID: Hi I am facing problems when trying to use xs2jpg() in the following configuration: Scilab 5.2.2 running on Linux working remotely with X terminal (cygwin) When the graphic window is covered completely or partially by another window,the full or parts of the window on the top appears in the generated jpg file. This problem is easily replicated when doing the following: [1] run the demo plot3d [2] cover the displayed graph by the console [3] key on the console: b1=gcf();xs2jpg(b1,'/tmp/file.jpg'); I will appreciate to know if this is the expected behavior of the function in this specific configuration (X Remote), or a bug. My problem is that I am working on several remote machines at the same time, running programs that generate "jpg's' from graphs that are displayed on the same screen, and because the above behavior, the generated files are not correct (including pieces of windows that were on the top at the time xs2jpg execution) . Is any way to do this correctly, probably a workaround? Thanks very much for any help on this. best regards Eduardo From sanjeev211988 at gmail.com Wed Aug 4 18:05:13 2010 From: sanjeev211988 at gmail.com (sanjeev pandey) Date: Wed, 4 Aug 2010 19:05:13 +0300 Subject: Proble in implementing simple ''C Block 2'' in Xcos. Message-ID: Hi, I am currently using *Scilab-master-1279908969* and also * Scilab-5.3.0-beta-2*. I have been trying to understand the working of ''C Block 2'' and hence made a very simple test model in Xcos (Please look at the attachement test1.xcos). * *The content of the Funtion definition in C was enetered as follows.. *#*include #include #include void toto(scicos_block *block,int flag) { double u,y; u=block->inptr[0][0]; y=u+u+u; block->outptr[0][0]=y; } After clicking 'ok' and exiting the dialog box the following message was shown on the Scilab Console : !Wrong number of input arguments: ! ! ! !Arguments are : ! And after running the model following error appeared: !--error 999 mputl: Wrong type for input argument #1: String expected. at line 60 of function recur_scicos_block_link called by : at line 27 of function build_block called by : at line 80 of function c_pass1 called by : at line 50 of function do_compile called by : at line 96 of function do_update called by : at line 142 of function xcos_simulate called by : icos_debug(0); xcos_simulate(scs_m, 4); ;notify("-1273512298") while executing a callback ! Also the C-block used in one of the demo files *C:\Program Files\scilab-5.3.0-beta-2\modules\xcos\demos\pendulum_anim5.xcos* does not seem to work properly. C-Block does not recognize the Real parameters vector taken from the context menu and hence the model does not work. Please guide me on this issue and let me know my mistakes. This would be helpful for me to use the C Block 2 for more complicated applications. Thanks in anticipation. -- Sanjeev Pandey Graduate Student, Process Systems Engineering Helsinki University of Technology,Finland -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test1.xcos Type: application/octet-stream Size: 33504 bytes Desc: not available URL: From marcelo at inf.ufsc.br Wed Aug 4 21:43:29 2010 From: marcelo at inf.ufsc.br (Marcelo Menezes Reis) Date: Wed, 04 Aug 2010 16:43:29 -0300 Subject: Help with function init_func_default - genetic algorithms Message-ID: <4C59C2E1.4050808@inf.ufsc.br> Greetings I have been trying to develop a genetic algorithm in Scilab. I intend to use binary coding. But, I am experiencing some problems with function init_func_default. In help file I found: Calling Sequence Pop_init = init_func_default(popsize,param) Parameters * popsize : the number of individuals to generate. * param : a list of parameters. - 'dimension': the size of the vector X. - 'minbound': a vector of minimum bounds for the variable X. - 'maxbound': a vector of maximum bounds for the variable X. * Pop_init : a list which contains the initial population of individuals. I don?t know how to put in "param" the list dimension, minbound and maxbound. Can you help me with that? -- Marcelo Menezes Reis, Dr.Eng. Professor Adjunto - Adjunct Professor Departamento de Inform?tica e Estat?stica Department of Computer Science and Statistics Universidade Federal de Santa Catarina http://www.inf.ufsc.br/~marcelo/ _____________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Thu Aug 5 10:11:24 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 05 Aug 2010 10:11:24 +0200 Subject: [scilab-Users] Help with function init_func_default - genetic algorithms In-Reply-To: <4C59C2E1.4050808@inf.ufsc.br> References: <4C59C2E1.4050808@inf.ufsc.br> Message-ID: <4C5A722C.4040503@scilab.org> Dear Marcelo, I posted a bug fix for the help page of the init_ga_default function. You will find the example : // Generate 10 points in 2 dimensions, in the // interval [-2,2]^2. popsize = 10; ga_params = init_param(); ga_params = add_param(ga_params,"minbound",[-2; -2]); ga_params = add_param(ga_params,"maxbound",[2; 2]); ga_params = add_param(ga_params,"dimension",2); Pop_init = init_ga_default(popsize,ga_params); for k = 1 : popsize x = Pop_init(k); xstr = strcat(string(x)," "); mprintf("x[%d]=[%s]\n",k,xstr); end An example is missing in the optim_ga function help page, which shows how to customize the initial population generator function. I work on this and let you know about this in some minutes. Best regards, Micha?l Marcelo Menezes Reis a ?crit : > Greetings > > I have been trying to develop a genetic algorithm in Scilab. I intend > to use binary coding. But, I am experiencing some problems with > function *init_func_default*. In help file I found: > > > Calling Sequence > > Pop_init = init_func_default(popsize,param) > > > Parameters > > * *popsize* : the number of individuals to generate. > * *param* : a list of parameters. - 'dimension': the size of the > vector X. - 'minbound': a vector of minimum bounds for the > variable X. - 'maxbound': a vector of maximum bounds for the > variable X. > * *Pop_init* : a list which contains the initial population of > individuals. > > I don?t know how to put in "param" the list dimension, minbound > and maxbound. Can you help me with that? > -- > Marcelo Menezes Reis, Dr.Eng. > Professor Adjunto - Adjunct Professor > Departamento de Inform?tica e Estat?stica > Department of Computer Science and Statistics > Universidade Federal de Santa Catarina > http://www.inf.ufsc.br/~marcelo/ > _____________________________________________ > -- 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 michael.baudin at scilab.org Thu Aug 5 10:12:02 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 05 Aug 2010 10:12:02 +0200 Subject: [scilab-Users] Help with function init_func_default - genetic algorithms In-Reply-To: <4C5A722C.4040503@scilab.org> References: <4C59C2E1.4050808@inf.ufsc.br> <4C5A722C.4040503@scilab.org> Message-ID: <4C5A7252.5030003@scilab.org> Oups, forgot to paste the link : http://bugzilla.scilab.org/show_bug.cgi?id=7704 Best regards, Micha?l Micha?l Baudin a ?crit : > Dear Marcelo, > > I posted a bug fix for the help page of the init_ga_default function. > You will find the example : > > // Generate 10 points in 2 dimensions, in the > // interval [-2,2]^2. > popsize = 10; > ga_params = init_param(); > ga_params = add_param(ga_params,"minbound",[-2; -2]); > ga_params = add_param(ga_params,"maxbound",[2; 2]); > ga_params = add_param(ga_params,"dimension",2); > Pop_init = init_ga_default(popsize,ga_params); > for k = 1 : popsize > x = Pop_init(k); > xstr = strcat(string(x)," "); > mprintf("x[%d]=[%s]\n",k,xstr); > end > > An example is missing in the optim_ga function help page, which > shows how to customize the initial population generator function. > I work on this and let you know about this in some minutes. > > Best regards, > > Micha?l > > > Marcelo Menezes Reis a ?crit : >> Greetings >> >> I have been trying to develop a genetic algorithm in Scilab. I intend >> to use binary coding. But, I am experiencing some problems with >> function *init_func_default*. In help file I found: >> >> >> Calling Sequence >> >> Pop_init = init_func_default(popsize,param) >> >> Parameters >> >> * *popsize* : the number of individuals to generate. >> * *param* : a list of parameters. - 'dimension': the size of the >> vector X. - 'minbound': a vector of minimum bounds for the >> variable X. - 'maxbound': a vector of maximum bounds for the >> variable X. >> * *Pop_init* : a list which contains the initial population of >> individuals. >> >> I don?t know how to put in "param" the list dimension, minbound >> and maxbound. Can you help me with that? >> -- >> Marcelo Menezes Reis, Dr.Eng. >> Professor Adjunto - Adjunct Professor >> Departamento de Inform?tica e Estat?stica Department of Computer >> Science and Statistics >> Universidade Federal de Santa Catarina >> http://www.inf.ufsc.br/~marcelo/ >> _____________________________________________ >> > > -- 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 michael.baudin at scilab.org Thu Aug 5 11:24:35 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 05 Aug 2010 11:24:35 +0200 Subject: [scilab-Users] Help with function init_func_default - genetic algorithms In-Reply-To: <4C5A7252.5030003@scilab.org> References: <4C59C2E1.4050808@inf.ufsc.br> <4C5A722C.4040503@scilab.org> <4C5A7252.5030003@scilab.org> Message-ID: <4C5A8353.4090302@scilab.org> I give an example of customization of the init function at : http://bugzilla.scilab.org/show_bug.cgi?id=7706 Notice that a side effect of this function is that the state of the random number generator is updated. The example is the following : // An example with a customized init function : // we use grand (instead of the default rand used in // init_ga_default). function y=f(x) y = sum(x.^2) endfunction function Pop_init = myinitga ( popsize , param ) // This message is to be displayed in the console // for demonstration purpose only : // remove it in a real application! disp("Initializing the Population with grand") // We deal with some parameters to take into account // the boundary of the domain and the neighborhood size [Dim,err] = get_param(param,"dimension",2) [MinBounds,err] = get_param(param,"minbound",-2*ones(1,Dim)) [MaxBounds,err] = get_param(param,"maxbound",2*ones(1,Dim)) // Pop_init must be a list() Pop_init = list() nr = size(MaxBounds,1) nc = size(MaxBounds,2) for i=1:popsize u = grand(nr,nc,"def") Pop_init(i) = (MaxBounds - MinBounds).*u + MinBounds end endfunction PopSize = 100; Proba_cross = 0.7; Proba_mut = 0.1; NbGen = 10; NbCouples = 110; Log = %T; ga_params = init_param(); // Parameters to adapt to the shape of the optimization problem ga_params = add_param(ga_params,"minbound",[-2; -2]); ga_params = add_param(ga_params,"maxbound",[2; 2]); ga_params = add_param(ga_params,"dimension",2); ga_params = add_param(ga_params,"init_func",myinitga); [pop_opt, fobj_pop_opt, pop_init, fobj_pop_init] = .. optim_ga(f, PopSize, NbGen, Proba_mut, Proba_cross, Log, ga_params); After that, you may run the following statements in order to get a brief overview of the optimization results. // Display basic statistics // min, mean and max function values of the population. disp([min(fobj_pop_opt) mean(fobj_pop_opt) max(fobj_pop_opt)]) // Get the best x (i.e. the one which achieves the minimum function value) [fmin ,k] = min(fobj_pop_opt) xmin = pop_opt(k) // Get the worst x [fmax ,k] = max(fobj_pop_opt) xmax = pop_opt(k) Best regards, Micha?l Micha?l Baudin a ?crit : > Oups, forgot to paste the link : > > http://bugzilla.scilab.org/show_bug.cgi?id=7704 > > Best regards, > > Micha?l > > Micha?l Baudin a ?crit : >> Dear Marcelo, >> >> I posted a bug fix for the help page of the init_ga_default function. >> You will find the example : >> >> // Generate 10 points in 2 dimensions, in the >> // interval [-2,2]^2. >> popsize = 10; >> ga_params = init_param(); >> ga_params = add_param(ga_params,"minbound",[-2; -2]); >> ga_params = add_param(ga_params,"maxbound",[2; 2]); >> ga_params = add_param(ga_params,"dimension",2); >> Pop_init = init_ga_default(popsize,ga_params); >> for k = 1 : popsize >> x = Pop_init(k); >> xstr = strcat(string(x)," "); >> mprintf("x[%d]=[%s]\n",k,xstr); >> end >> >> An example is missing in the optim_ga function help page, which >> shows how to customize the initial population generator function. >> I work on this and let you know about this in some minutes. >> >> Best regards, >> >> Micha?l >> >> >> Marcelo Menezes Reis a ?crit : >>> Greetings >>> >>> I have been trying to develop a genetic algorithm in Scilab. I >>> intend to use binary coding. But, I am experiencing some problems >>> with function *init_func_default*. In help file I found: >>> >>> >>> Calling Sequence >>> >>> Pop_init = init_func_default(popsize,param) >>> >>> Parameters >>> >>> * *popsize* : the number of individuals to generate. >>> * *param* : a list of parameters. - 'dimension': the size of the >>> vector X. - 'minbound': a vector of minimum bounds for the >>> variable X. - 'maxbound': a vector of maximum bounds for the >>> variable X. >>> * *Pop_init* : a list which contains the initial population of >>> individuals. >>> >>> I don?t know how to put in "param" the list dimension, minbound >>> and maxbound. Can you help me with that? >>> -- >>> Marcelo Menezes Reis, Dr.Eng. >>> Professor Adjunto - Adjunct Professor >>> Departamento de Inform?tica e Estat?stica Department of Computer >>> Science and Statistics >>> Universidade Federal de Santa Catarina >>> http://www.inf.ufsc.br/~marcelo/ >>> _____________________________________________ >>> >> >> > > -- 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 sanjeev211988 at gmail.com Fri Aug 6 09:28:50 2010 From: sanjeev211988 at gmail.com (sanjeev pandey) Date: Fri, 6 Aug 2010 10:28:50 +0300 Subject: Proble in implementing simple ''C Block 2'' in Xcos. In-Reply-To: References: Message-ID: Hi users, I am still not able to figure out the problem in using the C Block 2 in the xcos model, and also the similar model does not seem to work on Scicos (Scicoslab 4-4). Can someone guide me in this regard. Thanks in anticipation. Best Regards, Sanjeev On Wed, Aug 4, 2010 at 7:05 PM, sanjeev pandey wrote: > Hi, > > I am currently using *Scilab-master-1279908969* and also * > Scilab-5.3.0-beta-2*. > > I have been trying to understand the working of ''C Block 2'' and hence > made a very simple test model in Xcos (Please look at the attachement > test1.xcos). > * > *The content of the Funtion definition in C was enetered as follows.. > > *#*include > #include > #include > void toto(scicos_block *block,int flag) > { > double u,y; > u=block->inptr[0][0]; > y=u+u+u; > block->outptr[0][0]=y; > } > > After clicking 'ok' and exiting the dialog box the following message was > shown on the Scilab Console : > > !Wrong number of input arguments: ! > ! ! > !Arguments are : ! > > And after running the model following error appeared: > > !--error 999 > mputl: Wrong type for input argument #1: String expected. > at line 60 of function recur_scicos_block_link called by : > at line 27 of function build_block called by : > at line 80 of function c_pass1 called by : > at line 50 of function do_compile called by : > at line 96 of function do_update called by : > at line 142 of function xcos_simulate called by : > icos_debug(0); xcos_simulate(scs_m, 4); ;notify("-1273512298") > while executing a callback ! > > Also the C-block used in one of the demo files *C:\Program > Files\scilab-5.3.0-beta-2\modules\xcos\demos\pendulum_anim5.xcos* does > not seem to work properly. C-Block does not recognize the Real parameters > vector taken from the context menu and hence the model does not work. > > Please guide me on this issue and let me know my mistakes. This would be > helpful for me to use the C Block 2 for more complicated applications. > Thanks in anticipation. > -- > Sanjeev Pandey > > Graduate Student, > Process Systems Engineering > Helsinki University of Technology,Finland > -- Sanjeev Pandey Graduate Student, Process Systems Engineering Helsinki University of Technology,Finland -------------- next part -------------- An HTML attachment was scrubbed... URL: From cguillot at oddo.fr Fri Aug 6 14:25:03 2010 From: cguillot at oddo.fr (cguillot at oddo.fr) Date: Fri, 6 Aug 2010 14:25:03 +0200 Subject: Xcos programming bloc pb Message-ID: Hello, I'm trying to create palette with programming block in Xcos. My block codes are working great with scicos but I don't understand how I can display my block under Xcos. I created a .h5 file with the code below and I wondering what to do next to get it in Xcos... Can you send me an example of script for block loading? Thank you very much, Charles ______________________________________________________________________________________________________________________________________________________ loadScicosLibs; function [status, msg] = xcosPalExport(pal, path) status = %t; msg = ""; disp("export to " + path); endfunction function xcosPalLoad(pal, category) if typeof(pal) <> "string" then pause, end if size(pal, '*') <> 1 then pause, end if typeof(category) <> "string" then pause, end if and([size(category, 'r') > 1, size(category, 'c') > 1]) then pause, end endfunction Mydir = "C:/";//My Current directory; chdir(Mydir); exec("PPRICE_DIFF.sci"); pal = xcosPal("Test"); sumPath = Mydir + "/palette.h5"; scs_m = PPRICE_DIFF("define"); export_to_hdf5(sumPath, "scs_m"); pal = xcosPalAddBlock(pal, "PPRICE_DIFF", []); xcosPalAdd(pal, "My Block Test") ______________________________________________________________________________________________________________________________________________________ ___________________________________________________________________________ L'integrite de ce message n'etant pas assuree sur Internet, les societes du groupe Oddo ne peuvent ?tre tenues responsables de son contenu. Ce message et les eventuels fichiers attaches contiennent des informations confidentielles. Au cas o? il ne vous serait pas destine, nous vous remercions de bien vouloir le supprimer et en aviser l'expediteur. This message and the files that may be attached to it contain confidential information. The Oddo group may not be held responsible for their contents, whose accuracy and completeness cannot be guaranteed over the internet. If the message is not addressed to you, kindly delete it and notify the sender. ___________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Carr at lifetech.com Fri Aug 6 17:02:23 2010 From: Thomas.Carr at lifetech.com (Carr, Thomas) Date: Fri, 6 Aug 2010 08:02:23 -0700 Subject: Xcos processing time In-Reply-To: References: Message-ID: <5FF95AE3FA95C940BD95E662928A1B0305A4C53C3A@CBD01MAIL01.ads.invitrogen.net> Hello, I am running 5.3 Beta 2 on a Dell Precision M6400 with 4GB of memory and Windows XP SP3. THe Xcos interface seems rediculously slow. I have a model with 10 standard blocks. There is a delay of 20 seconds between when I click on the start arrow and when the simulation begins, which I am taking to be when the plotting window opens. I also find delays when moving blocks arround and changing block parameters. I've seen this effect on every version of Xcos, but not with Scicos. Do I have something set wrong? Thanks, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From aleks300178 at mail.ru Mon Aug 9 14:45:32 2010 From: aleks300178 at mail.ru (=?koi8-r?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2?=) Date: Mon, 09 Aug 2010 16:45:32 +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). Alexander Gaisin From viktor.datsko at gmail.com Mon Aug 9 23:29:49 2010 From: viktor.datsko at gmail.com (Viktor Datsko) Date: Tue, 10 Aug 2010 01:29:49 +0400 Subject: Scilab Consortium at Datsko, help Message-ID: ????????? Scilab Consortium! ????? ????? ?????? ?? ????????? ???????. 1. ??? ?????? ? Xcos ?? ??????? ?????????? ?????, ??????????? ?????, ? ??????? ?????. ??????, ?????? ?? ??????? Demo ??????????, ??? ??? ????? ???????????? ???? CLKSPLIT_f. ?????? ???? ???? ??????????? ? ?????? Palette, ????? ???? ? ????? ?? ????? ?????? ?????? ? ???? ??????. ??? ?????????? ????? ? Xcos? 2. ??? ?????? ? Scicos4.4 ????????? ????????? ??????????? ?????????, ??????? ??????????? ????, ???????? ??????. ??? ?????? ????????? ???? ?? ?????? ??????? ?????????????????? ????????, ??????? ? ? ??????? ????? TO WORKSPACE ??????? ? Scilab, ????? ?????????? ??? ???????? ??????????, ?????????????? ??????. ?????? ?????? ? Scilab ???????????, ????? ???????????, ??? Scicos ?? ???????? ??????. ???? ? ????????? ?????? ABORT, ?? ??????? ??????????? ???????? ? Scilab, ?? ??????? ?????????? ???????? ?????????? ???????? ???????????: - "...?????????? ?? ??????????...". ??? ???? ???????, ????? ?????????? ???????? ??????????, ?????????? ?? Scicos ? Scilab? 3. ?? ?????? ???? ??????? ?????? ? ?????????? ???? mlist... ????? ???????? ?? ?????? ??????????... ????? ?? ? ???? ?????????????? ??-??????? ? ?????????? ???????????, ?????. Dear Scilab Consortium! I ask for your help on the following items. 1. At work with Xcos it is not possible to branch out a line connecting blocks, by use of a mouse. The example taken from section Demo shows that block CLKSPLIT_f is for this purpose used. But this block is absent in set Palette, besides I anywhere have not found rules of work with this block. How to branch out a line in Xcos? 2. At work in Scicos4.4 the created diagramme has worked completely, open graphic window, the schedule is constructed. At diagramme work one of blocks creates sequence of values, which I by means of block TO WORKSPACE transfer in Scilab to print all values of a variable used by the block. However work in Scilab is blocked, such impression that Scicos has not finished work. If I use button ABORT, I have an opportunity to work in Scilab, but attempt to print value of a variable causes diagnostics: - "... the variable is not defined ...". What it is necessary to make to print values of the variable transferred from Scicos in Scilab? 3. Rules of work from a type variable mlist are not quite clear... Sorry for bad English... Can I write you on Russian? With best regards, Datsko. From charlesmarchetti at yahoo.com Tue Aug 10 09:54:22 2010 From: charlesmarchetti at yahoo.com (charles marchetti) Date: Tue, 10 Aug 2010 07:54:22 +0000 (GMT) Subject: Data base in langage Postgresql Message-ID: <887645.18318.qm@web24102.mail.ird.yahoo.com> Hi, I was looking for using a data base with some data in Postgresql (I am using Pgadmin3 to do some queries) Can I use Scilab and some files with data from this data or directly by some queries ... Sincerely Charles Marchetti From mathieu.dubois at limsi.fr Tue Aug 10 16:57:26 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 10 Aug 2010 16:57:26 +0200 Subject: [scilab-Users] Data base in langage Postgresql In-Reply-To: <887645.18318.qm@web24102.mail.ird.yahoo.com> References: <887645.18318.qm@web24102.mail.ird.yahoo.com> Message-ID: <4C6168D6.70507@limsi.fr> Hello Charles, Le 10/08/2010 09:54, charles marchetti a ?crit : > Hi, > I was looking for using a data base with some data in Postgresql (I am using > Pgadmin3 to do some queries) Can I use Scilab and some files with data from this > data or directly by some queries ... You can export the result of your query from pgAdmin in a CSV file which can be read from scilab. Just select the results and click on "File -> Export" (be careful with the separator, the end-of-line and the quoting of strings). Another solution is to use the COPY command to write directly into a file... Last but not least, I think there is a GSOC project to develop a direct connection from scilab to SQL bases... HTH, Mathieu From z-saito at guitar.ocn.ne.jp Tue Aug 10 17:43:14 2010 From: z-saito at guitar.ocn.ne.jp (Hiroshi Saito) Date: Wed, 11 Aug 2010 00:43:14 +0900 Subject: [scilab-Users] Data base in langage Postgresql References: <887645.18318.qm@web24102.mail.ird.yahoo.com> <4C6168D6.70507@limsi.fr> Message-ID: Hi. additional information.... I have tried the interface of ODBC. but, It is not completed yet by the reason no margin time. However, If possible, I want to know the case which you use. Thanks! for example) http://winpg.jp/~saito/Scilab/ Best regards, Hiroshi Saito ----- Original Message ----- From: "Mathieu Dubois" > Hello Charles, > > Le 10/08/2010 09:54, charles marchetti a ?crit : >> Hi, >> I was looking for using a data base with some data in Postgresql (I am using >> Pgadmin3 to do some queries) Can I use Scilab and some files with data from this >> data or directly by some queries ... > You can export the result of your query from pgAdmin in a CSV file which can be read from > scilab. Just select the results and click on "File -> Export" (be careful with the > separator, the end-of-line and the quoting of strings). > > Another solution is to use the COPY command to write directly into a file... > > Last but not least, I think there is a GSOC project to develop a direct connection from > scilab to SQL bases... > > HTH, > Mathieu From josheeg at gmail.com Wed Aug 11 04:49:45 2010 From: josheeg at gmail.com (joshua wojnas) Date: Tue, 10 Aug 2010 22:49:45 -0400 Subject: SCICOS-HDL I am confused 2 links on the download page do not work & the install instructions do not fallow what is there. Message-ID: SCICOS-HDL I am confused 2 links on the download page do not work & the install instructions do not fallow what is there. -- thanks for your time, Joshua Wojnas 315 5071070 My webpages on electronics ... comming soon From sylvestre.ledru at scilab.org Wed Aug 11 06:03:30 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 11 Aug 2010 06:03:30 +0200 Subject: [scilab-Users] Data base in langage Postgresql In-Reply-To: <887645.18318.qm@web24102.mail.ird.yahoo.com> References: <887645.18318.qm@web24102.mail.ird.yahoo.com> Message-ID: <1281499410.6015.2597.camel@zlarin> Hello Charles Le mardi 10 ao?t 2010 ? 07:54 +0000, charles marchetti a ?crit : > Hi, > I was looking for using a data base with some data in Postgresql (I am using > Pgadmin3 to do some queries) Can I use Scilab and some files with data from this > data or directly by some queries ... > As Mathieu, we have an on-going Gsoc project about subject. Igor Gridchyn is the main developer of this module available here: http://forge.scilab.org/index.php/p/scidb/ A first tagged release should be release in the next few days/weeks. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sylvestre.ledru at scilab.org Wed Aug 11 06:26:28 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 11 Aug 2010 06:26:28 +0200 Subject: [scilab-Users] SCICOS-HDL I am confused 2 links on the download page do not work & the install instructions do not fallow what is there. In-Reply-To: References: Message-ID: <1281500788.6015.2672.camel@zlarin> Hello Joshua, Le mardi 10 ao?t 2010 ? 22:49 -0400, joshua wojnas a ?crit : > SCICOS-HDL I am confused 2 links on the download page do not work & > the install instructions do not fallow what is there. You should contact ScicosHDL authors instead of this mailing list: HDL Scicos Regards, Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From paul.carrico at free.fr Wed Aug 11 09:39:35 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Wed, 11 Aug 2010 09:39:35 +0200 Subject: matrix extract Message-ID: <000601cb3928$591aba30$0b502e90$@carrico@free.fr> Hi all Is there a simply way to extract parts of matrix without creating a loop ? An example : in a matrix A (l,c) I would like to extract the complete lines 13 to 99 . . of course it's easy by creating a line but I'm thinking I may exist a more relevant method, am I wrong ? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Wed Aug 11 09:44:08 2010 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Wed, 11 Aug 2010 09:44:08 +0200 Subject: [scilab-Users] matrix extract In-Reply-To: <-626672310377359844@unknownmsgid> References: <-626672310377359844@unknownmsgid> Message-ID: Hi. A(13:99,:) is what you are seacrhing. ?ric. 2010/8/11 Paul CARRICO > Hi all > > > > Is there a simply way to extract parts of matrix without creating a loop ? > > > > An example : in a matrix A (l,c) I would like to extract the complete lines > 13 to 99 ? > > > > ? of course it?s easy by creating a line but I?m thinking I may exist a > more relevant method, am I wrong ? > > > > Thanks > > > > Paul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Wed Aug 11 10:06:07 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Wed, 11 Aug 2010 10:06:07 +0200 Subject: [scilab-Users] matrix extract In-Reply-To: References: <-626672310377359844@unknownmsgid> Message-ID: <000001cb392c$0debc2d0$29c34870$@carrico@free.fr> ? of course it?s easy by creating a LOOP but I?m thinking I may exist a more relevant method, am I wrong ?? You well understood Thanks Paul De : Eric Dubois [mailto:grocer.toolbox at gmail.com] Envoy? : mercredi 11 ao?t 2010 09:44 ? : users at lists.scilab.org Objet : Re: [scilab-Users] matrix extract Hi. A(13:99,:) is what you are seacrhing. ?ric. 2010/8/11 Paul CARRICO Hi all Is there a simply way to extract parts of matrix without creating a loop ? An example : in a matrix A (l,c) I would like to extract the complete lines 13 to 99 of course it?s easy by creating a line but I?m thinking I may exist a more relevant method, am I wrong ? Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From josheeg at gmail.com Thu Aug 12 05:26:52 2010 From: josheeg at gmail.com (josheeg at gmail.com) Date: Thu, 12 Aug 2010 03:26:52 +0000 Subject: how would I add scicor-HDL module to atom? It seems to install by putting a scilab program startup l Message-ID: <001636c5c2bdf1c1b1048d97ef46@google.com> how would I add scicor-HDL module to atom? It seems to install by putting a scilab program startup link in the scilab startup -------------- next part -------------- An HTML attachment was scrubbed... URL: From morrell at asu.edu Thu Aug 12 07:21:44 2010 From: morrell at asu.edu (Darryl Morrell) Date: Thu, 12 Aug 2010 05:21:44 +0000 (UTC) Subject: Running Scilab 5.2.2 and Xcos from a USB stick References: <19383.6775295951$1280739322@news.gmane.org> Message-ID: Thank you. That worked very nicely. Allan CORNET writes: > You can try?: http://atoms.scilab.org/toolboxes/Scilab_USB/5.2.2 > > And http://atoms.scilab.org/toolboxes/Scilab_USB/5.3.0-b1 > > Best regards > > Allan CORNET From sylvestre.ledru at scilab.org Thu Aug 12 13:59:48 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 12 Aug 2010 13:59:48 +0200 Subject: [scilab-Users] how would I add scicor-HDL module to atom? It seems to install by putting a scilab program startup l In-Reply-To: <001636c5c2bdf1c1b1048d97ef46@google.com> References: <001636c5c2bdf1c1b1048d97ef46@google.com> Message-ID: <1281614388.6062.23.camel@zlarin> Hello, Le jeudi 12 ao?t 2010 ? 03:26 +0000, josheeg at gmail.com a ?crit : > how would I add scicor-HDL module to atom? It seems to install by > putting a scilab program startup link in the scilab startup You have to ask Scicos-HDL developers to upload this module on ATOMS. This is described here: http://wiki.scilab.org/ATOMS Regards, Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From marcin.wozniczka at gazeta.pl Thu Aug 12 21:58:53 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Thu, 12 Aug 2010 21:58:53 +0200 Subject: problem with creating loop Message-ID: Hello, I have small problem with my program/function in Scilab. I want to loop function - the loop must be repeated until all datas will be use. For example I have matrix 'a' a = [1 10 20 2 20 30 3 30 40 1 20 10 3 40 40 2 20 10] and I'm taking all lines which have in the first column the same number, take average of this and put to the other matrix. I created function which can do all this thing but I don't have any idea how to make a reapeted loop from this. Can you help me? -- Marcin Wo?niczka -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_ledoux at yahoo.com.br Fri Aug 13 00:40:34 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Thu, 12 Aug 2010 15:40:34 -0700 (PDT) Subject: Creating an vector field Message-ID: <175729.69892.qm@web120517.mail.ne1.yahoo.com> Hello An supposed charge in in origin. Thus it create a vector field around it. This can be obtained from Coulomb's law. When I tried to create the vector field caused by this charge I used the commands: x=-1:0.1:1;? y=x; [X Y]=meshgrid(x,y) r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division for 0 ax=X./r; ay=Y./r champ(x,y,ax,ay) The field that I got with those command lines wasn't what I wanted. but using the code bellow Scilab took the correct field. x=-1:0.1:1;? y=x; [Y X]=meshgrid(x,y) r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division for 0 ax=X./r; ay=Y./r champ(x,y,ax,ay) Acording to manual the first code should give me the correct field. In Octave a similar code gave me the correct field. Is seems thar or champ or meshgrid function inverted the things in Scilab. -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at ac-rennes.fr Fri Aug 13 17:40:56 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Fri, 13 Aug 2010 17:40:56 +0200 Subject: [scilab-Users] Creating an vector field In-Reply-To: <175729.69892.qm@web120517.mail.ne1.yahoo.com> References: <175729.69892.qm@web120517.mail.ne1.yahoo.com> Message-ID: <1281714056.4118.628.camel@Calixte-Dell> Hello Pedro, Le jeudi 12 ao?t 2010 ? 15:40 -0700, Pedro Ledoux a ?crit : > Hello > > An supposed charge in in origin. Thus it create a vector field around > it. This can be obtained from Coulomb's law. When I tried to create > the vector field caused by this charge I used the commands: > > x=-1:0.1:1; > y=x; > [X Y]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > The field that I got with those command lines wasn't what I wanted. > but using the code bellow Scilab took the correct field. > > x=-1:0.1:1; > y=x; > [Y X]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > Acording to manual the first code should give me the correct field. In > Octave a similar code gave me the correct field. Is seems thar or > champ or meshgrid function inverted the things in Scilab. > > You can compare the results of meshgrid in octave and scilab : they're the same. So your problem comes from champ. You should read carefully the help about champ... For example, in (-1,1)=(x(1),y(21)), you'll find the vector (ax(1,21),ay(1,21))=(1,-1)/sqrt(2). In fact, you'll expect to find in point (x(i),y(j)) the vector (ax(j,i),ay(j,i)) (make a draw) So the correct command would be : champ(x,y,ax',ay'). Calixte > From p_ledoux at yahoo.com.br Fri Aug 13 20:27:18 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Fri, 13 Aug 2010 11:27:18 -0700 (PDT) Subject: [scilab-Users] Creating an vector field In-Reply-To: <1281714056.4118.628.camel@Calixte-Dell> Message-ID: <996866.26983.qm@web120506.mail.ne1.yahoo.com> Ou manuel en Portugais du Bresil c'est dit: champ(x,y,fx,fy) pas champ(x,y,fx',fy') Mais en faire de la deuxi?me mani?re le logiciel a travaill? correctement en disposer des r?sultat correct. Peut ?tre c'est une impr?cision de cet manuel, --- Em sex, 13/8/10, calixte escreveu: De: calixte Assunto: Re: [scilab-Users] Creating an vector field Para: users at lists.scilab.org Data: Sexta-feira, 13 de Agosto de 2010, 12:40 Hello Pedro, Le jeudi 12 ao?t 2010 ? 15:40 -0700, Pedro Ledoux a ?crit : > Hello > > An supposed charge in in origin. Thus it create a vector field around > it. This can be obtained from Coulomb's law. When I tried to create > the vector field caused by this charge I used the commands: > > x=-1:0.1:1;? > y=x; > [X Y]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > The field that I got with those command lines wasn't what I wanted. > but using the code bellow Scilab took the correct field. > > x=-1:0.1:1;? > y=x; > [Y X]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > Acording to manual the first code should give me the correct field. In > Octave a similar code gave me the correct field. Is seems thar or > champ or meshgrid function inverted the things in Scilab. > > You can compare the results of meshgrid in octave and scilab : they're the same. So your problem comes from champ. You should read carefully the help about champ... For example, in (-1,1)=(x(1),y(21)), you'll find the vector (ax(1,21),ay(1,21))=(1,-1)/sqrt(2). In fact, you'll expect to find in point (x(i),y(j)) the vector (ax(j,i),ay(j,i)) (make a draw) So the correct command would be : champ(x,y,ax',ay'). Calixte >? -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_ledoux at yahoo.com.br Fri Aug 13 21:05:52 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Fri, 13 Aug 2010 12:05:52 -0700 (PDT) Subject: [scilab-Users] Creating an vector field In-Reply-To: <1281714056.4118.628.camel@Calixte-Dell> Message-ID: <267544.9440.qm@web120515.mail.ne1.yahoo.com> My problem at all was with the notation for vectors. Thank you very much. I was thinking in another way. --- Em sex, 13/8/10, calixte escreveu: De: calixte Assunto: Re: [scilab-Users] Creating an vector field Para: users at lists.scilab.org Data: Sexta-feira, 13 de Agosto de 2010, 12:40 Hello Pedro, Le jeudi 12 ao?t 2010 ? 15:40 -0700, Pedro Ledoux a ?crit : > Hello > > An supposed charge in in origin. Thus it create a vector field around > it. This can be obtained from Coulomb's law. When I tried to create > the vector field caused by this charge I used the commands: > > x=-1:0.1:1;? > y=x; > [X Y]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > The field that I got with those command lines wasn't what I wanted. > but using the code bellow Scilab took the correct field. > > x=-1:0.1:1;? > y=x; > [Y X]=meshgrid(x,y) > r=sqrt(X.^2+Y.^2)+%eps //I sumed with eps to avoid a error by division > for 0 > ax=X./r; > ay=Y./r > champ(x,y,ax,ay) > > Acording to manual the first code should give me the correct field. In > Octave a similar code gave me the correct field. Is seems thar or > champ or meshgrid function inverted the things in Scilab. > > You can compare the results of meshgrid in octave and scilab : they're the same. So your problem comes from champ. You should read carefully the help about champ... For example, in (-1,1)=(x(1),y(21)), you'll find the vector (ax(1,21),ay(1,21))=(1,-1)/sqrt(2). In fact, you'll expect to find in point (x(i),y(j)) the vector (ax(j,i),ay(j,i)) (make a draw) So the correct command would be : champ(x,y,ax',ay'). Calixte >? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Francis.Drossaert at pgs.com Fri Aug 13 10:55:09 2010 From: Francis.Drossaert at pgs.com (Francis Drossaert) Date: Fri, 13 Aug 2010 09:55:09 +0100 Subject: [scilab-Users] problem with creating loop In-Reply-To: References: Message-ID: <31F3753170EA6B45A8DA96C0FD58E026ADA0FE57@lonms20.onshore.pgs.com> Hi Marcin, There are off course various ways to solve your problem. Probably the shortest way to do is like this: for it=1:3; average(it) =mean(a(a(:,1)==it,2:$)); end It loops over the elements in the first column. The second line is a bit more cryptic but can be split in separate line: msk = a(:,1)==it; // creates a boolean mask vector anew = a(msk,2:$); // creates a new matrix using the mask over the second to last columns of a average=mean(anew); // calculate the average of the matrix Cheers Francis From: marcin.wozniczka Gazeta.pl [mailto:marcin.wozniczka at gazeta.pl] Sent: 12 August 2010 20:59 To: users at lists.scilab.org Subject: [scilab-Users] problem with creating loop Hello, I have small problem with my program/function in Scilab. I want to loop function - the loop must be repeated until all datas will be use. For example I have matrix 'a' a = [1 10 20 2 20 30 3 30 40 1 20 10 3 40 40 2 20 10] and I'm taking all lines which have in the first column the same number, take average of this and put to the other matrix. I created function which can do all this thing but I don't have any idea how to make a reapeted loop from this. Can you help me? -- Marcin Wo?niczka 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.wozniczka at gazeta.pl Sat Aug 14 19:05:19 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Sat, 14 Aug 2010 19:05:19 +0200 Subject: [scilab-Users] problem with creating loop In-Reply-To: <31F3753170EA6B45A8DA96C0FD58E026ADA0FE57@lonms20.onshore.pgs.com> References: <31F3753170EA6B45A8DA96C0FD58E026ADA0FE57@lonms20.onshore.pgs.com> Message-ID: Ok I understand, but what can I do if the numbers in the first column are not 1, 2, 3 etc., for example matrix a is looking like that: xy_w = [... 6 10 10 1 20 20 4 40 40 4 50 50 6 60 60 4 42 48 1 22 22 ]; I modified your function for that: nr = a(:,1); //This is wrong for i=1:3 //This is wrong ps = nr(i); for j=1:3 av(i,j) =mean(a(a(:,1) == ps,j)); end end but I have problem to define final value of 'i'. I know that it's conecting with 'nr' so if you know how I can declare only once the numbers from first column (only numbers: 6, 1 & 4) -- Marcin Wo?niczka Hi Marcin, > > > > There are off course various ways to solve your problem. Probably the > shortest way to do is like this: > > > > for it=1:3; > > average(it) =mean(a(a(:,1)==it,2:$)); > > end > > > > It loops over the elements in the first column. The second line is a bit > more cryptic but can be split in separate line: > > msk = a(:,1)==it; // creates a boolean mask > vector > > anew = a(msk,2:$); // creates a new matrix using > the mask over the second to last columns of a > > average=mean(anew); // calculate the average of the matrix > > > > Cheers > > > > Francis > > > > > > > > > > *From:* marcin.wozniczka Gazeta.pl [mailto:marcin.wozniczka at gazeta.pl] > *Sent:* 12 August 2010 20:59 > *To:* users at lists.scilab.org > *Subject:* [scilab-Users] problem with creating loop > > > > Hello, > > I have small problem with my program/function in Scilab. I want to loop > function - the loop must be repeated until all datas will be use. For > example I have matrix 'a' > > a = [1 10 20 > > 2 20 30 > > 3 30 40 > > 1 20 10 > > 3 40 40 > 2 20 10] > > and I'm taking all lines which have in the first column the same number, > take average of this and put to the other matrix. I created function which > can do all this thing but I don't have any idea how to make a reapeted loop > from this. > > > > Can you help me? > > > -- > Marcin Wo?niczka > > 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. ?? > -- Pozdrawiam, Marcin Wo?niczka -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Sat Aug 14 19:43:47 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Sat, 14 Aug 2010 18:43:47 +0100 Subject: [scilab-Users] problem with creating loop In-Reply-To: Message-ID: Hi Marcin, You can find the unique elements of your first column using the unique function like: -->u=unique(xy_w(:,1)) u = 1. 4. 6. Then you can iterate over those values using: -->for x=u' -->av = mean(xy_w(find(xy_w(:,1)==x),2:3),'r') -->end av = 21. 21. av = 44. 46. av = 35. 35. Hope that helps. Mike. -----Original Message----- From: marcin.wozniczka Gazeta.pl [mailto:marcin.wozniczka at gazeta.pl] Sent: 14 August 2010 18:05 To: users at lists.scilab.org Subject: Re: [scilab-Users] problem with creating loop Ok I understand, but what can I do if the numbers in the first column are not 1, 2, 3 etc., for example matrix a is looking like that: xy_w = [... 6 10 10 1 20 20 4 40 40 4 50 50 6 60 60 4 42 48 1 22 22 ]; I modified your function for that: nr = a(:,1); //This is wrong for i=1:3 //This is wrong ps = nr(i); for j=1:3 av(i,j) =mean(a(a(:,1) == ps,j)); end end but I have problem to define final value of 'i'. I know that it's conecting with 'nr' so if you know how I can declare only once the numbers from first column (only numbers: 6, 1 & 4) -- Marcin Wo?niczka Hi Marcin, There are off course various ways to solve your problem. Probably the shortest way to do is like this: for it=1:3; average(it) =mean(a(a(:,1)==it,2:$)); end It loops over the elements in the first column. The second line is a bit more cryptic but can be split in separate line: msk = a(:,1)==it; // creates a boolean mask vector anew = a(msk,2:$); // creates a new matrix using the mask over the second to last columns of a average=mean(anew); // calculate the average of the matrix Cheers Francis From: marcin.wozniczka Gazeta.pl [mailto:marcin.wozniczka at gazeta.pl] Sent: 12 August 2010 20:59 To: users at lists.scilab.org Subject: [scilab-Users] problem with creating loop Hello, I have small problem with my program/function in Scilab. I want to loop function - the loop must be repeated until all datas will be use. For example I have matrix 'a' a = [1 10 20 2 20 30 3 30 40 1 20 10 3 40 40 2 20 10] and I'm taking all lines which have in the first column the same number, take average of this and put to the other matrix. I created function which can do all this thing but I don't have any idea how to make a reapeted loop from this. Can you help me? -- Marcin Wo?niczka 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. ?? -- Pozdrawiam, Marcin Wo?niczka -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobiasdroessler at gmx.net Sun Aug 15 18:36:19 2010 From: tobiasdroessler at gmx.net (=?ISO-8859-15?Q?Tobias_Dr=F6=DFler?=) Date: Sun, 15 Aug 2010 18:36:19 +0200 Subject: smith-chart plotting Message-ID: <4C681783.5080006@gmx.net> hi, i use scilab to evaluate and display solutions of electromagnetic simulations. in high frequency - engineering the smithchart is used to visualize complex values in one diagram. it looks like this : http://www.ece.msstate.edu/~donohoe/smithchart.gif I am searching for an function/toolbox that plots data in this format. Is there something like that available ?? if not, may i will build up something - which way is suggest to do that ? a scilab function which draws at first the diagram itself and than plots data in it, or are there better possibilities? thanks for your help. regards Tobias From tobiasdroessler at gmx.net Sun Aug 15 19:28:42 2010 From: tobiasdroessler at gmx.net (=?ISO-8859-15?Q?Tobias_Dr=F6=DFler?=) Date: Sun, 15 Aug 2010 19:28:42 +0200 Subject: smith-chart plotting Message-ID: <4C6823CA.2080805@gmx.net> hi, I use scilab to evaluate and display solutions of electromagnetic simulations. in high frequency - engineering the smithchart is used to visualize complex values in one diagram. it looks like this : http://www.ece.msstate.edu/~donohoe/smithchart.gif I am searching for an function/toolbox that plots data in this format. Is there something like that available ?? if not, may i will build up something - which way is suggest to do that ? a scilab function which draws at first the diagram itself and than plots data in it, or are there better possibilities? thanks for your help. regards Tobias From mozyl at kis.p.lodz.pl Mon Aug 16 13:48:49 2010 From: mozyl at kis.p.lodz.pl (mozyl at kis.p.lodz.pl) Date: Mon, 16 Aug 2010 13:48:49 +0200 Subject: Plot Message-ID: <1B61A7369995478996D0A24186D597A7@Pc> Dear Sirs, I have a problem with running Scilab. I had to change the computer and now I'm using new 64-bit system computer with: . Asus P5G41-M LX motherboard . Intel Celeron Dual Core E3300 processor . Windows 7 Home Premium operating system. I have installed Scilab version 5.2.2 x64 but during the execution plot or plot2d instruction application has crashed. I've tried to install version 5.2.2 but the result has been the same. I have seen only the beginning of graphic window opening. The graphic driver is updated. Please answer me what to do. Regards Marek Orzylowski -- List przeskanowano programem ArcaMail, ArcaVir 2010 przeskanowano 2010-08-16 13:48:54, silnik: 2010.07.13 14:29:45, bazy: 2010.08.15 11:32:35 This message has been scanned by ArcaMail, ArcaVir 2010 scanned 2010-08-16 13:48:54, engine: 2010.07.13 14:29:45, base: 2010.08.15 11:32:35 http://www.arcabit.pl -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_ledoux at yahoo.com.br Mon Aug 16 15:18:20 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Mon, 16 Aug 2010 06:18:20 -0700 (PDT) Subject: [scilab-Users] Plot In-Reply-To: <1B61A7369995478996D0A24186D597A7@Pc> Message-ID: <846708.80387.qm@web120520.mail.ne1.yahoo.com> You're using a processor of x86-64 architecture isn't it? So you tryed to use the Scilab version for this architecture. But does your Windows version is for x86-64 or 32 bits? I don't use windows since march of 2010. My processor is a core 2 duo. At begin I was using the 32 bit version of Ubuntu, To install Scilab I just downloaded the precompiled .deb package for 32 bits. But laterly I've changed the OS to Ubuntu 64 bits. So to use Scilab I had to download a different .deb package for this OS in this architecture. For each architecture the OS has in it's files the libraries which support the respective architecture. 32 bits version has it's libraries and 64 bit version has it's own. A version for 64 bits in a 32 bits OS or 32 bits in 64 OS will not work very well if the software uses the libraries of OS. So if your windows is for 32 bits is possible that x86-64 version for Scilab that you installed is having such problem with OS system libraries. The simulations of circuits I did using Qucs and the codes for Scilab has become executed much more faster after I've changed my OS and Scilab to x86-64 versions. --- Em seg, 16/8/10, mozyl at kis.p.lodz.pl escreveu: De: mozyl at kis.p.lodz.pl Assunto: [scilab-Users] Plot Para: users at lists.scilab.org Data: Segunda-feira, 16 de Agosto de 2010, 8:48 Dear Sirs, I have a problem with running Scilab. I had to change the computer and now I?m using new 64-bit system computer with: ????????? Asus P5G41-M LX motherboard ????????? Intel Celeron Dual Core E3300 processor ????????? Windows 7 Home Premium operating system. I have installed Scilab version 5.2.2 x64 but during the execution plot or plot2d instruction application has crashed. I?ve tried to install version 5.2.2 but the result has been the same. I have seen only the beginning of graphic window opening. The graphic driver is updated. Please answer me what to do. Regards ? Marek Orzylowski List przeskanowano programem ArcaMail, ArcaVir 2010 przeskanowano 2010-08-16 13:48:54, silnik: 2010.07.13 14:29:45, bazy: 2010.08.15 11:32:35This message has been scanned by ArcaMail, ArcaVir 2010 scanned 2010-08-16 13:48:54, engine: 2010.07.13 14:29:45, base: 2010.08.15 11:32:35 -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Aug 16 15:35:14 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 16 Aug 2010 15:35:14 +0200 Subject: [scilab-Users] Plot In-Reply-To: <1B61A7369995478996D0A24186D597A7@Pc> References: <1B61A7369995478996D0A24186D597A7@Pc> Message-ID: <016901cb3d47$dba447a0$92ecd6e0$@cornet@scilab.org> Hi, Have you update your video card drivers ? If you use ? Asus P5G41-M LX motherboard (Intel? G41 Express Chipset) without others video card: For Windows 7 x64: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y &DwnldID=19228&ProdId=3048&lang=eng For Windows 7 x86: http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y &DwnldID=19223&ProdId=3048&lang=eng You can also try Scilab-5.3-beta2: http://www.scilab.org/products/scilab/download/5.3.0-beta-2 best regards Allan CORNET De : mozyl at kis.p.lodz.pl [mailto:mozyl at kis.p.lodz.pl] Envoy? : lundi 16 ao?t 2010 13:49 ? : users at lists.scilab.org Objet : [scilab-Users] Plot Dear Sirs, I have a problem with running Scilab. I had to change the computer and now I?m using new 64-bit system computer with: ? Asus P5G41-M LX motherboard ? Intel Celeron Dual Core E3300 processor ? Windows 7 Home Premium operating system. I have installed Scilab version 5.2.2 x64 but during the execution plot or plot2d instruction application has crashed. I?ve tried to install version 5.2.2 but the result has been the same. I have seen only the beginning of graphic window opening. The graphic driver is updated. Please answer me what to do. Regards Marek Orzylowski List przeskanowano programem ArcaMail, ArcaVir 2010 przeskanowano 2010-08-16 13:48:54, silnik: 2010.07.13 14:29:45, bazy: 2010.08.15 11:32:35 This message has been scanned by ArcaMail, ArcaVir 2010 scanned 2010-08-16 13:48:54, engine: 2010.07.13 14:29:45, base: 2010.08.15 11:32:35 -------------- next part -------------- An HTML attachment was scrubbed... URL: From celso.co at gmail.com Tue Aug 17 08:31:09 2010 From: celso.co at gmail.com (Celso Co) Date: Tue, 17 Aug 2010 14:31:09 +0800 Subject: [scilab-Users] Plot In-Reply-To: <1B61A7369995478996D0A24186D597A7@Pc> References: <1B61A7369995478996D0A24186D597A7@Pc> Message-ID: Dear Marek, Could you check if you have downloaded Scilab for 64 bit? http://www.scilab.org/products/scilab/download Regards cco 2010/8/16 > Dear Sirs, > > I have a problem with running Scilab. I had to change the computer and now > I?m using new 64-bit system computer with: > > ? Asus P5G41-M LX motherboard > > ? Intel Celeron Dual Core E3300 processor > > ? Windows 7 Home Premium operating system. > > I have installed Scilab version 5.2.2 x64 but during the execution plot or > plot2d instruction application has crashed. I?ve tried to install version > 5.2.2 but the result has been the same. I have seen only the beginning of > graphic window opening. The graphic driver is updated. > > Please answer me what to do. > > Regards > > > > Marek Orzylowski > > List przeskanowano programem ArcaMail, ArcaVir 2010 > przeskanowano 2010-08-16 13:48:54, silnik: 2010.07.13 14:29:45, bazy: > 2010.08.15 11:32:35 This message has been scanned by ArcaMail, ArcaVir > 2010 > scanned 2010-08-16 13:48:54, engine: 2010.07.13 14:29:45, base: 2010.08.15 > 11:32:35 > > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila -------------- next part -------------- An HTML attachment was scrubbed... URL: From Marek.Orzylowski at gmail.com Tue Aug 17 11:44:30 2010 From: Marek.Orzylowski at gmail.com (Marek Orzylowski) Date: Tue, 17 Aug 2010 09:44:30 +0000 (UTC) Subject: Plot References: <1B61A7369995478996D0A24186D597A7@Pc> <26163.0052271814$1281965736@news.gmane.org> Message-ID: Dear Allan, thank you for your reply. 1) I don't use other cads. 2) Driver is updated for Windows 7 x64 3) I have Windows 7 Home Premium 64-bit version 4) I have tried 5.3.0-beta-2_x64 version also. The result is the same. Mayby before the installation I have to change compatibility mode. Initially it is XP (Service Pack 3). I've tried mpde Vista (Service pack 2) but rhe result is the same, but there is several other modes to select. Regards Marek Orzylowski From Marek.Orzylowski at gmail.com Tue Aug 17 13:03:20 2010 From: Marek.Orzylowski at gmail.com (Marek Orzylowski) Date: Tue, 17 Aug 2010 11:03:20 +0000 (UTC) Subject: Plot References: <1B61A7369995478996D0A24186D597A7@Pc> <26163.0052271814$1281965736@news.gmane.org> Message-ID: Additional remarks: 1) Instruction figure(1) is executed well 2) Instruction plot(t,y) aborts Scilab From sdr at durietz.se Tue Aug 17 14:36:50 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 17 Aug 2010 14:36:50 +0200 Subject: [scilab-Users] Re: Plot In-Reply-To: References: <1B61A7369995478996D0A24186D597A7@Pc> <26163.0052271814$1281965736@news.gmane.org> Message-ID: <4C6A8262.1070502@durietz.se> Hello Marek, I have had the same trouble a long time with Scilab 5 and ATI Radeon HD 2600 (Windows XP SP3) and also got the advice: "Update your drivers!". I have done that every time there is a new driver version but the problem remains so I am still using Scilab 4.1.2... Regards Stefan On 2010-08-17 13:03, Marek Orzylowski wrote: -------------------- > Additional remarks: > 1) Instruction figure(1) is executed well > 2) Instruction plot(t,y) aborts Scilab > From celso.co at gmail.com Tue Aug 17 14:53:39 2010 From: celso.co at gmail.com (Celso Co) Date: Tue, 17 Aug 2010 20:53:39 +0800 Subject: [scilab-Users] Re: Plot In-Reply-To: References: <1B61A7369995478996D0A24186D597A7@Pc> <26163.0052271814$1281965736@news.gmane.org> Message-ID: Marek, At URL http://www.intel.com/products/processor/celeron/specifications.htm is a list of Intel Celeron. Part nos P1053 doesnot support Intel 64. You could check your part nos. The following URL may help: http://www.intel.com/p/en_US/support/highlights/processors/celeronfam http://www.intel.com/products/processor/celeron/tools.htm Regards, cco On Tue, Aug 17, 2010 at 5:44 PM, Marek Orzylowski wrote: > > Dear Allan, > thank you for your reply. > > 1) I don't use other cads. > 2) Driver is updated for Windows 7 x64 > 3) I have Windows 7 Home Premium 64-bit version > 4) I have tried 5.3.0-beta-2_x64 version also. The result is the same. > > Mayby before the installation I have to change compatibility mode. Initially > it is XP (Service Pack 3). I've tried mpde Vista (Service pack 2) but rhe > result is the same, but there is several other modes to select. > Regards > > Marek Orzylowski > > > > > > > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila From saczuk at aster.pl Tue Aug 17 20:12:07 2010 From: saczuk at aster.pl (Maciej Saczuk) Date: Tue, 17 Aug 2010 20:12:07 +0200 Subject: Sci2c (Scilab2c) documentation and examples ? Message-ID: <4C6AD0F7.6020901@aster.pl> Has anybody used Sci2c (Scilab2c) toolbox ? How does it compare to RTW Embedded Coder from Matlab ? I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). Are there any other examples/docs (related to Sci2c) on the Net ? Maybe somebody knows if there are any plans to extend it's functionality in the future ? I'm using mainly C2000 from Ti and dsPIC from Microchip. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From aisre.vought at gmail.com Tue Aug 17 20:44:47 2010 From: aisre.vought at gmail.com (Aisre Vought) Date: Tue, 17 Aug 2010 13:44:47 -0500 Subject: [scilab-Users] Sci2c (Scilab2c) documentation and examples ? In-Reply-To: <4C6AD0F7.6020901@aster.pl> References: <4C6AD0F7.6020901@aster.pl> Message-ID: Maciej, can you share a link to the documentation you did find? (Sci2cUserGuidev4) On Tue, Aug 17, 2010 at 1:12 PM, Maciej Saczuk wrote: > > Has anybody used Sci2c (Scilab2c) toolbox ? > How does it compare to RTW Embedded Coder from Matlab ? > > I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). > Are there any other examples/docs (related to Sci2c) on the Net ? > > Maybe somebody knows if there are any plans to extend it's functionality in the future ? > > I'm using mainly C2000 from Ti and dsPIC from Microchip. > > Thanks > > From saczuk at aster.pl Tue Aug 17 22:02:25 2010 From: saczuk at aster.pl (Maciek) Date: Tue, 17 Aug 2010 20:02:25 +0000 (UTC) Subject: Sci2c (Scilab2c) documentation and examples ? References: <4C6AD0F7.6020901@aster.pl> Message-ID: Aisre Vought writes: > > Maciej, can you share a link to the documentation you did find? > (Sci2cUserGuidev4) > > On Tue, Aug 17, 2010 at 1:12 PM, Maciej Saczuk wrote: > > > > Has anybody used Sci2c (Scilab2c) toolbox ? > > How does it compare to RTW Embedded Coder from Matlab ? > > > > I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). > > Are there any other examples/docs (related to Sci2c) on the Net ? > > > > Maybe somebody knows if there are any plans to extend it's functionality in the future ? > > > > I'm using mainly C2000 from Ti and dsPIC from Microchip. > > > > Thanks > > > > > > You can find the copy in the doc folder on the project's site: http://forge.scilab.org/index.php/p/scilab2c/source/tree/HEAD/tags/release- 2.0/Doc From rafael at freedom.ind.br Wed Aug 18 13:35:30 2010 From: rafael at freedom.ind.br (Rafael Campos Las Heras) Date: Wed, 18 Aug 2010 08:35:30 -0300 Subject: [scilab-Users] Sci2c (Scilab2c) documentation and examples ? In-Reply-To: <4C6AD0F7.6020901@aster.pl> References: <4C6AD0F7.6020901@aster.pl> Message-ID: <1282131330.17812.3.camel@eng-rafael> Hi Maciej, On Tue, 2010-08-17 at 20:12 +0200, Maciej Saczuk wrote: > Has anybody used Sci2c (Scilab2c) toolbox ? > How does it compare to RTW Embedded Coder from Matlab ? > You could find interesting the rtai-lab [1] > I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). > Are there any other examples/docs (related to Sci2c) on the Net ? > > Maybe somebody knows if there are any plans to extend it's functionality in the future ? > > I'm using mainly C2000 from Ti and dsPIC from Microchip. For dsPIC, you could find interesting the Erika and RT-Druid [2] for FLEX module Code generation [3] > > Thanks > > [1] https://www.rtai.org/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=8&MMN_position=23:23 [2] http://erika.tuxfamily.org/erika-for-multiple-devices.html [3] http://erika.tuxfamily.org/scilabscicos.html From sylvestre.ledru at scilab.org Wed Aug 18 13:40:19 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 18 Aug 2010 13:40:19 +0200 Subject: [scilab-Users] Sci2c (Scilab2c) documentation and examples ? In-Reply-To: <4C6AD0F7.6020901@aster.pl> References: <4C6AD0F7.6020901@aster.pl> Message-ID: <1282131619.11038.7959.camel@korcula.inria.fr> Hello Le mardi 17 ao?t 2010 ? 20:12 +0200, Maciej Saczuk a ?crit : > Has anybody used Sci2c (Scilab2c) toolbox ? > How does it compare to RTW Embedded Coder from Matlab ? > > I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). > Are there any other examples/docs (related to Sci2c) on the Net ? The lead developer of Scilab2C is currently in holidays. I am sure he will be happy to get to you. However, I can reply to this question. The Scilab2c developers wrote many unitary tests for this project: http://forge.scilab.org/index.php/p/scilab2c/source/tree/HEAD/trunk/scilab2c/tests/unit_tests There are usually excellent examples. > Maybe somebody knows if there are any plans to extend it's functionality in the future ? Yes. Sylvestre From saczuk at aster.pl Wed Aug 18 22:28:51 2010 From: saczuk at aster.pl (Maciek) Date: Wed, 18 Aug 2010 20:28:51 +0000 (UTC) Subject: Sci2c (Scilab2c) documentation and examples ? References: <4C6AD0F7.6020901@aster.pl> <1282131619.11038.7959.camel@korcula.inria.fr> Message-ID: Sylvestre Ledru writes: > > Hello > > Le mardi 17 ao?t 2010 ? 20:12 +0200, Maciej Saczuk a ?crit : > > Has anybody used Sci2c (Scilab2c) toolbox ? > > How does it compare to RTW Embedded Coder from Matlab ? > > > > I was only able to find one user guide: Sci2cUserGuidev4 (about 30 pages long). > > Are there any other examples/docs (related to Sci2c) on the Net ? > The lead developer of Scilab2C is currently in holidays. I am sure he will be happy to get to you. > > However, I can reply to this question. > The Scilab2c developers wrote many unitary tests for this project: > http://forge.scilab.org/index.php/p/scilab2c/source/tree/HEAD/trunk/scilab2c/te sts/unit_tests > There are usually excellent examples. > > > Maybe somebody knows if there are any plans to extend it's functionality in the future ? > Yes. > > Sylvestre > > That was really very helpful. I didn't notice the examples. Thanks for help. To Rafael Campos: Thanks for the info. I know about the projects You have mentioned. It would be helpful to know if anybody has used those "frameworks" in commercial product development ? And what were the results ? Anyway thanks for Your help. M. From Stephan.Blouin at drdc-rddc.gc.ca Thu Aug 19 13:53:48 2010 From: Stephan.Blouin at drdc-rddc.gc.ca (Blouin, Stephane) Date: Thu, 19 Aug 2010 08:53:48 -0300 Subject: How to remove the "Continue dsiplay" option from the Console Message-ID: <61C75C594E6CE94DB731747DB5EC42F2010170ED4780@ATLANTICEXMB71.atlantic.drdc-rddc.gc.ca> Hi I'd like to know how can I have a continuous display without having to press "n" or a key? Thanks Stephane ------------------------------------------------------------------------------------------------------- St?phane Blouin, Ph.D., P.Eng. Defence Scientist | Scientifique de la d?fense Systems Architecture Group | Groupe d'architecture des syst?mes Technology Demonstration Section | Section de d?monstration de technologies Defence R & D Canada - Atlantic | R & D pour la d?fense Canada - Atlantique P.O. Box 1012, Dartmouth, NS, Canada, B2Y 3Z7 | C.P. 1012, Dartmouth, NE, Canada, B2Y 3Z7 stephane.blouin at drdc-rddc.gc.ca stephane.blouin2 at forces.gc.ca (902) 426-3100 x216 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu Aug 19 13:57:05 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 19 Aug 2010 13:57:05 +0200 Subject: [scilab-Users] How to remove the "Continue dsiplay" option from the Console In-Reply-To: <61C75C594E6CE94DB731747DB5EC42F2010170ED4780@ATLANTICEXMB71.atlantic.drdc-rddc.gc.ca> References: <61C75C594E6CE94DB731747DB5EC42F2010170ED4780@ATLANTICEXMB71.atlantic.drdc-rddc.gc.ca> Message-ID: <1282219025.2750.368.camel@korcula.inria.fr> > > I?d like to know how can I have a continuous display without having to > press ?n? or a key? Thanks lines(0); is probably what you are looking for. Sylvestre From paul.carrico at esterline.com Mon Aug 23 12:28:23 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 23 Aug 2010 12:28:23 +0200 Subject: figures + handles Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD3@exchsrv.AUXITROL1> Dear All In the following example, how can i : - have 2 polylines with 2 differnte color ? - add the legends ? All my attempts failed Thanks for any help Paul PS : the following (if it's added) failed e.children(1) = 1 // color of the 1rst line e.children(2) = 3 // color of the 2nd line legends(['TRACTION' 'DROITE'],opt=2) ######################################################################## drawlater(); xgrid(3); f = gcf(); f.figure_size = [1000, 1000]; f.background = color(245,245,245); a = gca(); a.font_size = 2; a.x_label.text = "Epsilon " + string(type_deformation) + " [-]"; a.x_label.font_size = 4; a.y_label.text = "Sigma [MPa]"; a.Y_label.font_size = 4; if (choix_titre == 1) then a.title.text = ("Resultat TRACTION sur " + string(nom_mat) + " + module d''Young"); a.title.font_size = 5; end a.line_style = 1; plot(TRACTION_FIG(:,3),TRACTION_FIG(:,4),line_style=1) plot(TRACTION_YOUNG(:,1),TRACTION_YOUNG(:,2),line_style=2) e = gce() e p = e.children p.thickness = 2 ; p.line_style = 1; drawnow(); -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Mon Aug 23 12:46:58 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 23 Aug 2010 12:46:58 +0200 Subject: [scilab-Users] figures + handles In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD3@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD3@exchsrv.AUXITROL1> Message-ID: <4C7251A2.3040609@laas.fr> Le 23/08/2010 12:28, Carrico, Paul a ?crit : > Dear All > > In the following example, how can i : > - have 2 polylines with 2 differnte color ? > - add the legends ? > > All my attempts failed > > Thanks for any help > > > Paul > > PS : the following (if it's added) failed > e.children(1) = 1 // color of the 1rst line > e.children(2) = 3 // color of the 2nd line > legends(['TRACTION' 'DROITE'],opt=2) > > > > ######################################################################## > drawlater(); > xgrid(3); > f = gcf(); > f.figure_size = [1000, 1000]; > f.background = color(245,245,245); > a = gca(); > a.font_size = 2; > a.x_label.text = "Epsilon " + string(type_deformation) + " [-]"; > a.x_label.font_size = 4; > a.y_label.text = "Sigma [MPa]"; > a.Y_label.font_size = 4; > if (choix_titre == 1) then > a.title.text = ("Resultat TRACTION sur " + string(nom_mat) + " + > module d''Young"); > a.title.font_size = 5; > end > a.line_style = 1; > > plot(TRACTION_FIG(:,3),TRACTION_FIG(:,4),line_style=1) > plot(TRACTION_YOUNG(:,1),TRACTION_YOUNG(:,2),line_style=2) > e = gce() > e > p = e.children > p.thickness = 2 ; > p.line_style = 1; > drawnow(); > > > > > > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > You can try the following code to see how to get what you want: ///////////////////////////////////////////////////////////////////////////////////////////////////// x=[-10:0.1:10]; y1=sin(x); y2=cos(x); // this is your code f = gcf(); f.figure_size = [1000, 1000]; f.background = color(245,245,245); a = gca(); a.font_size = 2; a.x_label.text = "Epsilon " +"" + " [-]"; a.x_label.font_size = 4; a.y_label.text = "Sigma [MPa]"; a.Y_label.font_size = 4; // plot(x,y1) e1=gce(); //handle to first polyline plot(x,y2); e2=gce(); //handle to second polyline e1.children.foreground=color("orange"); e2.children.foreground=color("forest green"); legend("This is orange Cos", "This is green Sin"); ///////////////////////////////////////////////////////////////////////////////////////////////////// The key idea is that gce() returns the handle to the current element (the last one you plotted in this case). So unless you want to browse all the children of the "f" handle to finde the handle your are looking for, the best is to call gce() after each plot to keep an handle for each element you plotted on the graph. Cheers, Antoine From delphine-emilie.martin at edf.fr Mon Aug 23 13:54:40 2010 From: delphine-emilie.martin at edf.fr (Delphine-Emilie MARTIN) Date: Mon, 23 Aug 2010 13:54:40 +0200 Subject: [scilab-Users] figures + handles Message-ID: Accus? de r?ception Votre document : [scilab-Users] figures + handles a ?t? re?u par : delphine-emilie.martin at edf.fr le : 23/08/2010 13:54:40 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Aug 23 14:03:14 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 23 Aug 2010 14:03:14 +0200 Subject: [scilab-Users] figures + handles In-Reply-To: <4C7251A2.3040609@laas.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD3@exchsrv.AUXITROL1> <4C7251A2.3040609@laas.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD4@exchsrv.AUXITROL1> I understood Thanks Paul -----Message d'origine----- De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] Envoy? : lundi 23 ao?t 2010 12:47 ? : users at lists.scilab.org Objet : Re: [scilab-Users] figures + handles Le 23/08/2010 12:28, Carrico, Paul a ?crit : > Dear All > > In the following example, how can i : > - have 2 polylines with 2 differnte color ? > - add the legends ? > > All my attempts failed > > Thanks for any help > > > Paul > > PS : the following (if it's added) failed > e.children(1) = 1 // color of the 1rst line > e.children(2) = 3 // color of the 2nd line > legends(['TRACTION' 'DROITE'],opt=2) > > > > ######################################################################## > drawlater(); > xgrid(3); > f = gcf(); > f.figure_size = [1000, 1000]; > f.background = color(245,245,245); > a = gca(); > a.font_size = 2; > a.x_label.text = "Epsilon " + string(type_deformation) + " [-]"; > a.x_label.font_size = 4; > a.y_label.text = "Sigma [MPa]"; > a.Y_label.font_size = 4; > if (choix_titre == 1) then > a.title.text = ("Resultat TRACTION sur " + string(nom_mat) + " + > module d''Young"); > a.title.font_size = 5; > end > a.line_style = 1; > > plot(TRACTION_FIG(:,3),TRACTION_FIG(:,4),line_style=1) > plot(TRACTION_YOUNG(:,1),TRACTION_YOUNG(:,2),line_style=2) > e = gce() > e > p = e.children > p.thickness = 2 ; > p.line_style = 1; > drawnow(); > > > > > > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > You can try the following code to see how to get what you want: ///////////////////////////////////////////////////////////////////////////////////////////////////// x=[-10:0.1:10]; y1=sin(x); y2=cos(x); // this is your code f = gcf(); f.figure_size = [1000, 1000]; f.background = color(245,245,245); a = gca(); a.font_size = 2; a.x_label.text = "Epsilon " +"" + " [-]"; a.x_label.font_size = 4; a.y_label.text = "Sigma [MPa]"; a.Y_label.font_size = 4; // plot(x,y1) e1=gce(); //handle to first polyline plot(x,y2); e2=gce(); //handle to second polyline e1.children.foreground=color("orange"); e2.children.foreground=color("forest green"); legend("This is orange Cos", "This is green Sin"); ///////////////////////////////////////////////////////////////////////////////////////////////////// The key idea is that gce() returns the handle to the current element (the last one you plotted in this case). So unless you want to browse all the children of the "f" handle to finde the handle your are looking for, the best is to call gce() after each plot to keep an handle for each element you plotted on the graph. Cheers, Antoine -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From paul.carrico at esterline.com Mon Aug 23 15:00:17 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 23 Aug 2010 15:00:17 +0200 Subject: Graphics /handles : additional question Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD5@exchsrv.AUXITROL1> All, Additional question : can somebody tell me what's the right synthax ? The "parameters_opti(1)" is a real here young_xstring = "Module d''Young E = '+ parameters_opti(1) + ' [MPa]" xstring(TRACTION_YOUNG(1,1),max(TRACTION_FIG(:,4)),young_xstring) Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Aug 23 15:17:44 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 23 Aug 2010 15:17:44 +0200 Subject: [scilab-Users] Graphics /handles : additional question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD5@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADD5@exchsrv.AUXITROL1> Message-ID: <4C7274F8.8030100@limsi.fr> Hello Paul, You could try: young_xstring = "Module d''Young E = '+ string(parameters_opti(1)) + ' [MPa]" Otherwise you can use sprintf. Mathieu From Samuel.Gougeon at univ-lemans.fr Mon Aug 23 16:40:17 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 23 Aug 2010 16:40:17 +0200 Subject: [scilab-Users] smith-chart plotting In-Reply-To: <4C6823CA.2080805@gmx.net> References: <4C6823CA.2080805@gmx.net> Message-ID: <4C728851.2060905@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Tobias Dr??ler Date : 15/08/2010 19:28: > hi, > > I use scilab to evaluate and display solutions of electromagnetic > simulations. > in high frequency - engineering the smithchart is used to visualize > complex values in one diagram. > > it looks like this : http://www.ece.msstate.edu/~donohoe/smithchart.gif > > I am searching for an function/toolbox that plots data in this format. > Is there something like that available ?? AFAIK, the nearest technical chart available in Scilab is the hallchart(). However, i do not think that it will be convenient for your purpose. Regards, Samuel Gougeon From manjusha.joshi at gmail.com Mon Aug 23 17:25:14 2010 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Mon, 23 Aug 2010 20:55:14 +0530 Subject: scilab advanced workshop at Pune, India 27th Sept- 1st Oct, 2010 Message-ID: Hello, Scilab advanced workshop has been announced at http://fossme.bprim.org/workshop-scilab-advanced Scilab is Free & open source software for Numerical computations. www.scilab.org. The workshop is mainly for College Maths teachers and research students who have some idea of Scilab/Matlab. Topics like Modeling, file handling, toolboxes, how to write own toolbox, Xcos/Scicos -simulator in Scilab, Graphics, Numerical Analysis, Linear Algebra, Differential equations using scilab will be discussed and hands on sessions will be there during the workshop. Dates: 27th Sept-1st Oct.,2010 Venue: Bhaskaracharya Pratishthana, Pune www.bprim.org. Last date of registration: 27th August, 2010 Workshop is supported by Ministry of Human Resource Development (MHRD) Thanks, -- Manjusha S. Joshi P.I. of project on Use of Open source software for Teaching Maths, http://fossme.bprim.org Lecturer in Computational? Mathematics, BIM, Pune, India. www.bprim.org Mobile:? 09822 319328 blog:http://manjushajoshi.wordpress.com/ From cwarner7_11 at hotmail.com Mon Aug 23 22:17:29 2010 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Mon, 23 Aug 2010 15:17:29 -0500 Subject: [scilab-Users] smith-chart plotting In-Reply-To: <4C728851.2060905@univ-lemans.fr> References: <4C6823CA.2080805@gmx.net>,<4C728851.2060905@univ-lemans.fr> Message-ID: Although not specifically Scilab related, you may find something useful here: http://www.sss-mag.com/smith.html#tools Charlie Warner > Date: Mon, 23 Aug 2010 16:40:17 +0200 > From: Samuel.Gougeon at univ-lemans.fr > To: users at lists.scilab.org > Subject: Re: [scilab-Users] smith-chart plotting > > Hello, > ----- Message d'origine ----- > De : Tobias Dr??ler > Date : 15/08/2010 19:28: > > hi, > > > > I use scilab to evaluate and display solutions of electromagnetic > > simulations. > > in high frequency - engineering the smithchart is used to visualize > > complex values in one diagram. > > > > it looks like this : http://www.ece.msstate.edu/~donohoe/smithchart.gif > > > > I am searching for an function/toolbox that plots data in this format. > > Is there something like that available ?? > AFAIK, the nearest technical chart available in Scilab is the hallchart(). > However, i do not think that it will be convenient for your purpose. > > Regards, > Samuel Gougeon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Mon Aug 23 22:20:57 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Mon, 23 Aug 2010 22:20:57 +0200 Subject: to empty the memory Message-ID: <000601cb4300$b29325c0$17b97140$@carrico@free.fr> All, Is there a way to verify the memory is completely empty after the calculations ? I feel that it's not the case after several runs while I use clean variable + clearglobal() at the end of the code ! Thanks Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Tue Aug 24 13:05:04 2010 From: sam at cctech.co.in (Sam Mathew) Date: Tue, 24 Aug 2010 16:35:04 +0530 Subject: Lambert W function Message-ID: Hi, Is it possible to evaluate the Lambert W function in SCILAB? Thanks... Regards, Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Aug 24 16:34:25 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 24 Aug 2010 16:34:25 +0200 Subject: [scilab-Users] Lambert W function In-Reply-To: References: Message-ID: <4C73D871.8080504@scilab.org> Hi, Yes, you will find a macro in the specfun project of the Forge : http://forge.scilab.org/index.php/p/specfun/source/tree/HEAD/macros/specfun_lambertw.sci Since there had been several new functions like this one in the past, I created this project to gather them. Best regards, Micha?l Baudin Sam Mathew a ?crit : > Hi, > > Is it possible to evaluate the Lambert W function in SCILAB? > Thanks... > > Regards, > Sam > -- 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 e0425956 at student.tuwien.ac.at Wed Aug 25 08:42:16 2010 From: e0425956 at student.tuwien.ac.at (Alexander Raab) Date: Wed, 25 Aug 2010 08:42:16 +0200 Subject: Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Message-ID: <20100825084216.bqiv5r76cwsw4s80@webmail.tuwien.ac.at> Hello, I have a problem with TCL_EvalStr. Nearly every time I use TCL_EvalStr scilab returns an error. But if I am doing a TCL_DoOneEvent at startup every thing is fine. ########################################################################## ___________________________________________ scilab-5.3.0-beta-2 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Starte Ausf?hrung: lade Startumgebung -->TCL_EvalStr("set a 2") Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Save your data and restart Scilab. ans = set a 2 ########################################################################## ___________________________________________ scilab-5.3.0-beta-2 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Starte Ausf?hrung: lade Startumgebung -->TCL_DoOneEvent -->TCL_EvalStr("set a 2") ans = 2 ########################################################################## I have problems with: 5.3.0 beta1, beta2 and Master Branch of Monday 24.08.2010 no problems with 5.2.2. I'm using WinXP SP3 on an Intel Pentium M any ideas? thx Alexander Raab From allan.cornet at scilab.org Wed Aug 25 08:49:33 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Aug 2010 08:49:33 +0200 Subject: [scilab-Users] Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. In-Reply-To: <20100825084216.bqiv5r76cwsw4s80@webmail.tuwien.ac.at> References: <20100825084216.bqiv5r76cwsw4s80@webmail.tuwien.ac.at> Message-ID: <001801cb4421$ad30fef0$0792fcd0$@scilab.org> Hi, It seems to work for me: ___________________________________________ scilab-5.3.0-beta-2 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->TCL_EvalStr("set a 2") ans = 2 ___________________________________________ scilab-master-1282292820 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Startup execution: loading initial environment -->TCL_EvalStr("set a 2") ans = 2 Please report a bug @ http://bugzilla.scilab.org/ and get result of [a,b] = getdebuginfo() in scilab Allan -----Message d'origine----- De?: Alexander Raab [mailto:e0425956 at student.tuwien.ac.at] Envoy??: mercredi 25 ao?t 2010 08:42 ??: users at lists.scilab.org Objet?: [scilab-Users] Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Hello, I have a problem with TCL_EvalStr. Nearly every time I use TCL_EvalStr scilab returns an error. But if I am doing a TCL_DoOneEvent at startup every thing is fine. ########################################################################## ___________________________________________ scilab-5.3.0-beta-2 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Starte Ausf?hrung: lade Startumgebung -->TCL_EvalStr("set a 2") Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "TCL_EvalStr" function. Save your data and restart Scilab. ans = set a 2 ########################################################################## ___________________________________________ scilab-5.3.0-beta-2 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Starte Ausf?hrung: lade Startumgebung -->TCL_DoOneEvent -->TCL_EvalStr("set a 2") ans = 2 ########################################################################## I have problems with: 5.3.0 beta1, beta2 and Master Branch of Monday 24.08.2010 no problems with 5.2.2. I'm using WinXP SP3 on an Intel Pentium M any ideas? thx Alexander Raab From paul.carrico at esterline.com Wed Aug 25 10:46:32 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 25 Aug 2010 10:46:32 +0200 Subject: Record console information Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADDE@exchsrv.AUXITROL1> All, Is it possible to record in a text file all the informations that appear in the console ? cheers Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Aug 25 10:51:12 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Aug 2010 10:51:12 +0200 Subject: [scilab-Users] Record console information In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADDE@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADDE@exchsrv.AUXITROL1> Message-ID: <002201cb4432$ab537ca0$01fa75e0$@scilab.org> help diary ? Allan De : Carrico, Paul [mailto:paul.carrico at esterline.com] Envoy? : mercredi 25 ao?t 2010 10:47 ? : users at lists.scilab.org Objet : [scilab-Users] Record console information All, Is it possible to record in a text file all the informations that appear in the console ? cheers Paul ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Aug 25 11:49:03 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 25 Aug 2010 11:49:03 +0200 Subject: [scilab-Users] Record console information In-Reply-To: <002201cb4432$ab537ca0$01fa75e0$@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADDE@exchsrv.AUXITROL1> <002201cb4432$ab537ca0$01fa75e0$@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADDF@exchsrv.AUXITROL1> great ! thanks Paul ________________________________ De : Allan CORNET [mailto:allan.cornet at scilab.org] Envoy? : mercredi 25 ao?t 2010 10:51 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Record console information help diary ? Allan De : Carrico, Paul [mailto:paul.carrico at esterline.com] Envoy? : mercredi 25 ao?t 2010 10:47 ? : users at lists.scilab.org Objet : [scilab-Users] Record console information All, Is it possible to record in a text file all the informations that appear in the console ? cheers Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Aug 25 15:42:57 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 25 Aug 2010 15:42:57 +0200 Subject: how to remove Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1> All How can I remove automatically remove all the windows after plot2d instruction ? I tried clf() that resets the drawing or close() but neither of the 2 keywords close the window ; I looked for another instruction ... but I don't see anything Cheers Paul ##########################################" an example : scf(2); plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); xtitle('Partie de la courbe de traction correspondante (boucle 1)','epsilon','sigma'); xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + string(nom_fichier) + '.jpg'); // permet d'exporter le graphe dans une image jpg clf(2); // close(2); -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Aug 25 15:49:05 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Aug 2010 15:49:05 +0200 Subject: [scilab-Users] how to remove In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1> Message-ID: <003901cb445c$4877c580$d9675080$@scilab.org> help xdel or delete? H= scf(2) ; plot2d() ; delete(H) Allan De : Carrico, Paul [mailto:paul.carrico at esterline.com] Envoy? : mercredi 25 ao?t 2010 15:43 ? : users at lists.scilab.org Objet : [scilab-Users] how to remove All How can I remove automatically remove all the windows after plot2d instruction ? I tried clf() that resets the drawing or close() but neither of the 2 keywords close the window ; I looked for another instruction ... but I don't see anything Cheers Paul ##########################################" an example : scf(2); plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); xtitle('Partie de la courbe de traction correspondante (boucle 1)','epsilon','sigma'); xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + string(nom_fichier) + '.jpg'); // permet d'exporter le graphe dans une image jpg clf(2); // close(2); ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amonmayr at laas.fr Wed Aug 25 16:05:01 2010 From: amonmayr at laas.fr (=?utf-8?q?Antoine=20Monmayrant?=) Date: Wed, 25 Aug 2010 16:05:01 +0200 Subject: [scilab-Users] how to remove In-Reply-To: 55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1 Message-ID: Hi Paul, I created this small function to close all the existing graphic windows: //////////////////////////////////////////////// //close all opened graphic windows function CloseAllFig() ids_array=winsid(); for i=1:length(ids_array) id=ids_array(i); close(get_figure_handle(id)); end endfunction //////////////////////////////////////////////// Hope it helps, Antoine Le Mercredi 25 Ao?t 2010 15:42 CEST, "Carrico, Paul" a ?crit: > All > > How can I remove automatically remove all the windows after plot2d > instruction ? > > I tried clf() that resets the drawing or close() but neither of the 2 > keywords close the window ; I looked for another instruction ... but I > don't see anything > > Cheers > > Paul > > ##########################################" > > an example : > > scf(2); > plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); > xtitle('Partie de la courbe de traction correspondante (boucle > 1)','epsilon','sigma'); > xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + > string(nom_fichier) + '.jpg'); // permet d'exporter le graphe > dans une image jpg > clf(2); > // close(2); > > > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > From allan.cornet at scilab.org Wed Aug 25 16:18:00 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Aug 2010 16:18:00 +0200 Subject: [scilab-Users] how to remove In-Reply-To: References: 55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1 Message-ID: <004101cb4460$52935e90$f7ba1bb0$@scilab.org> To close all figures xdel(winsid()) Allan -----Message d'origine----- De : Antoine Monmayrant [mailto:amonmayr at laas.fr] Envoy? : mercredi 25 ao?t 2010 16:05 ? : users at lists.scilab.org Objet : Re: [scilab-Users] how to remove Hi Paul, I created this small function to close all the existing graphic windows: //////////////////////////////////////////////// //close all opened graphic windows function CloseAllFig() ids_array=winsid(); for i=1:length(ids_array) id=ids_array(i); close(get_figure_handle(id)); end endfunction //////////////////////////////////////////////// Hope it helps, Antoine Le Mercredi 25 Ao?t 2010 15:42 CEST, "Carrico, Paul" a ?crit: > All > > How can I remove automatically remove all the windows after plot2d > instruction ? > > I tried clf() that resets the drawing or close() but neither of the 2 > keywords close the window ; I looked for another instruction ... but I > don't see anything > > Cheers > > Paul > > ##########################################" > > an example : > > scf(2); > plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); > xtitle('Partie de la courbe de traction correspondante (boucle > 1)','epsilon','sigma'); > xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + > string(nom_fichier) + '.jpg'); // permet d'exporter le graphe > dans une image jpg > clf(2); > // close(2); > > > > > > ---------------------------------------------------------------------- > ---------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > From ray at aarden.us Thu Aug 26 03:01:51 2010 From: ray at aarden.us (ray joseph) Date: Wed, 25 Aug 2010 20:01:51 -0500 Subject: [scilab-Users] how to remove References: Message-ID: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> Antoine, Great job! I really like the support I have seen in this group. This example makes me wonder if there is an advantage if such looping operations could be vectorized. How would this example be vectorized? Ray ________ Hi Paul, I created this small function to close all the existing graphic windows: //////////////////////////////////////////////// //close all opened graphic windows function CloseAllFig() ids_array=winsid(); for i=1:length(ids_array) id=ids_array(i); close(get_figure_handle(id)); end endfunction //////////////////////////////////////////////// Hope it helps, Antoine Le Mercredi 25 Ao?t 2010 15:42 CEST, "Carrico, Paul" a ?crit: > All > > How can I remove automatically remove all the windows after plot2d > instruction ? > > I tried clf() that resets the drawing or close() but neither of the 2 > keywords close the window ; I looked for another instruction ... but I > don't see anything > > Cheers > > Paul > > ##########################################" > > an example : > > scf(2); > plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); > xtitle('Partie de la courbe de traction correspondante (boucle > 1)','epsilon','sigma'); > xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + > string(nom_fichier) + '.jpg'); // permet d'exporter le graphe > dans une image jpg > clf(2); > // close(2); > > From paul.carrico at esterline.com Thu Aug 26 09:49:15 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 26 Aug 2010 09:49:15 +0200 Subject: [scilab-Users] how to remove In-Reply-To: <004101cb4460$52935e90$f7ba1bb0$@scilab.org> References: 55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE0@exchsrv.AUXITROL1 <004101cb4460$52935e90$f7ba1bb0$@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADE4@exchsrv.AUXITROL1> All, Many thanks for the help and this greatfull function. Paul -----Message d'origine----- De : Allan CORNET [mailto:allan.cornet at scilab.org] Envoy? : mercredi 25 ao?t 2010 16:18 ? : users at lists.scilab.org Objet : RE: [scilab-Users] how to remove To close all figures xdel(winsid()) Allan -----Message d'origine----- De : Antoine Monmayrant [mailto:amonmayr at laas.fr] Envoy? : mercredi 25 ao?t 2010 16:05 ? : users at lists.scilab.org Objet : Re: [scilab-Users] how to remove Hi Paul, I created this small function to close all the existing graphic windows: //////////////////////////////////////////////// //close all opened graphic windows function CloseAllFig() ids_array=winsid(); for i=1:length(ids_array) id=ids_array(i); close(get_figure_handle(id)); end endfunction //////////////////////////////////////////////// Hope it helps, Antoine Le Mercredi 25 Ao?t 2010 15:42 CEST, "Carrico, Paul" a ?crit: > All > > How can I remove automatically remove all the windows after plot2d > instruction ? > > I tried clf() that resets the drawing or close() but neither of the 2 > keywords close the window ; I looked for another instruction ... but I > don't see anything > > Cheers > > Paul > > ##########################################" > > an example : > > scf(2); > plot2d(TRACTION(a:b,1),TRACTION(a:b,2),style=2); > xtitle('Partie de la courbe de traction correspondante (boucle > 1)','epsilon','sigma'); > xs2jpg(2,CHEMIN_DATA + '/courbe_traction_boucle1_' + > string(nom_fichier) + '.jpg'); // permet d'exporter le graphe > dans une image jpg > clf(2); > // close(2); > > > > > > ---------------------------------------------------------------------- > ---------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From mathieu.dubois at limsi.fr Thu Aug 26 09:56:28 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 26 Aug 2010 09:56:28 +0200 Subject: [scilab-Users] how to remove In-Reply-To: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> References: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> Message-ID: <4C761E2C.5010902@limsi.fr> Hello, > This example makes me wonder if there is an advantage if such looping > operations could be vectorized. How would this example be vectorized? > Allan Cornet posted another solution to the problem without loops. You can use xdel(winsid()) to close all figures in one operation. From monmayrant at laas.fr Thu Aug 26 10:18:38 2010 From: monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 26 Aug 2010 10:18:38 +0200 Subject: [scilab-Users] how to remove In-Reply-To: <4C761E2C.5010902@limsi.fr> References: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> <4C761E2C.5010902@limsi.fr> Message-ID: <4C76235E.3040100@laas.fr> Mathieu Dubois a ?crit : > Hello, >> This example makes me wonder if there is an advantage if such looping >> operations could be vectorized. How would this example be vectorized? >> > Allan Cornet posted another solution to the problem without loops. > You can use xdel(winsid()) to close all figures in one operation. I was about to point at Allan's answer that is way more elegant than mine. My function was hastily written and I should rewrite it using Allan's version. From mathieu.dubois at limsi.fr Thu Aug 26 15:20:27 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 26 Aug 2010 15:20:27 +0200 Subject: legend, legends and friends Message-ID: <4C766A1B.1000605@limsi.fr> Hello, I would like to add a legend to my plot. There are 2 functions to do that in scilab: - legend which create a Legend graphic entity as children of current axes - legends (note the 's') which create a Axes graphic entity and plot in it I have problems with both. In short I have a graph and I want to put the legend on the right. Due to the graph I have to put the legend aside it (so a positive argument to legend doesn't work). I would like to avoid manual placement. For legend, my problem is that the positioning options (with negative arguments) don't work well for me (either the legend hides the graph either it is partly 'out of the window'). Can legend resize the window? Concerning legends, it can put the legend below the graph (which is resized) which is fine but... let's say unusual. Why is not possible to put it on the right (this is different than the upper-right positioning of legend)? What can I do? Thanks in advance, Mathieu From mathieu.dubois at limsi.fr Thu Aug 26 15:34:26 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 26 Aug 2010 15:34:26 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C766A1B.1000605@limsi.fr> References: <4C766A1B.1000605@limsi.fr> Message-ID: <4C766D62.7000904@limsi.fr> Hum to better explain my problem, you will find attached to figures: 1.png is what I have with legends(..., 1) -1.png is what I have with legends(..., -1) Clearly the -1 option is better but the legend is partly hidden... Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: -1.png Type: image/png Size: 16302 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.png Type: image/png Size: 12674 bytes Desc: not available URL: From marcelo at inf.ufsc.br Thu Aug 26 22:15:22 2010 From: marcelo at inf.ufsc.br (Marcelo Menezes Reis) Date: Thu, 26 Aug 2010 17:15:22 -0300 Subject: Genetic algorithm with binary representation Message-ID: <4C76CB5A.2030106@inf.ufsc.br> Greetings Does somebody know a genetic algorithm example in SciLab, with binary (0 and 1) representation? Thanks in advance. -- Marcelo Menezes Reis, Dr.Eng. Professor Adjunto - Adjunct Professor Departamento de Inform?tica e Estat?stica Department of Computer Science and Statistics Universidade Federal de Santa Catarina http://www.inf.ufsc.br/~marcelo/ _____________________________________________ From ray at aarden.us Fri Aug 27 01:56:49 2010 From: ray at aarden.us (ray joseph) Date: Thu, 26 Aug 2010 18:56:49 -0500 Subject: [scilab-Users] how to remove References: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> <4C761E2C.5010902@limsi.fr> <4C76235E.3040100@laas.fr> Message-ID: <002301cb457a$59ca2de0$0402a8c0@HOUC35439> Antoine, There is nothing wrong with your solution. It was very instructive as to the function you were using especially for those of use with legacy experience. I would like to become more adept at efficiently using the tools of the language. Sometimes, it might be useful to present a looping solution and then (in the same post or someone else's post) show a vectorize solution to help the community get used to vector methods. Ray ----- Original Message ----- From: "Antoine Monmayrant" To: Sent: Thursday, August 26, 2010 3:18 AM Subject: Re: [scilab-Users] how to remove > Mathieu Dubois a ?crit : > > Hello, > >> This example makes me wonder if there is an advantage if such looping > >> operations could be vectorized. How would this example be vectorized? > >> > > Allan Cornet posted another solution to the problem without loops. > > You can use xdel(winsid()) to close all figures in one operation. > I was about to point at Allan's answer that is way more elegant than mine. > My function was hastily written and I should rewrite it using Allan's > version. > From antoine.monmayrant at laas.fr Fri Aug 27 08:24:02 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 27 Aug 2010 08:24:02 +0200 Subject: [scilab-Users] how to remove In-Reply-To: <002301cb457a$59ca2de0$0402a8c0@HOUC35439> References: <018b01cb44ba$4538b060$0402a8c0@HOUC35439> <4C761E2C.5010902@limsi.fr> <4C76235E.3040100@laas.fr> <002301cb457a$59ca2de0$0402a8c0@HOUC35439> Message-ID: <4C775A02.2020309@laas.fr> ray joseph a ?crit : > Antoine, > > There is nothing wrong with your solution. It was very instructive as to > the function you were using especially for those of use with legacy > experience. > > I would like to become more adept at efficiently using the tools of the > language. Sometimes, it might be useful to present a looping solution and > then (in the same post or someone else's post) show a vectorize solution to > help the community get used to vector methods. > I agree with you that vectorized versions are both faster and more difficult to read and understand. In the present case, I don't think there is much difference in execution time as I usually don't have hundreds of windows to close. I think I'll try to rewrite my function so it can close a given range of windows or 'all', a bit like the Matlab 'close'. > Ray > > ----- Original Message ----- > From: "Antoine Monmayrant" > To: > Sent: Thursday, August 26, 2010 3:18 AM > Subject: Re: [scilab-Users] how to remove > > > >> Mathieu Dubois a ?crit : >> >>> Hello, >>> >>>> This example makes me wonder if there is an advantage if such looping >>>> operations could be vectorized. How would this example be vectorized? >>>> >>>> >>> Allan Cornet posted another solution to the problem without loops. >>> You can use xdel(winsid()) to close all figures in one operation. >>> >> I was about to point at Allan's answer that is way more elegant than mine. >> My function was hastily written and I should rewrite it using Allan's >> version. >> >> > > From paul.carrico at esterline.com Fri Aug 27 12:04:18 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 27 Aug 2010 12:04:18 +0200 Subject: advice on least square method Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEA@exchsrv.AUXITROL1> Dear all, The current email is intend as (an) advice(s) request regarding the least square method calculations. I'm currently using the function herebellow to calculate the coefficients of a 2nd order polynomial using thousands of experimental data (furthermore the function is inserted in a loop => thousands of loop = billiards of calculations). So the main time cost is these calculation ... I'm working to improve the code to be faster and in parallele I would like to know if these a more relevant instruction in Scilab that performe the calculation faster (maybe more accurate) ? I had a look in the leastsq instruction ... but the later is strongly influenced by the initial parameters guess X0 (isn't it). Any advice is welcome Regards / have a good WE Paul PS : A give a basic exampel in attached PS 2 : additional question (but i'm a newby : calculations to be parallelized ???) ###################################################" ########################################################## function R_square = fct_MMC(p,experience) // Nota : // p = polynomial degree // experience = experimental data // step 1 : "linear" least square method // matrix size [n,c] = size(experience); // calculation of S S = zeros(2*p,1); for k = 1 : (2*p) for i = 1 : n S(k) = S(k) + experience(i,1)^k; end end // calculation of W W = zeros(p+1,1); for k = 1 : (p+1) for i = 1 : n W(k) = W(k) + experience(i,2)*experience(i,1)^(k-1); end end // calculation of A = S matrix A = zeros(p+1,p+1); for i = 1 : (p+1) for j = 1 : (p+1) if (i == 1 & j == 1) then A(1,1) = n; else A(i,j) = S(i+j-2); end end end // calculation of B = W matrix B = zeros(p+1,1); for j = 1 : (p+1) B(j) = W(j); end // calculation of the coefficients if (det(A) == 0) then printf(' ######################################################################## ###############\n') printf(' #### Singular matrix => no solution ####\n') printf(' ######################################################################## ###############\n') else //C = inv(A)*B; C = lsq(A,B); // a bit faster than the previous calculation / same results // calculation of R_square // formula : R_square = 1 - ( sum(F_fit - F_measured)^2 / sum(F_mean - F_measured ) F_fit = zeros(n,1); R_square = 0; F_mean = 0; for i = 1 : n // Calcul de F_fit for k = 1 : (p+1) F_fit(i) = F_fit(i) + C(k)*experience(i,1)^(k-1) ; end end calculation of F_mean F_mean = mean(experience(:,2)); // SSE = sum (F_fit - F_mean) // SSTE = sum (F_mean - F_measured) SSE = 0; SST = 0; for i = 1 : n SSE = SSE + (F_fit(i) - experience(i,2))^2 ; SST = SST + (F_mean - experience(i,2))^2 ; end R_square = 1 - (SSE / SST); end clear A clear B clear S clear W clear SSE clear SST endfunction -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: matrix.JPG Type: image/jpeg Size: 24546 bytes Desc: matrix.JPG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: least_square_method.sce Type: application/octet-stream Size: 2671 bytes Desc: least_square_method.sce URL: From pierre.juillard at gmail.com Fri Aug 27 13:27:21 2010 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Fri, 27 Aug 2010 13:27:21 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? Message-ID: Dear all, I would like to know if there is some kind of tutorial (either in pdf or in the scilab wiki) presenting the Scilab parsing commands so that it is possible to read, write, appened an ASCII file (preferably with some examples)? I had a quick look on Scilab wiki. I see that there are tutorials for optimizations. Is there a similar one about file parsing? (ok, these are far lessinteresting functions scientifically speaking) Actually, the basic functions I am intersting in is: ______________________________________________________ 1- read from an input file, input data to be used in a loop (robustness study) so as to perform calculation in a loop. A function to read a file of the type below, storing the result in a table and looping over the table content would be perfect (example of file content: one line per iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values myDataFile1.inp, 3.14 , string1 myDataFile2.inp, 3.12 , string2 myDataFile3.inp, 3.18 , string3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 2- read the result in an ASCII file recognizing some keywords. (example of file content: one result per line at one iteration, file is generated at every iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ result of objective 1: 20 result of objective 2: 34,55555 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 3- at each iteration, appening a conslidated result file (ie a "knowledge base") (example of file content: one iteration per line) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values, resultOfObjective1, resultOfObjective2 myDataFile1.inp, 3.14 , string1 , 20, 34.5555 myDataFile2.inp, 3.12 , string2 , 22.6, 37.1 myDataFile3.inp, 3.18 , string3 , 21.8, 35.6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ I thank you in advance for any help. Bests, Pierre PS: just a small feedback on the Scilab wiki page: http://wiki.scilab.org/Tutorials There is redundant "language" document classification: tables are separated by langauges (english, french, others...) and recalled in the 1st column: this may not be necessary for the 2 first tables. Also, some french documents appear in the english table. Should I help cleaning it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Aug 27 13:31:33 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 27 Aug 2010 13:31:33 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? In-Reply-To: References: Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> Hi, I don't know if it's the best way ... however it works in my case ... hope this help Paul ________________________________ De : Pierre JUILLARD [mailto:pierre.juillard at gmail.com] Envoy? : vendredi 27 ao?t 2010 13:27 ? : users at lists.scilab.org Objet : [scilab-Users] tutorial on ASCII file parsing commands? Dear all, I would like to know if there is some kind of tutorial (either in pdf or in the scilab wiki) presenting the Scilab parsing commands so that it is possible to read, write, appened an ASCII file (preferably with some examples)? I had a quick look on Scilab wiki. I see that there are tutorials for optimizations. Is there a similar one about file parsing? (ok, these are far lessinteresting functions scientifically speaking) Actually, the basic functions I am intersting in is: ______________________________________________________ 1- read from an input file, input data to be used in a loop (robustness study) so as to perform calculation in a loop. A function to read a file of the type below, storing the result in a table and looping over the table content would be perfect (example of file content: one line per iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values myDataFile1.inp, 3.14 , string1 myDataFile2.inp, 3.12 , string2 myDataFile3.inp, 3.18 , string3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 2- read the result in an ASCII file recognizing some keywords. (example of file content: one result per line at one iteration, file is generated at every iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ result of objective 1: 20 result of objective 2: 34,55555 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 3- at each iteration, appening a conslidated result file (ie a "knowledge base") (example of file content: one iteration per line) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values, resultOfObjective1, resultOfObjective2 myDataFile1.inp, 3.14 , string1 , 20, 34.5555 myDataFile2.inp, 3.12 , string2 , 22.6, 37.1 myDataFile3.inp, 3.18 , string3 , 21.8, 35.6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ I thank you in advance for any help. Bests, Pierre PS: just a small feedback on the Scilab wiki page: http://wiki.scilab.org/Tutorials There is redundant "language" document classification: tables are separated by langauges (english, french, others...) and recalled in the 1st column: this may not be necessary for the 2 first tables. Also, some french documents appear in the english table. Should I help cleaning it? -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: routine.sci Type: application/octet-stream Size: 4879 bytes Desc: routine.sci URL: From pierre.juillard at gmail.com Fri Aug 27 14:35:53 2010 From: pierre.juillard at gmail.com (Pierre JUILLARD) Date: Fri, 27 Aug 2010 14:35:53 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> Message-ID: Pau, thank you! Bests, Pierre 2010/8/27 Carrico, Paul > Hi, > > > > I don't know if it's the best way ... however it works in my case ... > > hope this help > > Paul > > ------------------------------ > *De :* Pierre JUILLARD [mailto:pierre.juillard at gmail.com] > *Envoy? :* vendredi 27 ao?t 2010 13:27 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] tutorial on ASCII file parsing commands? > > Dear all, > > I would like to know if there is some kind of tutorial (either in pdf or in > the scilab wiki) presenting the Scilab parsing commands so that it is > possible to read, write, appened an ASCII file (preferably with some > examples)? > > I had a quick look on Scilab wiki. > I see that there are tutorials for optimizations. > Is there a similar one about file parsing? > (ok, these are far lessinteresting functions scientifically speaking) > > Actually, the basic functions I am intersting in is: > > ______________________________________________________ > 1- read from an input file, input data to be used in a loop (robustness > study) so as to perform calculation in a loop. > A function to read a file of the type below, storing the result in a table > and looping over the table content would be perfect > > (example of file content: one line per iteration) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > variable1Values, variable2Values, variable3Values > myDataFile1.inp, 3.14 , string1 > myDataFile2.inp, 3.12 , string2 > myDataFile3.inp, 3.18 , string3 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > 2- read the result in an ASCII file recognizing some keywords. > > (example of file content: one result per line at one iteration, file is > generated at every iteration) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > result of objective 1: 20 > result of objective 2: 34,55555 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > 3- at each iteration, appening a conslidated result file (ie a "knowledge > base") > > (example of file content: one iteration per line) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > variable1Values, variable2Values, variable3Values, resultOfObjective1, > resultOfObjective2 > myDataFile1.inp, 3.14 , string1 , > 20, 34.5555 > myDataFile2.inp, 3.12 , string2 , > 22.6, 37.1 > myDataFile3.inp, 3.18 , string3 , > 21.8, 35.6 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > > I thank you in advance for any help. > Bests, > > Pierre > > PS: just a small feedback on the Scilab wiki page: > http://wiki.scilab.org/Tutorials > There is redundant "language" document classification: > tables are separated by langauges (english, french, others...) and recalled > in the 1st column: this may not be necessary for the 2 first tables. > Also, some french documents appear in the english table. > Should I help cleaning it? > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Aug 27 14:53:31 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 27 Aug 2010 14:53:31 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? In-Reply-To: References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEC@exchsrv.AUXITROL1> another "trick" if you want to create a loop to test several files : step 1 : in the repertory were the files are, type : "ls > files_names.dat" step 2 : read the files_names.dat with all the files .... another way ? Paul ________________________________ De : Pierre JUILLARD [mailto:pierre.juillard at gmail.com] Envoy? : vendredi 27 ao?t 2010 14:36 ? : users at lists.scilab.org Objet : Re: [scilab-Users] tutorial on ASCII file parsing commands? Pau, thank you! Bests, Pierre 2010/8/27 Carrico, Paul Hi, I don't know if it's the best way ... however it works in my case ... hope this help Paul ________________________________ De : Pierre JUILLARD [mailto:pierre.juillard at gmail.com] Envoy? : vendredi 27 ao?t 2010 13:27 ? : users at lists.scilab.org Objet : [scilab-Users] tutorial on ASCII file parsing commands? Dear all, I would like to know if there is some kind of tutorial (either in pdf or in the scilab wiki) presenting the Scilab parsing commands so that it is possible to read, write, appened an ASCII file (preferably with some examples)? I had a quick look on Scilab wiki. I see that there are tutorials for optimizations. Is there a similar one about file parsing? (ok, these are far lessinteresting functions scientifically speaking) Actually, the basic functions I am intersting in is: ______________________________________________________ 1- read from an input file, input data to be used in a loop (robustness study) so as to perform calculation in a loop. A function to read a file of the type below, storing the result in a table and looping over the table content would be perfect (example of file content: one line per iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values myDataFile1.inp, 3.14 , string1 myDataFile2.inp, 3.12 , string2 myDataFile3.inp, 3.18 , string3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 2- read the result in an ASCII file recognizing some keywords. (example of file content: one result per line at one iteration, file is generated at every iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ result of objective 1: 20 result of objective 2: 34,55555 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 3- at each iteration, appening a conslidated result file (ie a "knowledge base") (example of file content: one iteration per line) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values, resultOfObjective1, resultOfObjective2 myDataFile1.inp, 3.14 , string1 , 20, 34.5555 myDataFile2.inp, 3.12 , string2 , 22.6, 37.1 myDataFile3.inp, 3.18 , string3 , 21.8, 35.6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ I thank you in advance for any help. Bests, Pierre PS: just a small feedback on the Scilab wiki page: http://wiki.scilab.org/Tutorials There is redundant "language" document classification: tables are separated by langauges (english, french, others...) and recalled in the 1st column: this may not be necessary for the 2 first tables. Also, some french documents appear in the english table. Should I help cleaning it? -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: read_files.sce Type: application/octet-stream Size: 905 bytes Desc: read_files.sce URL: From osvaldo at dcc.ufmg.br Fri Aug 27 14:55:09 2010 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Fri, 27 Aug 2010 09:55:09 -0300 Subject: [scilab-Users] tutorial on ASCII file parsing commands? Message-ID: Return Receipt Your RE: [scilab-Users] tutorial on ASCII file parsing commands? document: was osvaldo at dcc.ufmg.br received by: at: 08/27/2010 09:55:07 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Aug 27 14:57:35 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 27 Aug 2010 14:57:35 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEC@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEC@exchsrv.AUXITROL1> Message-ID: <4C77B63F.10203@laas.fr> Le 27/08/2010 14:53, Carrico, Paul a ?crit : > another "trick" if you want to create a loop to test several files : > step 1 : in the repertory were the files are, type : > "ls > files_names.dat" > step 2 : read the files_names.dat with all the files .... > another way ? > Paul Yes, you can use listfiles ( http://www.scilab.org/product/man/listfiles.html ) It returns a string matrix so you can loop over each element of the matrix (each element corresponds to one file name). Antoine > > ------------------------------------------------------------------------ > *De :* Pierre JUILLARD [mailto:pierre.juillard at gmail.com] > *Envoy? :* vendredi 27 ao?t 2010 14:36 > *? :* users at lists.scilab.org > *Objet :* Re: [scilab-Users] tutorial on ASCII file parsing commands? > > Pau, thank you! > > Bests, > > Pierre > > > > > 2010/8/27 Carrico, Paul > > > Hi, > > I don't know if it's the best way ... however it works in my case ... > > hope this help > > Paul > > > ------------------------------------------------------------------------ > *De :* Pierre JUILLARD [mailto:pierre.juillard at gmail.com > ] > *Envoy? :* vendredi 27 ao?t 2010 13:27 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] tutorial on ASCII file parsing commands? > > Dear all, > > I would like to know if there is some kind of tutorial (either in > pdf or in the scilab wiki) presenting the Scilab parsing commands > so that it is possible to read, write, appened an ASCII file > (preferably with some examples)? > > I had a quick look on Scilab wiki. > I see that there are tutorials for optimizations. > Is there a similar one about file parsing? > (ok, these are far lessinteresting functions scientifically speaking) > > Actually, the basic functions I am intersting in is: > > ______________________________________________________ > 1- read from an input file, input data to be used in a loop > (robustness study) so as to perform calculation in a loop. > A function to read a file of the type below, storing the result in > a table and looping over the table content would be perfect > > (example of file content: one line per iteration) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > variable1Values, variable2Values, variable3Values > myDataFile1.inp, 3.14 , string1 > myDataFile2.inp, 3.12 , string2 > myDataFile3.inp, 3.18 , string3 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > 2- read the result in an ASCII file recognizing some keywords. > > (example of file content: one result per line at one iteration, > file is generated at every iteration) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > result of objective 1: 20 > result of objective 2: 34,55555 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > 3- at each iteration, appening a conslidated result file (ie a > "knowledge base") > > (example of file content: one iteration per line) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > variable1Values, variable2Values, variable3Values, > resultOfObjective1, resultOfObjective2 > myDataFile1.inp, 3.14 , string1 , > 20, 34.5555 > myDataFile2.inp, 3.12 , string2 , > 22.6, 37.1 > myDataFile3.inp, 3.18 , string3 , > 21.8, 35.6 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ______________________________________________________ > > I thank you in advance for any help. > Bests, > > Pierre > > PS: just a small feedback on the Scilab wiki page: > http://wiki.scilab.org/Tutorials > There is redundant "language" document classification: > tables are separated by langauges (english, french, others...) and > recalled in the 1st column: this may not be necessary for the 2 > first tables. > Also, some french documents appear in the english table. > Should I help cleaning it? > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Aug 27 15:01:49 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 27 Aug 2010 15:01:49 +0200 Subject: [scilab-Users] tutorial on ASCII file parsing commands? In-Reply-To: <4C77B63F.10203@laas.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEB@exchsrv.AUXITROL1> <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEC@exchsrv.AUXITROL1> <4C77B63F.10203@laas.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADED@exchsrv.AUXITROL1> thanks ________________________________ De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] Envoy? : vendredi 27 ao?t 2010 14:58 ? : users at lists.scilab.org Objet : Re: [scilab-Users] tutorial on ASCII file parsing commands? Le 27/08/2010 14:53, Carrico, Paul a ?crit : another "trick" if you want to create a loop to test several files : step 1 : in the repertory were the files are, type : "ls > files_names.dat" step 2 : read the files_names.dat with all the files .... another way ? Paul Yes, you can use listfiles ( http://www.scilab.org/product/man/listfiles.html ) It returns a string matrix so you can loop over each element of the matrix (each element corresponds to one file name). Antoine ________________________________ De : Pierre JUILLARD [mailto:pierre.juillard at gmail.com] Envoy? : vendredi 27 ao?t 2010 14:36 ? : users at lists.scilab.org Objet : Re: [scilab-Users] tutorial on ASCII file parsing commands? Pau, thank you! Bests, Pierre 2010/8/27 Carrico, Paul Hi, I don't know if it's the best way ... however it works in my case ... hope this help Paul ________________________________ De : Pierre JUILLARD [mailto:pierre.juillard at gmail.com] Envoy? : vendredi 27 ao?t 2010 13:27 ? : users at lists.scilab.org Objet : [scilab-Users] tutorial on ASCII file parsing commands? Dear all, I would like to know if there is some kind of tutorial (either in pdf or in the scilab wiki) presenting the Scilab parsing commands so that it is possible to read, write, appened an ASCII file (preferably with some examples)? I had a quick look on Scilab wiki. I see that there are tutorials for optimizations. Is there a similar one about file parsing? (ok, these are far lessinteresting functions scientifically speaking) Actually, the basic functions I am intersting in is: ______________________________________________________ 1- read from an input file, input data to be used in a loop (robustness study) so as to perform calculation in a loop. A function to read a file of the type below, storing the result in a table and looping over the table content would be perfect (example of file content: one line per iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values myDataFile1.inp, 3.14 , string1 myDataFile2.inp, 3.12 , string2 myDataFile3.inp, 3.18 , string3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 2- read the result in an ASCII file recognizing some keywords. (example of file content: one result per line at one iteration, file is generated at every iteration) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ result of objective 1: 20 result of objective 2: 34,55555 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ 3- at each iteration, appening a conslidated result file (ie a "knowledge base") (example of file content: one iteration per line) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variable1Values, variable2Values, variable3Values, resultOfObjective1, resultOfObjective2 myDataFile1.inp, 3.14 , string1 , 20, 34.5555 myDataFile2.inp, 3.12 , string2 , 22.6, 37.1 myDataFile3.inp, 3.18 , string3 , 21.8, 35.6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________ I thank you in advance for any help. Bests, Pierre PS: just a small feedback on the Scilab wiki page: http://wiki.scilab.org/Tutorials There is redundant "language" document classification: tables are separated by langauges (english, french, others...) and recalled in the 1st column: this may not be necessary for the 2 first tables. Also, some french documents appear in the english table. Should I help cleaning it? -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Fri Aug 27 15:05:11 2010 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Fri, 27 Aug 2010 10:05:11 -0300 Subject: [scilab-Users] tutorial on ASCII file parsing commands? Message-ID: Return Receipt Your RE: [scilab-Users] tutorial on ASCII file parsing commands? document: was osvaldo at dcc.ufmg.br received by: at: 08/27/2010 10:05:09 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Fri Aug 27 15:30:28 2010 From: ray at aarden.us (ray joseph) Date: Fri, 27 Aug 2010 08:30:28 -0500 Subject: [scilab-Users] advice on least square method References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498ADEA@exchsrv.AUXITROL1> Message-ID: <013001cb45ec$0405f9d0$0402a8c0@HOUC35439> Paul, If you have a look at http://www.mathworks.com/moler/leastsquares.pdf you will find not only a vectorized method, but considerations on what to do when the data/experient is ill conditioned. Section 5.5 shows the easy way to calculate the matrix of sums of powers. One consideration is to not calculate the determinant to see if there is a solution. This calc is very expensive. Let the algorythm detect singularity. Ray ----- Original Message ----- From: Carrico, Paul To: users at lists.scilab.org Sent: Friday, August 27, 2010 5:04 AM Subject: [scilab-Users] advice on least square method Dear all, The current email is intend as (an) advice(s) request regarding the least square method calculations. I'm currently using the function herebellow to calculate the coefficients of a 2nd order polynomial using thousands of experimental data (furthermore the function is inserted in a loop => thousands of loop = billiards of calculations). So the main time cost is these calculation ... I'm working to improve the code to be faster and in parallele I would like to know if these a more relevant instruction in Scilab that performe the calculation faster (maybe more accurate) ? I had a look in the leastsq instruction ... but the later is strongly influenced by the initial parameters guess X0 (isn't it). Any advice is welcome Regards / have a good WE Paul PS : A give a basic exampel in attached PS 2 : additional question (but i'm a newby : calculations to be parallelized ???) ###################################################" ########################################################## function R_square = fct_MMC(p,experience) // Nota : // p = polynomial degree // experience = experimental data // step 1 : "linear" least square method // matrix size [n,c] = size(experience); // calculation of S S = zeros(2*p,1); for k = 1 : (2*p) for i = 1 : n S(k) = S(k) + experience(i,1)^k; end end // calculation of W W = zeros(p+1,1); for k = 1 : (p+1) for i = 1 : n W(k) = W(k) + experience(i,2)*experience(i,1)^(k-1); end end // calculation of A = S matrix A = zeros(p+1,p+1); for i = 1 : (p+1) for j = 1 : (p+1) if (i == 1 & j == 1) then A(1,1) = n; else A(i,j) = S(i+j-2); end end end // calculation of B = W matrix B = zeros(p+1,1); for j = 1 : (p+1) B(j) = W(j); end // calculation of the coefficients if (det(A) == 0) then printf(' #######################################################################################\n') printf(' #### Singular matrix => no solution ####\n') printf(' #######################################################################################\n') else //C = inv(A)*B; C = lsq(A,B); // a bit faster than the previous calculation / same results // calculation of R_square // formula : R_square = 1 - ( sum(F_fit - F_measured)^2 / sum(F_mean - F_measured ) F_fit = zeros(n,1); R_square = 0; F_mean = 0; for i = 1 : n // Calcul de F_fit for k = 1 : (p+1) F_fit(i) = F_fit(i) + C(k)*experience(i,1)^(k-1) ; end end calculation of F_mean F_mean = mean(experience(:,2)); // SSE = sum (F_fit - F_mean) // SSTE = sum (F_mean - F_measured) SSE = 0; SST = 0; for i = 1 : n SSE = SSE + (F_fit(i) - experience(i,2))^2 ; SST = SST + (F_mean - experience(i,2))^2 ; end R_square = 1 - (SSE / SST); end clear A clear B clear S clear W clear SSE clear SST endfunction -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: matrix.JPG Type: image/jpeg Size: 24546 bytes Desc: not available URL: From oliver.schmid at students.fhnw.ch Fri Aug 27 14:51:56 2010 From: oliver.schmid at students.fhnw.ch (Schmid Oliver (s)) Date: Fri, 27 Aug 2010 14:51:56 +0200 Subject: Startup Message-ID: Hello We use Scilab and i want that a library automatically is loaded at the startup. I know the command load('C:\Octave\programms\Beispiel\lib') but I am not realy sure where I have to write it correctly. At the moment I wrote it in the Gui startupfile and that is not a clean solution. Thanks for your help Regards Oliver --------------------------------------------- Fachhochschule Nordwestschweiz Hochschule f?r Technik Oliver Schmid Student Klasse 1Ma Klosterzelgstrasse 2 5210 Windisch --------------------------------------------- oliver.schmid at students.fhnw.ch -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Sun Aug 29 19:17:54 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sun, 29 Aug 2010 19:17:54 +0200 Subject: [scilab-Users] Startup In-Reply-To: References: Message-ID: <4C7A9642.7000102@limsi.fr> Hallo, > We use Scilab and i want that a library automatically is loaded at the > startup. I know the command > > load('C:\Octave\programms\Beispiel\lib') Did you read the instructions in "help startup"? > but I am not realy sure where I have to write it correctly. At the > moment I wrote it in the Gui startupfile and that is not a clean solution. That's basically what is described in "help startup" (and also the way many software work at startup). Why do you say it's not a clean solution? Do you have special needs? HTH, Mathieu From Peter.Cusack at csiro.au Tue Aug 31 01:44:21 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Tue, 31 Aug 2010 09:44:21 +1000 Subject: Elliptic integral Message-ID: Hi all. I'm writing some code to simulate a magnetic field. It uses elliptic integrals of the first and second kind. The elliptic integral of the second kind is not part of the Scilab function list, so I created one as shown below. -->deff('y=f(t,k)','y=sqrt((1-(k*t)^2)/(1-t^2))') //Core definition for integral -->deff('[ec]=elliptic_ec(k)','ec=intg(0,1,list(f,k))') //Second kind, not built into SciLab When this runs, I get the following error message: !--error 98 Variable returned by scilab argument function is incorrect. at line 2 of function elliptic_ec called by : at line 2 of function Bx called by : at line 2 of function Bxt called by : Bcentre=Bxt(0,0) //*Field at centre of winding*/ I'm looking for help to get past this. If the variable is incorrect, what should it be and how can I correct it? If, as I suspect, the error is what's left after a failed computation, can someone point me to a more reliable method to calculate the elliptic integral? Cheers; Peter. Peter Cusack, BE, MSc Control Engineer CSIRO Materials Science and Engineering CSIRO Phone: +61 2 9413 7123 | Fax: +61 2 9413 7200 peter.cusack at csiro.au | www.csiro.au | www.csiro.au/cmse Address: PO Box 218, Lindfield, NSW 2070, Australia PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email. From Chuk.Igwe at agcocorp.com Tue Aug 31 08:25:01 2010 From: Chuk.Igwe at agcocorp.com (Igwe, Chuk) Date: Tue, 31 Aug 2010 02:25:01 -0400 Subject: [scilab-Users] Elliptic integral In-Reply-To: Message-ID: <2BF4B6BAD5877C45B1BC39F18ADD251EDA502BBDFF@AGATLEXGV1P.atlanta.agcocorp.com> Were you at pursue? Chuk Igwe ----- Original Message ----- From: Peter.Cusack at csiro.au [mailto:Peter.Cusack at csiro.au] Sent: Monday, August 30, 2010 07:44 PM To: users at lists.scilab.org Subject: [scilab-Users] Elliptic integral Hi all. I'm writing some code to simulate a magnetic field. It uses elliptic integrals of the first and second kind. The elliptic integral of the second kind is not part of the Scilab function list, so I created one as shown below. -->deff('y=f(t,k)','y=sqrt((1-(k*t)^2)/(1-t^2))') //Core definition for integral -->deff('[ec]=elliptic_ec(k)','ec=intg(0,1,list(f,k))') //Second kind, not built into SciLab When this runs, I get the following error message: !--error 98 Variable returned by scilab argument function is incorrect. at line 2 of function elliptic_ec called by : at line 2 of function Bx called by : at line 2 of function Bxt called by : Bcentre=Bxt(0,0) //*Field at centre of winding*/ I'm looking for help to get past this. If the variable is incorrect, what should it be and how can I correct it? If, as I suspect, the error is what's left after a failed computation, can someone point me to a more reliable method to calculate the elliptic integral? Cheers; Peter. Peter Cusack, BE, MSc Control Engineer CSIRO Materials Science and Engineering CSIRO Phone: +61 2 9413 7123 | Fax: +61 2 9413 7200 peter.cusack at csiro.au | www.csiro.au | www.csiro.au/cmse Address: PO Box 218, Lindfield, NSW 2070, Australia PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email. ************************************************************************************************************************************************************************************************************ This email is intended solely for the use of the individual to whom it is addressed and may contain confidential and/or privileged material. Any views or opinions presented are solely those of the author and do not necessarily represent those of AGCO. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any responsibility for viruses and it is your responsibility to scan and virus check the e-mail and its attachment(s) (if any). This email is intended solely for the use of the individual to whom it is addressed and may contain confidential and/or privileged material. Any views or opinions presented are solely those of the author and do not necessarily represent those of AGCO. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any responsibility for viruses and it is your responsibility to scan and virus check the e-mail and its attachment(s) (if any). From Peter.Cusack at csiro.au Tue Aug 31 08:28:19 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Tue, 31 Aug 2010 16:28:19 +1000 Subject: [scilab-Users] Elliptic integral In-Reply-To: <2BF4B6BAD5877C45B1BC39F18ADD251EDA502BBDFF@AGATLEXGV1P.atlanta.agcocorp.com> References: <2BF4B6BAD5877C45B1BC39F18ADD251EDA502BBDFF@AGATLEXGV1P.atlanta.agcocorp.com> Message-ID: No, Chuk. I know nothing of it. Cheers; Peter. > -----Original Message----- > From: Igwe, Chuk [mailto:Chuk.Igwe at agcocorp.com] > Sent: Tuesday, 31 August 2010 16:25 > To: 'users at lists.scilab.org' > Subject: Re: [scilab-Users] Elliptic integral > > Were you at pursue? > Chuk Igwe > From paul.carrico at free.fr Tue Aug 31 12:57:14 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Tue, 31 Aug 2010 12:57:14 +0200 Subject: possible to select a core ? Message-ID: <000001cb48fb$45ab3370$d1019a50$@carrico@free.fr> All, I don't know if my question is interesting (or stupid) since I'm not skilled enough . . it's rather common to have several cores in a processor (nay several processors with several cores) => I would like to know if it's possible to select a core for a specific calculation ? (I had a look in the help documentation, but ???) My idea is the following (throughout an example). 2 (and more) loops that can be performed in parallel : For i = 1 : n A = ... end For i = 1 : n B = ... end Loop 1 is perform a the core 1, loop 2 on the 2 and so on . I noticed that a single core/processor is used . of course the goal is to increase speed up ! Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Aug 31 13:01:34 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 31 Aug 2010 13:01:34 +0200 Subject: [scilab-Users] possible to select a core ? In-Reply-To: <000001cb48fb$45ab3370$d1019a50$@carrico@free.fr> References: <000001cb48fb$45ab3370$d1019a50$@carrico@free.fr> Message-ID: <4C7CE10E.1030500@laas.fr> Le 31/08/2010 12:57, Paul CARRICO a ?crit : > > All, > > I don't know if my question is interesting (or stupid) since I'm not > skilled enough ... > > ... it's rather common to have several cores in a processor (nay > several processors with several cores) => I would like to know if > it's possible to select a core for a specific calculation ? > > (I had a look in the help documentation, but ???) > > My idea is the following (throughout an example). > > 2 (and more) loops that can be performed in parallel : > > For i = 1 : n > > A = ..... > > end > > For i = 1 : n > > B = ..... > > end > > Loop 1 is perform a the core 1, loop 2 on the 2 and so on ... > > I noticed that a single core/processor is used ... of course the goal > is to increase speed up ! > > Paul > There is proactive for that purpose. http://www.scilab.org/projects/collaborations/proactive http://proactive.inria.fr/index.php?page=scilab Never used it, I don't know if it can fit your needs. Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Tue Aug 31 13:49:31 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 31 Aug 2010 13:49:31 +0200 Subject: [scilab-Users] possible to select a core ? In-Reply-To: <4C7CE10E.1030500@laas.fr> References: <000001cb48fb$45ab3370$d1019a50$@carrico@free.fr> <4C7CE10E.1030500@laas.fr> Message-ID: <4C7CEC4B.8030601@limsi.fr> Hello, The upcoming 5.3 version will have a parallel_run function. I have never used it (and the help in the beta seems complicated) but you may have a look at it. Mathieu On 08/31/2010 01:01 PM, Antoine Monmayrant wrote: > Le 31/08/2010 12:57, Paul CARRICO a ?crit : >> >> All, >> >> I don't know if my question is interesting (or stupid) since I'm not >> skilled enough ... >> >> ... it's rather common to have several cores in a processor (nay >> several processors with several cores) => I would like to know if >> it's possible to select a core for a specific calculation ? >> >> (I had a look in the help documentation, but ???) >> >> My idea is the following (throughout an example). >> >> 2 (and more) loops that can be performed in parallel : >> >> For i = 1 : n >> >> A = ..... >> >> end >> >> For i = 1 : n >> >> B = ..... >> >> end >> >> Loop 1 is perform a the core 1, loop 2 on the 2 and so on ... >> >> I noticed that a single core/processor is used ... of course the goal >> is to increase speed up ! >> >> Paul >> > There is proactive for that purpose. > > http://www.scilab.org/projects/collaborations/proactive > > http://proactive.inria.fr/index.php?page=scilab > > Never used it, I don't know if it can fit your needs. > > Antoine > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Aug 31 14:44:19 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 31 Aug 2010 14:44:19 +0200 Subject: [scilab-Users] Genetic algorithm with binary representation In-Reply-To: <4C76CB5A.2030106@inf.ufsc.br> References: <4C76CB5A.2030106@inf.ufsc.br> Message-ID: <4C7CF923.6020307@scilab.org> Hi, You will find in attachment a demo of the optimization of the Rastrigin function with GA. It makes use of the three pre-defined functions crossover_ga_binary,mutation_ga_binary and coding_ga_binary. The function to be minimized receives as input argument a string made of 0 and 1. It uses the convert_to_float function in order to transform the binary variables into floating point numbers, then uses the floats to evaluate the Rastrigin function. The picture in attachment is the contour plot of the Rastrigin function, with the initial population in blue and the optimal population in green. You see that several local optimums have been identified, approximately 7, from what I see on the picture. If we compare to the default settings (with doubles instead of strings), this is worse, since the other algorithm allows to put more points in the neighborhood of (0,0) with the same number of generations. This demo is adapted from the second part of the demo available from : editor(fullfile(SCI,"modules","genetic_algorithms","demos","GAdemo.sce")) Thanks to Yann Collette for this information. Best regards, Micha?l Baudin PS I added this demo to the bugtracker, so that it can be added to the demos of the GA module as soon as possible: http://bugzilla.scilab.org/show_bug.cgi?id=7913 There is no help page for convert_to_float: http://bugzilla.scilab.org/show_bug.cgi?id=7912 Le 26/08/2010 22:15, Marcelo Menezes Reis a ?crit : > Greetings > > Does somebody know a genetic algorithm example in SciLab, with binary > (0 and 1) representation? > > Thanks in advance. > -- 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 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: demoGAbinary.sce URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GAbinary.png Type: image/png Size: 22497 bytes Desc: not available URL: From michael.baudin at scilab.org Tue Aug 31 14:50:09 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 31 Aug 2010 14:50:09 +0200 Subject: [scilab-Users] possible to select a core ? In-Reply-To: <4C7CEC4B.8030601@limsi.fr> References: <000001cb48fb$45ab3370$d1019a50$@carrico@free.fr> <4C7CE10E.1030500@laas.fr> <4C7CEC4B.8030601@limsi.fr> Message-ID: <4C7CFA81.9040902@scilab.org> Hi, There is no reason to wait, as the parallel_run function is available in the 5.3.0-beta-2 release : http://www.scilab.org/products/scilab/download/5.3.0-beta-2 Many examples are provided in the help page. In this beta release, the parallel_run function works under Linux. A project is currently active for its implementation on Windows. Best regards, Micha?l Baudin Le 31/08/2010 13:49, Mathieu Dubois a ?crit : > Hello, > > The upcoming 5.3 version will have a parallel_run function. I have > never used it (and the help in the beta seems complicated) but you may > have a look at it. > > Mathieu > > On 08/31/2010 01:01 PM, Antoine Monmayrant wrote: >> Le 31/08/2010 12:57, Paul CARRICO a ?crit : >>> >>> All, >>> >>> I don't know if my question is interesting (or stupid) since I'm not >>> skilled enough ... >>> >>> ... it's rather common to have several cores in a processor (nay >>> several processors with several cores) => I would like to know if >>> it's possible to select a core for a specific calculation ? >>> >>> (I had a look in the help documentation, but ???) >>> >>> My idea is the following (throughout an example). >>> >>> 2 (and more) loops that can be performed in parallel : >>> >>> For i = 1 : n >>> >>> A = ..... >>> >>> end >>> >>> For i = 1 : n >>> >>> B = ..... >>> >>> end >>> >>> Loop 1 is perform a the core 1, loop 2 on the 2 and so on ... >>> >>> I noticed that a single core/processor is used ... of course the >>> goal is to increase speed up ! >>> >>> Paul >>> >> There is proactive for that purpose. >> >> http://www.scilab.org/projects/collaborations/proactive >> >> http://proactive.inria.fr/index.php?page=scilab >> >> Never used it, I don't know if it can fit your needs. >> >> Antoine >> > -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Tue Aug 31 17:25:17 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 31 Aug 2010 17:25:17 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C766D62.7000904@limsi.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> Message-ID: <4C7D1EDD.7000104@limsi.fr> Any idea? From Samuel.Gougeon at univ-lemans.fr Tue Aug 31 18:24:04 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 31 Aug 2010 18:24:04 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C7D1EDD.7000104@limsi.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> <4C7D1EDD.7000104@limsi.fr> Message-ID: <4C7D2CA4.7060708@univ-lemans.fr> Hello Mathieu, ----- Message d'origine ----- De : Mathieu Dubois Date : 31/08/2010 17:25: > Any idea? > >I would like to avoid manual placement. What do you mean? You may compute from your data x & y coordinates where you want to put the legend() (it should not be so bad), or put them in an interactive way (what is not really nice, i agree). Before calling legend(), you may enlarge the right margin of the axes : ca=gca(); ca.margins(2)=0.25; // or even more, in relative coordinates with respect to the axes width = 1 legend([ ,-1) // It works for me on the plot2d() sample Regards Samuel From mathieu.dubois at limsi.fr Tue Aug 31 18:28:53 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 31 Aug 2010 18:28:53 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C7D2CA4.7060708@univ-lemans.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> <4C7D1EDD.7000104@limsi.fr> <4C7D2CA4.7060708@univ-lemans.fr> Message-ID: <4C7D2DC5.4030903@limsi.fr> Hello Samuel, > >I would like to avoid manual placement. > What do you mean? You may compute from your data x & y coordinates > where you want to put the legend() (it should not be so bad), or put them > in an interactive way (what is not really nice, i agree). I would have like avoid interactive placement. > Before calling legend(), you may enlarge the right margin of the axes : > ca=gca(); > ca.margins(2)=0.25; // or even more, in relative coordinates with > respect to the axes width = 1 > legend([ ,-1) // It works for me on the plot2d() > sample Thanks that's exactly what I wanted to do. Maybe the legend() function could do that automatically... Thanks again, Mathieu From Samuel.Gougeon at univ-lemans.fr Tue Aug 31 18:34:50 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 31 Aug 2010 18:34:50 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C7D2DC5.4030903@limsi.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> <4C7D1EDD.7000104@limsi.fr> <4C7D2CA4.7060708@univ-lemans.fr> <4C7D2DC5.4030903@limsi.fr> Message-ID: <4C7D2F2A.8090508@univ-lemans.fr> ----- Message d'origine ----- De : Mathieu Dubois Date : 31/08/2010 18:28: > Thanks that's exactly what I wanted to do. You are welcome > > Maybe the legend() function could do that automatically... You are right, as the colorbar() does. An option could be provided to require this behaviour, with an automatic computation of the margin width. I let you fill in a whish report on Bugzilla. Samuel From martin.calmon at epfl.ch Tue Aug 31 18:35:55 2010 From: martin.calmon at epfl.ch (Calmon Martin) Date: Tue, 31 Aug 2010 18:35:55 +0200 Subject: LabView Gateway In-Reply-To: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch> References: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch> Message-ID: <94C4B75340A6604499A5D51D19BE8F16EF23891EDE@REX2.intranet.epfl.ch> When trying to launch one of the example VIs SciLab/LabView gateway, I have the following error message : *** Error 1046 occurred at LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. in Scilab Life.vi Possible reason(s): LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. *** Thanks for your help... ________________________________ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.calmon at epfl.ch Tue Aug 31 18:32:22 2010 From: martin.calmon at epfl.ch (Calmon Martin) Date: Tue, 31 Aug 2010 18:32:22 +0200 Subject: LabView Gateway Message-ID: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch> When trying to launch one of the example VIs SciLab/LabView gateway, I have the following error message : *** Error 1046 occurred at LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. in Scilab Life.vi Possible reason(s): LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. *** Thanks for your help... ________________________________ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Tue Aug 31 21:13:45 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 31 Aug 2010 21:13:45 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C7D2F2A.8090508@univ-lemans.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> <4C7D1EDD.7000104@limsi.fr> <4C7D2CA4.7060708@univ-lemans.fr> <4C7D2DC5.4030903@limsi.fr> <4C7D2F2A.8090508@univ-lemans.fr> Message-ID: <4C7D5469.4050005@limsi.fr> Hello, >> Maybe the legend() function could do that automatically... > You are right, as the colorbar() does. An option could be provided > to require this behaviour, with an automatic computation of the > margin width. I let you fill in a whish report on Bugzilla. Done! See Bug#:7928. The bug is marked for version 5.3 beta but I remember that I had the same problem a few years ago (with version 4). It may be a good occasion for scilab developpers to clean the way legends are handled (the Legend graphic entity is said to "requires further developments"). Thanks again for the tip, Mathieu From Samuel.Gougeon at univ-lemans.fr Tue Aug 31 22:36:17 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 31 Aug 2010 22:36:17 +0200 Subject: [scilab-Users] legend, legends and friends In-Reply-To: <4C7D5469.4050005@limsi.fr> References: <4C766A1B.1000605@limsi.fr> <4C766D62.7000904@limsi.fr> <4C7D1EDD.7000104@limsi.fr> <4C7D2CA4.7060708@univ-lemans.fr> <4C7D2DC5.4030903@limsi.fr> <4C7D2F2A.8090508@univ-lemans.fr> <4C7D5469.4050005@limsi.fr> Message-ID: <4C7D67C1.4060501@univ-lemans.fr> ----- Message d'origine ----- De : Mathieu Dubois Date : 31/08/2010 21:13: > Hello, >>> Maybe the legend() function could do that automatically... >> You are right, as the colorbar() does. An option could be provided >> to require this behaviour, with an automatic computation of the >> margin width. I let you fill in a whish report on Bugzilla. > Done! See Bug#:7928. The bug is marked for version 5.3 beta but I remember > that I had the same problem a few years ago (with version 4). > > It may be a good occasion for scilab developpers to clean the way legends are > handled (the Legend graphic entity is said to "requires further developments"). I agree. Among others, please feel free to support both reports http://bugzilla.scilab.org/show_bug.cgi?id=5371 http://bugzilla.scilab.org/show_bug.cgi?id=6966 about that. Samuel