From michael.baudin at scilab.org Mon Mar 1 11:38:35 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 01 Mar 2010 11:38:35 +0100 Subject: [scilab-Users] Scilab crashes with the use of neldermead function In-Reply-To: References: <20100225185909.79953zf48fg9hx1c@webmail2.univ-lemans.fr> Message-ID: <4B8B992B.5020107@scilab.org> Hi Carlos, We can take more easily care of your bug if you add your comments to the bug tracker: http://bugzilla.scilab.org/show_bug.cgi?id=6681 There is a bug there, it is both in your script and in ode, which is to robust enough against wrong input arguments. There is no bug in neldermead in this particular case. Best regards, Micha?l Carlos Eduardo Celia de Lima a ?crit : > Samuel, > > Thanks for your reply. > > If I understood you correctly, I did the change as you suggested but > it still crashes. You were right, my function u(t) returned a vector, > and I picked the correct value inside the other function. > Now, my function u(t) returns the exact value for u(t), a scalar. > I can simulate all the functions normally with no error, but whenever > I try to optimize it with nelder_mead, Sci-lab crashes. Unfortunately, > it's too fast for me to see the error message. Is there a log file > that I can check? > Since the file is pretty small, I attached the file. > > Thank you. > Carlos > > On Thu, Feb 25, 2010 at 12:59 PM, Samuel Gougeon > > > wrote: > > > Carlos Eduardo Celia de Lima > a ?crit : > > > Hi, > > I am trying to run an optimization using Scilab but it crashes > when I > execute it. > > > Hello Carlos, > Just having a look at your script and embedded function definitions, > some questions arise, that may be of concern for the crash: > * In function xdot=f(t,x,u), you are using z=u(t) > while latter in the script, you define function ut=u(t,alpha). > I guess that z=u(t) adresses the u passed as an input > parameter of f(), and not the function u(). But this is not obvious, > and there may be a confusion. > * Same thing inside function ut=u(t,alpha) : with > u(1)=alpha(1); // line 55) > u((c*i)+1)=alpha(i+1); // line 57 > While both lines could be interpreted as recursive calls to the > _function_ u() only by a not enough clever parser (since u() is here > Left Hand Side argument), the next case on line 63 in stranger: > u(i+1)=u(i)+ > (((time0(i+1)-time0(i))/(time0(w+2)-time0(i)))*(u(w+2)-u(i))); > where u(i) and u(w+2) may be understood as recursive calls to the > function u(). > Finally, line 66: > ut=u'; // Whether the parser understands u as the function, then > transposing > a function could be an issue for it. > > I don't know if the confusion between both u() as a function and > as a vector > is the issue. Nevertheless, it could be worthwhile to rename one > of both, > and then try again. > > HTH > Samuel > > -- 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 Mike at Page-One.Waitrose.com Mon Mar 1 14:52:34 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 1 Mar 2010 13:52:34 -0000 Subject: Returning complex data from C code Message-ID: Hello, I have written an external DLL in C code that works fine for real data. I want to extend it for complex data, but the data types specified in the call function seem to be limited to 'i', 'r', 'd' and 'c' - no complex type. I can get the complex input data in the C code, by just extending the array indexing. The imaginary data is stored in a block the same size as the real and immediately after it. But I can't return a complex array result. Even if I set the array to a correctly sized complex array before calling my function (so I have enough space allocated for a complex result), the returned value is real, even though I have written data to its imaginary part. I guess the call function sets the data type flag to real before returning the array. Is there any way around this? I could return the real and imaginary separately and then combine them in Scilab, but I am using the C code because I want it to be efficient. I can publish the code here if it helps. Thanks for any advice. Mike. From d.picard at opgc.univ-bpclermont.fr Tue Mar 2 11:17:27 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 02 Mar 2010 11:17:27 +0100 Subject: debugging my scripts Message-ID: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> Hi, How do I debug my scripts in Scilab 5.2 ? I mean : set breakpoints, step instructions, inspect variables, etc. Thanks. From haraldgalda at yahoo.com Tue Mar 2 13:38:30 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 2 Mar 2010 04:38:30 -0800 (PST) Subject: AW: [scilab-Users] debugging my scripts In-Reply-To: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> Message-ID: <939064.7376.qm@web112615.mail.gq1.yahoo.com> Hi, there is no debugging functionality in Scilab 5.2.0 or 5.2.1 comparable to Visual Studio or Matlab. It is possible to mark text with the mouse and to execute it into Scilab. The input parameters must be set like normal variables. ________________________________ Von: David PICARD An: scilab-users Gesendet: Dienstag, den 2. M?rz 2010, 11:17:27 Uhr Betreff: [scilab-Users] debugging my scripts Hi, How do I debug my scripts in Scilab 5.2 ? I mean : set breakpoints, step instructions, inspect variables, etc. Thanks. __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Mar 2 14:08:40 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 02 Mar 2010 14:08:40 +0100 Subject: [scilab-Users] debugging my scripts In-Reply-To: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> Message-ID: <4B8D0DD8.4050205@univ-lemans.fr> ----- Message d'origine ----- De : David PICARD Date : 02/03/2010 11:17: > Hi, > > How do I debug my scripts in Scilab 5.2 ? I mean : set breakpoints, > step instructions, inspect variables, etc. > > Thanks. > You may have a look to help setbpt, help delbpt and help dispbpt SG From sdr at durietz.se Tue Mar 2 14:10:26 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 02 Mar 2010 14:10:26 +0100 Subject: AW: [scilab-Users] debugging my scripts In-Reply-To: <939064.7376.qm@web112615.mail.gq1.yahoo.com> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> <939064.7376.qm@web112615.mail.gq1.yahoo.com> Message-ID: <4B8D0E42.9000704@durietz.se> Hi, you can put a line: pause in your script and it will stop there with a new prompt: -1-> Then you can read and change your variables. Regards Stefan On 2010-03-02 13:38, Harald Galda, Dr. Eng. (J) wrote: -------------------- > Hi, > > there is no debugging functionality in Scilab 5.2.0 or 5.2.1 comparable > to Visual Studio or Matlab. > > It is possible to mark text with the mouse and to execute it into > Scilab. The input parameters must be set like normal variables. > > > > ------------------------------------------------------------------------ > *Von:* David PICARD > *An:* scilab-users > *Gesendet:* Dienstag, den 2. M?rz 2010, 11:17:27 Uhr > *Betreff:* [scilab-Users] debugging my scripts > > Hi, > > How do I debug my scripts in Scilab 5.2 ? I mean : set breakpoints, step > instructions, inspect variables, etc. > > Thanks. > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com From Samuel.Gougeon at univ-lemans.fr Tue Mar 2 14:22:31 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 02 Mar 2010 14:22:31 +0100 Subject: [scilab-Users] debugging my scripts In-Reply-To: <4B8D0DD8.4050205@univ-lemans.fr> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> <4B8D0DD8.4050205@univ-lemans.fr> Message-ID: <4B8D1117.20100@univ-lemans.fr> > You may have a look to help setbpt, help delbpt and help dispbpt See also where() and whereami() From vladimir.rodriguez at reduc.edu.cu Tue Mar 2 15:31:31 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Tue, 02 Mar 2010 09:31:31 -0500 Subject: Scilab plot2d under windows In-Reply-To: <4B8D1117.20100@univ-lemans.fr> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> <4B8D0DD8.4050205@univ-lemans.fr> <4B8D1117.20100@univ-lemans.fr> Message-ID: <1267540291.2503.3.camel@accionamiento> Scilab 5.2 for windows just close when you plot a graphic. It only hapens in some old machines, probably because low graphic card memory. Is there any way to solve this without changing the version? From sylvestre.ledru at scilab.org Tue Mar 2 15:27:58 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 02 Mar 2010 15:27:58 +0100 Subject: [scilab-Users] Scilab plot2d under windows In-Reply-To: <1267540291.2503.3.camel@accionamiento> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> <4B8D0DD8.4050205@univ-lemans.fr> <4B8D1117.20100@univ-lemans.fr> <1267540291.2503.3.camel@accionamiento> Message-ID: <1267540078.14126.29525.camel@korcula.inria.fr> Le mardi 02 mars 2010 ? 09:31 -0500, Vlad?mir Rodr?guez a ?crit : > Scilab 5.2 for windows just close when you plot a graphic. It only > hapens in some old machines, probably because low graphic card memory. > Is there any way to solve this without changing the version? It is probably due to old graphic card drivers. Can you try to update them ? Thanks Sylvestre From vladimir.rodriguez at reduc.edu.cu Tue Mar 2 18:59:42 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Tue, 02 Mar 2010 12:59:42 -0500 Subject: [scilab-Users] Scilab plot2d under windows In-Reply-To: <1267540078.14126.29525.camel@korcula.inria.fr> References: <4B8CE5B7.3060507@opgc.univ-bpclermont.fr> <4B8D0DD8.4050205@univ-lemans.fr> <4B8D1117.20100@univ-lemans.fr> <1267540291.2503.3.camel@accionamiento> <1267540078.14126.29525.camel@korcula.inria.fr> Message-ID: <1267552782.2780.4.camel@accionamiento> El mar, 02-03-2010 a las 15:27 +0100, Sylvestre Ledru escribi?: > Le mardi 02 mars 2010 ? 09:31 -0500, Vlad?mir Rodr?guez a ?crit : > > Scilab 5.2 for windows just close when you plot a graphic. It only > > hapens in some old machines, probably because low graphic card memory. > > Is there any way to solve this without changing the version? > It is probably due to old graphic card drivers. > Can you try to update them ? > > Thanks > Sylvestre I am teacher in Automatic Control and those machines belongs to our faculty lab, so I can't do that. I was thinking in an option to obtain lower cuality graphics, perhaps sending graphics to a file. From grampeix at crans.org Tue Mar 2 21:36:14 2010 From: grampeix at crans.org (Guillaume GRAMPEIX) Date: Tue, 02 Mar 2010 21:36:14 +0100 Subject: Problem with Scilab Message-ID: <4B8D76BE.7000701@crans.org> Hello, I've been worked with Scilab since few days and this evening i got a problem that i don't understant. Scilab says !--error 2, Invalid factor. Do you know why i have this message? I send to you my file. Cordialy -- Guillaume Grampeix French student form ENPC school. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: MALA 1D_variance de l'?nergie _bug.sce URL: From yann.collette at scilab.org Tue Mar 2 22:09:06 2010 From: yann.collette at scilab.org (Yann Collette) Date: Tue, 02 Mar 2010 22:09:06 +0100 Subject: [scilab-Users] Problem with Scilab In-Reply-To: <4B8D76BE.7000701@crans.org> References: <4B8D76BE.7000701@crans.org> Message-ID: <4B8D7E72.6010007@scilab.org> Hello, Seems to work fine on the master + linux. What is your scilab version ? What is your OS ? YC Guillaume GRAMPEIX a ?crit : > Hello, > > I've been worked with Scilab since few days and this evening i got a > problem that i don't understant. Scilab says !--error 2, Invalid > factor. Do you know why i have this message? I send to you my file. > > Cordialy From Calixte.Denizet at ac-rennes.fr Tue Mar 2 22:16:43 2010 From: Calixte.Denizet at ac-rennes.fr (Calixte.Denizet at ac-rennes.fr) Date: Tue, 02 Mar 2010 22:16:43 +0100 Subject: [scilab-Users] Problem with Scilab In-Reply-To: <4B8D76BE.7000701@crans.org> References: <4B8D76BE.7000701@crans.org> Message-ID: <9cbd9e6947f51617.4b8d8e4b@ac-rennes.fr> Hello Guillaume, Works fine for me under windows vista and scilab 5.2.1. Maybe you should load your file with the menu "Load into Scilab Ctrl+L" in the text editor... ;) Calixte ----- Message d'origine ----- De: Guillaume GRAMPEIX Date: Mardi, Mars 2, 2010 9:52 pm Objet: [scilab-Users] Problem with Scilab ?: users at lists.scilab.org > Hello, > > I've been worked with Scilab since few days and this evening i got a > problem that i don't understant. Scilab says !--error 2, Invalid > factor. > Do you know why i have this message? I send to you my file. > > Cordialy > -- > Guillaume Grampeix > French student form ENPC school. > stacksize('max'); > clear all; > //dt utile =>0.1 ? 1,7 > //----------------------- > // POTENTIEL UTILISE > //----------------------- > > function a = V(x) > a = h*((x-1).^2).*(x+1).^2; > endfunction > > function a = nablaV(x) > a = 2*h*( (x-1).*(x+1).^2 + (x-1).^2*(x+1) ); > endfunction > > //------------------------ > // VARIABLES A DECLARER > //------------------------ > h = 1; > beta = 1; > //------------------ > // INITIALISATIONS > //----------------- > moy_var_v=zeros(); > var_m=zeros(); > moy_var=zeros(); > var_val=zeros(); > u=0; //pour obtenir un vecteur des varleurs > de la variance > dt_v=zeros(); > > //boucle pour different dt > It1=0.1; > for dt= 0.1 :0.2 :It1 > u=u+1; > dt_v(u)=dt; //pour obtenir un vecteur des valeurs > de dt > > //boucle pour moyenne sur N repr?sentatif > It2 = 20; > for t=1:It2 > > N1=14; N=2^N1; > x = zeros(); > X = x; > x(1) = 1; > V_old = V(x(1)); > V_new = V_old; > E = zeros(); > E(1) = V_new; > //---------------------------------------- > // GENERATION DE L'ENSEMBLE STATISTIQUE > //---------------------------------------- > rejet = 0; > for i=2:N > > V_old = V(x(i-1)); > > //-------------------- > // PROPOSITION > //-------------------- > bruit = rand(1,'normal'); > x_propose = x(i-1) - nablaV(x(i-1))*dt + sqrt(2*dt/beta)*bruit; > X(i) = x_propose; > V_new = V(x_propose); > pxy = exp(-0.5*bruit^2); > Bruit = ( x(i-1) - x_propose + nablaV(x_propose)*dt )/sqrt(2*dt/beta); > pyx = exp(-0.5*Bruit^2); > //----------------------- > // ACCEPTION / REJET > //------------------------ > p = exp(-beta*(V_new - V_old))*pyx/pxy; > if (p >= 1) > x(i) = x_propose; > else > if (rand(1,'uniform') < p) > x(i) = x_propose; > else > x(i) = x(i-1); > rejet = rejet + 1; > end > end > > // mise a jour des observables > E(i) = E(i-1) + V(x(i)); > end > > // convergence de l'?nergie > //energie = E' ./ (1:N); > //figure (1) > //plot(energie); > //xtitle('Energie de la particule) > > //---------------------------- > // TAUX DE REJET > //---------------------------- > > rejet = rejet/N; // valeur instantan?e du rejet > rejet_v(t)=rejet; // valeurs du rejet pour It2 it?rations > moy_rej=mean(rejet_v); // moyenne du rejet sur It2 it?rations > //___________________________________________________ > // block averaging > //___________________________________________________ > > //--------------- > // Initialisation > //--------------- > > //n = taille du bloc > //m = nombre de block > > energie_bloc=zeros(N,1); > var=zeros(N,1); > moy_var=0; > m=2; > p=0; > vect_m = zeros(N,1); > vect_n = zeros(N,1); > > //---------------- > // boucle > //---------------- > > while m <= N; > n=N/m; > p=p+1; > sigma_carre = 0; > > for k=1:m > energie_bloc(k)= mean(x((k-1)*n+1:k*n)); > end > > sigma_carre =n/(m-1)*sum((energie_bloc(1:m)-mean(x)).^2); > > vect_m(p)=m; > vect_n(p)=n; > var(p)=sqrt(sigma_carre); > > m=2*m; > end > moy_var=sum(var)/N1; //moyenne intantan?e de la variance > de l'?nergie > moy_var_v(t)=moy_var; //moyenne de la variance de > l'?nergie pour t it?rations > //var_m(1:N1,t)=var(1:N1); //sauvegarde des valeurs de la > variance de l'?rnergie > var_moy=mean(moy_var_v); //moyenne sur It2 it?rarions de la > variance de l'energie pour une valeur de dt > > //------------- > // Courbes > //------------- > > //Energie > set("figure_style","new"); > f = get("current_figure"); > set("current_figure",1); > xtitle('Variance en fonction de la taille des bloc','Log de la taille > des blocs','Variance de l''?nergie') > plot(log(vect_n(1:p)),var(1:p),'k-+'); > > //Rejet > set("figure_style","new"); > f = get("current_figure"); > set("current_figure",2); > xtitle('Rejet en fonction des iterations','it?ration It2','Rejet') > plot(rejet_v(1:t),'-+'); > end > > //------------------------------ > // Sauvegardes de valeurs > //------------------------------ > > disp(var_moy,'Variance moyenne'); > disp(moy_rej,'Rejet moyen'); > disp(dt,'dt='); > var_m1(1:It2,u)=moy_var_v(1:It2); // valeur de la variance de > l'?nergie suivant It2 et dt > var_val(u)=var_moy; // valeur de la variance pour > diff?rent dt > moy_rej_v(u)=moy_rej; // valeur du rejet pour > diff?rent dt > > fprintfMat('C:\\mala\\var_m1.txt',var_m1); > fprintfMat('C:\\mala\\var_moy.txt',var_val); > fprintfMat('C:\\mala\\rejet.txt',moy_rej_v); > end > > //----------------------------- > // Courbes finales > //----------------------------- > > //set("figure_style","new"); > //f = get("current_figure"); > //set("current_figure",3); > //subplot(1,2,1); > //xtitle('Variance de l''?nergie en fonction de dt','dt','Variance de > l''?nergie') > //plot(dt_v,var_val(1:u),'b-+'); > //subplot(1,2,2) > //xtitle('Taux acceptation rejet en fonction de dt','dt','Rejet')//plot(dt_v,moy_rej_v(1:u),'r-+'); From milind.gupta at maxim-ic.com Wed Mar 3 00:26:55 2010 From: milind.gupta at maxim-ic.com (Milind Gupta) Date: Tue, 2 Mar 2010 15:26:55 -0800 Subject: Low Pass Filter in SCILAB Message-ID: <4B8D9EBF.4050100@maxim-ic.com> Hello, I have a signal vector and I wanted to low pass filter it. My knowledge of discrete filters is very limited so any help would be greatly appreciated. My signal is basically a sampled instance of a sum of sinusoids of 100Hz and 1KHz. What I want to do is basically filter this sampled signal so that I am just left with the 100Hz signal and then plot the resulting signal. So basically I just need a low pass filter with a cut off frequency of 200Hz and large attenuation at say 800Hz and beyond. Any leads, help would be appreciated. Thanks, Milind From d.picard at opgc.univ-bpclermont.fr Thu Mar 4 11:25:56 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Thu, 04 Mar 2010 11:25:56 +0100 Subject: disp() halts my scripts Message-ID: <4B8F8AB4.6090909@opgc.univ-bpclermont.fr> disp() instructions happen to block my script and I get a prompt that asks me if I want it to display further, or stop. Yet, the data are very small (5 float, or 80-character string). Is there an option to disable that ? It sets me on edge... From stephane.mottelet at utc.fr Thu Mar 4 11:25:08 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 04 Mar 2010 11:25:08 +0100 Subject: [scilab-Users] disp() halts my scripts In-Reply-To: <4B8F8AB4.6090909@opgc.univ-bpclermont.fr> References: <4B8F8AB4.6090909@opgc.univ-bpclermont.fr> Message-ID: <4B8F8A84.8010009@utc.fr> David PICARD a ?crit : > disp() instructions happen to block my script and I get a prompt that > asks me if I want it to display further, or stop. Yet, the data are > very small (5 float, or 80-character string). > > Is there an option to disable that ? It sets me on edge... > lines(0) S. From cnoelle at baumer.com Thu Mar 4 14:49:04 2010 From: cnoelle at baumer.com (=?iso-8859-1?Q?N=F6lle_Christoph?=) Date: Thu, 4 Mar 2010 14:49:04 +0100 Subject: Increase Font of the Help Window on Linux64 References: <1843500BBA84FB4A9B693AD78BD5D1C0148F7E4286@mail-jba1.jbanorthwest.co.uk> <4B7C6707.6000104@limsi.fr> Message-ID: <14CA494B52998D4299413739BDFE8CB0A35DF7@srvbech003.baumernet.org> Hi how can I increase the fontsize of the help browser? I have 64bit-Gnome desktop regards Christoph -------------------------------------------------------- Disclaimer This message might contain confidential and privileged information and is intended only for the individuals or entities to which it is addressed. It should not be copied, reviewed, retransmitted, disseminated or otherwise used by persons or entities other than the intended recipient. If this message was received in error, please contact the sender and delete the material from your computer system(s). Receipt of this message does neither generate any right of further use nor entitles the recipient to file and/or obtain any intellectual property rights based thereon. From huubvanniekerk at gmail.com Thu Mar 4 18:58:18 2010 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Thu, 4 Mar 2010 17:58:18 +0000 (UTC) Subject: XCOS: create INTEGRAL_f2 block with 2 inputs Message-ID: Hi, In XCOS, I would like to copy the INTEGRAL_f block to an INTEGRAL_f2 block and double the inputs. How should I do that? Thanks. From jerome.picard at scilab.org Fri Mar 5 09:03:35 2010 From: jerome.picard at scilab.org (Jerome PICARD) Date: Fri, 05 Mar 2010 09:03:35 +0100 Subject: [scilab-Users] XCOS: create INTEGRAL_f2 block with 2 inputs In-Reply-To: References: Message-ID: <4B90BAD7.5070207@scilab.org> Hello, If you want to change the number of inputs of a Xcos block, you have to change the value of the field model.in in the case 'define' in the sci file associated to the block. Best regards Huub van Niekerk wrote: > Hi, > > In XCOS, I would like to copy the INTEGRAL_f block to an INTEGRAL_f2 > block and double the inputs. How should I do that? > > Thanks. > > From huubvanniekerk at gmail.com Fri Mar 5 11:17:42 2010 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 5 Mar 2010 10:17:42 +0000 (UTC) Subject: XCOS: create INTEGRAL_f2 block with 2 inputs References: <4B90BAD7.5070207@scilab.org> Message-ID: Hello, > If you want to change the number of inputs of a Xcos block, you have to > change the value of the field model.in in the case 'define' in the sci > file associated to the block. > Thank you for your answer. I've found that file, copied it to INTEGRAL_f2.sci and modified it. However, I've noticed that all blocks have a .bin file as well. Do I have to create a .bin file for this new block as well, and if so, how do I do that? From Samuel.Gougeon at univ-lemans.fr Fri Mar 5 12:08:07 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 05 Mar 2010 12:08:07 +0100 Subject: [scilab-Users] Re: XCOS: create INTEGRAL_f2 block with 2 inputs In-Reply-To: References: <4B90BAD7.5070207@scilab.org> Message-ID: <4B90E617.6060502@univ-lemans.fr> ----- Message d'origine ----- De : Huub van Niekerk Date : 05/03/2010 11:17: > I've found that file, copied it to INTEGRAL_f2.sci and modified it. > However, I've noticed that all blocks have a .bin file as well. Do I have > to create a .bin file for this new block as well, and if so, how do I do > that? > with genlib() From jerome.picard at scilab.org Fri Mar 5 12:18:36 2010 From: jerome.picard at scilab.org (Jerome PICARD) Date: Fri, 05 Mar 2010 12:18:36 +0100 Subject: [scilab-Users] Re: XCOS: create INTEGRAL_f2 block with 2 inputs In-Reply-To: References: <4B90BAD7.5070207@scilab.org> Message-ID: <4B90E88C.7020107@scilab.org> You are right that the sci file of a block is associated with the compiled file .bin. Actually, an easier way avoiding the compilation is to create a super_block for INTEGRAL_f2. In the super block, you can call the needed blocks as integral_f. You can specify the number of inputs and ouputs of the super_block. I hope it will help you. Huub van Niekerk wrote: > Hello, > > >> If you want to change the number of inputs of a Xcos block, you have to >> change the value of the field model.in in the case 'define' in the sci >> file associated to the block. >> >> > > Thank you for your answer. > > I've found that file, copied it to INTEGRAL_f2.sci and modified it. > However, I've noticed that all blocks have a .bin file as well. Do I have > to create a .bin file for this new block as well, and if so, how do I do > that? > > -- J?r?me Picard Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex T?l. : 01.39.63.55.91 From huubvanniekerk at gmail.com Fri Mar 5 12:34:40 2010 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 5 Mar 2010 11:34:40 +0000 (UTC) Subject: XCOS: create INTEGRAL_f2 block with 2 inputs References: <4B90BAD7.5070207@scilab.org> <4B90E617.6060502@univ-lemans.fr> Message-ID: > with genlib() Thank you. Question though: according to the help, genlib(name, dir) should be able to do it. But, with my newly created INTEGRAL_f2.sci: -->genlib(INTEGRAL_f2, /opt/scilab-5.2.1/share/scilab/modules/ scicos_blocks/macros/Linear) !--error 4 Undefined variable: INTEGRAL_f2 it doesn't work. What I am missing or doing wrong? Thanks. From Samuel.Gougeon at univ-lemans.fr Fri Mar 5 12:40:37 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 05 Mar 2010 12:40:37 +0100 Subject: [scilab-Users] Re: XCOS: create INTEGRAL_f2 block with 2 inputs In-Reply-To: References: <4B90BAD7.5070207@scilab.org> <4B90E617.6060502@univ-lemans.fr> Message-ID: <4B90EDB5.4030605@univ-lemans.fr> ----- Message d'origine ----- De : Huub van Niekerk Date : 05/03/2010 12:34: >> with genlib() >> > > Thank you. Question though: according to the help, genlib(name, dir) > should be able to do it. But, with my newly created INTEGRAL_f2.sci: > > -->genlib(INTEGRAL_f2, /opt/scilab-5.2.1/share/scilab/modules/ > scicos_blocks/macros/Linear) > !--error 4 > Undefined variable: INTEGRAL_f2 > > it doesn't work. What I am missing or doing wrong? > *lib_name:* Scilab _*string*_. The variable name of the library to (re)create. *dir_name*: Scilab _*string*_. The name of the directory to look for .sci-files. You may try genlib("INTEGRAL_f2", "/opt/scilab-5.2.1/share/scilab/modules/scicos_blocks/macros/Linear") -------------- next part -------------- An HTML attachment was scrubbed... URL: From huubvanniekerk at gmail.com Fri Mar 5 13:19:17 2010 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 5 Mar 2010 12:19:17 +0000 (UTC) Subject: XCOS: create INTEGRAL_f2 block with 2 inputs References: <4B90BAD7.5070207@scilab.org> <4B90E617.6060502@univ-lemans.fr> <4B90EDB5.4030605@univ-lemans.fr> Message-ID: > *lib_name:* > Scilab _*string*_. The variable name of the library to (re)create. > *dir_name*: > Scilab _*string*_. The name of the directory to look for .sci-files. > > You may try > > genlib("INTEGRAL_f2", > "/opt/scilab-5.2.1/share/scilab/modules/scicos_blocks/macros/Linear") Oops. Overlooked that detail. The INTEGRAL_f2.bin has been generated now, but when starting Scilab it gives error 4 at Linearlib: "undefined variable". And in the palette I don't see my new block. Is there more that I overlooked and/or more that I should do? Thank you for helping out. From huubvanniekerk at gmail.com Fri Mar 5 13:19:58 2010 From: huubvanniekerk at gmail.com (Huub van Niekerk) Date: Fri, 5 Mar 2010 12:19:58 +0000 (UTC) Subject: XCOS: create INTEGRAL_f2 block with 2 inputs References: <4B90BAD7.5070207@scilab.org> <4B90E88C.7020107@scilab.org> Message-ID: On Fri, 05 Mar 2010 12:18:36 +0100, Jerome PICARD wrote: > You are right that the sci file of a block is associated with the > compiled file .bin. > Actually, an easier way avoiding the compilation is to create a > super_block for INTEGRAL_f2. In the super block, you can call the needed > blocks as integral_f. You can specify the number of inputs and ouputs of > the super_block. > > I hope it will help you. Thank you. Have to look further into this. From haraldgalda at yahoo.com Fri Mar 5 13:58:44 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Fri, 5 Mar 2010 04:58:44 -0800 (PST) Subject: Installation with Atoms? Message-ID: <185904.23426.qm@web112617.mail.gq1.yahoo.com> Hello. When I try to install my toolbox IDP using the Atoms GUI of Scilab, I always get the error message "atomsInstall: Error while creating the directory 'C:PROGRA~1scilab-5.2.0contribIPD3.3'" This problem does not occure when installing other toolboxes. What can be wrong? The directory structure of my toolbox is absolutely correct. Why does atomsInstall leave out the file separator when trying to create the toolbox directory? Regards Harald Galda, Dr. Eng. (J) ************************************************ Harald Galda, Dr. Eng. (J) http://freenet-homepage.de/HaraldGalda/ ************************************************ __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Fri Mar 5 14:13:51 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 05 Mar 2010 14:13:51 +0100 Subject: [scilab-Users] Installation with Atoms? In-Reply-To: <185904.23426.qm@web112617.mail.gq1.yahoo.com> References: <185904.23426.qm@web112617.mail.gq1.yahoo.com> Message-ID: <4B91038F.2090002@univ-lemans.fr> Hello Harald, ----- Message d'origine ----- De : Harald Galda, Dr. Eng. (J) Date : 05/03/2010 13:58: > Hello. > > When I try to install my toolbox IDP using the Atoms GUI of Scilab, I > always get the error message > > "atomsInstall: Error while creating the directory > 'C:PROGRA~1scilab-5.2.0contribIPD3.3'" > > This problem does not occure when installing other toolboxes. What can > be wrong? The directory structure of my toolbox is absolutely correct. > Why does atomsInstall leave out the file separator when trying to > create the toolbox directory? May you stress on this last point by commenting the related bug http://bugzilla.scilab.org/show_bug.cgi?id=5359 Cheers Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Fri Mar 5 14:21:19 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 05 Mar 2010 14:21:19 +0100 Subject: [scilab-Users] Installation with Atoms? In-Reply-To: <185904.23426.qm@web112617.mail.gq1.yahoo.com> References: <185904.23426.qm@web112617.mail.gq1.yahoo.com> Message-ID: <4B91054F.6000300@scilab.org> Hi Harald, Le 05/03/2010 13:58, Harald Galda, Dr. Eng. (J) a ?crit : > Hello. > > When I try to install my toolbox IDP using the Atoms GUI of Scilab, I > always get the error message > > "atomsInstall: Error while creating the directory > 'C:PROGRA~1scilab-5.2.0contribIPD3.3'" > > This problem does not occure when installing other toolboxes. What can > be wrong? The directory structure of my toolbox is absolutely correct. It works for me (with scilab-5.2.1 under Win32): -->atomsInstall IPD ans = !IPD 3.3 allusers D:\work\5.2\scilab\contrib\IPD\3.3 I ! If the directory "C:\Program Files\Scilab-5.2.0\scilab-5.2.0\contrib\IPD\3.3" already exists, this can be the reason why atomsInstall fails. > Why does atomsInstall leave out the file separator when trying to > create the toolbox directory? See bug 5359 but it's just a display problem. > > Regards > Harald Galda, Dr. Eng. (J) > > ************************************************ > Harald Galda, Dr. Eng. (J) > http://freenet-homepage.de/HaraldGalda/ > ************************************************ Best regards, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Fri Mar 5 14:38:35 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 05 Mar 2010 14:38:35 +0100 Subject: [scilab-Users] Re: XCOS: create INTEGRAL_f2 block with 2 inputs In-Reply-To: References: <4B90BAD7.5070207@scilab.org> <4B90E617.6060502@univ-lemans.fr> <4B90EDB5.4030605@univ-lemans.fr> Message-ID: <4B91095B.4040107@univ-lemans.fr> ----- Message d'origine ----- De : Huub van Niekerk Date : 05/03/2010 13:19: >> genlib("INTEGRAL_f2", >> "/opt/scilab-5.2.1/share/scilab/modules/scicos_blocks/macros/Linear") >> > > Oops. Overlooked that detail. The INTEGRAL_f2.bin has been generated now, > but when starting Scilab it gives error 4 at Linearlib: "undefined > variable". And in the palette I don't see my new block. Is there more > that I overlooked and/or more that I should do? > > Thank you for helping out. > In the /macros subdir of this lib, the builmacros.sce specifies the command creating the library, that is called "Linearlib" instead of "INTEGRAL_f2". You may merely run this buildmacros.sce to rebuild the library. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haraldgalda at yahoo.com Fri Mar 5 17:56:45 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Fri, 5 Mar 2010 08:56:45 -0800 (PST) Subject: AW: [scilab-Users] Installation with Atoms? In-Reply-To: <4B91054F.6000300@scilab.org> References: <185904.23426.qm@web112617.mail.gq1.yahoo.com> <4B91054F.6000300@scilab.org> Message-ID: <966805.3612.qm@web112614.mail.gq1.yahoo.com> Hi Pierre, It works for me (with scilab-5.2.1 under Win32): -->atomsInstall IPD ans = !IPD 3.3 allusers D:\work\5.2\scilab\contrib\IPD\3.3 I ! If the directory "C:\Program Files\Scilab-5.2.0\scilab-5.2.0\contrib\IPD\3.3" already exists, this can be the reason why atomsInstall fails. Installing IPD using the function atomsInstall() instead of the Atoms GUI works also on my computer. But when I close Scilab and start it again, an error occurs when the toolbox is loaded. It is hard to understand why the sound file toolbox can be downloaded and installed via Atoms GUI and my toolbox can not. Regards Harald ************************************************ Harald Galda, Dr. Eng. (J) http://freenet-homepage.de/HaraldGalda/ ************************************************ ________________________________ Von: Pierre MARECHAL An: users at lists.scilab.org Gesendet: Freitag, den 5. M?rz 2010, 14:21:19 Uhr Betreff: Re: [scilab-Users] Installation with Atoms? Hi Harald, Le 05/03/2010 13:58, Harald Galda, Dr. Eng. (J) a ?crit : > >Hello. > >>When I try to install my toolbox IDP using the Atoms GUI of Scilab, I >always get the error message > >>"atomsInstall: Error while creating the directory >'C:PROGRA~1scilab-5.2.0contribIPD3.3'" > > >>This problem does not occure when installing other toolboxes. What can >be wrong? The directory structure of my toolbox is absolutely correct. It works for me (with scilab-5.2.1 under Win32): -->atomsInstall IPD ans = !IPD 3.3 allusers D:\work\5.2\scilab\contrib\IPD\3.3 I ! If the directory "C:\Program Files\Scilab-5.2.0\scilab-5.2.0\contrib\IPD\3.3" already exists, this can be the reason why atomsInstall fails. Why does atomsInstall leave out the file separator when trying >to create the toolbox directory? > See bug 5359 but it's just a display problem. >>Regards >>Harald Galda, Dr. Eng. (J) > > >************************************************ >>Harald Galda, Dr. Eng. (J) >http://freenet-homepage.de/HaraldGalda/ >>************************************************ Best regards, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sat Mar 6 08:29:57 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sat, 6 Mar 2010 08:29:57 +0100 Subject: very very very basic question Message-ID: <000301cabcfe$d2ec7f70$78c57e50$@carrico@free.fr> Hi all It's a very very very basic question but all the tests I performed failed : how can I insert the following special characters with mfprintf : " ' \ It doesn't work when I use the backslash character immediately before (as I did under C or C++ many years ago .) ! Regards PC -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.guffens at googlemail.com Sat Mar 6 09:32:53 2010 From: vincent.guffens at googlemail.com (vinsz) Date: Sat, 06 Mar 2010 08:32:53 +0000 Subject: [scilab-Users] very very very basic question In-Reply-To: <000301cabcfe$d2ec7f70$78c57e50$@carrico@free.fr> References: <000301cabcfe$d2ec7f70$78c57e50$@carrico@free.fr> Message-ID: <1267864373.1897.1.camel@dirac> On Sat, 2010-03-06 at 08:29 +0100, Paul CARRICO wrote: > Hi all > > > > It?s a very very very basic question but all the tests I performed > failed : how can I insert the following special characters with > mfprintf : ? ? \ Hi, you can double it as follows: -->mprintf("''pi=''%.2f",%pi) 'pi='3.14 -->mprintf("""pi=""%.2f",%pi) "pi="3.14 -->mprintf("\\pi=\\%.2f",%pi) \pi=\3.14 From paul.carrico at free.fr Sat Mar 6 12:56:09 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sat, 6 Mar 2010 12:56:09 +0100 Subject: very very very basic question Message-ID: <000301cabd24$030c4ad0$0924e070$@carrico@free.fr> Hi all It's a very very very basic question but all the tests I performed failed : how can I insert the following special characters with mfprintf : " ' \ It doesn't work when I use the backslash character immediately before (as I did under C or C++ many years ago .) ! Regards PC -------------- next part -------------- An HTML attachment was scrubbed... URL: From vladimir.rodriguez at reduc.edu.cu Sat Mar 6 19:40:44 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Sat, 06 Mar 2010 13:40:44 -0500 Subject: About Bode In-Reply-To: <1267864373.1897.1.camel@dirac> References: <000301cabcfe$d2ec7f70$78c57e50$@carrico@free.fr> <1267864373.1897.1.camel@dirac> Message-ID: <1267900844.3163.2.camel@accionamiento> I wonder how can I get a Bode plot from a linear system which instead of f(Hz) uses omega(rad/s), just like can have it in Octave. Thanks From srajesh42 at gmail.com Mon Mar 8 06:21:20 2010 From: srajesh42 at gmail.com (Rajesh Somavarapu) Date: Mon, 8 Mar 2010 10:51:20 +0530 Subject: Request to join mailing list Message-ID: <10a7e9a11003072121s67b215b8ufdef10e14f5ae216@mail.gmail.com> Hi I am Rajesh from India. I would like to join the mailing list. Thanks Rajesh S -- Rajesh Somavarapu BITS Pilani Goa Campus -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.picard at opgc.univ-bpclermont.fr Mon Mar 8 10:58:49 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Mon, 08 Mar 2010 10:58:49 +0100 Subject: LTI SISO phase margin : weird results Message-ID: <4B94CA59.201@opgc.univ-bpclermont.fr> I get weird results when I try to calculate gain margin for transfer functions. For example, this one : -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) Hbo_s = 2 3 0.263 - 0.656z + 0.206z + 0.3z ---------------------------------- 2 3 4 - 0.263 + 0.656z + 0.28z - 1.674z + z It is a digital controller open loop transfer function. Phase margin : p_margin(Hbo_s) returns 65.62, which is correct (checked with both a book and Matlab). Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I expect. So, I plot the frequency response with : -->show_margins(Hbo_s,'nyquist') to try to figure out the gain margin graphically. The gain margin is the inverse of the gain of the transfer function when the phase is -180?). The curve crosses the X axis at -0.368, which leads to gain_margin = 1/0.368 = 2.7, which is the value given in my book and returned by Matlab (margin() ). In addition, the blue line that I assume, shows the gain margin, extends way beyond -0.368, probably as far as -41.06. Did I get something wrong here ? Thanks. My configuration : Scilab 5.2.1, Windows XP SP3 From d.picard at opgc.univ-bpclermont.fr Mon Mar 8 11:02:46 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Mon, 08 Mar 2010 11:02:46 +0100 Subject: [scilab-Users] LTI SISO gain margin : weird results In-Reply-To: <4B94CA59.201@opgc.univ-bpclermont.fr> References: <4B94CA59.201@opgc.univ-bpclermont.fr> Message-ID: <4B94CB46.6010406@opgc.univ-bpclermont.fr> I corrected the subject. David PICARD a ?crit : > I get weird results when I try to calculate gain margin for transfer > functions. For example, this one : > > -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) > > Hbo_s = > > 2 3 0.263 - 0.656z + 0.206z + > 0.3z ---------------------------------- > 2 3 4 - 0.263 + 0.656z + 0.28z - > 1.674z + z > It is a digital controller open loop transfer function. > > Phase margin : p_margin(Hbo_s) returns 65.62, which is correct > (checked with both a book and Matlab). > Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I > expect. > > So, I plot the frequency response with : > -->show_margins(Hbo_s,'nyquist') > to try to figure out the gain margin graphically. > > The gain margin is the inverse of the gain of the transfer function > when the phase is -180?). > > The curve crosses the X axis at -0.368, which leads to gain_margin = > 1/0.368 = 2.7, which is the value given in my book and returned by > Matlab (margin() ). > In addition, the blue line that I assume, shows the gain margin, > extends way beyond -0.368, probably as far as -41.06. > > Did I get something wrong here ? Thanks. > > My configuration : Scilab 5.2.1, Windows XP SP3 > > > > > From veeresh_kosaraju at nitc.ac.in Tue Mar 9 05:27:37 2010 From: veeresh_kosaraju at nitc.ac.in (Kosaraju Veeresh Prasad) Date: Mon, 8 Mar 2010 23:27:37 -0500 Subject: Compiling scilab with PVM Message-ID: Dear users, I am attempting to work on scilab with PVM for parallel algorithm implementation. Please throw some light on how to build scilab from source with pvm in a 64-bit linux environment. Thank You -- Veeresh Kosaraju Power Systems, M.Tech Electrical Engineering Mobile number: (+91)9746894349 -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.picard at opgc.univ-bpclermont.fr Tue Mar 9 16:39:56 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Tue, 09 Mar 2010 16:39:56 +0100 Subject: [scilab-Users] LTI SISO gain margin : weird results In-Reply-To: <4B94CB46.6010406@opgc.univ-bpclermont.fr> References: <4B94CA59.201@opgc.univ-bpclermont.fr> <4B94CB46.6010406@opgc.univ-bpclermont.fr> Message-ID: <4B966BCC.5010206@opgc.univ-bpclermont.fr> Well, I eventually came up to the conclusion that both p_margin() and g_margin() are buggy. I had to write my own code to replace them. I can give details upon request. Regards. David PICARD a ?crit : > I corrected the subject. > > David PICARD a ?crit : >> I get weird results when I try to calculate gain margin for transfer >> functions. For example, this one : >> >> -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) >> >> Hbo_s = >> >> 2 3 0.263 - 0.656z + 0.206z >> + 0.3z ---------------------------------- >> 2 3 4 - 0.263 + 0.656z + 0.28z - >> 1.674z + z It is a digital controller open loop transfer function. >> >> Phase margin : p_margin(Hbo_s) returns 65.62, which is correct >> (checked with both a book and Matlab). >> Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I >> expect. >> >> So, I plot the frequency response with : >> -->show_margins(Hbo_s,'nyquist') >> to try to figure out the gain margin graphically. >> >> The gain margin is the inverse of the gain of the transfer function >> when the phase is -180?). >> >> The curve crosses the X axis at -0.368, which leads to gain_margin = >> 1/0.368 = 2.7, which is the value given in my book and returned by >> Matlab (margin() ). >> In addition, the blue line that I assume, shows the gain margin, >> extends way beyond -0.368, probably as far as -41.06. >> >> Did I get something wrong here ? Thanks. >> >> My configuration : Scilab 5.2.1, Windows XP SP3 >> >> >> >> >> > > > From vladimir.rodriguez at reduc.edu.cu Tue Mar 9 17:40:35 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Tue, 09 Mar 2010 11:40:35 -0500 Subject: [scilab-Users] LTI SISO gain margin : weird results In-Reply-To: <4B966BCC.5010206@opgc.univ-bpclermont.fr> References: <4B94CA59.201@opgc.univ-bpclermont.fr> <4B94CB46.6010406@opgc.univ-bpclermont.fr> <4B966BCC.5010206@opgc.univ-bpclermont.fr> Message-ID: <1268152835.3338.1.camel@accionamiento> El mar, 09-03-2010 a las 16:39 +0100, David PICARD escribi?: > Well, I eventually came up to the conclusion that both p_margin() and > g_margin() are buggy. I had to write my own code to replace them. > > I can give details upon request. > > Regards. > > > David PICARD a ?crit : > > I corrected the subject. > > > > David PICARD a ?crit : > >> I get weird results when I try to calculate gain margin for transfer > >> functions. For example, this one : > >> > >> -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) > >> > >> Hbo_s = > >> > >> 2 3 0.263 - 0.656z + 0.206z > >> + 0.3z ---------------------------------- > >> 2 3 4 - 0.263 + 0.656z + 0.28z - > >> 1.674z + z It is a digital controller open loop transfer function. > >> > >> Phase margin : p_margin(Hbo_s) returns 65.62, which is correct > >> (checked with both a book and Matlab). > >> Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I > >> expect. > >> > >> So, I plot the frequency response with : > >> -->show_margins(Hbo_s,'nyquist') > >> to try to figure out the gain margin graphically. > >> > >> The gain margin is the inverse of the gain of the transfer function > >> when the phase is -180?). > >> > >> The curve crosses the X axis at -0.368, which leads to gain_margin = > >> 1/0.368 = 2.7, which is the value given in my book and returned by > >> Matlab (margin() ). > >> In addition, the blue line that I assume, shows the gain margin, > >> extends way beyond -0.368, probably as far as -41.06. > >> > >> Did I get something wrong here ? Thanks. > >> > >> My configuration : Scilab 5.2.1, Windows XP SP3 > >> > >> > >> > >> > >> > > > > > > > I am interested in every detail about it, I am going to use these function in clases. Thanks -- MSc. Vlad?mir Rodr?guez Diez Departamento de Ingenier?a El?ctrica Universidad de Camag?ey From sylvestre.ledru at scilab.org Tue Mar 9 17:43:32 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 09 Mar 2010 17:43:32 +0100 Subject: [scilab-Users] LTI SISO gain margin : weird results In-Reply-To: <4B966BCC.5010206@opgc.univ-bpclermont.fr> References: <4B94CA59.201@opgc.univ-bpclermont.fr> <4B94CB46.6010406@opgc.univ-bpclermont.fr> <4B966BCC.5010206@opgc.univ-bpclermont.fr> Message-ID: <1268153012.14507.762.camel@zlarin> If they are buggy, please report them on the Scilab bugtracker: http://bugzilla.scilab.org/ Sylvestre Le mardi 09 mars 2010 ? 16:39 +0100, David PICARD a ?crit : > Well, I eventually came up to the conclusion that both p_margin() and > g_margin() are buggy. I had to write my own code to replace them. > > I can give details upon request. > > Regards. > > > David PICARD a ?crit : > > I corrected the subject. > > > > David PICARD a ?crit : > >> I get weird results when I try to calculate gain margin for transfer > >> functions. For example, this one : > >> > >> -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) > >> > >> Hbo_s = > >> > >> 2 3 0.263 - 0.656z + 0.206z > >> + 0.3z ---------------------------------- > >> 2 3 4 - 0.263 + 0.656z + 0.28z - > >> 1.674z + z It is a digital controller open loop transfer function. > >> > >> Phase margin : p_margin(Hbo_s) returns 65.62, which is correct > >> (checked with both a book and Matlab). > >> Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I > >> expect. > >> > >> So, I plot the frequency response with : > >> -->show_margins(Hbo_s,'nyquist') > >> to try to figure out the gain margin graphically. > >> > >> The gain margin is the inverse of the gain of the transfer function > >> when the phase is -180?). > >> > >> The curve crosses the X axis at -0.368, which leads to gain_margin = > >> 1/0.368 = 2.7, which is the value given in my book and returned by > >> Matlab (margin() ). > >> In addition, the blue line that I assume, shows the gain margin, > >> extends way beyond -0.368, probably as far as -41.06. > >> > >> Did I get something wrong here ? Thanks. > >> > >> My configuration : Scilab 5.2.1, Windows XP SP3 > >> > >> > >> > >> > >> > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From paolobe at me.com Tue Mar 9 23:03:56 2010 From: paolobe at me.com (Paolo) Date: Tue, 09 Mar 2010 23:03:56 +0100 Subject: licence Message-ID: <4B96C5CC.6070707@me.com> Good morning, I am an engineer that want develop a software with scilab. I have a question about the licence limitation. In the free software founfation's web site I have found this: "This is not a free software license because it does not allow commercial distribution of a modified version. Thankfully, recent versions of the Scilab software are free software, released under CeCILL version 2." I have red the licence and the story is that for commercial distrubution I have need your permission. Than the question is: What is the way to have this permission? and what are the limitation about it? Thanks for all. Ing. Paolo Bertolli From sylvestre.ledru at scilab.org Tue Mar 9 23:08:51 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 09 Mar 2010 23:08:51 +0100 Subject: [scilab-Users] licence In-Reply-To: <4B96C5CC.6070707@me.com> References: <4B96C5CC.6070707@me.com> Message-ID: <1268172531.14507.2536.camel@zlarin> Hello Paolo, Le mardi 09 mars 2010 ? 23:03 +0100, Paolo a ?crit : > Good morning, > I am an engineer that want develop a software with scilab. > I have a question about the licence limitation. > In the free software founfation's web site I have found this: > "This is not a free software license because it does not allow > commercial distribution of a modified version. Thankfully, recent > versions of the Scilab software are free software, released under CeCILL > version 2." > I have red the licence and the story is that for commercial distrubution > I have need your permission. > Than the question is: What is the way to have this permission? and what > are the limitation about it? The FSF website is talking about the "Scilab License". Before the family 5, Scilab was released under this license. This is a deprecated license (we are no longer using it). We changed the license of Scilab to the CeCILL license which is compatible with the GPL license. Restrictions are the same. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From d.picard at opgc.univ-bpclermont.fr Wed Mar 10 15:59:01 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Wed, 10 Mar 2010 15:59:01 +0100 Subject: [scilab-Users] LTI SISO gain margin : weird results In-Reply-To: <1268152835.3338.1.camel@accionamiento> References: <4B94CA59.201@opgc.univ-bpclermont.fr> <4B94CB46.6010406@opgc.univ-bpclermont.fr> <4B966BCC.5010206@opgc.univ-bpclermont.fr> <1268152835.3338.1.camel@accionamiento> Message-ID: <4B97B3B5.70205@opgc.univ-bpclermont.fr> Look at bug reports 6744 and 6745 at http://bugzilla.scilab.org 6744 has an attachment with my own functions. Probably not perfect as well ! Vlad?mir Rodr?guez a ?crit : > El mar, 09-03-2010 a las 16:39 +0100, David PICARD escribi?: > >> Well, I eventually came up to the conclusion that both p_margin() and >> g_margin() are buggy. I had to write my own code to replace them. >> >> I can give details upon request. >> >> Regards. >> >> >> David PICARD a ?crit : >> >>> I corrected the subject. >>> >>> David PICARD a ?crit : >>> >>>> I get weird results when I try to calculate gain margin for transfer >>>> functions. For example, this one : >>>> >>>> -->Hbo=syslin(1.0,(0.263-0.656*z+0.206*z^2+0.3*z^3)/(-0.263+0.656*z+0.28*z^2-1.674*z^3+z^4)) >>>> >>>> Hbo_s = >>>> >>>> 2 3 0.263 - 0.656z + 0.206z >>>> + 0.3z ---------------------------------- >>>> 2 3 4 - 0.263 + 0.656z + 0.28z - >>>> 1.674z + z It is a digital controller open loop transfer function. >>>> >>>> Phase margin : p_margin(Hbo_s) returns 65.62, which is correct >>>> (checked with both a book and Matlab). >>>> Gain margin : g_margin(Hbo_s) returns -41.06, which I is not what I >>>> expect. >>>> >>>> So, I plot the frequency response with : >>>> -->show_margins(Hbo_s,'nyquist') >>>> to try to figure out the gain margin graphically. >>>> >>>> The gain margin is the inverse of the gain of the transfer function >>>> when the phase is -180?). >>>> >>>> The curve crosses the X axis at -0.368, which leads to gain_margin = >>>> 1/0.368 = 2.7, which is the value given in my book and returned by >>>> Matlab (margin() ). >>>> In addition, the blue line that I assume, shows the gain margin, >>>> extends way beyond -0.368, probably as far as -41.06. >>>> >>>> Did I get something wrong here ? Thanks. >>>> >>>> My configuration : Scilab 5.2.1, Windows XP SP3 >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> > I am interested in every detail about it, I am going to use these > function in clases. > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From w_artichowicz at o2.pl Wed Mar 10 17:48:20 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Wed, 10 Mar 2010 17:48:20 +0100 Subject: add_help_chapter problem Message-ID: <6F12F5FE8214477E8FAF80AD45B06F8B@misery> Hi, First of all thank You very much for replying. Using *.jar file did help. My second question is how can I make my help files available after quitting and starting SCILAB again. Because after I quit SCILAB I have to do everything again (run the script) to put the help files in help browser again. Best Regards W.A. PS: Script: help_from_sci("C:\SCIHELPTEST\SHT.sci","C:\SCIHELPTEST\GEN"); xmltojar("C:\SCIHELPTEST\GEN","TestHlp"); ok=add_help_chapter("TestHlp","C:\jar",%f); -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucianavliria at hotmail.com Wed Mar 10 20:33:23 2010 From: lucianavliria at hotmail.com (Luciana Liria) Date: Wed, 10 Mar 2010 19:33:23 +0000 Subject: Scicos and Scilab Message-ID: Dear Sir/Madam, I am writing this email in order to ask some questions about Scicos and Scilab. Firstly, I want to run a Scicos file from a .sce file, but i have some problems because i do not know which command use. My intention is to run the scicos file with parameters from the .sce file,so that, i could prove de diagram in scicos with various parameters and i can change them from the .sce file. I would be gratefull if you could help me with this problem.In addition, if you have an example and you could send me it,it will help me, too. Yours sincerely, Luciana Liria _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonelli1970 at gmail.com Thu Mar 11 07:34:14 2010 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Thu, 11 Mar 2010 07:34:14 +0100 Subject: [scilab-Users] Scicos and Scilab In-Reply-To: References: Message-ID: <4B988EE6.4050201@gmail.com> just put the .sce file within the "context" of your scicos file. you just need one command line such as: exec('myfile.sce'); this is executed before the simulation is run. it means that it is possible to put variables in it that are visibile inside the scicos blocks. I'm not sure but I think that from the versoin 5 (xcos) the xcos workspace "sees" the scilab one. hope it answer best, g. Luciana Liria wrote: > Dear Sir/Madam, > > I am writing this email in order to ask some questions about Scicos and > Scilab. > Firstly, I want to run a Scicos file from a .sce file, but i have some > problems because i do not know which command use. My intention is to run > the scicos file with parameters from the .sce file,so that, i could > prove de diagram in scicos with various parameters and i can change them > from the .sce file. > I would be gratefull if you could help me with this problem.In addition, > if you have an example and you could send me it,it will help me, too. > > Yours sincerely, > Luciana Liria > > > ------------------------------------------------------------------------ From yann.collette at scilab.org Thu Mar 11 07:43:46 2010 From: yann.collette at scilab.org (Collette yann) Date: Thu, 11 Mar 2010 07:43:46 +0100 Subject: [scilab-Users] Scicos and Scilab In-Reply-To: <4B988EE6.4050201@gmail.com> References: <4B988EE6.4050201@gmail.com> Message-ID: <4B989122.9050905@scilab.org> Hello, Here is an example with xcos. I use scicos_simulate + I send all the parameters to xcos via the context (in xcos, do a right click in the work area and click on edit context") YC Gianluca Antonelli a ?crit : > just put the .sce file within the "context" of your scicos file. you > just need one command line such as: > > exec('myfile.sce'); > > this is executed before the simulation is run. it means that it is > possible to put variables in it that are visibile inside the scicos > blocks. > > I'm not sure but I think that from the versoin 5 (xcos) the xcos > workspace "sees" the scilab one. > > hope it answer > > best, > g. > > > Luciana Liria wrote: >> Dear Sir/Madam, >> >> I am writing this email in order to ask some questions about Scicos >> and Scilab. >> Firstly, I want to run a Scicos file from a .sce file, but i have >> some problems because i do not know which command use. My intention >> is to run the scicos file with parameters from the .sce file,so that, >> i could prove de diagram in scicos with various parameters and i can >> change them from the .sce file. >> I would be gratefull if you could help me with this problem.In >> addition, if you have an example and you could send me it,it will >> help me, too. >> >> Yours sincerely, >> Luciana Liria >> >> >> ------------------------------------------------------------------------ > -------------- next part -------------- A non-text attachment was scrubbed... Name: automatic_test.xcos Type: text/xml Size: 179004 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_automatic.sce URL: From pierre.marechal at scilab.org Thu Mar 11 08:15:19 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 11 Mar 2010 08:15:19 +0100 Subject: [scilab-Users] Re: Re: add_help_chapter problem In-Reply-To: <001201cac0e8$b6c54e10$244fea30$@cornet@scilab.org> References: <001201cac0e8$b6c54e10$244fea30$@cornet@scilab.org> Message-ID: <4B989887.1090608@scilab.org> Le 11/03/2010 08:01, Wojciech Artichowicz wrote : > > Hi, > > First of all thank You very much for replying. > > Using *.jar file did help. > > My second question is how can I make my help files available after > quitting and starting SCILAB again. > > Because after I quit SCILAB I have to do everything again (run the > script) to put the help files in help browser again. > > Best Regards > > W.A. > > PS: Script: > > help_from_sci("C:\SCIHELPTEST\SHT.sci","C:\SCIHELPTEST\GEN"); > > xmltojar("C:\SCIHELPTEST\GEN","TestHlp"); > > ok=add_help_chapter("TestHlp","C:\jar",%f); > Hi, If the jar file has been built, only the last line is needed to load the help chapter at each Scilab start --> add_help_chapter("TestHlp","C:\jar",%f); Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommaso.solcia at mail.polimi.it Thu Mar 11 19:36:26 2010 From: tommaso.solcia at mail.polimi.it (tommaso.solcia at mail.polimi.it) Date: Thu, 11 Mar 2010 19:36:26 +0100 Subject: function link Message-ID: <20100311193626.q1gbo1ihwwcksgww@webmail-stud.polimi.it> Hi all, I upgraded to scilab 5.2.1, and tried to link a function I was using with the previous version. Here are the lines I write: --> ilib_for_link('sockwrite','sockwrite_comp',[],'c'); --> exec loader.sce I get an error about an undefined symbol called set_block_error. In the scilab-help I found "set_blockerror(n)" between the utilities function (it seems an underscore is missing). Is this a bug or I am getting something wrong? The following is the message I get: --> link(sockwrite_path+'libsockwrite'+getdynlibext(),['sockwrite'],'c'); Link failed for dynamic library '/home/toto/Politec/TESI/CART0controlled/02.in.out/scicos/libsockwrite.so'. An error occurred: /home/toto/Politec/TESI/CART0controlled/02.in.out/scicos/libsockwrite.so: undefined symbol: set_block_error link(sockwrite_path+'libsockwrite'+getdynlibext(),['sockwrite'],'c'); !--error 236 link: The shared archive was not loaded: (null) at line 9 of exec file called by : exec loader.sce Thanks Tommaso From Mike at Page-One.Waitrose.com Thu Mar 11 21:30:52 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Thu, 11 Mar 2010 20:30:52 -0000 Subject: Passing a hypermatrix to a C function Message-ID: Hello, Is it possible to pass a hypermatrix to a C function using the gateway method? Looking at stackTypeVariable.h, there does not seem to be a corresponding datatype (like MATRIX_OF_COMPLEX_DATATYPE). Also looking at stack-c.h, there does not seem to be a macro for dereferencing pointers to hypermatrices (like stk(x)). I guess I can pass the hypermatrix.dims and hypermatrix.entries elements separately as MATRIX_OF_INTEGER_DATATYPE and MATRIX_OF_COMPLEX_DATATYPE respectively, but is there a more efficient way? Also, for some reason, I have to convert hypermatrix.dims to double even though it is referenced as an integer type. Is this a bug? Thanks for any advice. Mike. From manjusha.joshi at gmail.com Fri Mar 12 07:19:01 2010 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Fri, 12 Mar 2010 11:49:01 +0530 Subject: Graphics window crashes Message-ID: Hello, We are trying to set up terminal based lab for computations using scilab. On the server, scilab graphics window opens and could show the graph. On the second terminal which is connected to the server. If we try to open scilab. It works perfect except it does not show graph. It opens graphical window also. Do we need to set up some thing more? Any pointer will be useful. -- Manjusha S. Joshi Lecturer in Computational Mathematics, Bhaskaracharya Institute of Mathematics, Pune, India www.bprim.org Office phone -020 25434547 Mobile: (betn. 4.30-7pm) 09822 319328 blog: http://manjushajoshi.wordpress.com/ Linkedlin: http://in.linkedin.com/pub/manjusha-joshi/10/a44/97a -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.korpikiewicz at op.pl Fri Mar 12 08:10:48 2010 From: j.korpikiewicz at op.pl (j.korpikiewicz at op.pl) Date: Fri, 12 Mar 2010 08:10:48 +0100 Subject: Scilab Message-ID: I going use Scilab in my application write in C#. I create DLL for .NET. There is function StartScilab in call_scilab.dll (WinApi). How use parametr Stacksize. How large in default Stacksize when put null? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Mar 12 11:00:02 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 12 Mar 2010 11:00:02 +0100 (CET) Subject: basic operation but change in the matrix dimension In-Reply-To: <556848874.5611268387880166.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <1152000212.6181268388002510.JavaMail.root@zimbra26-e5.priv.proxad.net> Hi all, I'm doing the basic operation herebellow... W_ is a 5 x 1 matrix after calculation Q_ is a 1 x 5 matrix ==> why dimension has changed ???? Slts PC ##########################" W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] [line_number,column_number] = size(W_) S_ = 0.079 for i = 1 : line_number Q_(i) = W_(i) / S_ ; end; W_ Q_ ########################### result W_ = 3.717 3.8535 3.759 3.801 3.801 Q_ = 47.050633 48.778481 47.582278 48.113924 48.113924 From jasper at amsterchem.com Fri Mar 12 11:08:34 2010 From: jasper at amsterchem.com (jasper van baten) Date: Fri, 12 Mar 2010 11:08:34 +0100 Subject: [scilab-Users] basic operation but change in the matrix dimension In-Reply-To: <1152000212.6181268388002510.JavaMail.root@zimbra26-e5.priv .proxad.net> References: <556848874.5611268387880166.JavaMail.root@zimbra26-e5.priv.proxad.net> <1152000212.6181268388002510.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <201003121008.o2CA8YY5020604@dutch35.digitalus.nl> Try to avoid looping over elements; use matrix operations instead. You never declared the size of Q. But you should be using W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] S_ = 0.079 Q_=W_/S_ If you do need to loop, best to pre-declare Q W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] Q_ = zeros(5,1) [line_number,column_number] = size(W_) S_ = 0.079 for i = 1 : line_number Q_(i) = W_(i) / S_ ; end; W_ Q_ or - in case you really want Q to be allocated on the fly, index properly: W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] [line_number,column_number] = size(W_) S_ = 0.079 for i = 1 : line_number Q_(i,1) = W_(i) / S_ ; end; W_ Q_ or Scilab will guess for you. Best wishes, Jasper. At 11:00 3/12/2010, paul.carrico at free.fr wrote: >Hi all, > >I'm doing the basic operation herebellow... >W_ is a 5 x 1 matrix >after calculation Q_ is a 1 x 5 matrix ==> why dimension has changed ???? > >Slts > >PC > > >##########################" >W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] >[line_number,column_number] = size(W_) > >S_ = 0.079 > >for i = 1 : line_number > Q_(i) = W_(i) / S_ ; >end; > >W_ >Q_ > >########################### >result > W_ = > > 3.717 > 3.8535 > 3.759 > 3.801 > 3.801 > > > Q_ = > > 47.050633 48.778481 47.582278 48.113924 48.113924 From paul.carrico at free.fr Fri Mar 12 13:42:21 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 12 Mar 2010 13:42:21 +0100 (CET) Subject: [scilab-Users] basic operation but change in the matrix dimension In-Reply-To: <201003121008.o2CA8YY5020604@dutch35.digitalus.nl> Message-ID: <1100263617.33131268397741137.JavaMail.root@zimbra26-e5.priv.proxad.net> You right ... I was thinking that Scilab does it by himself ... I was wrong ! Regards Paul ----- Mail Original ----- De: "jasper van baten" ?: users at lists.scilab.org, users at lists.scilab.org Envoy?: Vendredi 12 Mars 2010 11h08:34 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [scilab-Users] basic operation but change in the matrix dimension Try to avoid looping over elements; use matrix operations instead. You never declared the size of Q. But you should be using W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] S_ = 0.079 Q_=W_/S_ If you do need to loop, best to pre-declare Q W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] Q_ = zeros(5,1) [line_number,column_number] = size(W_) S_ = 0.079 for i = 1 : line_number Q_(i) = W_(i) / S_ ; end; W_ Q_ or - in case you really want Q to be allocated on the fly, index properly: W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] [line_number,column_number] = size(W_) S_ = 0.079 for i = 1 : line_number Q_(i,1) = W_(i) / S_ ; end; W_ Q_ or Scilab will guess for you. Best wishes, Jasper. At 11:00 3/12/2010, paul.carrico at free.fr wrote: >Hi all, > >I'm doing the basic operation herebellow... >W_ is a 5 x 1 matrix >after calculation Q_ is a 1 x 5 matrix ==> why dimension has changed ???? > >Slts > >PC > > >##########################" >W_ =[3.717 ; 3.8535 ; 3.759 ; 3.801 ; 3.801 ] >[line_number,column_number] = size(W_) > >S_ = 0.079 > >for i = 1 : line_number > Q_(i) = W_(i) / S_ ; >end; > >W_ >Q_ > >########################### >result > W_ = > > 3.717 > 3.8535 > 3.759 > 3.801 > 3.801 > > > Q_ = > > 47.050633 48.778481 47.582278 48.113924 48.113924 From paul.carrico at free.fr Sat Mar 13 10:34:39 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sat, 13 Mar 2010 10:34:39 +0100 Subject: Fitiing experimental results Message-ID: <000301cac290$674673b0$35d35b10$@carrico@free.fr> All, I'm looking for fitting (mechanical) experimental data . what's the best procedure : - Datafit procedure ? - Leastsq one ? NOTA : the final purpose is : - to surround the parameters to fit (some of them have to be strictly positive for example) - as well as I would like to implemented several tests in a single fitting step (I mean several curve for a single constitutive equation) Any advice ? Regards Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From aktashima at unifesp.br Sun Mar 14 02:53:53 2010 From: aktashima at unifesp.br (Alexandre K. Tashima) Date: Sat, 13 Mar 2010 22:53:53 -0300 Subject: Help with link to a fortran code Message-ID: Hi, My name is Alexandre K. Tashima from Brazil and I'm getting started with Scilab. It is marvelous and I have already made some codes and graphics to my students. Now I tried to solve a cubic equation of state to describe a phase equilibium problem, but the 'fsolve' function does not seem to converge. So I tried to use a fortran script to solve my numerical problem, but the 'link' function is not working. I tried in the Scilab 5.2.1 for windows and ubuntu, but both show the same error message: -->link('muller.o','muller') O link falhou para a biblioteca din?mica 'muller.o'. Um erro ocorreu: muller.o: N?o ? possivel abrir arquivo de objetos compartilhado: Arquivo ou diret?rio n?o encontrado !--error 236 link: O arquivo compartilhado n?o foi carregado: (null) It says: "It is not possible to open shared files: File or directory not found" And I don't undertand why. I also tried to run some scilab codes in the examples, but they also doesn't work. Can you help me? Best regards, -- Prof. Dr. Alexandre Keiji Tashima Departamento de Ciencias Exatas e da Terra Universidade Federal de Sao Paulo - Campus Diadema Tel: 55-11-4049-3300 ramal 3089 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Mar 14 09:51:14 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 14 Mar 2010 09:51:14 +0100 Subject: Problem on using datafit Message-ID: <000001cac353$80defe00$829cfa00$@carrico@free.fr> All, For the first time I'm trying to fit experimental data with a constitutive equation . the final result is not good if I compare with gnuplot for example ! I'm doing something wrong but what ? NOTA : I would like to use datafit to be able to surround/constraint the parameter values (all the parameters must be strictly positive here) With gnuplot I found : C10 = 0.684101 C01 = -0.018344 (have a look in the screenshot) Tanks for any help Regards PC -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gnuplot.jpg Type: image/jpeg Size: 55917 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_fit.sce Type: application/octet-stream Size: 2274 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Sun Mar 14 13:05:36 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 14 Mar 2010 13:05:36 +0100 Subject: [scilab-Users] Help with link to a fortran code In-Reply-To: References: Message-ID: <1268568336.21057.540.camel@zlarin> Hello, Le samedi 13 mars 2010 ? 22:53 -0300, Alexandre K. Tashima a ?crit : > > Hi, > > My name is Alexandre K. Tashima from Brazil and I'm getting started > with Scilab. It is marvelous and I have already made some codes and > graphics to my students. Now I tried to solve a cubic equation of > state to describe a phase equilibium problem, but the 'fsolve' > function does not seem to converge. So I tried to use a fortran script > to solve my numerical problem, but the 'link' function is not working. > I tried in the Scilab 5.2.1 for windows and ubuntu, but both show the > same error message: > > -->link('muller.o','muller') > O link falhou para a biblioteca din?mica 'muller.o'. > Um erro ocorreu: muller.o: N?o ? possivel abrir arquivo de objetos > compartilhado: Arquivo ou diret?rio n?o encontrado > !--error 236 > link: O arquivo compartilhado n?o foi carregado: (null) > > It says: "It is not possible to open shared files: File or directory > not found" how did you create muller.o ? Can you try to generate it as a shared library. > And I don't undertand why. I also tried to run some scilab codes in > the examples, but they also doesn't work. Can you help me? Are you sure that you have a compiler on your computer ? Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From Meden at iai.co.il Sun Mar 14 13:16:43 2010 From: Meden at iai.co.il (Moran Eden) Date: Sun, 14 Mar 2010 14:16:43 +0200 Subject: installing problems scilab 5.2.1 Message-ID: <4B9CD3AB.8000207@iai.co.il> Hi I'm trying to install scilab 5.2.1. on a standalone PC. The PC can not be connected to a internet connection.The installation fail because it can not download Intel Math Kernel Library files. Can you please help with this type of installation. i tried to search the web for those files, but no luck. Thank you in advance. Eran Levin *************************************************************************************** Please consider the environment before printing this email The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. From haraldgalda at yahoo.com Sun Mar 14 13:55:19 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Sun, 14 Mar 2010 05:55:19 -0700 (PDT) Subject: AW: [scilab-Users] installing problems scilab 5.2.1 In-Reply-To: <4B9CD3AB.8000207@iai.co.il> References: <4B9CD3AB.8000207@iai.co.il> Message-ID: <561173.27628.qm@web112611.mail.gq1.yahoo.com> Hi, you do not need the Intel Math Kernel Library for installing Scilab. You can choose Atlas library or reference library. Harald Galda *********************************************** Harald Galda, Dr. Eng. (J) http://freenet-homepage.de/HaraldGalda/ *********************************************** ----- Urspr?ngliche Mail ---- Von: Moran Eden An: users at lists.scilab.org Gesendet: Sonntag, den 14. M?rz 2010, 13:16:43 Uhr Betreff: [scilab-Users] installing problems scilab 5.2.1 Hi I'm trying to install scilab 5.2.1. on a standalone PC. The PC can not be connected to a internet connection.The installation fail because it can not download Intel Math Kernel Library files. Can you please help with this type of installation. i tried to search the web for those files, but no luck. Thank you in advance. Eran Levin *************************************************************************************** Please consider the environment before printing this email The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verf?gt ?ber einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com From wolff at wolffdata.se Sun Mar 14 13:51:17 2010 From: wolff at wolffdata.se (Peter Wolff) Date: Sun, 14 Mar 2010 13:51:17 +0100 Subject: plotting maps in scilab 5.2.1 does not work Message-ID: <4B9CDBC5.10701@wolffdata.se> Hi list, The little program below plots a small world map using the appended text file 'WorldStrip_NaN.txt' It works fine in scilabs up to and including 5.2.0 in Vista and XP It does NOT work in 5.2.1 Do I miss something or is it a bug? Scilab 5.2.1, Vista Grateful for advice PW //----Program pen-up pen-down by separator NaN (not a Number)------- myfile=uigetfile('*'); //load WorldStrip_NaN.txt txt=mgetl(myfile); txt=strsubst(txt,'NaN','%inf'); // subst %inf for NaN data=evstr(txt); long=data(:,1); lat=data(:,2); f1=scf(1);clf(1);f1.figure_size=[700,500]; plot2d(long,lat,style=5); xgrid(); //-------------------- end ---------------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: WorldStrip_NaN.txt URL: From fvogelnew1 at free.fr Sun Mar 14 17:00:53 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 14 Mar 2010 17:00:53 +0100 Subject: [scilab-Users] plotting maps in scilab 5.2.1 does not work In-Reply-To: <4B9CDBC5.10701@wolffdata.se> References: <4B9CDBC5.10701@wolffdata.se> Message-ID: <4B9D0835.8050002@free.fr> Peter Wolff said on 14/03/2010 13:51: Replace > txt=strsubst(txt,'NaN','%inf'); // subst %inf for NaN by: txt=strsubst(txt,'NaN','%nan'); and it will work in all Scilab flavours (including Scicoslab if you additionally replace uigetfile by tk_getfile) Besides: I'm interested by your data file WorldStrip_NaN.txt. Where does this come from? What is the license for these data? Francois From bos.knu at gmail.com Sun Mar 14 21:15:35 2010 From: bos.knu at gmail.com (Alexei Bychkov) Date: Sun, 14 Mar 2010 22:15:35 +0200 Subject: technical problems Message-ID: <1081372350.20100314221535@gmail.com> ????????????, . Thank you for SciLab! I want to join the development team with new own modules. But it is interesting to know why the significantly reduced speed of computation compared to version 4.0? Sinserely Yours, Director Information Technology Research Center Taras Shevcenko National University of Kyiv Alexei Bychkov mailto:bos.knu at gmail.com From sylvestre.ledru at scilab.org Mon Mar 15 05:17:32 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 15 Mar 2010 05:17:32 +0100 Subject: [scilab-Users] technical problems In-Reply-To: <1081372350.20100314221535@gmail.com> References: <1081372350.20100314221535@gmail.com> Message-ID: <1268626652.4023.636.camel@zlarin> Hello Alexei, Le dimanche 14 mars 2010 ? 22:15 +0200, Alexei Bychkov a ?crit : > ????????????, . > > Thank you for SciLab! > > I want to join the development team with new own modules. Sure, you are welcome ;) You can ask me what you want. > But it is interesting to know why the significantly reduced speed of > computation compared to version 4.0? We had some regressions in some places. During the last few weeks, we have been focusing on performance and quality check for the next release. In the current master (5.3), we fixed almost of performance regression and in many cases, we have better performances than in the 4.X (otherwise, it is usually equivalent performances). We are thinking about backporting some of the fixes into the release 5.2.2. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From riza at students.tf.itb.ac.id Mon Mar 15 05:49:08 2010 From: riza at students.tf.itb.ac.id (Riza Nuari) Date: Mon, 15 Mar 2010 11:49:08 +0700 Subject: installing scilab in ubuntu from source code In-Reply-To: <1268626652.4023.636.camel@zlarin> References: <1081372350.20100314221535@gmail.com> <1268626652.4023.636.camel@zlarin> Message-ID: <4B9DBC44.3060600@students.tf.itb.ac.id> i was trying to install scilab 2.5.1 on ubuntu karmic from source code. but i cant compile it, the following error was when checking jgraphx or something about that. do you know how can i compile it to install it to ubuntu karmic? thank you before -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature riza.png Type: image/png Size: 5545 bytes Desc: not available URL: From xendoo at gmail.com Mon Mar 15 10:53:59 2010 From: xendoo at gmail.com (xendo) Date: Mon, 15 Mar 2010 10:53:59 +0100 Subject: [scilab-Users] installing scilab in ubuntu from source code In-Reply-To: <4B9DBC44.3060600@students.tf.itb.ac.id> References: <1081372350.20100314221535@gmail.com> <1268626652.4023.636.camel@zlarin> <4B9DBC44.3060600@students.tf.itb.ac.id> Message-ID: <6d2fcb41003150253y75f8b5f9iab14ac7aac43f7b6@mail.gmail.com> On 15 March 2010 05:49, Riza Nuari wrote: > i was trying to install scilab 2.5.1 on ubuntu karmic from source code. > but i cant compile it, the following error was when checking jgraphx or > something about that. do you know how can i compile it to install it to > ubuntu karmic? > > thank you before > > -- > On 18 February 2010 17:12, Sylvestre Ledru wrote: > Le jeudi 18 f?vrier 2010 ? 13:49 -0200, Guilherme Kunigami a ?crit : >> Hi all, >> >> I'm experiencing trouble in installing Scilab from the git repository. >> I'm currently using Ubuntu 9.10 32-bits. >> >> I've already did >> >> $ sudo apt-get build-dep scilab > > Scilab 5.2.X has new dependencies since Ubuntu 9.10. It is why apt-get > build-dep does not bring all dependencies. > >> But when I try >> >> $ ./configure --prefix=/path/to/some/folder >> >> I get the following error: >> >> $ checking jgraphx... no >> $ configure: error: Could not find or use the Java package/jar jgraphx >> used by Diagram design (looking for package com.mxgraph.model.mxCell) >> >> I also looked for this package under ubuntu repository >> (libjgraphx-java?), but it seems to be aviable only for Ubuntu 10.04. >> >> Does anyone know how to get this library? > > You can download from it: > http://www.mxgraph.com/downloads/jgraphx/ > you will have to build it but it is trivial. > > Otherwise, have a look on this item in the FAQ: > http://wiki.scilab.org/Compiling_Scilab_5.x_under_GNU-Linux_Unix_-_FAQ#head-71aed3e2494aa57cf54f97f3a6ff06173f21bb28 > > Sylvestre I think this will help you. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From leszek.luchowski at iitis.gliwice.pl Mon Mar 15 13:51:56 2010 From: leszek.luchowski at iitis.gliwice.pl (leszek.luchowski at iitis.gliwice.pl) Date: Mon, 15 Mar 2010 13:51:56 +0100 (CET) Subject: I think I have found a bug - an "incomparable" number. Message-ID: <3236.212.106.181.46.1268657516.squirrel@mail.iitis.gliwice.pl> Hi. I ran into a strange problem in Scilab. My program crashed, and I couldn't find an error in it. Apparently, there isn't any! I managed to isolate the problem by cutting off most of my code and just leaving this: // =================================== clear; clc; A=[1 0 0 0; 0 0 3 0; 0 2 0 0; 0 0 0 1]; sx=spec(A) if sx(1)>0.0 // <--- This is where it crashes! "Positive" end // =================================== The value of sx(1) is an unimpressive real number, about 2.45. Why can't I compare it to zero? Thanks in advance for any enlightment, Leszek. As this is my first post in this list i wish to say hello to everybody. From stephane.mottelet at utc.fr Mon Mar 15 13:55:35 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Mon, 15 Mar 2010 13:55:35 +0100 Subject: [scilab-Users] I think I have found a bug - an "incomparable" number. In-Reply-To: <3236.212.106.181.46.1268657516.squirrel@mail.iitis.gliwice.pl> References: <3236.212.106.181.46.1268657516.squirrel@mail.iitis.gliwice.pl> Message-ID: <4B9E2E47.5080906@utc.fr> leszek.luchowski at iitis.gliwice.pl a ?crit : > Hi. I ran into a strange problem in Scilab. My program crashed, and I > couldn't find an error in it. Apparently, there isn't any! I managed to > isolate the problem by cutting off most of my code and just leaving this: > > // =================================== > clear; > clc; > > A=[1 0 0 0; > 0 0 3 0; > 0 2 0 0; > 0 0 0 1]; > > sx=spec(A) > if sx(1)>0.0 // <--- This is where it crashes! > "Positive" > end > // =================================== > > The value of sx(1) is an unimpressive real number, about 2.45. Why can't I > compare it to zero? > > Thanks in advance for any enlightment, > Leszek. > > As this is my first post in this list i wish to say hello to everybody. > sx=spec(A) if real(sx(1))>0.0 "Positive" end there are some spurious imaginary parts, likely. S. From leszek.luchowski at iitis.gliwice.pl Mon Mar 15 14:08:27 2010 From: leszek.luchowski at iitis.gliwice.pl (leszek.luchowski at iitis.gliwice.pl) Date: Mon, 15 Mar 2010 14:08:27 +0100 (CET) Subject: [scilab-Users] I think I have found a bug - an "incomparable" number. In-Reply-To: <4B9E2E47.5080906@utc.fr> References: <3236.212.106.181.46.1268657516.squirrel@mail.iitis.gliwice.pl> <4B9E2E47.5080906@utc.fr> Message-ID: <3618.212.106.181.46.1268658507.squirrel@mail.iitis.gliwice.pl> > sx=spec(A) > if real(sx(1))>0.0 > "Positive" > end > > > there are some spurious imaginary parts, likely. Thank you a lot for the answer. It works, but something strange is happening here: when the value of sx(1) is displayed, there is no mention of any imaginary part. And when I type imag(sx(1)) I get zero as the reply. I also tried 1/imag(sx(1)) then the reply is !--error 27 division by zero... Any ideas? From Samuel.Gougeon at univ-lemans.fr Mon Mar 15 14:30:35 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 15 Mar 2010 14:30:35 +0100 Subject: [scilab-Users] I think I have found a bug - an "incomparable" number. In-Reply-To: <3618.212.106.181.46.1268658507.squirrel@mail.iitis.gliwice.pl> References: <3236.212.106.181.46.1268657516.squirrel@mail.iitis.gliwice.pl> <4B9E2E47.5080906@utc.fr> <3618.212.106.181.46.1268658507.squirrel@mail.iitis.gliwice.pl> Message-ID: <4B9E367B.606@univ-lemans.fr> ----- Message d'origine ----- De : leszek.luchowski at iitis.gliwice.pl Date : 15/03/2010 14:08: >> sx=spec(A) >> if real(sx(1))>0.0 >> "Positive" >> end >> >> >> there are some spurious imaginary parts, likely. >> > > Thank you a lot for the answer. It works, but something strange is > happening here: when the value of sx(1) is displayed, there is no mention > of any imaginary part. And when I type > > > imag(sx(1)) > > I get zero as the reply. > > I also tried > > 1/imag(sx(1)) > > then the reply is > > !--error 27 > division by zero... > > Any ideas? > -->isreal(sx) ans = F -->format("e") -->imag(sx) ans = 0.000D+00 0.000D+00 0.000D+00 0.000D+00 Therefore, you may consider that isreal() is bugged, and then submit a bug report: http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20%20software Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommaso.solcia at mail.polimi.it Mon Mar 15 14:57:19 2010 From: tommaso.solcia at mail.polimi.it (tommaso.solcia at mail.polimi.it) Date: Mon, 15 Mar 2010 14:57:19 +0100 Subject: C-function Message-ID: <20100315145719.rlzsxwh94c8oogsk@webmail-stud.polimi.it> Hi all, I wrote a C-function that needs the scicos_block4.h for the C-macros, but if I #include "scicos_block4.h" Then I get !sockwrite_comp.c:17:48: error: scicos_block4.h: No su! ! ch file or directory ! In order to make it work, I need to give the full path in the include function, but in this way it is not gonna work on other machines. Thanks! Tommaso From d.picard at opgc.univ-bpclermont.fr Mon Mar 15 15:24:59 2010 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Mon, 15 Mar 2010 15:24:59 +0100 Subject: [scilab-Users] C-function In-Reply-To: <20100315145719.rlzsxwh94c8oogsk@webmail-stud.polimi.it> References: <20100315145719.rlzsxwh94c8oogsk@webmail-stud.polimi.it> Message-ID: <4B9E433B.6050303@opgc.univ-bpclermont.fr> Alternatively, you can leave your include as is, and specify the include search path to the compiler (-I option for gcc, mingw32, etc.). So the code is always the same. tommaso.solcia at mail.polimi.it a ?crit : > Hi all, > I wrote a C-function that needs the scicos_block4.h for the C-macros, > but if I > > #include "scicos_block4.h" > > Then I get > > !sockwrite_comp.c:17:48: error: scicos_block4.h: No su! > ! ch file or directory ! > > In order to make it work, I need to give the full path in the include > function, but in this way it is not gonna work on other machines. > > Thanks! > > Tommaso > > > From paul.carrico at free.fr Mon Mar 15 15:29:33 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 15 Mar 2010 15:29:33 +0100 (CET) Subject: datafit In-Reply-To: <1786176956.348961268663345267.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <736935144.349031268663373877.JavaMail.root@zimbra26-e5.priv.proxad.net> All, Does somebody have an example of using datafit procedure (fitting experimental data) ? As I said in a previous post( with no answer yet), the tests I made failed in using it. Thanks in advance PC -------------- next part -------------- A non-text attachment was scrubbed... Name: test_fit.sce Type: application/octet-stream Size: 2365 bytes Desc: not available URL: From yann.collette at scilab.org Mon Mar 15 16:13:32 2010 From: yann.collette at scilab.org (Collette yann) Date: Mon, 15 Mar 2010 16:13:32 +0100 Subject: [scilab-Users] datafit In-Reply-To: <736935144.349031268663373877.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <736935144.349031268663373877.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4B9E4E9C.4040505@scilab.org> paul.carrico at free.fr a ?crit : > All, > > Does somebody have an example of using datafit procedure (fitting experimental data) ? > > As I said in a previous post( with no answer yet), the tests I made failed in using it. > > Thanks in advance > > PC Hello, I noticed 2 mistakes: - the prototype of the G function, you must switch "parameters" and "measured" - the orientation of the RESU dataset, you must transpose it. I attach the corrected script. Yann -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_fit.sce URL: From paul.carrico at free.fr Mon Mar 15 16:43:11 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 15 Mar 2010 16:43:11 +0100 (CET) Subject: [scilab-Users] datafit In-Reply-To: <4B9E4E9C.4040505@scilab.org> Message-ID: <1024747875.359661268667791568.JavaMail.root@zimbra26-e5.priv.proxad.net> Thanks for this (so quick) answer. Am I wrong to say that is possible in SCILAB to surround the parameters ? .... I mean I would like to impose the 2 optimized parameters to be strictly positive (and/or to be in-between [0,a value]. PC ----- Mail Original ----- De: "Collette yann" ?: users at lists.scilab.org Envoy?: Lundi 15 Mars 2010 16h13:32 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [scilab-Users] datafit paul.carrico at free.fr a ?crit : > All, > > Does somebody have an example of using datafit procedure (fitting experimental data) ? > > As I said in a previous post( with no answer yet), the tests I made failed in using it. > > Thanks in advance > > PC Hello, I noticed 2 mistakes: - the prototype of the G function, you must switch "parameters" and "measured" - the orientation of the RESU dataset, you must transpose it. I attach the corrected script. Yann RESU = [ //1,0; 0.99,-0.021732882; 0.98,-0.033976269; 0.97,-0.036566652; 0.96,-0.06467633; 0.95,-0.072344532; 0.94,-0.101610874; 0.93,-0.169098626; 0.92,-0.220626222; 0.91,-0.288628719; 0.9,-0.34254837; 0.89,-0.420396144; 0.88,-0.479622221; 0.87,-0.53212632; 0.86,-0.572882097; 0.85,-0.630563936; 0.84,-0.686731816; 0.83,-0.728819877; 0.8,-0.859928729; 0.79,-0.908981002; 0.78,-0.956519316; 0.77,-0.979228701; 0.76,-1.024041888; 0.75,-1.067341117; 0.74,-1.103524737; 0.73,-1.118452373; 0.72,-1.152183381; 0.71,-1.225398439; 0.7,-1.239932446; 0.69,-1.295343347; 0.68,-1.297160097; 0.67,-1.359232418; 0.66,-1.398898144; 0.65,-1.456428587; 0.64,-1.492158021; 0.63,-1.506994819; 0.62,-1.605099364; 0.61,-1.653091866; 0.6,-1.67141077; 0.59,-1.741809865; 0.58,-1.76672963; 0.57,-1.829468093; 0.56,-1.890632037; 0.55,-1.931811723; 0.54,-2.060195449; 0.53,-2.094259527; 0.52,-2.141343653; 0.51,-2.246866597; 0.5,-2.308787522; ]; [Line_number,columne_number]=size(RESU); // Function to fit with 2 parameters C10 & C01 function sigma = mooney_rivlin(lambda,parameters) C10 = parameters(1) C01 = parameters(2) sigma = 2 * ( lambda^2 - (1 / lambda) ) * ( C10 + (C01 / lambda) ) endfunction // function descriptor function e = G(parameters,measured) lambda_measured = measured(1) sigma_measured = measured(2) e = sigma_measured - mooney_rivlin(lambda_measured,parameters) endfunction // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // measured(2) = measured sigma // measured(1) = measured lambda // deff = (measured SIGMA - calculated SIGMA) // deff('[e]=G(param,measured)','e=measured(2)- 2*(measured(1)^2 - 1/measured(1))*(param(1) + param(2)/measured(1))') // Solve the problem parameters_init = [1 ; 0] [parameters_opti,err] = datafit(G,RESU',parameters_init) // Drawing of the experimental data & the fitted curve sigma_calc = zeros(Line_number,1); for i = 1 : Line_number sigma_calc(i,1) = mooney_rivlin(RESU(i,1),parameters_opti); end; clf(0) plot2d(RESU(:,1),RESU(:,2),style=-2) // attention bien le placer apr?s sinon la l?gende n'apparait pas plot2d(RESU(:,1), sigma_calc, style = 2) legend(["Experimental data", "fitted curve"],2); xtitle("Mooney-Rivlin fitted curve") From dwarf.m at gmail.com Mon Mar 15 17:11:17 2010 From: dwarf.m at gmail.com (Marco Marchi - Gmail) Date: Mon, 15 Mar 2010 17:11:17 +0100 Subject: Error code opening xls file Message-ID: <4B9E5C25.9000207@gmail.com> Hello everybody, I'm writing a script to process an Excel file. During file opening with library function xls_open I obtain an error message: [fd, sst, sheetname, sheetpos] = xls_open('c:/documenti/sistemi/leggi/iso_sistemi/utilities/calls.xls'); !--error 999 XLS file I'm trying to open inside Scilab is 38 Mbyte: is it too much big for this function? I used xls_open in order to open smallest xls file with no problem. What does 999 error code mean? Thank you in advance, Marco From mathieu.dubois at limsi.fr Mon Mar 15 17:39:25 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 15 Mar 2010 17:39:25 +0100 Subject: [scilab-Users] Graphics window crashes In-Reply-To: References: Message-ID: <4B9E62BD.1030308@limsi.fr> Hello, I have never used scilab on client/server architecture but there was some discussion about it some time ago (see the answers): http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=912 Also this might be the usual graphic card problem: http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0 Mathieu Manjusha Joshi wrote: > Hello, > > We are trying to set up terminal based lab for computations using scilab. > > On the server, scilab graphics window opens and could show the graph. > On the second terminal which is connected to the server. If we try to > open scilab. It works perfect except it does not show graph. It opens > graphical window also. > > Do we need to set up some thing more? > > Any pointer will be useful. > > -- > Manjusha S. Joshi > Lecturer in Computational Mathematics, > Bhaskaracharya Institute of Mathematics, Pune, India > www.bprim.org > Office phone -020 25434547 > Mobile: (betn. 4.30-7pm) 09822 319328 > blog: http://manjushajoshi.wordpress.com/ > Linkedlin: http://in.linkedin.com/pub/manjusha-joshi/10/a44/97a > From jean.baptiste.bordellier at gmail.com Mon Mar 15 18:26:32 2010 From: jean.baptiste.bordellier at gmail.com (Jean-Baptiste Bordellier) Date: Mon, 15 Mar 2010 19:26:32 +0200 Subject: Solving lorenz equations by runge kutta and euler method Message-ID: Hello. I'm trying to make a comparison between diverse methods for solving differential equation. I cannot use ode or any related command since the aim is to get a proper code which will help me compare the efficiency of the methods. I open a discussion on usenet. http://groups.google.fr/group/comp.soft-sys.math.scilab/browse_thread/thread/875cb3e8e2e80c09?hl=fr# So war i got. // Set the value of h to chose a step size. h=0.001; //set the value of imax to chose the number of iteration. imax=200; //Set the values of Xo, Yo, and Zo which are inital condition Xo=10; Yo=10; Zo=10 Unit=[Xo;Yo;Zo]; //Set values of sigma=s, r and beta=b s=10; r=28; b=2.67; fdx=mopen('C:\lorenz attractor\Lorenz attractorx.txt','wb') for i=1:imax, X=Xo+(-s*Xo+s*Yo)*h; Y=Yo+(-Xo*Zo+r*Xo-Yo)*h; Z=Zo+(Xo*Yo-b*Zo)*h; Xo=X; Yo=Y; Zo=Z; save(fdx,X,Y,Z), // save data in file end mclose(fdx) fdx=mopen('C:\lorenz attractor\Lorenz attractorx.txt','rb') for k=1:imax, load(fdx,'X','Y','Z');X;end // read data from file for k=1:imax, load(fdx,'X','Y','Z');Y;end for k=1:imax, load(fdx,'X','Y','Z');Z;end mclose(fdx); The problem is that I cannot obtain the values of X, Y and Z as a vector. I need that in order to plot 2d and 3d graphs of the lorenz equation. If anybody as any clue please let me know. Kind regards from France. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Mar 15 18:29:28 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 15 Mar 2010 18:29:28 +0100 Subject: [scilab-Users] Compiling scilab with PVM In-Reply-To: References: Message-ID: <4B9E6E78.6090105@limsi.fr> Kosaraju Veeresh Prasad wrote: > Dear users, > I am attempting to work on scilab with PVM for parallel algorithm > implementation. Please throw some light on how to build scilab from > source with pvm in a 64-bit linux environment. > Thank You Hello Prasad, To compile Scilab with PVM you need to pass the right options to the ./configure script. A quick search reveals: --with-pvm-include=DIR Set the path to the PVM headers --with-pvm-library=DIR Set the path to the PVM library directory I assume you know how to install and configure PVM... HTH, Mathieu From tidus.chocobo at gmail.com Mon Mar 15 19:50:08 2010 From: tidus.chocobo at gmail.com (Raziel) Date: Mon, 15 Mar 2010 22:20:08 +0330 Subject: a little help! Message-ID: <4B9E8160.9040107@gmail.com> hi i need to know how scilab find polynomial equations root please mail me its algorithm documentation or any think that seems usefull thanks From vladimir.rodriguez at reduc.edu.cu Mon Mar 15 20:48:54 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Mon, 15 Mar 2010 15:48:54 -0400 Subject: [scilab-Users] a little help! In-Reply-To: <4B9E8160.9040107@gmail.com> References: <4B9E8160.9040107@gmail.com> Message-ID: <1268682534.4125.1.camel@accionamiento> El lun, 15-03-2010 a las 22:20 +0330, Raziel escribi?: > hi > i need to know how scilab find polynomial equations root please > mail me its algorithm documentation or any think that seems usefull > > thanks there is a function get_function_path that gives you the location of source code. From yann.collette at scilab.org Tue Mar 16 09:07:42 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 16 Mar 2010 09:07:42 +0100 Subject: [scilab-Users] datafit In-Reply-To: <1024747875.359661268667791568.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1024747875.359661268667791568.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4B9F3C4E.2050100@scilab.org> Hello, Adding such constraints is rather simple. You just have to modify the parameters in datafit. Here is an example: [parameters_opti,err] = datafit(G,RESU', 'b', [0 0]', [1e6 1e6]', parameters_init) the 'b', binf, bsup thing add bounds constraints on the parameters. YC paul.carrico at free.fr a ?crit : > Thanks for this (so quick) answer. > > Am I wrong to say that is possible in SCILAB to surround the parameters ? .... I mean I would like to impose the 2 optimized parameters to be strictly positive (and/or to be in-between [0,a value]. > > PC > > > ----- Mail Original ----- > De: "Collette yann" > ?: users at lists.scilab.org > Envoy?: Lundi 15 Mars 2010 16h13:32 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [scilab-Users] datafit > > paul.carrico at free.fr a ?crit : > >> All, >> >> Does somebody have an example of using datafit procedure (fitting experimental data) ? >> >> As I said in a previous post( with no answer yet), the tests I made failed in using it. >> >> Thanks in advance >> >> PC >> > Hello, > > I noticed 2 mistakes: > - the prototype of the G function, you must switch "parameters" and > "measured" > - the orientation of the RESU dataset, you must transpose it. > > I attach the corrected script. > > Yann > > RESU = [ > //1,0; > 0.99,-0.021732882; > 0.98,-0.033976269; > 0.97,-0.036566652; > 0.96,-0.06467633; > 0.95,-0.072344532; > 0.94,-0.101610874; > 0.93,-0.169098626; > 0.92,-0.220626222; > 0.91,-0.288628719; > 0.9,-0.34254837; > 0.89,-0.420396144; > 0.88,-0.479622221; > 0.87,-0.53212632; > 0.86,-0.572882097; > 0.85,-0.630563936; > 0.84,-0.686731816; > 0.83,-0.728819877; > 0.8,-0.859928729; > 0.79,-0.908981002; > 0.78,-0.956519316; > 0.77,-0.979228701; > 0.76,-1.024041888; > 0.75,-1.067341117; > 0.74,-1.103524737; > 0.73,-1.118452373; > 0.72,-1.152183381; > 0.71,-1.225398439; > 0.7,-1.239932446; > 0.69,-1.295343347; > 0.68,-1.297160097; > 0.67,-1.359232418; > 0.66,-1.398898144; > 0.65,-1.456428587; > 0.64,-1.492158021; > 0.63,-1.506994819; > 0.62,-1.605099364; > 0.61,-1.653091866; > 0.6,-1.67141077; > 0.59,-1.741809865; > 0.58,-1.76672963; > 0.57,-1.829468093; > 0.56,-1.890632037; > 0.55,-1.931811723; > 0.54,-2.060195449; > 0.53,-2.094259527; > 0.52,-2.141343653; > 0.51,-2.246866597; > 0.5,-2.308787522; > ]; > [Line_number,columne_number]=size(RESU); > > // Function to fit with 2 parameters C10 & C01 > function sigma = mooney_rivlin(lambda,parameters) > C10 = parameters(1) > C01 = parameters(2) > sigma = 2 * ( lambda^2 - (1 / lambda) ) * ( C10 + (C01 / lambda) ) > endfunction > > > // function descriptor > function e = G(parameters,measured) > lambda_measured = measured(1) > sigma_measured = measured(2) > e = sigma_measured - mooney_rivlin(lambda_measured,parameters) > endfunction > > // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > // measured(2) = measured sigma > // measured(1) = measured lambda > // deff = (measured SIGMA - calculated SIGMA) > // deff('[e]=G(param,measured)','e=measured(2)- 2*(measured(1)^2 - 1/measured(1))*(param(1) + param(2)/measured(1))') > > > // Solve the problem > parameters_init = [1 ; 0] > [parameters_opti,err] = datafit(G,RESU',parameters_init) > > > // Drawing of the experimental data & the fitted curve > sigma_calc = zeros(Line_number,1); > for i = 1 : Line_number > sigma_calc(i,1) = mooney_rivlin(RESU(i,1),parameters_opti); > end; > > clf(0) > plot2d(RESU(:,1),RESU(:,2),style=-2) // attention bien le placer apr?s sinon la l?gende n'apparait pas > plot2d(RESU(:,1), sigma_calc, style = 2) > legend(["Experimental data", "fitted curve"],2); > xtitle("Mooney-Rivlin fitted curve") > From jerome.picard at scilab.org Tue Mar 16 09:27:43 2010 From: jerome.picard at scilab.org (Jerome PICARD) Date: Tue, 16 Mar 2010 09:27:43 +0100 Subject: [scilab-Users] Solving lorenz equations by runge kutta and euler method In-Reply-To: References: Message-ID: <4B9F40FF.10808@scilab.org> Hello, If you want to obtain X, Y and Z as a vector, you just have to replace X by X(i) in the loop. But a faster solution to create the grid without the loop and saving every line in a file in is to use the Scilab function meshgrid. Best regards J?r?me Jean-Baptiste Bordellier wrote: > Hello. > I'm trying to make a comparison between diverse methods for solving > differential equation. > I cannot use ode or any related command since the aim is to get a > proper code which will help me compare the efficiency of the methods. > I open a discussion on usenet. > http://groups.google.fr/group/comp.soft-sys.math.scilab/browse_thread/thread/875cb3e8e2e80c09?hl=fr# > So war i got. > > // Set the value of h to chose a step size. > h=0.001; > //set the value of imax to chose the number of iteration. > imax=200; > > //Set the values of Xo, Yo, and Zo which are inital condition > Xo=10; > Yo=10; > Zo=10 > Unit=[Xo;Yo;Zo]; > //Set values of sigma=s, r and beta=b > s=10; > r=28; > b=2.67; > > fdx=mopen('C:\lorenz attractor\Lorenz attractorx.txt','wb') > for i=1:imax, > X=Xo+(-s*Xo+s*Yo)*h; > Y=Yo+(-Xo*Zo+r*Xo-Yo)*h; > Z=Zo+(Xo*Yo-b*Zo)*h; > Xo=X; > Yo=Y; > Zo=Z; > save(fdx,X,Y,Z), // save data in file > end > mclose(fdx) > > fdx=mopen('C:\lorenz attractor\Lorenz attractorx.txt','rb') > > for k=1:imax, load(fdx,'X','Y','Z');X;end // read data from file > for k=1:imax, load(fdx,'X','Y','Z');Y;end > for k=1:imax, load(fdx,'X','Y','Z');Z;end > > mclose(fdx); > > The problem is that I cannot obtain the values of X, Y and Z as a vector. > I need that in order to plot 2d and 3d graphs of the lorenz equation. > > If anybody as any clue please let me know. > Kind regards from France. > > -- J?r?me Picard Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex T?l. : 01.39.63.55.91 From guylaine.collewet at cemagref.fr Tue Mar 16 15:35:46 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 16 Mar 2010 15:35:46 +0100 Subject: inversion of a huge block diagonal matrix Message-ID: Hello, I would like to compute the inverse of a huge block diagonal matrix using an efficient way. Each block is a square matrix with NxN dimension and the block diagonal matrix dimension is NLxNL N is small (5 or 6) and L is big (1e6) One way is to build a loop and to compute L times the inversion of the NxN matrixes However, as L is big (for example 1e6) this is too much time consuming Does anyone has an idea to compute this using scilab ? Thank you for your help Guylaine Collewet guylaine.collewet at cemagref.fr +33223482167 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Tue Mar 16 15:41:37 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 16 Mar 2010 15:41:37 +0100 Subject: [scilab-Users] inversion of a huge block diagonal matrix In-Reply-To: References: Message-ID: <4B9F98A1.6050509@scilab.org> Collewet Guylaine a ?crit : > > Hello, > > I would like to compute the inverse of a huge block diagonal matrix > using an efficient way. > > Each block is a square matrix with NxN dimension and the block > diagonal matrix dimension is NLxNL > N is small (5 or 6) and L is big (1e6) > > One way is to build a loop and to compute L times the inversion of the > NxN matrixes > However, as L is big (for example 1e6) this is too much time consuming > > Does anyone has an idea to compute this using scilab ? > > Thank you for your help > > Guylaine Collewet > guylaine.collewet at cemagref.fr > +33223482167 > > Stupid question first: do you have tested to store your big matrix in a sparse matrix ? stacksize('max') B = spzeros(1e6,1e6); // Store the matrix Binv = inv(B); YC From guylaine.collewet at cemagref.fr Tue Mar 16 15:47:01 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 16 Mar 2010 15:47:01 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_inversion_of_a_huge_block_diag?= =?iso-8859-1?Q?onal_matrix?= References: <4B9F98A1.6050509@scilab.org> Message-ID: >Stupid question first: do you have tested to store your big matrix in a >sparse matrix ? >stacksize('max') >B = spzeros(1e6,1e6); >// Store the matrix >Binv = inv(B); Yes, I have already tested this solution But Binv = inv(B) is time consuming too when the size of the matrix is high I guess that this way does not take advantage of the fact that the matrix is block diagonal Guylaine -------- Message d'origine-------- De: Collette yann [mailto:yann.collette at scilab.org] Date: mar. 16/03/2010 15:41 ?: users at lists.scilab.org Objet : Re: [scilab-Users] inversion of a huge block diagonal matrix Collewet Guylaine a ?crit : > > Hello, > > I would like to compute the inverse of a huge block diagonal matrix > using an efficient way. > > Each block is a square matrix with NxN dimension and the block > diagonal matrix dimension is NLxNL > N is small (5 or 6) and L is big (1e6) > > One way is to build a loop and to compute L times the inversion of the > NxN matrixes > However, as L is big (for example 1e6) this is too much time consuming > > Does anyone has an idea to compute this using scilab ? > > Thank you for your help > > Guylaine Collewet > guylaine.collewet at cemagref.fr > +33223482167 > > Stupid question first: do you have tested to store your big matrix in a sparse matrix ? stacksize('max') B = spzeros(1e6,1e6); // Store the matrix Binv = inv(B); YC -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Tue Mar 16 15:59:04 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 16 Mar 2010 15:59:04 +0100 Subject: [scilab-Users] inversion of a huge block diagonal matrix In-Reply-To: References: <4B9F98A1.6050509@scilab.org> Message-ID: <4B9F9CB8.6080202@scilab.org> This only other solution I see is to write a C-interface, to transfer all the blocks from the diagonal and to perform the computation using C functions. Do you have a script which produce such a matrix ? YC Collewet Guylaine a ?crit : > > >Stupid question first: do you have tested to store your big matrix in a > >sparse matrix ? > >stacksize('max') > >B = spzeros(1e6,1e6); > >// Store the matrix > >Binv = inv(B); > > > > Yes, I have already tested this solution > But Binv = inv(B) is time consuming too when the size of the matrix is > high > I guess that this way does not take advantage of the fact that the > matrix is block diagonal > > > Guylaine > > > > -------- Message d'origine-------- > De: Collette yann [mailto:yann.collette at scilab.org] > Date: mar. 16/03/2010 15:41 > ?: users at lists.scilab.org > Objet : Re: [scilab-Users] inversion of a huge block diagonal matrix > > Collewet Guylaine a ?crit : > > > > Hello, > > > > I would like to compute the inverse of a huge block diagonal matrix > > using an efficient way. > > > > Each block is a square matrix with NxN dimension and the block > > diagonal matrix dimension is NLxNL > > N is small (5 or 6) and L is big (1e6) > > > > One way is to build a loop and to compute L times the inversion of the > > NxN matrixes > > However, as L is big (for example 1e6) this is too much time consuming > > > > Does anyone has an idea to compute this using scilab ? > > > > Thank you for your help > > > > Guylaine Collewet > > guylaine.collewet at cemagref.fr > > +33223482167 > > > > > Stupid question first: do you have tested to store your big matrix in a > sparse matrix ? > stacksize('max') > B = spzeros(1e6,1e6); > // Store the matrix > Binv = inv(B); > > YC > > From guylaine.collewet at cemagref.fr Tue Mar 16 16:10:13 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 16 Mar 2010 16:10:13 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D__inversion_of_a_huge_block_dia?= =?iso-8859-1?Q?gonal_matrix?= References: <4B9F98A1.6050509@scilab.org> <4B9F9CB8.6080202@scilab.org> Message-ID: yes, please find attached the script which produces a block diagonal matrix GC -------- Message d'origine-------- De: Collette yann [mailto:yann.collette at scilab.org] Date: mar. 16/03/2010 15:59 ?: users at lists.scilab.org Objet : [scilab-Users] Re: RE : [scilab-Users] inversion of a huge block diagonal matrix This only other solution I see is to write a C-interface, to transfer all the blocks from the diagonal and to perform the computation using C functions. Do you have a script which produce such a matrix ? YC Collewet Guylaine a ?crit : > > >Stupid question first: do you have tested to store your big matrix in a > >sparse matrix ? > >stacksize('max') > >B = spzeros(1e6,1e6); > >// Store the matrix > >Binv = inv(B); > > > > Yes, I have already tested this solution > But Binv = inv(B) is time consuming too when the size of the matrix is > high > I guess that this way does not take advantage of the fact that the > matrix is block diagonal > > > Guylaine > > > > -------- Message d'origine-------- > De: Collette yann [mailto:yann.collette at scilab.org] > Date: mar. 16/03/2010 15:41 > ?: users at lists.scilab.org > Objet : Re: [scilab-Users] inversion of a huge block diagonal matrix > > Collewet Guylaine a ?crit : > > > > Hello, > > > > I would like to compute the inverse of a huge block diagonal matrix > > using an efficient way. > > > > Each block is a square matrix with NxN dimension and the block > > diagonal matrix dimension is NLxNL > > N is small (5 or 6) and L is big (1e6) > > > > One way is to build a loop and to compute L times the inversion of the > > NxN matrixes > > However, as L is big (for example 1e6) this is too much time consuming > > > > Does anyone has an idea to compute this using scilab ? > > > > Thank you for your help > > > > Guylaine Collewet > > guylaine.collewet at cemagref.fr > > +33223482167 > > > > > Stupid question first: do you have tested to store your big matrix in a > sparse matrix ? > stacksize('max') > B = spzeros(1e6,1e6); > // Store the matrix > Binv = inv(B); > > YC > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: block_diagonal_matrix_construction.sce Type: application/octet-stream Size: 347 bytes Desc: block_diagonal_matrix_construction.sce URL: From yann.collette at scilab.org Tue Mar 16 16:23:34 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 16 Mar 2010 16:23:34 +0100 Subject: [scilab-Users] inversion of a huge block diagonal matrix In-Reply-To: References: <4B9F98A1.6050509@scilab.org> <4B9F9CB8.6080202@scilab.org> Message-ID: <4B9FA276.2020507@scilab.org> Thanks for the script. Is it possible for you to perform the inversion of the matrix A while generating this matrix ? YC Collewet Guylaine a ?crit : > > yes, > please find attached the script which produces a block diagonal matrix > > GC > > > -------- Message d'origine-------- > De: Collette yann [mailto:yann.collette at scilab.org] > Date: mar. 16/03/2010 15:59 > ?: users at lists.scilab.org > Objet : [scilab-Users] Re: RE : [scilab-Users] inversion of a huge > block diagonal matrix > > This only other solution I see is to write a C-interface, to transfer > all the blocks from the diagonal and to perform the computation using C > functions. > Do you have a script which produce such a matrix ? > > YC > From yann.collette at scilab.org Tue Mar 16 16:35:02 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 16 Mar 2010 16:35:02 +0100 Subject: [scilab-Users] Re: RE : [scilab-Users] inversion of a huge block diagonal matrix In-Reply-To: <4B9FA276.2020507@scilab.org> References: <4B9F98A1.6050509@scilab.org> <4B9F9CB8.6080202@scilab.org> <4B9FA276.2020507@scilab.org> Message-ID: <4B9FA526.6000506@scilab.org> I performed a small computation: a 5x5 matrix * 1e6 blocks * 8 octect = 200 Mo. Plus some copies of this matrix (when you pass a parameter to a scilab function, this parameter is copied). So, we are near the memory limit of Scilab (1Go for the scilab-5 version). Do you use this script to produce your matrix ? If yes, how much time does it takes on your PC ? YC Collette yann a ?crit : > Thanks for the script. > Is it possible for you to perform the inversion of the matrix A while > generating this matrix ? > > YC > > Collewet Guylaine a ?crit : >> >> yes, >> please find attached the script which produces a block diagonal matrix >> >> GC >> >> >> -------- Message d'origine-------- >> De: Collette yann [mailto:yann.collette at scilab.org] >> Date: mar. 16/03/2010 15:59 >> ?: users at lists.scilab.org >> Objet : [scilab-Users] Re: RE : [scilab-Users] inversion of a huge >> block diagonal matrix >> >> This only other solution I see is to write a C-interface, to transfer >> all the blocks from the diagonal and to perform the computation using C >> functions. >> Do you have a script which produce such a matrix ? >> >> YC >> > From guylaine.collewet at cemagref.fr Tue Mar 16 16:41:00 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 16 Mar 2010 16:41:00 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_Re=3A_RE_=3A_=5Bscilab-Use?= =?iso-8859-1?Q?rs=5D__inversion_of_a_huge_block_diagonal_matrix?= References: <4B9F98A1.6050509@scilab.org> <4B9F9CB8.6080202@scilab.org> <4B9FA276.2020507@scilab.org> <4B9FA526.6000506@scilab.org> Message-ID: I do not use this script to produce the matrix I am sorry, it is not efficient at all ! I guess i should find a "vectoriel" way to do the same GC -------- Message d'origine-------- De: Collette yann [mailto:yann.collette at scilab.org] Date: mar. 16/03/2010 16:35 ?: users at lists.scilab.org Objet : Re: [scilab-Users] Re: RE : [scilab-Users] inversion of a huge block diagonal matrix I performed a small computation: a 5x5 matrix * 1e6 blocks * 8 octect = 200 Mo. Plus some copies of this matrix (when you pass a parameter to a scilab function, this parameter is copied). So, we are near the memory limit of Scilab (1Go for the scilab-5 version). Do you use this script to produce your matrix ? If yes, how much time does it takes on your PC ? YC Collette yann a ?crit : > Thanks for the script. > Is it possible for you to perform the inversion of the matrix A while > generating this matrix ? > > YC > > Collewet Guylaine a ?crit : >> >> yes, >> please find attached the script which produces a block diagonal matrix >> >> GC >> >> >> -------- Message d'origine-------- >> De: Collette yann [mailto:yann.collette at scilab.org] >> Date: mar. 16/03/2010 15:59 >> ?: users at lists.scilab.org >> Objet : [scilab-Users] Re: RE : [scilab-Users] inversion of a huge >> block diagonal matrix >> >> This only other solution I see is to write a C-interface, to transfer >> all the blocks from the diagonal and to perform the computation using C >> functions. >> Do you have a script which produce such a matrix ? >> >> YC >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3743 bytes Desc: not available URL: From mathieu.dubois at limsi.fr Tue Mar 16 17:21:23 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 16 Mar 2010 17:21:23 +0100 Subject: [scilab-Users] Error code opening xls file In-Reply-To: <4B9E5C25.9000207@gmail.com> References: <4B9E5C25.9000207@gmail.com> Message-ID: <4B9FB003.2060607@limsi.fr> Hello Marco, > During file opening with library function xls_open I obtain an error > message: > > [fd, sst, sheetname, sheetpos] = > xls_open('c:/documenti/sistemi/leggi/iso_sistemi/utilities/calls.xls'); > > !--error 999 > > XLS file I'm trying to open inside Scilab is 38 Mbyte: is it too much > big for this function? I used xls_open in order to open smallest xls > file with no problem. > > What does 999 error code mean? From file scilab-5.2.1/modules/spreadsheet/sci_gateway/c you can see that error 999 is used either if your input argument is not a string or if the file doesn't exists... I think the second option applies to your case. I don't think that xls_open can be used to create an Excel file... To operate with Excel you probably have to use CSV files... HTH, Mathieu From Samuel.Gougeon at univ-lemans.fr Tue Mar 16 20:44:41 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 16 Mar 2010 20:44:41 +0100 Subject: [scilab-Users] Error code opening xls file In-Reply-To: <4B9E5C25.9000207@gmail.com> References: <4B9E5C25.9000207@gmail.com> Message-ID: <4B9FDFA9.5020606@univ-lemans.fr> ----- Message d'origine ----- De : Marco Marchi - Gmail Date : 15/03/2010 17:11: > Hello everybody, > > I'm writing a script to process an Excel file. > During file opening with library function xls_open I obtain an error > message: > > [fd, sst, sheetname, sheetpos] = > xls_open('c:/documenti/sistemi/leggi/iso_sistemi/utilities/calls.xls'); > > !--error 999 > > XLS file I'm trying to open inside Scilab is 38 Mbyte: is it too much > big for this function? I used xls_open in order to open smallest xls > file with no problem. Did you try with readxls() (that uses xls_read() ) ? By the way, the help page tells that there are some restrictions about the file format: "Warning only BIFF8 Excel files (last Excel file version) are handled" To be checked, or converted. HTH Samuel From jovana.raskov at gmail.com Wed Mar 17 13:13:45 2010 From: jovana.raskov at gmail.com (Jovana Raskov) Date: Wed, 17 Mar 2010 13:13:45 +0100 Subject: Scilab in batch mode Message-ID: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> Dear Madam or Sir, I am writing you in order to ask for some assistance regarding working with Scilab. I have a problem with calling Scilab program in Command Prompt. I am using Scilab 5.2.0 under Windows Vista Home Premium environment. I have two scripts in Scilab - *eigen.sce* and *testahp.sce*. *Eigen.sce*, first of them, reads data from xls file, does calculations and puts results in csv file and *testahp.sce*, the second one, calls it with specified values that represent input parameters for *eigen.sce* (relative weight and paths to xls and csv files). *Testahp.sce* does not have input or output parameters. I have to call *testahp.sce* from Command Prompt by using a batch file, but when Scilab starts up I am asked to enter command in Scilab prompt, in this case - *testahp()* and in that way everything is fine. However, I need it to be executed automatically and I really cannot solve that problem. When I am calling program in command line with: *scilex -nwni -f testahp.sce* it does not exactly execute function, it seems that it only compile function. I am not sure that I am using correct syntax for doing that. Would you be so kind as to give me some instructions how to override this situation. I would appreciate any suggestion. Thank you in advance. Yours faithfully , Jovana Raskov -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Mar 18 08:44:35 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 08:44:35 +0100 Subject: ATOMS and proxy In-Reply-To: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> Message-ID: <4BA1D9E3.2010406@utc.fr> H i all, is supposed ATOMS support connections over a proxy server ? S. From Samuel.Gougeon at univ-lemans.fr Thu Mar 18 09:21:47 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 18 Mar 2010 09:21:47 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1D9E3.2010406@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> Message-ID: <4BA1E29B.9050801@univ-lemans.fr> Hi St?phane, ----- Message d'origine ----- De : St??phane Mottelet Date : 18/03/2010 08:44: > H i all, > > is supposed ATOMS support connections over a proxy server ? > > S. Yes it can. There are 2 ways for doing that: * To enable support for proxy by any usage of CURL embedded into Scilab -- so in particular for ATOMS --, add a text file named and located at SCI\tools\curl\_curlrc with a line (example) proxy = clio2.univ-lemans.fr:3128 giving the adress and port of the proxy to be used. * To configure only ATOMS for proxy (and other things) : use atomsSetConfig() HTH Samuel From stephane.mottelet at utc.fr Thu Mar 18 09:35:33 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 09:35:33 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1E29B.9050801@univ-lemans.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> Message-ID: <4BA1E5D5.2060906@utc.fr> Samuel Gougeon a ?crit : > Hi St?phane, > > ----- Message d'origine ----- > De : St??phane Mottelet > Date : 18/03/2010 08:44: >> H i all, >> >> is supposed ATOMS support connections over a proxy server ? >> >> S. > Yes it can. There are 2 ways for doing that: > * To enable support for proxy by any usage of CURL embedded into > Scilab -- so in particular for ATOMS --, add a text file named and > located > at SCI\tools\curl\_curlrc > with a line (example) > proxy = clio2.univ-lemans.fr:3128 > giving the adress and port of the proxy to be used. > * To configure only ATOMS for proxy (and other things) : use > atomsSetConfig() > > HTH > Samuel > Hi Samuel, I had already tried the second solution and was wondering if I missed something, but even the second solution does not seem to work. I have put in my .scilab : atomsSetConfig('useProxy','true') atomsSetConfig('proxyHost','proxyweb.utc.fr') atomsSetConfig('proxyPort','3128') and also created the curl folder in SCI/tools (it didn't exist before) and typed within : proxy = proxyweb.utc.fr:3128 Atoms still complains about my internet connection. S. From Samuel.Gougeon at univ-lemans.fr Thu Mar 18 09:57:54 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 18 Mar 2010 09:57:54 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1E5D5.2060906@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> Message-ID: <4BA1EB12.6040806@univ-lemans.fr> ----- Message d'origine ----- De : St??phane Mottelet Date : 18/03/2010 09:35: > .../... > > and also created the curl folder in SCI/tools (it didn't exist before) These indications were for the Windowsed distribution, in which SCI\tools and sub-directories are included. For Linux and MacOSX, things are apparently different. If CURL is also used on these plateforms, one has to find its installation directory. Then, on linux you may try: man curl and man curl-config SG From pierre.marechal at scilab.org Thu Mar 18 10:08:38 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 18 Mar 2010 10:08:38 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1E5D5.2060906@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> Message-ID: <4BA1ED96.1070300@scilab.org> Le 18/03/2010 09:35, St??phane Mottelet a ?crit : > Samuel Gougeon a ?crit : >> Hi St?phane, >> >> ----- Message d'origine ----- >> De : St??phane Mottelet >> Date : 18/03/2010 08:44: >>> H i all, >>> >>> is supposed ATOMS support connections over a proxy server ? >>> >>> S. >> Yes it can. There are 2 ways for doing that: >> * To enable support for proxy by any usage of CURL embedded into >> Scilab -- so in particular for ATOMS --, add a text file named and >> located >> at SCI\tools\curl\_curlrc >> with a line (example) >> proxy = clio2.univ-lemans.fr:3128 >> giving the adress and port of the proxy to be used. >> * To configure only ATOMS for proxy (and other things) : use >> atomsSetConfig() >> >> HTH >> Samuel >> > Hi Samuel, > > I had already tried the second solution and was wondering if I missed > something, > but even the second solution does not seem to work. I have put in my > .scilab : > > atomsSetConfig('useProxy','true') > atomsSetConfig('proxyHost','proxyweb.utc.fr') > atomsSetConfig('proxyPort','3128') > > and also created the curl folder in SCI/tools (it didn't exist before) > and typed within : > > proxy = proxyweb.utc.fr:3128 > > Atoms still complains about my internet connection. > > S. Hi St?phane, Which OS are you using? //Can you send me the output of this command: mgetl(SCIHOME+'/.atoms/config') Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Mar 18 10:18:57 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 10:18:57 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1ED96.1070300@scilab.org> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> Message-ID: <4BA1F001.80609@utc.fr> Pierre MARECHAL a ?crit : > Le 18/03/2010 09:35, St??phane Mottelet a ?crit : >> Samuel Gougeon a ?crit : >>> Hi St?phane, >>> >>> ----- Message d'origine ----- >>> De : St??phane Mottelet >>> Date : 18/03/2010 08:44: >>>> H i all, >>>> >>>> is supposed ATOMS support connections over a proxy server ? >>>> >>>> S. >>> Yes it can. There are 2 ways for doing that: >>> * To enable support for proxy by any usage of CURL embedded into >>> Scilab -- so in particular for ATOMS --, add a text file named and >>> located >>> at SCI\tools\curl\_curlrc >>> with a line (example) >>> proxy = clio2.univ-lemans.fr:3128 >>> giving the adress and port of the proxy to be used. >>> * To configure only ATOMS for proxy (and other things) : use >>> atomsSetConfig() >>> >>> HTH >>> Samuel >>> >> Hi Samuel, >> >> I had already tried the second solution and was wondering if I missed >> something, >> but even the second solution does not seem to work. I have put in my >> .scilab : >> >> atomsSetConfig('useProxy','true') >> atomsSetConfig('proxyHost','proxyweb.utc.fr') >> atomsSetConfig('proxyPort','3128') >> >> and also created the curl folder in SCI/tools (it didn't exist >> before) and typed within : >> >> proxy = proxyweb.utc.fr:3128 >> >> Atoms still complains about my internet connection. >> >> S. > > Hi St?phane, > > Which OS are you using? OSX, with scilab-master-1267116527 > > //Can you send me the output of this command: > mgetl(SCIHOME+'/.atoms/config') > > Pierre -->mgetl(SCIHOME+'/.atoms/config') ans = !useProxy = true ! ! ! !proxyPort = 3128 ! ! ! !proxyHost = proxyweb.utc.fr ! S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Thu Mar 18 10:36:32 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 18 Mar 2010 10:36:32 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1F001.80609@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> Message-ID: <4BA1F420.2080702@scilab.org> Le 18/03/2010 10:18, St??phane Mottelet a ?crit : > Pierre MARECHAL a ?crit : >> Le 18/03/2010 09:35, St??phane Mottelet a ?crit : >>> Samuel Gougeon a ?crit : >>>> Hi St?phane, >>>> >>>> ----- Message d'origine ----- >>>> De : St??phane Mottelet >>>> Date : 18/03/2010 08:44: >>>>> H i all, >>>>> >>>>> is supposed ATOMS support connections over a proxy server ? >>>>> >>>>> S. >>>> Yes it can. There are 2 ways for doing that: >>>> * To enable support for proxy by any usage of CURL embedded into >>>> Scilab -- so in particular for ATOMS --, add a text file named and >>>> located >>>> at SCI\tools\curl\_curlrc >>>> with a line (example) >>>> proxy = clio2.univ-lemans.fr:3128 >>>> giving the adress and port of the proxy to be used. >>>> * To configure only ATOMS for proxy (and other things) : use >>>> atomsSetConfig() >>>> >>>> HTH >>>> Samuel >>>> >>> Hi Samuel, >>> >>> I had already tried the second solution and was wondering if I >>> missed something, >>> but even the second solution does not seem to work. I have put in >>> my .scilab : >>> >>> atomsSetConfig('useProxy','true') >>> atomsSetConfig('proxyHost','proxyweb.utc.fr') >>> atomsSetConfig('proxyPort','3128') >>> >>> and also created the curl folder in SCI/tools (it didn't exist >>> before) and typed within : >>> >>> proxy = proxyweb.utc.fr:3128 >>> >>> Atoms still complains about my internet connection. >>> >>> S. >> >> Hi St?phane, >> >> Which OS are you using? > OSX, with scilab-master-1267116527 > >> >> //Can you send me the output of this command: >> mgetl(SCIHOME+'/.atoms/config') >> >> Pierre > -->mgetl(SCIHOME+'/.atoms/config') > ans = > > !useProxy = true ! > ! ! > !proxyPort = 3128 ! > ! ! > !proxyHost = proxyweb.utc.fr ! > > S. useProxy configuration is case sensitive: atomsSetConfig('useProxy','True') should fix the problem. Then, if you are using the MacOSX version, atomsDownload() uses Curl. If it doesn't work, can you test the following command: [$SHELL] curl --proxy proxyweb.utc.fr:3128 --connect-timeout 5 -s http://atoms.scilab.org/TOOLBOXES/32/macosx.gz -o /private/tmp/TOOLBOXES.gz Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Mar 18 11:36:32 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 11:36:32 +0100 Subject: Plotlib 0.4 In-Reply-To: <4BA1F420.2080702@scilab.org> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> Message-ID: <4BA20230.1070806@utc.fr> Hi all, I am proud to announce the release of Plotlib 0.4 This new version is, more that ever, dedicated to Matlab users planning to switch to Scilab. The new features of the plotlib gives further compatibility with Matlab graphics. Follow this link to see the new features : http://www.lmac.utc.fr/~mottelet/plotlib/html-0.4/en_US/xxxxx_plotlib.html and this one to see a bunch of screenshots : For the moment this version does not support older versions of Scilab (the required version is scilab >=5.2 and some features, in particular the overloading of 'set' and 'get', need the nightly build of master branch), but the porting to ScicosLab should be easy (the main problem is about Scilab 5 graphic properties which do not exist or behave differently in ScicosLab). The plotlib will we available thru ATOMS in a few days, in the meantime, please use the following links : Linux/Unix users : http://www.lmac.utc.fr/~mottelet/plotlib/plotlib040.tgz Windows users : http://www.lmac.utc.fr/~mottelet/plotlib/plotlib040.zip I hope that prospective Scilab users will find what they need in the Plotlib. Of course, many features are missing, but the most important high-level commands are available. Actually, some of these new features may break some scripts using actual Scilab graphics. But the Plotlib should now give you enough low-level control (by means of the overloaded 'set' and 'get' macros) so that you won't need to mix native Scilab graphic commands and Plotlib ones. If you use the Plotlib and find any bugs or need some features which are missing, just le me know. Enjoy ! S. From stephane.mottelet at utc.fr Thu Mar 18 11:41:38 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 11:41:38 +0100 Subject: [scilab-Users] Plotlib 0.4 In-Reply-To: <4BA20230.1070806@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> <4BA20230.1070806@utc.fr> Message-ID: <4BA20362.7080707@utc.fr> St??phane Mottelet a ?crit : > Hi all, > > I am proud to announce the release of Plotlib 0.4 > > This new version is, more that ever, dedicated to Matlab users > planning to switch > to Scilab. The new features of the plotlib gives further compatibility > with Matlab graphics. > Follow this link to see the new features : > > http://www.lmac.utc.fr/~mottelet/plotlib/html-0.4/en_US/xxxxx_plotlib.html > > > and this one to see a bunch of screenshots : > > > For the moment this version does not support older versions of Scilab > (the required > version is scilab >=5.2 and some features, in particular the > overloading of 'set' and 'get', > need the nightly build of master branch), but the porting to ScicosLab > should be > easy (the main problem is about Scilab 5 graphic properties which do > not exist or behave > differently in ScicosLab). > > The plotlib will we available thru ATOMS in a few days, in the > meantime, please use > the following links : > > Linux/Unix users : > http://www.lmac.utc.fr/~mottelet/plotlib/plotlib040.tgz > Windows users : http://www.lmac.utc.fr/~mottelet/plotlib/plotlib040.zip > > I hope that prospective Scilab users will find what they need in the > Plotlib. Of course, > many features are missing, but the most important high-level commands > are available. > > Actually, some of these new features may break some scripts using > actual Scilab > graphics. But the Plotlib should now give you enough low-level control > (by means > of the overloaded 'set' and 'get' macros) so that you won't need to > mix native Scilab > graphic commands and Plotlib ones. > > If you use the Plotlib and find any bugs or need some features which > are missing, > just le me know. > > Enjoy ! > > S. > > > I forgot to give you the URL of the main plotlib page : http://www.lmac.utc.fr/~mottelet/plotlib.html S. From stephane.mottelet at utc.fr Thu Mar 18 13:57:52 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 13:57:52 +0100 Subject: [scilab-Users] ATOMS and proxy In-Reply-To: <4BA1F420.2080702@scilab.org> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> Message-ID: <4BA22350.2040306@utc.fr> Pierre MARECHAL a ?crit : >> >> S. > > useProxy configuration is case sensitive: > atomsSetConfig('useProxy','True') should fix the problem. > Thanks Pierre, now it works like a charm... S. > Pierre > -- > ============================================== > Pierre MARECHAL > Ing?nieur Support et D?veloppements > ------ > Consortium Scilab > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > ------ > T?l : +33.1.39.63.56.81 > ============================================== > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Thu Mar 18 14:09:45 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Thu, 18 Mar 2010 14:09:45 +0100 (CET) Subject: Problem in datafit In-Reply-To: <728582618.787671268917638673.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <853208187.788071268917785591.JavaMail.root@zimbra26-e5.priv.proxad.net> All, Because of number format (7 number max after the coma), the fitting procedure does not work. a) How can I change this (in scientific format) so that the accuraty will be much better ? ... .... this is as well a more general question since i noticed some differences between scilab & execl for example. b) Another quick question : how can I empty the memory when I load the program into scilab ? Thanks in advance Regards PC NOTA : A) results with scilab A4 = 0.0000007 A3 = - 0.0005218 A2 = 0.0992867 A1 = 0.0999960 A0 = 0.1000000 B) results with excel A4 = 1,69554208131564E-10 A3 = - 2,40171747292364E-07 A2 = + 1,75093556498441E-04 A1 = + 2,95982648914725E-03 A0 = - 9,92576614662815E+00 -------------- next part -------------- A non-text attachment was scrubbed... Name: test.sce Type: application/octet-stream Size: 1059 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Thu Mar 18 14:15:51 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Mar 2010 14:15:51 +0100 Subject: [scilab-Users] Plotlib 0.4 In-Reply-To: <4BA20230.1070806@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> <4BA20230.1070806@utc.fr> Message-ID: <1268918151.4054.415.camel@zlarin> Salut St?phane, Le jeudi 18 mars 2010 ? 11:36 +0100, St??phane Mottelet a ?crit : > Hi all, > > I am proud to announce the release of Plotlib 0.4 > If you use the Plotlib and find any bugs or need some features which are > missing, just le me know. Nice work! Embedding screenshot is just great! Three questions/comments: * You should enable the anti_aliasing when taking the screenshot, the result is way better. For example: [u,v]=meshgrid(linspace(0,%pi,30),linspace(0,%pi,30)); mesh(sin(v).*cos(u),sin(v).*sin(u),cos(v),'edgecolor','blue'); hold on mesh(sin(v).*cos(u),1-sin(v).*sin(u),cos(v),'edgecolor','red'); hold off axis equal axis([-1 1 -1 2 -1 1]) h=gcf(); h.anti_aliasing="8x"; CF screenshot compare to: http://www.lmac.utc.fr/~mottelet/plotlib/html-0.4/en_US/mesh.png * Could you apply the patch: http://svn.debian.org/viewsvn/debian-science/packages/scilab-toolboxes/plotlib/trunk/debian/patches/plotlibLoad.diff?view=markup it will work better (macros/lib has some hardcoded stuff on build time) and this file will probably disappear in Scilab 6. * Finally, I uploaded this release into Debian. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -------------- next part -------------- A non-text attachment was scrubbed... Name: anti_aliasing.jpg Type: image/jpeg Size: 39259 bytes Desc: not available URL: From stephane.mottelet at utc.fr Thu Mar 18 14:18:33 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Thu, 18 Mar 2010 14:18:33 +0100 Subject: [scilab-Users] Plotlib 0.4 In-Reply-To: <1268918151.4054.415.camel@zlarin> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> <4BA20230.1070806@utc.fr> <1268918151.4054.415.camel@zlarin> Message-ID: <4BA22829.3010100@utc.fr> Sylvestre Ledru a ?crit : > Salut St?phane, > > Le jeudi 18 mars 2010 ? 11:36 +0100, St??phane Mottelet a ?crit : > >> Hi all, >> >> I am proud to announce the release of Plotlib 0.4 >> If you use the Plotlib and find any bugs or need some features which are >> missing, just le me know. >> > Nice work! Embedding screenshot is just great! > > Three questions/comments: > * You should enable the anti_aliasing when taking the screenshot, the > result is way better. > For example: > > [u,v]=meshgrid(linspace(0,%pi,30),linspace(0,%pi,30)); > mesh(sin(v).*cos(u),sin(v).*sin(u),cos(v),'edgecolor','blue'); > hold on > mesh(sin(v).*cos(u),1-sin(v).*sin(u),cos(v),'edgecolor','red'); > hold off > axis equal > axis([-1 1 -1 2 -1 1]) > > h=gcf(); > h.anti_aliasing="8x"; > CF screenshot > compare to: > http://www.lmac.utc.fr/~mottelet/plotlib/html-0.4/en_US/mesh.png > > > * Could you apply the patch: > http://svn.debian.org/viewsvn/debian-science/packages/scilab-toolboxes/plotlib/trunk/debian/patches/plotlibLoad.diff?view=markup > it will work better (macros/lib has some hardcoded stuff on build time) > and this file will probably disappear in Scilab 6. > > * Finally, I uploaded this release into Debian. > maybe everything needs more testing before, don't you think so ? > Sylvestre > > > > > ------------------------------------------------------------------------ > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 39259 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Thu Mar 18 14:26:43 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Mar 2010 14:26:43 +0100 Subject: [scilab-Users] Plotlib 0.4 In-Reply-To: <4BA22829.3010100@utc.fr> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> <4BA1D9E3.2010406@utc.fr> <4BA1E29B.9050801@univ-lemans.fr> <4BA1E5D5.2060906@utc.fr> <4BA1ED96.1070300@scilab.org> <4BA1F001.80609@utc.fr> <4BA1F420.2080702@scilab.org> <4BA20230.1070806@utc.fr> <1268918151.4054.415.camel@zlarin> <4BA22829.3010100@utc.fr> Message-ID: <1268918803.4054.434.camel@zlarin> Le jeudi 18 mars 2010 ? 14:18 +0100, St??phane Mottelet a ?crit : > Sylvestre Ledru a ?crit : > > Salut St?phane, > > > > Le jeudi 18 mars 2010 ? 11:36 +0100, St??phane Mottelet a ?crit : > > > > > Hi all, > > > > > > I am proud to announce the release of Plotlib 0.4 > > > If you use the Plotlib and find any bugs or need some features which are > > > missing, just le me know. > > > > > Nice work! Embedding screenshot is just great! > > > > Three questions/comments: > > * You should enable the anti_aliasing when taking the screenshot, the > > result is way better. > > For example: > > > > [u,v]=meshgrid(linspace(0,%pi,30),linspace(0,%pi,30)); > > mesh(sin(v).*cos(u),sin(v).*sin(u),cos(v),'edgecolor','blue'); > > hold on > > mesh(sin(v).*cos(u),1-sin(v).*sin(u),cos(v),'edgecolor','red'); > > hold off > > axis equal > > axis([-1 1 -1 2 -1 1]) > > > > h=gcf(); > > h.anti_aliasing="8x"; > > CF screenshot > > compare to: > > http://www.lmac.utc.fr/~mottelet/plotlib/html-0.4/en_US/mesh.png > > > > > > * Could you apply the patch: > > http://svn.debian.org/viewsvn/debian-science/packages/scilab-toolboxes/plotlib/trunk/debian/patches/plotlibLoad.diff?view=markup > > it will work better (macros/lib has some hardcoded stuff on build time) > > and this file will probably disappear in Scilab 6. > > > > * Finally, I uploaded this release into Debian. > > > maybe everything needs more testing before, don't you think so ? Well, it is a new release, to me, it deserves to be uploaded ;) Sylvestre From sylvestre.ledru at scilab.org Thu Mar 18 14:29:16 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 18 Mar 2010 14:29:16 +0100 Subject: [scilab-Users] Scilab in batch mode In-Reply-To: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> References: <4f80778a1003170513q25fa4537w6edc2743063050d6@mail.gmail.com> Message-ID: <1268918956.4054.440.camel@zlarin> Le mercredi 17 mars 2010 ? 13:13 +0100, Jovana Raskov a ?crit : > Dear Madam or Sir, > > > I am writing you in order to ask for some assistance regarding working > with Scilab. > > I have a problem with calling Scilab program in Command Prompt. I am > using Scilab 5.2.0 under Windows Vista Home Premium environment. > > > I have two scripts in Scilab - eigen.sce and testahp.sce. Eigen.sce, > first of them, reads data from xls file, does calculations and puts > results in csv file and testahp.sce, the second one, calls it with > specified values that represent input parameters for eigen.sce > (relative weight and paths to xls and csv files). Testahp.sce does not > have input or output parameters. > > > I have to call testahp.sce from Command Prompt by using a batch file, > but when Scilab starts up I am asked to enter command in Scilab > prompt, in this case - testahp() and in that way everything is fine. > However, I need it to be executed automatically and I really cannot > solve that problem. When I am calling program in command line > with: scilex -nwni -f testahp.sce it does not exactly execute > function, it seems that it only compile function. I am not sure that I > am using correct syntax for doing that. I am not exactly sure to understand what you need but you could write a script "run_me.sci". In this file, you could load your functions (with exec) and call them from this script. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From caquineau at bassin.fr Thu Mar 18 15:13:22 2010 From: caquineau at bassin.fr (caquineau) Date: Thu, 18 Mar 2010 15:13:22 +0100 Subject: Reading and import big file ascii (300Mo) Message-ID: <1268921602.32487.11.camel@localhost.localdomain> Hello i would import data from ascii files witch size > 200 Mo with command d=mfscanf(-1,f,format) Scilab abort with "error memory". I put the command stacksize('max') and gstacksize('max'). The PC has 4 Go of ram.scilab stop with about 800 Mo of occupation memory. May i have the limit size memory of scilab? Thank you From BlanchardJ at ieee.org Thu Mar 18 15:16:03 2010 From: BlanchardJ at ieee.org (Jonathan Blanchard) Date: Thu, 18 Mar 2010 11:16:03 -0300 Subject: [scilab-Users] Reading and import big file ascii (300Mo) In-Reply-To: <1268921602.32487.11.camel@localhost.localdomain> References: <1268921602.32487.11.camel@localhost.localdomain> Message-ID: On Thu, Mar 18, 2010 at 11:13 AM, caquineau wrote: > Hello > > i would import data from ascii files witch size ?> 200 Mo with command > ? ? ? ?d=mfscanf(-1,f,format) > > Scilab abort with "error memory". > I put the command stacksize('max') and gstacksize('max'). > The PC has 4 Go of ram.scilab stop with about 800 Mo of occupation > memory. > May i have the limit size memory of scilab? > Thank you > > Stacksize('max') is not always accurate you may want to try setting the stack size a fixed number large enough to hold all the data you need to import. Jonathan Blanchard From Samuel.Gougeon at univ-lemans.fr Thu Mar 18 17:26:31 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 18 Mar 2010 17:26:31 +0100 Subject: [scilab-Users] Problem in datafit In-Reply-To: <853208187.788071268917785591.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <853208187.788071268917785591.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4BA25437.7090800@univ-lemans.fr> ----- Message d'origine ----- De : paul.carrico at free.fr Date : 18/03/2010 14:09: > All, > > Because of number format (7 number max after the coma), the fitting procedure does not work. > The number of digits displayed for numbers, and the floating point or scientific format -- that can be tuned thanks to the format() function -- has no effect on calculation accuracy. Calculations are always done at full accuracy. The relative accuracy for scilab calculations is %eps. For engineering format : format("e"). See help format > a) How can I change this (in scientific format) so that the accuraty will be much better ? ... > > .... this is as well a more general question since i noticed some differences between scilab & execl for example. > > b) Another quick question : how can I empty the memory when I load the program into scilab ? > I don't clearly understand what you mean. Variables can be erased (and then memory is disallocated) with "clear". See help clear For graphical objects, delete() must be used. SG From paul.carrico at esterline.com Fri Mar 19 10:45:49 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 19 Mar 2010 10:45:49 +0100 Subject: [scilab-Users] Problem in datafit In-Reply-To: <4BA25437.7090800@univ-lemans.fr> References: <853208187.788071268917785591.JavaMail.root@zimbra26-e5.priv.proxad.net> <4BA25437.7090800@univ-lemans.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF0@exchsrv.AUXITROL1> Hi, Thanks for this first answer ... However : A) I noticed result differences between Excel and Scilab ... I can imagine that numbers are codded differently in Excel ! I'll have a look in the help file to change the format numbers B) By "how to empty memory" => I noticed that when I launch several times the same program, some parameters have been remaining in memory (and if I'm changing something in a debbug step, sometimes the mistake appears afterward i.e. after closing and re-opening Scilab) => so does it exist like "del memory" that I put on the top of the program ? Regards PC -----Message d'origine----- De : Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Envoy? : jeudi 18 mars 2010 17:27 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Problem in datafit ----- Message d'origine ----- De : paul.carrico at free.fr Date : 18/03/2010 14:09: > All, > > Because of number format (7 number max after the coma), the fitting procedure does not work. > The number of digits displayed for numbers, and the floating point or scientific format -- that can be tuned thanks to the format() function -- has no effect on calculation accuracy. Calculations are always done at full accuracy. The relative accuracy for scilab calculations is %eps. For engineering format : format("e"). See help format > a) How can I change this (in scientific format) so that the accuraty will be much better ? ... > > .... this is as well a more general question since i noticed some differences between scilab & execl for example. > > b) Another quick question : how can I empty the memory when I load the program into scilab ? > I don't clearly understand what you mean. Variables can be erased (and then memory is disallocated) with "clear". See help clear For graphical objects, delete() must be used. SG -------------------------------------------------------------------------------- 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 Samuel.Gougeon at univ-lemans.fr Fri Mar 19 12:41:53 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 19 Mar 2010 12:41:53 +0100 Subject: [scilab-Users] Problem in datafit In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF0@exchsrv.AUXITROL1> References: <853208187.788071268917785591.JavaMail.root@zimbra26-e5.priv.proxad.net> <4BA25437.7090800@univ-lemans.fr> <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF0@exchsrv.AUXITROL1> Message-ID: <4BA36301.5070709@univ-lemans.fr> Hi Paul, ----- Message d'origine ----- De : Carrico, Paul Date : 19/03/2010 10:45: > => so does it exist like "del memory" that I put on the top of the program ? > clear; clears all Scilab variables defined at the current execution level, except the protected ones. Moreover, clearglobal(); clears all Scilab unprotected variables defined at the global level. SG From paul.carrico at esterline.com Fri Mar 19 14:47:43 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 19 Mar 2010 14:47:43 +0100 Subject: text editor Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF4@exchsrv.AUXITROL1> All (again) I switched from the 5.2.0 to the latest release ... as for some people I was disappointed with some text editor features missing (parenthesis / function name in color and so on). As written in a previous mail (see bellow), we've to expect to the new release .. I re-installed 5.2.0 release to use that last text editor ... and something strange I've always the same text editor (????) is there any file I've to remove ? Cheers PC http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showthread&m onth=201001&threadid=bldnkopgolbikdholenm -------------------------------------------------------------------------------- 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 Mar 19 14:49:05 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 19 Mar 2010 14:49:05 +0100 Subject: [scilab-Users] text editor In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF4@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF4@exchsrv.AUXITROL1> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF5@exchsrv.AUXITROL1> ERRATUM : I fogot to say I'm under windows-Xp 64bits os ! ________________________________ De : Carrico, Paul [mailto:paul.carrico at esterline.com] Envoy? : vendredi 19 mars 2010 14:48 ? : users at lists.scilab.org Objet : [scilab-Users] text editor All (again) I switched from the 5.2.0 to the latest release ... as for some people I was disappointed with some text editor features missing (parenthesis / function name in color and so on). As written in a previous mail (see bellow), we've to expect to the new release .. I re-installed 5.2.0 release to use that last text editor ... and something strange I've always the same text editor (????) is there any file I've to remove ? Cheers PC http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showthread&month=201001&threadid=bldnkopgolbikdholenm -------------------------------------------------------------------------------- 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 Mar 19 15:43:27 2010 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Fri, 19 Mar 2010 11:43:27 -0300 Subject: [scilab-Users] text editor Message-ID: Return Receipt Your RE: [scilab-Users] text editor document: was osvaldo at dcc.ufmg.br received by: at: 03/19/2010 11:44:31 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From osvaldo at dcc.ufmg.br Fri Mar 19 15:46:09 2010 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Fri, 19 Mar 2010 11:46:09 -0300 Subject: [scilab-Users] Problem in datafit Message-ID: Return Receipt Your RE: [scilab-Users] Problem in datafit document: was osvaldo at dcc.ufmg.br received by: at: 03/19/2010 11:47:13 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Mar 19 15:53:42 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 19 Mar 2010 15:53:42 +0100 Subject: [scilab-Users] Problem in datafit In-Reply-To: References: Message-ID: <1269010422.13578.2747.camel@korcula.inria.fr> Le vendredi 19 mars 2010 ? 11:46 -0300, Osvaldo Sergio Farhat de Carvalho a ?crit : > Return Receipt > Your document: > RE: [scilab-Users] Problem in > datafit > was received by: > osvaldo at dcc.ufmg.br > at: > 03/19/2010 11:47:13 AM Osvaldo, could you drop this autoreply ? Thanks Sylvestre From sylvestre.ledru at scilab.org Fri Mar 19 16:53:52 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 19 Mar 2010 16:53:52 +0100 Subject: Google Summer of code 2010 and Scilab Message-ID: <1269014032.13578.3029.camel@korcula.inria.fr> Hello, For a second year, Scilab has been accepted to be part of the Google Summer of Code 2010: http://www.scilab.org/news/events/20100319 http://www.scilab.org/fr/news/events/20100319 (for the french version) The list of ideas is available here: http://wiki.scilab.org/Ideas_of_development_for_Scilab Anybody is welcome to edit this page to add more ideas to improve Scilab and its ecosystem. Don't hesitate to contact me privately if you have any questions/suggestions about this. For student, we also improved the information needed for a good proposal: http://wiki.scilab.org/How_to_apply_to_the_GSOC_%3F Regards, Sylvestre -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From paul.carrico at esterline.com Fri Mar 19 17:01:24 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 19 Mar 2010 17:01:24 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_Problem_in_datafit?= References: <1269010422.13578.2747.camel@korcula.inria.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC03B0452E@exchsrv.AUXITROL1> I'm sorry this is my fault .... I forgot to switch off the reply request ! Paul -------- Message d'origine-------- De: Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Date: ven. 19/03/2010 15:53 ?: users at lists.scilab.org Objet : RE: [scilab-Users] Problem in datafit Le vendredi 19 mars 2010 ? 11:46 -0300, Osvaldo Sergio Farhat de Carvalho a ?crit : > Return Receipt > Your document: > RE: [scilab-Users] Problem in > datafit > was received by: > osvaldo at dcc.ufmg.br > at: > 03/19/2010 11:47:13 AM Osvaldo, could you drop this autoreply ? Thanks Sylvestre -------------------------------------------------------------------------------- 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 -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2767 bytes Desc: not available URL: From fvogelnew1 at free.fr Sat Mar 20 20:48:48 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 20 Mar 2010 20:48:48 +0100 Subject: [scilab-Users] text editor In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF4@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AAF4@exchsrv.AUXITROL1> Message-ID: <4BA526A0.5070005@free.fr> Carrico, Paul said on 19/03/2010 14:47: > > As written in a previous mail (see bellow), we've to expect to the new > release .. There is very low activity, if any, around xpad (aka the new "text editor" of Scilab 5.2.x) in git master or in the 5.2 branch. Check it yourself: http://gitweb.scilab.org/?p=scilab;a=history;f=scilab/modules/xpad;hb=HEAD http://gitweb.scilab.org/?p=scilab;a=history;f=scilab/modules/xpad;hb=5.2 > I re-installed 5.2.0 release to use that last text editor ... and > something strange I've always the same text editor (????) is there any > file I've to remove ? The opteam had kicked Scipad out of Scilab before Scilab 5.2.0. To get Scipad back you can: - reinstall Scilab 5.1.1 - use atoms to install it in Scilab 5.2.0 (but this atoms version of Scipad does not work properly) - use Scicoslab (http://www.scicoslab.org) which will provide you with the latest Scipad with full working functionalities, including graphical debug tools. Good luck, Francois From communication at scilab.org Mon Mar 22 10:01:43 2010 From: communication at scilab.org (Scilab Communication) Date: Mon, 22 Mar 2010 10:01:43 +0100 Subject: Save the date =?windows-1252?Q?=96_ScilabTec=9210?= Message-ID: <4BA731F7.4080103@scilab.org> The 2nd edition of *Scilab Users Day* will take place on *Wednesday 16th June 2010 at the ?cole Polytechnique.* Organized during Tert at tec Forum, different moments will made of the Scilab Users Day a very special moment to share experiences and exchange on Scilab: ? Plenary presentations of developments around Scilab, ? Thematic workshops. *Online registration*: http://www.teratec.eu/gb/forum/inscription.php / Complete program to be communicated shorly./ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilabtec10.png Type: image/png Size: 9850 bytes Desc: not available URL: From ivan.cheniot at upmc.fr Mon Mar 22 14:25:50 2010 From: ivan.cheniot at upmc.fr (Ivan Cheniot) Date: Mon, 22 Mar 2010 14:25:50 +0100 Subject: xtitle Message-ID: <4BA76FDE.20507@upmc.fr> Hi! xtitle doesn't work on my scilab-5.2.1 linux 64bits Do you know this problem? thanks Ivan -- Ivan Cheniot UPMC Facult? de Physique BC 91, 32-42 2e ?tage 4, place Jussieu 75252 Paris cedex 05 01 44 27 20 17 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Mon Mar 22 14:26:56 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 22 Mar 2010 14:26:56 +0100 Subject: [scilab-Users] xtitle In-Reply-To: <4BA76FDE.20507@upmc.fr> References: <4BA76FDE.20507@upmc.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AB09@exchsrv.AUXITROL1> does the xtitle instruction is placed AFTER plot/plot2d one ? ________________________________ De : Ivan Cheniot [mailto:ivan.cheniot at upmc.fr] Envoy? : lundi 22 mars 2010 14:26 ? : users at lists.scilab.org Objet : [scilab-Users] xtitle Hi! xtitle doesn't work on my scilab-5.2.1 linux 64bits Do you know this problem? thanks Ivan -- Ivan Cheniot UPMC Facult? de Physique BC 91, 32-42 2e ?tage 4, place Jussieu 75252 Paris cedex 05 01 44 27 20 17 -------------------------------------------------------------------------------- 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 Mon Mar 22 15:09:56 2010 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Mon, 22 Mar 2010 11:09:56 -0300 Subject: [scilab-Users] xtitle Message-ID: Return Receipt Your RE: [scilab-Users] xtitle document: was osvaldo at dcc.ufmg.br received by: at: 03/22/2010 11:10:58 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo at softwork.co.il Mon Mar 22 17:34:47 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Mon, 22 Mar 2010 18:34:47 +0200 Subject: Too complex recursion!(recursion tables are full) In-Reply-To: <4BA20230.1070806@utc.fr> Message-ID: <182d48b497c09c4aafd85410eaf16f57@srv1.softwork.co.il> *This message was transferred with a trial version of CommuniGate(r) Pro* Hi Maybe, someone can give me a clue for the solution of the following problem. I have a user writing a Scilab program with the following very strange problem. His program is composed of two files: the first defines the GUI and calls (exec) the second file is where the GUI callbacks are defined. One of the user functions is really enormous (2500 lines !!:( ) (yes, at this stage we are doing big efforts to help Scilab users, even if their programs are not a Software Engineering piece of art). The program has no recursion at all, and it seems that it is correctly written (from the Scilab Syntax point of view). When I move an "end" statement (from a for loop) after some lines of comments. I receive the following error: !-error 26 Too complex recursion!(recursion tables are full) at line 1735 of function pc_calc_log called by: endfunction Sometimes there is an error of stacksize is full, but no stacksize() or gstacksize() seems to have any influence on it. Restoring the "end" statement to its previous position, makes the program run again. One additional piece of information : The comment lines are legal, the problem happens also when I write a comment like: "// blah bla blah, etc" I do not expect of course a complete solution of this problem with such general information, even though for me is very strange that a comment line causes such a problem. Have someone a clue of what may probably be the causes of that. Is any limitation in the size, number of lines, etc of a function? Is this error message happen only when recursion is used or may be triggered on some different error. May this error triggered by the Scilab machine and not by the program? Because a parsing error? Any help will be very welcomed. Thanks ! Eduardo From caquineau at bassin.fr Mon Mar 22 17:19:58 2010 From: caquineau at bassin.fr (caquineau) Date: Mon, 22 Mar 2010 17:19:58 +0100 Subject: Reading and import big file ascii (300Mo) Message-ID: <1269274798.1920.1.camel@localhost.localdomain> Hello Thank you for your answer but i put a fixed number in the stacksize (you can't put any value) and it's the same result (error memory) So i do it with matlab, but i want to know if there are limit to use scilab with big data? and how to surpass the problem? Thank you From fvogelnew1 at free.fr Mon Mar 22 21:16:13 2010 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Mon, 22 Mar 2010 21:16:13 +0100 Subject: [scilab-Users] Too complex recursion!(recursion tables are full) In-Reply-To: <182d48b497c09c4aafd85410eaf16f57@srv1.softwork.co.il> References: <182d48b497c09c4aafd85410eaf16f57@srv1.softwork.co.il> Message-ID: <4BA7D00D.3030108@free.fr> Eduardo Tarasiuk said on 22/03/2010 17:34: > > One of the user functions is really enormous (2500 lines !!:( ) > > The program has no recursion at all, and it seems that it is correctly > written (from the Scilab Syntax point of view). > When I move an "end" statement (from a for loop) after some lines of > comments. I receive the following error: > > !-error 26 > Too complex recursion!(recursion tables are full) > at line 1735 of function pc_calc_log called by: > endfunction There is still this warning in help for (with the original typo): "Warning: the number of characters used to define the body of any conditionnal instruction (if while for or select/case) must be limited to 16k." This is very old information but it's still true, as anyone can very easily check. Exceeding this limit is catched precisely by what you're seeing. This message is certainly not crystal clear for the average user, but well, where would the pleasure be otherwise? > I do not expect of course a complete solution of this problem with such > general information, even though for me is very strange that a comment > line causes such a problem. Your observation is compatible with what I say above. > Have someone a clue of what may probably be the causes of that. Is any > limitation in the size, number of lines, etc of a function? Yes. > Is this error message happen only when recursion is used or may be > triggered on some different error. The recursion error is indeed triggered in the above case (16k limit). > May this error triggered by the Scilab machine and not by the program? > Because a parsing error? Always possible, but I would check and fix the size of your user's code first. Francois From dwarnold45 at suddenlink.net Tue Mar 23 03:51:25 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Mon, 22 Mar 2010 19:51:25 -0700 Subject: Handles Message-ID: <352F3DD9-89AA-412F-98D0-0579A69044B3@suddenlink.net> All, Why are the list of handles not in alphabetical order? Handle of type "Rectangle" with properties: =========================================== parent: Axes children: [] mark_mode = "off" mark_style = 0 mark_size_unit = "tabulated" mark_size = 0 mark_foreground = -1 mark_background = -2 line_mode = "on" fill_mode = "on" line_style = 0 thickness = 1 foreground = -1 background = -2 data = [0,0,0.5,0.5] visible = "on" clip_state = "off" clip_box = [] user_data = [] David. From eduardo at softwork.co.il Tue Mar 23 04:34:07 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Tue, 23 Mar 2010 05:34:07 +0200 Subject: [scilab-Users] Too complex recursion!(recursion tables are full) In-Reply-To: <4BA7D00D.3030108@free.fr> Message-ID: <9c02776f16e76345901d496a15645301@srv1.softwork.co.il> *This message was transferred with a trial version of CommuniGate(r) Pro* Thanks very much Francois !! Your response was of great help Best Regards Eduardo -----Original Message----- From: Fran?ois Vogel [mailto:fvogelnew1 at free.fr] Sent: ? 22 ??? 2010 22:16 To: users at lists.scilab.org Subject: Re: [scilab-Users] Too complex recursion!(recursion tables are full) *This message was transferred with a trial version of CommuniGate(r) Pro* Eduardo Tarasiuk said on 22/03/2010 17:34: > > One of the user functions is really enormous (2500 lines !!:( ) > > The program has no recursion at all, and it seems that it is correctly > written (from the Scilab Syntax point of view). > When I move an "end" statement (from a for loop) after some lines of > comments. I receive the following error: > > !-error 26 > Too complex recursion!(recursion tables are full) > at line 1735 of function pc_calc_log called by: > endfunction There is still this warning in help for (with the original typo): "Warning: the number of characters used to define the body of any conditionnal instruction (if while for or select/case) must be limited to 16k." This is very old information but it's still true, as anyone can very easily check. Exceeding this limit is catched precisely by what you're seeing. This message is certainly not crystal clear for the average user, but well, where would the pleasure be otherwise? > I do not expect of course a complete solution of this problem with such > general information, even though for me is very strange that a comment > line causes such a problem. Your observation is compatible with what I say above. > Have someone a clue of what may probably be the causes of that. Is any > limitation in the size, number of lines, etc of a function? Yes. > Is this error message happen only when recursion is used or may be > triggered on some different error. The recursion error is indeed triggered in the above case (16k limit). > May this error triggered by the Scilab machine and not by the program? > Because a parsing error? Always possible, but I would check and fix the size of your user's code first. Francois From dwarnold45 at suddenlink.net Tue Mar 23 06:35:49 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Mon, 22 Mar 2010 22:35:49 -0700 Subject: Macbook Demo Interface Message-ID: All, On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d (1) from the demo list, then select --View Code -- , nothing happens, no code. Further, if I try Edit->Start Entity Picker, I get: WARNING: TCL/TK interface not installed. I am using the download: ( MacOSX 133 MB ) Any suggestions? David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Mar 23 07:54:33 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 23 Mar 2010 07:54:33 +0100 Subject: [scilab-Users] Macbook Demo Interface In-Reply-To: References: Message-ID: <1269327273.3973.1482.camel@zlarin> Le lundi 22 mars 2010 ? 22:35 -0700, David Arnold a ?crit : > All, > > > On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d > (1) from the demo list, then select --View Code -- , nothing happens, > no code. > > > Further, if I try Edit->Start Entity Picker, I get: > > > WARNING: TCL/TK interface not installed. > > > I am using the download: > > > ( MacOSX 133 MB ) > > > Any suggestions? Dues to internal technical constraints, the Tcl/Tk interface is not available under Mac OS X. We are really sorry about this issue. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From Mike at Page-One.Waitrose.com Tue Mar 23 10:19:01 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 23 Mar 2010 09:19:01 -0000 Subject: Least squares fit to a circle Message-ID: Hello, Does anybody have a good suggestion for fitting a circle to a set of experimental (x,y) data? The data are measured electrically as a set of complex numbers and I want to find the centre and radius ([x0, y0, r]) of the circle that fits the data best in a least squared error sense. Typically the data spans somewhere between 0.2 and 1.0 radians of arc and is not very noisy (say 1%). I have tried using the nonlinear solver fsolve, by defining a loss function: L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I have tried both with and without a Jacobian, but find that often the method fails to converge to a solution (maybe works 8 out of 10 times). Next I tried the Box method of the Nelder Mead toolbox (I have constraints since physically, the centre has to be in the ++ quadrant of the complex plane). This is better and always converges to a solution. However, the solution is not always very good. I can often fit a better circle by eye. It may be that the algorithms are converging to a local minimum rather than the global one, but I don't know a good way to change this behaviour. I seem to remember that simulated annealing was a way to solve this problem - does anybody know anything about that? So, what I would like to know: - Is there a better way than fsolve or Nelder Mead for fitting a circle to the data? - Is there a way to tune the performance that might give me a better fit? I can post some code if it helps. Thanks for any help. Regards, Mike. From kshipras at packtpub.com Tue Mar 23 11:25:09 2010 From: kshipras at packtpub.com (Kshipra Singh) Date: Tue, 23 Mar 2010 15:55:09 +0530 Subject: Author Scilab Books-Packt Publishing Message-ID: Hi All, I am writing to you for Packt Publishing, the publishers of computer related books. We are planning to extend our catalogue of books based on Scientific Computing Tools and are currently inviting authors interested in writing for Packt. This doesn't need any previous writing experience. Just an expert knowledge of your subject and a passion to share it with others is all that we require. So, if you love Scilab and are interested in authoring a book, here's an opportunity knocking your door. Write to us with your book ideas at author at packtpub.com. Even if you don't have a book idea and are simply interested in authoring a book, we are still keen to hear from you. More details about the opportunity are available at: http://authors.packtpub.com/content/scientific-compting-tools-write-Packt Thanks Kshipra Singh Author Relationship Manager Packt Publishing www.PacktPub.com Skype: kshiprasingh15 Twitter: http://twitter.com/kshipras Interested in becoming an author? Visit http://authors.packtpub.com for all the information you need about writing for Packt. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mirubes at gmail.com Tue Mar 23 13:01:32 2010 From: mirubes at gmail.com (Michal Rubes) Date: Tue, 23 Mar 2010 13:01:32 +0100 Subject: Scilab 5.2.1, xcos, Blocks FROM and GOTO Message-ID: Hello, I have a qustion about blocks FROM and GOTO: Is it possitbe to see tags of this blocks in or under the icons of the blocks? It is very unconfortable to open every FROM or GOTO block to see the tag. Thank you for your answer. Michal Rube? -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.wozniczka at gazeta.pl Tue Mar 23 13:17:04 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Tue, 23 Mar 2010 13:17:04 +0100 Subject: variables from TCL in Scilab Message-ID: Hello, I created widget in TCL language in which are several 'entry'. When I execute it in Scilab using 'TCL_EvalFile' function. When I put my variables in GUI and want to execute function which will count it using Scilab math library (I use function TCL_GetVar to transfer variable from TCL memory to Scilab and later using Scilab math function) I have information from scilab that there is no varibles transfered from TCL to Scilab. Could you help me with this? Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Tue Mar 23 13:49:11 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Tue, 23 Mar 2010 13:49:11 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: References: Message-ID: <4BA8B8C7.7090004@free.fr> marcin.wozniczka Gazeta.pl said on 23/03/2010 13:17: > Hello, > I created widget in TCL language in which are several 'entry'. When I > execute it in Scilab using 'TCL_EvalFile' function. When I put my > variables in GUI and want to execute function which will count it using > Scilab math library (I use function TCL_GetVar to transfer variable > from TCL memory to Scilab and later using Scilab math function) I have > information from scilab that there is no varibles transfered from TCL to > Scilab. > Could you help me with this? Perhaps. Show the exact error and your (trimmed down) code as a first step. Francois From Samuel.Gougeon at univ-lemans.fr Tue Mar 23 14:18:42 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 23 Mar 2010 14:18:42 +0100 Subject: [scilab-Users] Handles In-Reply-To: <352F3DD9-89AA-412F-98D0-0579A69044B3@suddenlink.net> References: <352F3DD9-89AA-412F-98D0-0579A69044B3@suddenlink.net> Message-ID: <4BA8BFB2.5070909@univ-lemans.fr> ----- Message d'origine ----- De : David Arnold Date : 23/03/2010 03:51: > All, > > Why are the list of handles not in alphabetical order? > alphabetical order is as questionnable as "grouped alphabetical order" ; i mean: One may deem more convenient to group fields about marks whatever are their name, about fonts whatever are their names, etc. Anyone cam customize order of fields when displaying handles, by editing and modifying %h_p() : edit %h_p HTH, Samuel > Handle of type "Rectangle" with properties: > =========================================== > parent: Axes > children: [] > mark_mode = "off" > mark_style = 0 > mark_size_unit = "tabulated" > mark_size = 0 > mark_foreground = -1 > mark_background = -2 > line_mode = "on" > fill_mode = "on" > line_style = 0 > thickness = 1 > foreground = -1 > background = -2 > data = [0,0,0.5,0.5] > visible = "on" > clip_state = "off" > clip_box = [] > user_data = [] > > David. > > -- Samuel Gougeon Ma?tre de conf?rences, physicien. Universit? du Maine Tel: +33 243.833-964 Fax: #-794 sgougeon at univ-lemans.fr ENSIM, rue Aristote, 72085 LE MANS cedex 9, FRANCE ENSIM : http://ensim.univ-lemans.fr LPEC : http://lpec.univ-lemans.fr From vladimir.rodriguez at reduc.edu.cu Tue Mar 23 14:51:00 2010 From: vladimir.rodriguez at reduc.edu.cu (=?ISO-8859-1?Q?Vlad=EDmir_Rodr=EDguez?=) Date: Tue, 23 Mar 2010 09:51:00 -0400 Subject: [scilab-Users] Least squares fit to a circle In-Reply-To: References: Message-ID: <1269352261.2920.1.camel@accionamiento> El mar, 23-03-2010 a las 09:19 +0000, Mike Page escribi?: > Hello, > > Does anybody have a good suggestion for fitting a circle to a set of > experimental (x,y) data? The data are measured electrically as a set of > complex numbers and I want to find the centre and radius ([x0, y0, r]) of > the circle that fits the data best in a least squared error sense. > Typically the data spans somewhere between 0.2 and 1.0 radians of arc and is > not very noisy (say 1%). > > I have tried using the nonlinear solver fsolve, by defining a loss function: > > L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 > > and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I > have tried both with and without a Jacobian, but find that often the method > fails to converge to a solution (maybe works 8 out of 10 times). > > Next I tried the Box method of the Nelder Mead toolbox (I have constraints > since physically, the centre has to be in the ++ quadrant of the complex > plane). This is better and always converges to a solution. However, the > solution is not always very good. I can often fit a better circle by eye. > > It may be that the algorithms are converging to a local minimum rather than > the global one, but I don't know a good way to change this behaviour. I > seem to remember that simulated annealing was a way to solve this problem - > does anybody know anything about that? > > So, what I would like to know: > > - Is there a better way than fsolve or Nelder Mead for fitting a circle to > the data? > - Is there a way to tune the performance that might give me a better fit? > > I can post some code if it helps. > > Thanks for any help. > > Regards, > Mike. > If you can send the data (or a sample) I would like to try. -- MSc. Vlad?mir Rodr?guez Diez Departamento de Ingenier?a El?ctrica Universidad de Camag?ey From Samuel.Gougeon at univ-lemans.fr Tue Mar 23 14:54:48 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 23 Mar 2010 14:54:48 +0100 Subject: [scilab-Users] Handles In-Reply-To: <352F3DD9-89AA-412F-98D0-0579A69044B3@suddenlink.net> References: <352F3DD9-89AA-412F-98D0-0579A69044B3@suddenlink.net> Message-ID: <4BA8C828.1000406@univ-lemans.fr> ----- Message d'origine ----- De : David Arnold Date : 23/03/2010 03:51: > All, > > Why are the list of handles not in alphabetical order? > To get it : edit %h_p line 877: Replace write(%io(2),t) by write(%io(2),gsort(t,'lr','i')) Then, you will /always/ get the list sorted. IFAIK, there is no way for making disp(handle) (namely %h_p() ) returning a Left Hand Side argument, that would be the string array to be sorted only on demand when calling disp(). Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.wozniczka at gazeta.pl Tue Mar 23 15:51:25 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Tue, 23 Mar 2010 15:51:25 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: <4BA8B8C7.7090004@free.fr> References: <4BA8B8C7.7090004@free.fr> Message-ID: I have only *ans = T* When I put name of scliab variable in Scilab Console after I ran this proces I have only information *xa* * !--error 4 * *Undefined variable: xa* * * I sent you my scilab function: *function []=liczSL()* * global('wlxa','wlya','wlxb','wlyb','wla','wlb')* * xa=evstr(TCL_GetVar("wlxa"));* * ya=evstr(TCL_GetVar("wlya"));* * xb=evstr(TCL_GetVar("wlxb"));* * yb=evstr(TCL_GetVar("wlyb"));* * a=evstr(TCL_GetVar("wla"));* * b=evstr(TCL_GetVar("wlb"));* * c = sqrt( (xa-xb)*(xa-xb) + (ya-yb)*(ya-yb) );* * Ca = b*b+c*c-a*a;* * Cb = c*c+a*a-b*b; * * Cc = a*a+b*b-c*c; * * P = sqrt( Ca*Cb+Ca*Cc+Cb*Cc );* * at = Ca+Cb;* * xc = ( Cb*xa + Ca*xb + P*(ya-yb) )/at;* * yc = ( Cb*ya + Ca*yb + P*(xb-xa) )/at;* *endfunction* * * * * And this is my scilab program: *wcl=['toplevel .wcl'* *'wm title .wcl ""Wci?cie Liniowe""'* *'wm geometry .wcl 370x270'* *'wm minsize .wcl 370 270'* *'wm maxsize .wcl 370 270'* * * *'frame .wcl.menubar -relief raised -bd 1'* *'pack .wcl.menubar -fill x'* *'menubutton .wcl.menubar.plik -text File -underline 0 -menu .wcl.menubar.plik.menu'* *'menubutton .wcl.menubar.edycja -text Edit -underline 0 -men .wcl.menubar.edycja.menu'* *'menubutton .wcl.menubar.licz -text Calc -underline 0 -menu .wcl.menubar.licz.menu'* *'menubutton .wcl.menubar.wyczysc -text Clean -underline 0 -menu .wcl.menubar.wyczysc.menu'* *'pack .wcl.menubar.plik .wcl.menubar.edycja .wcl.menubar.licz .wcl.menubar.wyczysc -side left'* *'menubutton .wcl.menubar.pomoc -text Help -underline 0 -menu .wcl.menubar.plik.pomoc'* *'pack .wcl.menubar.pomoc -side right'* * * *'menu .wcl.menubar.plik.menu'* *'.wcl.menubar.plik.menu add command -label Save -command ""SaveFile""'* *'.wcl.menubar.plik.menu add command -label ""Save As..."" -command ""SaveAsFile""'* *'.wcl.menubar.plik.menu add command -label Print -command ""Print""'* *'.wcl.menubar.plik.menu add command -label Close -command {destroy .wcl}'* *'menu .wcl.menubar.licz.menu'* *'.wcl.menubar.licz.menu add command -label Calc -command {calcwl}'* *'.wcl.menubar.licz.menu add command -label Calc1 -command {calcSL}'* * * *'pack [label .wcl.dane] -pady 7'* *'grid [label .wcl.dane.tpl1 -text ""Right Point""] -row 1 -column 0 -sticky e'* *'grid [label .wcl.dane.tpl2 -text ""Left Point""] -row 2 -column 0 -sticky e'* *'grid [label .wcl.dane.nrl -text ""Point"" -width 8] -column 1 -row 0 -sticky we -padx 2 -pady 1'* *'grid [label .wcl.dane.tlx -text ""X"" -width 12] -column 2 -row 0 -sticky we -padx 1 -pady 1'* *'grid [label .wcl.dane.tly -text ""Y"" -width 12] -column 3 -row 0 -sticky we -padx 1 -pady 1'* *'grid [entry .wcl.dane.nrla -width 8 -justify right -textvariable nrla -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}] -row 1 -column 1 -pady 1 -padx 1'* *'set ::nrla """"'* *'grid [entry .wcl.dane.wlxa -width 12 -justify right -textvariable wlxa -validate key -vcmd {expr {[string is double %P] && [string len %P] <= 11}}] -row 1 -column 2 -pady 1 -padx 1'* *'set ::wlxa """"'* *'grid [entry .wcl.dane.wlya -width 12 -justify right -textvariable wlya -validate key -vcmd {expr {[string is double %P] && [string len %P] <= 11}}] -row 1 -column 3 -pady 1 -padx 1'* *'set ::wlya """"'* *'grid [entry .wcl.dane.nrlb -width 8 -justify right -textvariable nrlb -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}] -row 2 -column 1 -pady 1 -padx 1'* *'set ::nrlb """"'* *'grid [entry .wcl.dane.wlxb -width 12 -justify right -textvariable wlxb -validate key -vcmd {expr {[string is double %P] && [string len %P] <= 11}}] -row 2 -column 2 -pady 1 -padx 1'* *'set ::wlxb """"'* *'grid [entry .wcl.dane.wlyb -width 12 -justify right -textvariable wlyb -validate key -vcmd {expr {[string is double %P] && [string len %P] <= 11}}] -row 2 -column 3 -pady 1 -padx 1'* *'set ::wlyb """"'* * * *'grid [label .wcl.dane.bok] -row 3 -column 1 -columnspan 3 -pady 8'* *'grid [label .wcl.dane.bok.ta -text ""Left arm ""] -column 0 -row 0 -sticky e'* *'grid [label .wcl.dane.bok.tb -text ""Right arm ""] -column 0 -row 1 -sticky e'* *'grid [label .wcl.dane.bok.tm1 -text ""m""] -column 2 -row 0 -sticky w'* *'grid [label .wcl.dane.bok.tm2 -text ""m""] -column 2 -row 1 -sticky w'* *'grid [entry .wcl.dane.bok.wla -width 7 -justify right -textvariable wla -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}] -row 0 -column 1 -sticky we -pady 2'* *'set ::wla """"'* *'grid [entry .wcl.dane.bok.wlb -width 7 -justify right -textvariable wlb -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}] -row 1 -column 1 -sticky we -pady 2'* *'set ::wlb """"'* *'grid [label .wcl.dane.tplw -text ""Punkt wcinany""] -row 5 -column 0 -sticky e'* *'grid [label .wcl.dane.nrp -text ""Nr"" -width 8] -column 1 -row 4 -padx 2 -pady 1'* *'grid [label .wcl.dane.labxp -text ""X"" -width 12] -column 2 -row 4 -padx 1 -pady 1'* *'grid [label .wcl.dane.labyp -text ""Y"" -width 12] -column 3 -row 4 -padx 1 -pady 1'* *'grid [entry .wcl.dane.nrlp -width 8 -justify right -textvariable nrp -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}] -row 5 -column 1 -pady 1 -padx 1'* *'set ::nrp """"'* *'grid [entry .wcl.dane.wlxp -width 12 -justify right -state readonly -textvariable wlxp] -row 5 -column 2 -pady 1'* *'set ::wlxp """"'* *'grid [entry .wcl.dane.wlyp -width 12 -justify right -state readonly -textvariable wlyp] -row 5 -column 3 -pady 1'* *'set ::wlyp """"'* * * *'proc calcwl {} {'* * 'if {[catch {'* * 'set c [expr {double (sqrt((($::wlxa-$::wlxb)*($::wlxa-$::wlxb)) + (($::wlya-$::wlyb)*($::wlya-$::wlyb))))}]'* * 'set Ca [expr {double (($::wlb*$::wlb) + ($c*$c) - ($::wla*$::wla))}]'* * 'set Cb [expr {double (($::wla*$::wla) + ($c*$c) - ($::wlb*$::wlb))}]'* * 'set Cc [expr {double (($::wlb*$::wlb) + ($::wla*$::wla) - ($c*$c))}]'* * 'set P [expr {double (sqrt($Ca*$Cb+$Ca*$Cc+$Cb*$Cc))}]'* * 'set at [expr {double ($Ca+$Cb)}]'* * 'set ::wlxp [format ""%0.2f"" [expr {double ((($Cb*$::wlxa + $Ca*$::wlxb + $P*($::wlya-$::wlyb))/$at))}]]'* * 'set ::wlyp [format ""%0.2f"" [expr {double ((($Cb*$::wlya + $Ca*$::wlyb + $P*($::wlxb-$::wlxa))/$at))}]]'* * '}]!=0} {'* * 'set ::wlxp ""B??d""'* * 'set ::wlyp ""B??d""'* * '}'* *'}'* * ** * *'proc calcSL {} {'* *'ScilabEval liczSL()' * *'}'];* * * *mputl(wcl,TMPDIR+'/wcl.tcl')* *TCL_EvalFile(TMPDIR+'/wcl.tcl');* proc Calc - counting everything in TCL proc Calc1 -counting it using Scilab function Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Tue Mar 23 15:55:20 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Tue, 23 Mar 2010 15:55:20 +0100 Subject: [scilab-Users] Scilab 5.2.1, xcos, Blocks FROM and GOTO In-Reply-To: References: Message-ID: <1269356120.2500.87.camel@pinarellu.inria.fr> Hello, It's not possible on the current release. I have posted a bug for this wish [http://bugzilla.scilab.org/show_bug.cgi?id=6808]. Regards, -- Cl?ment DAVID > Hello, > > I have a qustion about blocks FROM and GOTO: > > Is it possitbe to see tags of this blocks in or under the icons of the > blocks? It is very unconfortable to open every FROM or GOTO block to > see the tag. > > Thank you for your answer. > > Michal Rube? From ycollet at freesurf.fr Tue Mar 23 16:03:26 2010 From: ycollet at freesurf.fr (Collette Yann) Date: Tue, 23 Mar 2010 16:03:26 +0100 Subject: [scilab-Users] Scilab 5.2.1, xcos, Blocks FROM and GOTO In-Reply-To: <1269356120.2500.87.camel@pinarellu.inria.fr> References: <1269356120.2500.87.camel@pinarellu.inria.fr> Message-ID: <4BA8D83E.6090803@freesurf.fr> In the mean time, you can use "text block" to annotate your FROM and GOTO blocks. YC Le 23/03/2010 15:55, Cl?ment DAVID a ?crit : > Hello, > > It's not possible on the current release. I have posted a bug for this > wish [http://bugzilla.scilab.org/show_bug.cgi?id=6808]. > > Regards, > > -- > Cl?ment DAVID > > >> Hello, >> >> I have a qustion about blocks FROM and GOTO: >> >> Is it possitbe to see tags of this blocks in or under the icons of the >> blocks? It is very unconfortable to open every FROM or GOTO block to >> see the tag. >> >> Thank you for your answer. >> >> Michal Rube? >> > > From fvogelnew1 at free.fr Tue Mar 23 16:07:41 2010 From: fvogelnew1 at free.fr (=?ISO-8859-2?Q?Fran=E7ois_Vogel?=) Date: Tue, 23 Mar 2010 16:07:41 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: References: <4BA8B8C7.7090004@free.fr> Message-ID: <4BA8D93D.9070300@free.fr> marcin.wozniczka Gazeta.pl said on 23/03/2010 15:51: > I have only *ans = T* > When I put name of scliab variable in Scilab Console after I ran this > proces I have only information > *xa* > * !--error 4 * > *Undefined variable: xa* This comment make me think you are expecting the Scilab console to know about xa when running your function liczSL. You should probably read about variables scoping here: http://wiki.scilab.org/howto/global_and_local_variables Anyway your description is unclear and not complete. After running the code with Tcl instructions in it I get a GUI. What am I supposed to fill in the blanks and what am I supposed to do with the GUI menues to reproduce your error? > /function []=liczSL()/ > / global('wlxa','wlya','wlxb','wlyb','wla','wlb')/ This global is not needed (and potentially harmful). > /'proc calcSL {} {'/ > /'ScilabEval liczSL()' / > /'}'];/ This is not returning any result. How do you expect this to fill in your blanks "Punkt wcinany" (I don't speak your language) ? Try to add the required Tcl_SetVar in function liczSL Francois From fvogelnew1 at free.fr Tue Mar 23 16:12:11 2010 From: fvogelnew1 at free.fr (=?ISO-8859-2?Q?Fran=E7ois_Vogel?=) Date: Tue, 23 Mar 2010 16:12:11 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: <4BA8D93D.9070300@free.fr> References: <4BA8B8C7.7090004@free.fr> <4BA8D93D.9070300@free.fr> Message-ID: <4BA8DA4B.9040704@free.fr> > Try to add the required Tcl_SetVar in function liczSL Specifically: TCL_SetVar("wlxp",xc) TCL_SetVar("wlyp",yc) just before the endfunction of function liczSL I let you do the homework related to formatting these two values. Francois From Mike at Page-One.Waitrose.com Tue Mar 23 17:10:02 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 23 Mar 2010 16:10:02 -0000 Subject: [scilab-Users] Least squares fit to a circle In-Reply-To: <1269352261.2920.1.camel@accionamiento> Message-ID: Hi Vladimir, Thanks for your email and your interest in this problem. I have attached a CSV file with the experimental data in it. Fitting a circle to the whole data set works OK, but if you look at the data, you can see a region of different curvature at the right hand side. It is specifically this part that I want to fit to the nearest circle. This is approximately the last 12 data points in the file. Let me know if you want me to send some code as well. Regards, Mike. -----Original Message----- From: Vlad?mir Rodr?guez [mailto:vladimir.rodriguez at reduc.edu.cu] Sent: 23 March 2010 13:51 To: users at lists.scilab.org Subject: Re: [scilab-Users] Least squares fit to a circle El mar, 23-03-2010 a las 09:19 +0000, Mike Page escribi?: > Hello, > > Does anybody have a good suggestion for fitting a circle to a set of > experimental (x,y) data? The data are measured electrically as a set of > complex numbers and I want to find the centre and radius ([x0, y0, r]) of > the circle that fits the data best in a least squared error sense. > Typically the data spans somewhere between 0.2 and 1.0 radians of arc and is > not very noisy (say 1%). > > I have tried using the nonlinear solver fsolve, by defining a loss function: > > L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 > > and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I > have tried both with and without a Jacobian, but find that often the method > fails to converge to a solution (maybe works 8 out of 10 times). > > Next I tried the Box method of the Nelder Mead toolbox (I have constraints > since physically, the centre has to be in the ++ quadrant of the complex > plane). This is better and always converges to a solution. However, the > solution is not always very good. I can often fit a better circle by eye. > > It may be that the algorithms are converging to a local minimum rather than > the global one, but I don't know a good way to change this behaviour. I > seem to remember that simulated annealing was a way to solve this problem - > does anybody know anything about that? > > So, what I would like to know: > > - Is there a better way than fsolve or Nelder Mead for fitting a circle to > the data? > - Is there a way to tune the performance that might give me a better fit? > > I can post some code if it helps. > > Thanks for any help. > > Regards, > Mike. > If you can send the data (or a sample) I would like to try. -- MSc. Vlad?mir Rodr?guez Diez Departamento de Ingenier?a El?ctrica Universidad de Camag?ey No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.791 / Virus Database: 271.1.1/2763 - Release Date: 03/22/10 07:33:00 -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.csv Type: application/octet-stream Size: 1681 bytes Desc: not available URL: From marcin.wozniczka at gazeta.pl Tue Mar 23 17:24:42 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Tue, 23 Mar 2010 17:24:42 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: <4BA8DA4B.9040704@free.fr> References: <4BA8B8C7.7090004@free.fr> <4BA8D93D.9070300@free.fr> <4BA8DA4B.9040704@free.fr> Message-ID: Francois thank you for you help and all advices! I deleted first line with global(), and I put this two line ( * TCL_SetVar("wlxp",xc)* & *TCL_SetVar("wlyp",yc)* ) and now everything is working correctly. THANK YOU! Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwarnold45 at suddenlink.net Tue Mar 23 17:46:50 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Tue, 23 Mar 2010 09:46:50 -0700 Subject: [scilab-Users] Macbook Demo Interface In-Reply-To: <1269327273.3973.1482.camel@zlarin> References: <1269327273.3973.1482.camel@zlarin> Message-ID: Slyvestre et al, What about the future? What plans are in place to support the Mac? I thought I read about some plans to update the interface but I cannot find them now. D. On Mar 22, 2010, at 11:54 PM, Sylvestre Ledru wrote: > Le lundi 22 mars 2010 ? 22:35 -0700, David Arnold a ?crit : >> All, >> >> >> On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d >> (1) from the demo list, then select --View Code -- , nothing happens, >> no code. >> >> >> Further, if I try Edit->Start Entity Picker, I get: >> >> >> WARNING: TCL/TK interface not installed. >> >> >> I am using the download: >> >> >> ( MacOSX 133 MB ) >> >> >> Any suggestions? > Dues to internal technical constraints, the Tcl/Tk interface is not > available under Mac OS X. We are really sorry about this issue. > > Sylvestre > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > From dwarnold45 at suddenlink.net Tue Mar 23 17:51:58 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Tue, 23 Mar 2010 09:51:58 -0700 Subject: [scilab-Users] Macbook Demo Interface In-Reply-To: <1269327273.3973.1482.camel@zlarin> References: <1269327273.3973.1482.camel@zlarin> Message-ID: Sylvestre et al, How about a workaround? Where can I access the code for the demonstrations? D. On Mar 22, 2010, at 11:54 PM, Sylvestre Ledru wrote: > Le lundi 22 mars 2010 ? 22:35 -0700, David Arnold a ?crit : >> All, >> >> >> On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d >> (1) from the demo list, then select --View Code -- , nothing happens, >> no code. >> >> >> Further, if I try Edit->Start Entity Picker, I get: >> >> >> WARNING: TCL/TK interface not installed. >> >> >> I am using the download: >> >> >> ( MacOSX 133 MB ) >> >> >> Any suggestions? > Dues to internal technical constraints, the Tcl/Tk interface is not > available under Mac OS X. We are really sorry about this issue. > > 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 Tue Mar 23 18:04:01 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 23 Mar 2010 18:04:01 +0100 Subject: [scilab-Users] Macbook Demo Interface In-Reply-To: References: <1269327273.3973.1482.camel@zlarin> Message-ID: <1269363841.12129.7238.camel@korcula.inria.fr> First, sorry, I saw your email too quickly this morning. The view code issue is not normal. It should be working. Do you have any error message ? Are you sure that the new window is not hidden behind an other one ? About the editor, we will rewrite it in a future version (probably 5.4). For now, I am not sure it is possible to fix this issue. We are using Cocoa for the native interface and Tk too. They are conflicting one with the other since the start from the same binary. Sylvestre Le mardi 23 mars 2010 ? 09:46 -0700, David Arnold a ?crit : > Slyvestre et al, > > What about the future? What plans are in place to support the Mac? > > I thought I read about some plans to update the interface but I cannot find them now. > > D. > > On Mar 22, 2010, at 11:54 PM, Sylvestre Ledru wrote: > > > Le lundi 22 mars 2010 ? 22:35 -0700, David Arnold a ?crit : > >> All, > >> > >> > >> On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d > >> (1) from the demo list, then select --View Code -- , nothing happens, > >> no code. > >> > >> > >> Further, if I try Edit->Start Entity Picker, I get: > >> > >> > >> WARNING: TCL/TK interface not installed. > >> > >> > >> I am using the download: > >> > >> > >> ( MacOSX 133 MB ) > >> > >> > >> Any suggestions? > > Dues to internal technical constraints, the Tcl/Tk interface is not > > available under Mac OS X. We are really sorry about this issue. > > > > Sylvestre > > > > > > -- > > ------------------------- > > Sylvestre Ledru > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > From dwarnold45 at suddenlink.net Tue Mar 23 18:18:37 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Tue, 23 Mar 2010 10:18:37 -0700 Subject: [scilab-Users] Macbook Demo Interface In-Reply-To: <1269363841.12129.7238.camel@korcula.inria.fr> References: <1269327273.3973.1482.camel@zlarin> <1269363841.12129.7238.camel@korcula.inria.fr> Message-ID: Sylvestre, > First, sorry, I saw your email too quickly this morning. > > The view code issue is not normal. It should be working. Do you have any > error message ? Are you sure that the new window is not hidden behind an > other one ? No error message. Double-checked to see if a window is hiding behind another window. That is not happening. When I click --View Code--, it turns blue, but does nothing. David. > About the editor, we will rewrite it in a future version (probably 5.4). > For now, I am not sure it is possible to fix this issue. We are using > Cocoa for the native interface and Tk too. They are conflicting one with > the other since the start from the same binary. > > Sylvestre > > > Le mardi 23 mars 2010 ? 09:46 -0700, David Arnold a ?crit : >> Slyvestre et al, >> >> What about the future? What plans are in place to support the Mac? >> >> I thought I read about some plans to update the interface but I cannot find them now. >> >> D. >> >> On Mar 22, 2010, at 11:54 PM, Sylvestre Ledru wrote: >> >>> Le lundi 22 mars 2010 ? 22:35 -0700, David Arnold a ?crit : >>>> All, >>>> >>>> >>>> On my macbook pro, 10.6.2, runniing scilab 5.2.1, if I select param3d >>>> (1) from the demo list, then select --View Code -- , nothing happens, >>>> no code. >>>> >>>> >>>> Further, if I try Edit->Start Entity Picker, I get: >>>> >>>> >>>> WARNING: TCL/TK interface not installed. >>>> >>>> >>>> I am using the download: >>>> >>>> >>>> ( MacOSX 133 MB ) >>>> >>>> >>>> Any suggestions? >>> Dues to internal technical constraints, the Tcl/Tk interface is not >>> available under Mac OS X. We are really sorry about this issue. >>> >>> Sylvestre >>> >>> >>> -- >>> ------------------------- >>> Sylvestre Ledru >>> ------------------------- >>> The Scilab Consortium >>> Digiteo >>> Domaine de Voluceau >>> Rocquencourt - B.P. 105 >>> 78153 Le Chesnay Cedex >>> France >>> >> > > From stephane.mottelet at utc.fr Tue Mar 23 19:09:40 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 23 Mar 2010 19:09:40 +0100 Subject: [scilab-Users] Least squares fit to a circle In-Reply-To: References: Message-ID: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> Hi, there seems to be a bunch of different ways to fit a circle, did you consider the various methods compared in this paper www.emis.de/journals/BBMS/Bulletin/sup962/gander.pdf ? S. Mike Page a ?crit?: > Hi Vladimir, > > Thanks for your email and your interest in this problem. I have > attached a CSV file with the experimental data in it. Fitting a > circle to the whole data set works OK, but if you look at the data, > you can see a region of different curvature at the right hand side. > It is specifically this part that I want to fit to the nearest > circle. This is approximately the last 12 data points in the file. > > Let me know if you want me to send some code as well. > > Regards, > Mike. > > > -----Original Message----- > From: Vlad?mir Rodr?guez [mailto:vladimir.rodriguez at reduc.edu.cu] > Sent: 23 March 2010 13:51 > To: users at lists.scilab.org > Subject: Re: [scilab-Users] Least squares fit to a circle > > > El mar, 23-03-2010 a las 09:19 +0000, Mike Page escribi?: >> Hello, >> >> Does anybody have a good suggestion for fitting a circle to a set of >> experimental (x,y) data? The data are measured electrically as a set of >> complex numbers and I want to find the centre and radius ([x0, y0, r]) of >> the circle that fits the data best in a least squared error sense. >> Typically the data spans somewhere between 0.2 and 1.0 radians of arc and is >> not very noisy (say 1%). >> >> I have tried using the nonlinear solver fsolve, by defining a loss function: >> >> L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 >> >> and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I >> have tried both with and without a Jacobian, but find that often the method >> fails to converge to a solution (maybe works 8 out of 10 times). >> >> Next I tried the Box method of the Nelder Mead toolbox (I have constraints >> since physically, the centre has to be in the ++ quadrant of the complex >> plane). This is better and always converges to a solution. However, the >> solution is not always very good. I can often fit a better circle by eye. >> >> It may be that the algorithms are converging to a local minimum rather than >> the global one, but I don't know a good way to change this behaviour. I >> seem to remember that simulated annealing was a way to solve this problem - >> does anybody know anything about that? >> >> So, what I would like to know: >> >> - Is there a better way than fsolve or Nelder Mead for fitting a circle to >> the data? >> - Is there a way to tune the performance that might give me a better fit? >> >> I can post some code if it helps. >> >> Thanks for any help. >> >> Regards, >> Mike. >> > If you can send the data (or a sample) I would like to try. > -- > MSc. Vlad?mir Rodr?guez Diez > Departamento de Ingenier?a El?ctrica > Universidad de Camag?ey > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.791 / Virus Database: 271.1.1/2763 - Release Date: > 03/22/10 07:33:00 > > From stephane.mottelet at utc.fr Tue Mar 23 19:12:00 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 23 Mar 2010 19:12:00 +0100 Subject: [scilab-Users] Least squares fit to a circle In-Reply-To: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> References: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> Message-ID: <20100323191200.50235fit2qbzoscg@webmail.utc.fr> Me again: the authors also gives an url pointing to Matlab sources of all the methods. S. Stephane Mottelet a ?crit?: > > Hi, > > there seems to be a bunch of different ways to fit a circle, did you > consider the various methods compared in this paper > > www.emis.de/journals/BBMS/Bulletin/sup962/gander.pdf > > ? > > S. > > Mike Page a ?crit?: > >> Hi Vladimir, >> >> Thanks for your email and your interest in this problem. I have >> attached a CSV file with the experimental data in it. Fitting a >> circle to the whole data set works OK, but if you look at the data, >> you can see a region of different curvature at the right hand side. >> It is specifically this part that I want to fit to the nearest >> circle. This is approximately the last 12 data points in the file. >> >> Let me know if you want me to send some code as well. >> >> Regards, >> Mike. >> >> >> -----Original Message----- >> From: Vlad?mir Rodr?guez [mailto:vladimir.rodriguez at reduc.edu.cu] >> Sent: 23 March 2010 13:51 >> To: users at lists.scilab.org >> Subject: Re: [scilab-Users] Least squares fit to a circle >> >> >> El mar, 23-03-2010 a las 09:19 +0000, Mike Page escribi?: >>> Hello, >>> >>> Does anybody have a good suggestion for fitting a circle to a set of >>> experimental (x,y) data? The data are measured electrically as a set of >>> complex numbers and I want to find the centre and radius ([x0, y0, r]) of >>> the circle that fits the data best in a least squared error sense. >>> Typically the data spans somewhere between 0.2 and 1.0 radians of >>> arc and is >>> not very noisy (say 1%). >>> >>> I have tried using the nonlinear solver fsolve, by defining a loss >>> function: >>> >>> L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 >>> >>> and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I >>> have tried both with and without a Jacobian, but find that often the method >>> fails to converge to a solution (maybe works 8 out of 10 times). >>> >>> Next I tried the Box method of the Nelder Mead toolbox (I have constraints >>> since physically, the centre has to be in the ++ quadrant of the complex >>> plane). This is better and always converges to a solution. However, the >>> solution is not always very good. I can often fit a better circle by eye. >>> >>> It may be that the algorithms are converging to a local minimum rather than >>> the global one, but I don't know a good way to change this behaviour. I >>> seem to remember that simulated annealing was a way to solve this problem - >>> does anybody know anything about that? >>> >>> So, what I would like to know: >>> >>> - Is there a better way than fsolve or Nelder Mead for fitting a circle to >>> the data? >>> - Is there a way to tune the performance that might give me a better fit? >>> >>> I can post some code if it helps. >>> >>> Thanks for any help. >>> >>> Regards, >>> Mike. >>> >> If you can send the data (or a sample) I would like to try. >> -- >> MSc. Vlad?mir Rodr?guez Diez >> Departamento de Ingenier?a El?ctrica >> Universidad de Camag?ey >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.791 / Virus Database: 271.1.1/2763 - Release Date: >> 03/22/10 07:33:00 >> >> > > > From dwarnold45 at suddenlink.net Tue Mar 23 19:27:54 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Tue, 23 Mar 2010 11:27:54 -0700 Subject: Guide? In-Reply-To: <20100323191200.50235fit2qbzoscg@webmail.utc.fr> References: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> <20100323191200.50235fit2qbzoscg@webmail.utc.fr> Message-ID: <997A24F2-3B20-4EA2-82AC-554CEDC734B0@suddenlink.net> All, Does Scilab have something similar to Matlab's GUIDE? D. From dnedelchev65 at yahoo.com Tue Mar 23 21:09:47 2010 From: dnedelchev65 at yahoo.com (dragomir nedeltchev) Date: Tue, 23 Mar 2010 13:09:47 -0700 (PDT) Subject: [scilab-Users] Guide? Message-ID: <901328.93068.qm@web52205.mail.re2.yahoo.com> David, HTH Dragomir --- On Tue, 3/23/10, David Arnold wrote: From: David Arnold Subject: [scilab-Users] Guide? To: users at lists.scilab.org Date: Tuesday, March 23, 2010, 8:27 PM All, Does Scilab have something similar to Matlab's GUIDE? D. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: manual_scilab-5.1.1_en_US.pdf Type: application/force-download Size: 6469498 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab_Tutorial.pdf Type: application/force-download Size: 418937 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Tue Mar 23 22:27:31 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 23 Mar 2010 21:27:31 -0000 Subject: [scilab-Users] Least squares fit to a circle In-Reply-To: <20100323191200.50235fit2qbzoscg@webmail.utc.fr> Message-ID: Hi Stephane, Thanks for the advice. I have not seen this paper before, so I will spend a little while reading it and studying the Matlab code. Maybe the authors have already solved my problem - that would save me a lot of time! Thanks again. Mike. -----Original Message----- From: Stephane Mottelet [mailto:stephane.mottelet at utc.fr] Sent: 23 March 2010 18:12 To: users at lists.scilab.org Subject: RE: [scilab-Users] Least squares fit to a circle Me again: the authors also gives an url pointing to Matlab sources of all the methods. S. Stephane Mottelet a ?crit?: > > Hi, > > there seems to be a bunch of different ways to fit a circle, did you > consider the various methods compared in this paper > > www.emis.de/journals/BBMS/Bulletin/sup962/gander.pdf > > ? > > S. > > Mike Page a ?crit?: > >> Hi Vladimir, >> >> Thanks for your email and your interest in this problem. I have >> attached a CSV file with the experimental data in it. Fitting a >> circle to the whole data set works OK, but if you look at the data, >> you can see a region of different curvature at the right hand side. >> It is specifically this part that I want to fit to the nearest >> circle. This is approximately the last 12 data points in the file. >> >> Let me know if you want me to send some code as well. >> >> Regards, >> Mike. >> >> >> -----Original Message----- >> From: Vlad?mir Rodr?guez [mailto:vladimir.rodriguez at reduc.edu.cu] >> Sent: 23 March 2010 13:51 >> To: users at lists.scilab.org >> Subject: Re: [scilab-Users] Least squares fit to a circle >> >> >> El mar, 23-03-2010 a las 09:19 +0000, Mike Page escribi?: >>> Hello, >>> >>> Does anybody have a good suggestion for fitting a circle to a set of >>> experimental (x,y) data? The data are measured electrically as a set of >>> complex numbers and I want to find the centre and radius ([x0, y0, r]) of >>> the circle that fits the data best in a least squared error sense. >>> Typically the data spans somewhere between 0.2 and 1.0 radians of >>> arc and is >>> not very noisy (say 1%). >>> >>> I have tried using the nonlinear solver fsolve, by defining a loss >>> function: >>> >>> L = (r^2 - (x-x0)^2 - (y-y0)^2)^2 >>> >>> and finding the vector [r, x0, y0] for which dL/d[r, x0, y0] is zero. I >>> have tried both with and without a Jacobian, but find that often the method >>> fails to converge to a solution (maybe works 8 out of 10 times). >>> >>> Next I tried the Box method of the Nelder Mead toolbox (I have constraints >>> since physically, the centre has to be in the ++ quadrant of the complex >>> plane). This is better and always converges to a solution. However, the >>> solution is not always very good. I can often fit a better circle by eye. >>> >>> It may be that the algorithms are converging to a local minimum rather than >>> the global one, but I don't know a good way to change this behaviour. I >>> seem to remember that simulated annealing was a way to solve this problem - >>> does anybody know anything about that? >>> >>> So, what I would like to know: >>> >>> - Is there a better way than fsolve or Nelder Mead for fitting a circle to >>> the data? >>> - Is there a way to tune the performance that might give me a better fit? >>> >>> I can post some code if it helps. >>> >>> Thanks for any help. >>> >>> Regards, >>> Mike. >>> >> If you can send the data (or a sample) I would like to try. >> -- >> MSc. Vlad?mir Rodr?guez Diez >> Departamento de Ingenier?a El?ctrica >> Universidad de Camag?ey >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.791 / Virus Database: 271.1.1/2763 - Release Date: >> 03/22/10 07:33:00 >> >> > > > No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.791 / Virus Database: 271.1.1/2763 - Release Date: 03/22/10 07:33:00 From srikumarks at mac.com Wed Mar 24 04:59:05 2010 From: srikumarks at mac.com (kumar) Date: Wed, 24 Mar 2010 11:59:05 +0800 Subject: scilab 5.2.1 on macosx leopard 10.5.8 Message-ID: Hi, I just downloaded scilab 5.2.1 on my macbook pro (10.5.8). The program refuses to run. When I try to launch it, the scilab icon turns into a java icon and stays put like that. I had to kill the two "scilab" and "scilab-bin" processes which were hung. When I tried to start scilab-bin directly from command line in Terminal, I get the following error - --- dyld: Library not loaded: /Users/pmarecha/compilation_chain_5.2/ sci_binary/scilab-5.2.1.app/Contents/MacOS/lib/scilab/libscishell. 5.dylib Referenced from: /Applications/scilab-5.2.1.app/Contents/MacOS/bin/ scilab-bin Reason: image not found --- Any hint about how to get it to run? Thanks in advance. -Kumar From dwarnold45 at suddenlink.net Wed Mar 24 07:36:25 2010 From: dwarnold45 at suddenlink.net (David Arnold) Date: Tue, 23 Mar 2010 23:36:25 -0700 Subject: C Message-ID: <31F6544F-DBAD-44C8-9852-6869759831A2@suddenlink.net> All, I'm trying to remember a little C so that I can work on the interface section in Modeling and Simulation by Campbell, et al. However, I am stuck: #include int var=1; int *ptr; main() { ptr=&var; printf("\nDirect access, var = %d", var); printf("\nIndirect access, var = %d", *ptr); printf("\n\nThe address of var = %d", &var); printf("\nThe address of var = %d\n", ptr); return 0; } On my macbook pro (10.6.2), I get this error: david-arnolds-macbook-pro-2:cprograms darnold$ gcc hello.c hello.c: In function ?main?: hello.c:13: warning: format ?%d? expects type ?int?, but argument 2 has type ?int *? hello.c:14: warning: format ?%d? expects type ?int?, but argument 2 has type ?int *? What am I doing wrong? David From antoine.elias at scilab.org Wed Mar 24 09:11:00 2010 From: antoine.elias at scilab.org (Antoine ELIAS) Date: Wed, 24 Mar 2010 09:11:00 +0100 Subject: [scilab-Users] C In-Reply-To: <31F6544F-DBAD-44C8-9852-6869759831A2@suddenlink.net> References: <31F6544F-DBAD-44C8-9852-6869759831A2@suddenlink.net> Message-ID: <4BA9C914.1050006@scilab.org> Hi, I think you should replace %d by %x or %X : printf("\n\nThe address of var = %x", &var); printf("\nThe address of var = %X\n", ptr); Antoine Le 24/03/2010 07:36, David Arnold a ?crit : > All, > > I'm trying to remember a little C so that I can work on the interface section in Modeling and Simulation by Campbell, et al. However, I am stuck: > > #include > > int var=1; > int *ptr; > > main() { > > ptr=&var; > > printf("\nDirect access, var = %d", var); > printf("\nIndirect access, var = %d", *ptr); > > printf("\n\nThe address of var = %d",&var); > printf("\nThe address of var = %d\n", ptr); > > return 0; > > } > > On my macbook pro (10.6.2), I get this error: > > david-arnolds-macbook-pro-2:cprograms darnold$ gcc hello.c > hello.c: In function ?main?: > hello.c:13: warning: format ?%d? expects type ?int?, but argument 2 has type ?int *? > hello.c:14: warning: format ?%d? expects type ?int?, but argument 2 has type ?int *? > > > What am I doing wrong? > > David -- Antoine ELIAS Software developer ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay France Phone: +33.1.39.63.50.63 From Samuel.Gougeon at univ-lemans.fr Wed Mar 24 09:27:34 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 24 Mar 2010 09:27:34 +0100 Subject: [scilab-Users] Guide? In-Reply-To: <997A24F2-3B20-4EA2-82AC-554CEDC734B0@suddenlink.net> References: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> <20100323191200.50235fit2qbzoscg@webmail.utc.fr> <997A24F2-3B20-4EA2-82AC-554CEDC734B0@suddenlink.net> Message-ID: <4BA9CCF6.6080308@univ-lemans.fr> ----- Message d'origine ----- De : David Arnold Date : 23/03/2010 19:27: > All, > > Does Scilab have something similar to Matlab's GUIDE? > http://www.scilab.org/support/documentation/tutorials Main menu : Support => Documentation Link to the Wiki : 1rst frame : Scilab documentation 1rst item: Tutorials SG From stephane.mottelet at utc.fr Wed Mar 24 10:06:34 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Wed, 24 Mar 2010 10:06:34 +0100 Subject: [scilab-Users] Guide? In-Reply-To: <4BA9CCF6.6080308@univ-lemans.fr> References: <20100323190940.11633wq88tuw3u9s@webmail.utc.fr> <20100323191200.50235fit2qbzoscg@webmail.utc.fr> <997A24F2-3B20-4EA2-82AC-554CEDC734B0@suddenlink.net> <4BA9CCF6.6080308@univ-lemans.fr> Message-ID: <4BA9D61A.2090704@utc.fr> Samuel Gougeon a ?crit : > ----- Message d'origine ----- > De : David Arnold > Date : 23/03/2010 19:27: >> All, >> >> Does Scilab have something similar to Matlab's GUIDE? >> > http://www.scilab.org/support/documentation/tutorials > Main menu : Support => Documentation > Link to the Wiki : 1rst frame : Scilab documentation > 1rst item: Tutorials > > SG > Well, maybe David was wondering about GUIDE="GUI" +"IDE" Matlab GUI interface builder : there is a toolbox dedicated to this task : guimaker is a command line tool for creating graphical user interfaces (GUI) in Scilab : http://atoms.scilab.org/toolboxes/guimaker/1.4 S. From ludovic.jamet at lyonnaise-des-eaux.fr Wed Mar 24 10:29:36 2010 From: ludovic.jamet at lyonnaise-des-eaux.fr (Ludovic JAMET) Date: Wed, 24 Mar 2010 10:29:36 +0100 Subject: Compilation ; executable ; Windows Message-ID: An HTML attachment was scrubbed... URL: From nicolas.vergnes at cnes.fr Wed Mar 24 11:36:39 2010 From: nicolas.vergnes at cnes.fr (Vergnes Nicolas (STERIA)) Date: Wed, 24 Mar 2010 11:36:39 +0100 Subject: Scilab and multicore Message-ID: Hello, when working on matrices is it possible to constrain scilab 4.x and 5.x to use -if possible by default- all cores avalaibles ? is there Scilab code to add or Scilab need to be compiled especially with optimised MP libraries ( libacml_mp or une libgoto multithread?e ) Regards; Nicolas Vergnes Produits & Logiciels Cnes 3IRT/AP /POL Infog?rance de l'Infrastructure Informatique des R?seaux et T?l?communications Groupement Steria / Thales T?l. :05612 8 30 87 From sylvestre.ledru at scilab.org Wed Mar 24 14:16:59 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 24 Mar 2010 14:16:59 +0100 Subject: [scilab-Users] Scilab and multicore In-Reply-To: References: Message-ID: <1269436619.12129.10934.camel@korcula.inria.fr> Hello Nicolas, Le mercredi 24 mars 2010 ? 11:36 +0100, Vergnes Nicolas (STERIA) a ?crit : > Hello, > > when working on matrices is it possible to constrain scilab 4.x and 5.x to use -if possible by default- all cores avalaibles ? > > is there Scilab code to add > or Scilab need to be compiled especially with optimised MP libraries ( libacml_mp or une libgoto multithread?e ) If you use the MKL or Atlas, if the computation is big enough, it should use some of the core available. Sylvestre From paul.carrico at esterline.com Wed Mar 24 14:27:01 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 24 Mar 2010 14:27:01 +0100 Subject: [scilab-Users] Compilation ; executable ; Windows In-Reply-To: References: Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AB13@exchsrv.AUXITROL1> All, As described herebellow, I'm also interested to know if it's possible to generate a .exe file from Scilab after compiling my own file (.sce and .sci) ... the main purpose is to have a program that can be launch from any PC without Scilab ! Regards PC ________________________________ De : Ludovic JAMET [mailto:ludovic.jamet at lyonnaise-des-eaux.fr] Envoy? : mercredi 24 mars 2010 10:30 ? : users at lists.scilab.org Objet : [scilab-Users] Compilation ; executable ; Windows Bonjour, Etant novice dans l'utilisation de scilab mais connaissant quelques rudiments de programmation, je rencontre actuellement le probl?me suivant . J'ai cr?? une liste de scripts (un .sce et 6 .sci) qui executent parfaitement mon programme. Cependant, j'aimerai pouvoir l'utiliser sans ? avoir ? utiliser Scilab. En d'autres termes, j'aimerais compiler ces fichiers en executable .exe sachant que je suis sous Windows. Faut - il un compilateur en plus qui ne soit pas inclu dans Scilab? Y a-t-il d'autres solutions? Je vous remercie d'avance de votre r?ponse. Bien cordialement, Ludovic Jamet Warning The information in this e-mail and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). It must therefore not be disclosed to any person without our previous authorisation. If you are not the intended recipient , or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it and you are requested to notify the sender immediately. Electronic messages may be altered. Lyonnaise des Eaux and its subsidiaries shall therefore accept no liability whatsoever and howsoever resulting from this message if it has been changed, distorted or falsified. ___________________________________________________________________________ Avertissement L'information contenue dans cet e-mail et dans toutes les pi?ces jointes est confidentielle et strictement r?serv?e ? l'usage de la personne ? laquelle l'e-mail est adress?. Elle ne doit, par cons?quent, en aucun cas ?tre divulgu?e ? qui que ce soit sans notre autorisation pr?alable. Si vous n'?tes pas le destinataire projet?, ou une personne charg?e de le transmettre ? ce destinataire, vous n'?tes pas autoris? ? diffuser et/ou reproduire tout ou partie de cette communication et ?tes pri?s de pr?venir imm?diatement l'exp?diteur de cette erreur. Tout message ?lectronique est susceptible d'alt?ration. La soci?t? Lyonnaise des Eaux et ses filiales d?clinent toute responsabilit?, de quelque nature que ce soit, au titre de ce message s'il a ?t? alt?r?, d?form? ou falsifi?. ___________________________________________________________________________ -------------------------------------------------------------------------------- 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 nicolas.vergnes at cnes.fr Wed Mar 24 15:17:02 2010 From: nicolas.vergnes at cnes.fr (Vergnes Nicolas (STERIA)) Date: Wed, 24 Mar 2010 15:17:02 +0100 Subject: [scilab-Users] Scilab and multicore In-Reply-To: <1269436619.12129.10934.camel@korcula.inria.fr> References: <1269436619.12129.10934.camel@korcula.inria.fr> Message-ID: Scilab 5.x dont supports other libraries than mkl and atlas ? Scilab 4 have only --with-atlas-library, by changing the Makefile could scilab-4.1.2 use other libs ? What do you mean by big enough ? Does Scilab decide if one or more procs are used ? What are the parameters for this decision ? Thanks, nicolas Vergnes -----Message d'origine----- De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Envoy? : mercredi 24 mars 2010 14:17 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Scilab and multicore Hello Nicolas, Le mercredi 24 mars 2010 ? 11:36 +0100, Vergnes Nicolas (STERIA) a ?crit : > Hello, > > when working on matrices is it possible to constrain scilab 4.x and 5.x to use -if possible by default- all cores avalaibles ? > > is there Scilab code to add > or Scilab need to be compiled especially with optimised MP libraries ( libacml_mp or une libgoto multithread?e ) If you use the MKL or Atlas, if the computation is big enough, it should use some of the core available. Sylvestre From sylvestre.ledru at scilab.org Wed Mar 24 15:31:29 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 24 Mar 2010 15:31:29 +0100 Subject: [scilab-Users] Scilab and multicore In-Reply-To: References: <1269436619.12129.10934.camel@korcula.inria.fr> Message-ID: <1269441089.12129.11262.camel@korcula.inria.fr> Le mercredi 24 mars 2010 ? 15:17 +0100, Vergnes Nicolas (STERIA) a ?crit : > Scilab 5.x dont supports other libraries than mkl and atlas ? MKL & ATLAS are just implementations of BLAS. Most of the time, you can switch between them without any problems. Under Windows, you have the opportunity to select the one you want with the installer. Under Linux, it is harder. By default, we are shipping with Ref BLAS which is (very) slow. This is done for portability reasons but we are considering other solutions. If you want to have the best performances under Linux / Unix / Mac OS X, you rebuild Scilab with ATLAS for example. > Scilab 4 have only --with-atlas-library, by changing the Makefile could scilab-4.1.2 use other libs ? > What do you mean by big enough ? Does Scilab decide if one or more procs are used ? What are the parameters for this decision ? It is not managed by Scilab but by the underlying libraries (ie, they know when to use the multicore capabilities) Sylvestre > Thanks, > > nicolas Vergnes > > -----Message d'origine----- > De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Envoy? : mercredi 24 mars 2010 14:17 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] Scilab and multicore > > Hello Nicolas, > > Le mercredi 24 mars 2010 ? 11:36 +0100, Vergnes Nicolas (STERIA) a > ?crit : > > Hello, > > > > when working on matrices is it possible to constrain scilab 4.x and 5.x to use -if possible by default- all cores avalaibles ? > > > > is there Scilab code to add > > or Scilab need to be compiled especially with optimised MP libraries ( libacml_mp or une libgoto multithread?e ) > If you use the MKL or Atlas, if the computation is big enough, it should > use some of the core available. > > Sylvestre > > From ron at phenotypescreening.com Wed Mar 24 16:17:41 2010 From: ron at phenotypescreening.com (Ronald Michaels) Date: Wed, 24 Mar 2010 11:17:41 -0400 Subject: [scilab-Users] C In-Reply-To: <31F6544F-DBAD-44C8-9852-6869759831A2@suddenlink.net> References: <31F6544F-DBAD-44C8-9852-6869759831A2@suddenlink.net> Message-ID: <1269443861.14339.289.camel@SUN> This compiles: #include int var=1; int *ptr; main() { ptr=&var; printf("\nDirect access, var = %d", var); printf("\nIndirect access, var = %d", *ptr); printf("\n\nThe address of var = %lx", (long unsigned int)&var); printf("\nThe address of var = %lx\n", (long unsigned int)ptr); return 0; } note the lx which is long unsigned int and the cast to the variable. This will print addresses out as long unsigned int. Ron On Tue, 2010-03-23 at 23:36 -0700, David Arnold wrote: > #include > > int var=1; > int *ptr; > > main() { > > ptr=&var; > > printf("\nDirect access, var = %d", var); > printf("\nIndirect access, var = %d", *ptr); > > printf("\n\nThe address of var = %d", &var); > printf("\nThe address of var = %d\n", ptr); > > return 0; > > } > From Samuel.Gougeon at univ-lemans.fr Wed Mar 24 18:18:35 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 24 Mar 2010 18:18:35 +0100 Subject: [scilab-Users] Compilation ; executable ; Windows In-Reply-To: References: Message-ID: <4BAA496B.2030302@univ-lemans.fr> ----- Message d'origine ----- De : Ludovic JAMET Date : 24/03/2010 10:29: > > Bonjour, > Etant novice dans l'utilisation de scilab mais connaissant quelques > rudiments de programmation, je rencontre actuellement le probl?me > suivant . > J'ai cr?? une liste de scripts (un .sce et 6 .sci) qui executent > parfaitement mon programme. Cependant, j'aimerai pouvoir l'utiliser > sans ? avoir ? utiliser Scilab. En d'autres termes, j'aimerais > compiler ces fichiers en executable .exe sachant que je suis sous > Windows. Faut - il un compilateur en plus qui ne soit pas inclu dans > Scilab? Y a-t-il d'autres solutions? Je vous remercie d'avance de > votre r?ponse. > Bien cordialement, > > Ludovic Jamet > See for instance http://groups.google.com/group/comp.soft-sys.math.scilab/browse_frm/thread/8a18c27c05e6ba54/dc13b4bca46f337a Regards Samuel Gougeon From Samuel.Gougeon at univ-lemans.fr Wed Mar 24 18:33:42 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 24 Mar 2010 18:33:42 +0100 Subject: [scilab-Users] Scilab and multicore In-Reply-To: <1269441089.12129.11262.camel@korcula.inria.fr> References: <1269436619.12129.10934.camel@korcula.inria.fr> <1269441089.12129.11262.camel@korcula.inria.fr> Message-ID: <4BAA4CF6.5090703@univ-lemans.fr> ----- Message d'origine ----- De : Sylvestre Ledru Date : 24/03/2010 15:31: > MKL & ATLAS are just implementations of BLAS. Most of the time, you can > switch between them without any problems. > Under Windows, you have the opportunity to select the one you want with > the installer. BTW, is there a way for switching this choice /after/ installation, for example for a specific session, in order to test http://bugzilla.scilab.org/show_bug.cgi?id=6783#c8 ? SG -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab.org Thu Mar 25 09:19:24 2010 From: communication at scilab.org (Scilab Communication) Date: Thu, 25 Mar 2010 09:19:24 +0100 Subject: New Tutorials Message-ID: <4BAB1C8C.5070505@scilab.org> Dear all, The Scilab Consortium makes available to its users some tutorials on Scilab use. Introductions and resources for more advanced users can be downloaded in the Tutorials section. Do not hesitate to consult them on http://www.scilab.org/en/support/documentation/tutorials Best Regards ----------------------------------------------- The Scilab Consortium ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From forenbeitraege at oliverdemetz.de Thu Mar 25 12:51:08 2010 From: forenbeitraege at oliverdemetz.de (Oliver Demetz) Date: Thu, 25 Mar 2010 12:51:08 +0100 Subject: How to suppress warnings Message-ID: <4BAB4E2C.9010106@oliverdemetz.de> Hi, I am getting warnings of the kind "warning matrix is close to singular..." frequently in my code. I know that this can be a problem, but for now I have to accept thi fact. I would like to suppress these warnings so that they are not displayed anymore. How can I realise this? Further, since I am using the scilex program to use its output in my own application, I have the problem, that even with the "-nwni" switch, scilex asks me "more ?" which I also would like to be answered automatically with "y". How can I switch off this question? Thanks in advance Oliver Demetz From yann.collette at scilab.org Thu Mar 25 13:23:11 2010 From: yann.collette at scilab.org (Collette yann) Date: Thu, 25 Mar 2010 13:23:11 +0100 Subject: [scilab-Users] How to suppress warnings In-Reply-To: <4BAB4E2C.9010106@oliverdemetz.de> References: <4BAB4E2C.9010106@oliverdemetz.de> Message-ID: <4BAB55AF.90303@scilab.org> You can try warning('off') for warning messages and lines(0) to get rid of "more ?". YC Oliver Demetz a ?crit : > Hi, > > I am getting warnings of the kind > > "warning > matrix is close to singular..." > > frequently in my code. I know that this can be a problem, but for now > I have to accept thi fact. > > I would like to suppress these warnings so that they are not displayed > anymore. > > How can I realise this? > > > Further, > since I am using the scilex program to use its output in my own > application, I have the problem, that even with the > > "-nwni" > > switch, scilex asks me > > "more ?" > > which I also would like to be answered automatically with "y". > > How can I switch off this question? > > Thanks in advance > > Oliver Demetz > From eduardo at softwork.co.il Fri Mar 26 09:22:31 2010 From: eduardo at softwork.co.il (Eduardo Tarasiuk) Date: Fri, 26 Mar 2010 11:22:31 +0300 Subject: Some Scilab interaction issues Message-ID: <95c4a9433a2efe478b3d6a24453b08a6@srv1.softwork.co.il> Hello I do not know if this is the right place to write those issues, and if not please write where I can do so and sorry. [1] The Graph Editor has a very basic default for fonts, and size of: Axis Names, Labels, tics mark, etc. Maybe there is a reason for that like performance. The case is that users need to change all the time those defaults, and when a lot of graphs are displayed, this is real, a lot of work. Is any possibility to give the user a button like "Save your settings" and to save those settings, in a file to be used for every graph in the future?. A "Restore default settings or system settings" may be also needed. The most needed settings are the fonts and size. [2] When browsevar is used to display variables, arrays, etc. It will be easier if the user can save to a csv file a chosen array or matrix directly from the browsevar using just the mouse and choosing something like : "save var to a file". Engineers in my company usually are working interactively and sometimes in their interactive work, they create a sci/sce program and sometimes no. They made a calculation, sometimes the results are returned through variables, if some operations like plot, save to a csv file, etc can be done interactively, I think that this will make the work more "fluent" and easy. [3] Just a button "Run" in the editor instead or in addition to the "execute into Scilab" cascade option. These three additions I agree, are not compared to increasing core functionality in Scilab, even though it will increase the usability of Scilab for users and specially for those that come from Matlab. Thanks Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.wozniczka at gazeta.pl Fri Mar 26 20:00:16 2010 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Fri, 26 Mar 2010 20:00:16 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: References: <4BA8B8C7.7090004@free.fr> <4BA8D93D.9070300@free.fr> <4BA8DA4B.9040704@free.fr> Message-ID: Hello, I have one more problem with transfer variables from TCL to Scilab and from Scilab to TCL. In Tcl I have several entries field in which name of variables are nr$i (where $i are following numbers). Example of this function in TCL is below: *for {set i 1} {$i <= ($::npkt)} {incr i} {* * pack [entry .pol.n.nr$i -width 7 -justify right -textvariable nr$i -validate key -vcmd {expr {[string is double %P] && ![string match ""0*"" %P] && [string len %P] <=7}}]* *}* > So if I have *npkt = 5* I should have 5 variables call *nr1*, *nr2*, *nr3* i *nr4*. So I created in Scilab function which should import this variables: *function []=calc()* *n=evstr(TCL_GetVar("npkt"));* *for i=1:n* * b ="nr''+string(i) //name of variables in TCL* * nr_pkt(i)=evstr(TCL_GetVar("b"));* *end* *endfunction* * * After executed program inScilab and used this finctionI have information: * !--error 999 * *TCL_GetVar: Could not read Tcl Variable.* *at line 14 of function liczpol called by : * *liczpol()* *while executing a callback* * * Could anyone know what is wrong with this function? And I have question about second function which should return calculated variables to TCL. Is this function is write correctly? *function []=result()* *n=evstr(TCL_GetVar("nrxp"));* *for i=1:n* * x ='xp'+string(i) //name of variables in TCL * * TCL_SetVar("x",r(i)) //r(i) are results * *end* *endfunction* Could you tell me where is mistake in my function, and what can I do with it to fix it? Marcin -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Fri Mar 26 21:26:13 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Fri, 26 Mar 2010 21:26:13 +0100 Subject: [scilab-Users] variables from TCL in Scilab In-Reply-To: References: <4BA8B8C7.7090004@free.fr> <4BA8D93D.9070300@free.fr> <4BA8DA4B.9040704@free.fr> Message-ID: <4BAD1865.5020607@free.fr> marcin.wozniczka Gazeta.pl said on 26/03/2010 20:00: > Example of this function in TCL is below: Please stop trying formatting your code when posting. Italics is really awful to read (my opinion) and does not ease error detection (just a fact). > /for {set i 1} {$i <= ($::npkt)} {incr i} {/ > / pack [entry .pol.n.nr$i -width 7 -justify right > -textvariable nr$i -validate key -vcmd {expr {[string is double %P] && > ![string match ""0*"" %P] && [string len %P] <=7}}]/ > /}/ Why [string match ""0*"" %P] ? This triggers an error in Tcl. Use [string match "0*" %P] > /function []=calc()/ > /n=evstr(TCL_GetVar("npkt"));/ > /for i=1:n/ > / b ="nr''+string(i) //name of variables in TCL/ > / nr_pkt(i)=evstr(TCL_GetVar("b"));/ > /end/ > /endfunction/ Read carefully your line: > / b ="nr''+string(i) //name of variables in TCL/ This cannot work. Italics does not let you see the problem. What works is: b ="nr"+string(i) //name of variables in TCL/ > After executed program inScilab and used this finctionI have information: > / !--error 999 / > /TCL_GetVar: Could not read Tcl Variable./ > /at line 14 of function liczpol called by : / > /liczpol()/ > /while executing a callback/ > / > / > Could anyone know what is wrong with this function? Yes. nr_pkt(i)=evstr(TCL_GetVar("b")); tries to retrieve variable named "b" from Tcl. You rather want: nr_pkt(i)=evstr(TCL_GetVar(evstr("b"))); Also your function cal should return a result, otherwise nr_pkt is lost upon endfunction. Try: function nr_pkt=calc() instead of function []=calc() > And I have question about second function which should return calculated > variables to TCL. Is this function is write correctly? > /function []=result()/ > /n=evstr(TCL_GetVar("nrxp"));/ > /for i=1:n/ > / x/ > ='xp'+string(i) //name of variables in TCL > // > / > / > TCL_SetVar("x",r(i)) //r(i) are results > / > / > /end/ > /endfunction/ Same issue. You probably want: TCL_SetVar(evstr("x"),r(i)) and not: TCL_SetVar("x",r(i)) Francois From rfongtom at yahoo.com Sun Mar 28 16:48:12 2010 From: rfongtom at yahoo.com (Robert Fong) Date: Sun, 28 Mar 2010 07:48:12 -0700 (PDT) Subject: Incorporating toolboxes Message-ID: <481145.42206.qm@web111902.mail.gq1.yahoo.com> Hi, Are there instructions on how to incorporate toolboxes into Scilab so that one does not have to use the "getf" or "execute" functions? In other words, I would like to call the toolbox functions just like one would the "sin" function. Thanks. Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Mar 29 11:31:11 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 29 Mar 2010 11:31:11 +0200 Subject: [scilab-Users] Incorporating toolboxes In-Reply-To: <481145.42206.qm@web111902.mail.gq1.yahoo.com> References: <481145.42206.qm@web111902.mail.gq1.yahoo.com> Message-ID: <4BB0735F.3090205@limsi.fr> Hello Robert, You can modify the SCIHOME/.scilab to load the toolbox each time scilab starts. See "help startup" on how to find the file. HTH, Mathieu Robert Fong wrote: > Hi, > > Are there instructions on how to incorporate toolboxes into Scilab so > that one does not have to use the "getf" or "execute" functions? > > In other words, I would like to call the toolbox functions just like > one would the "sin" function. > > > Thanks. > > Robert > From Ibrahim.Amer at ge.com Mon Mar 29 14:17:10 2010 From: Ibrahim.Amer at ge.com (Amer, Ibrahim (GE Healthcare)) Date: Mon, 29 Mar 2010 14:17:10 +0200 Subject: scilab, calcul formelle? Message-ID: bonjour, je voudrais savoir si scilab fais du comcul formel comme MAtlab , ou c'est que pour le calcul numerique?? merci cordialement -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Mar 29 14:52:29 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 29 Mar 2010 14:52:29 +0200 Subject: [scilab-Users] scilab, calcul formelle? In-Reply-To: References: Message-ID: <1269867149.11786.166.camel@korcula.inria.fr> Hello, This is an english mailing list. Scilab is like Matlab, it is a numerical computing software, not a symbolic one. However, Scilab has one stable link to a third party symbolic software: http://forge.scilab.org/index.php/p/scimax/ And an other one under development: http://forge.scilab.org/index.php/p/symcomp/ (which won't build against the 5.2 family. it needs some fixes) Sylvestre Le lundi 29 mars 2010 ? 14:17 +0200, Amer, Ibrahim (GE Healthcare) a ?crit : > bonjour, je voudrais savoir si scilab fais du comcul formel comme > MAtlab , ou c'est que pour le calcul numerique?? > > merci cordialement From ronny.rooman at base.be Mon Mar 29 17:08:26 2010 From: ronny.rooman at base.be (Ronny Rooman) Date: Mon, 29 Mar 2010 17:08:26 +0200 Subject: PDF export crashes Message-ID: <87E9B4DB0241491FA786E51EF745F97C@ronny1> Dear Support, The included program creates a graphic that i want to use as pdf file. When exporting the graphic window'2' as pdf scilab crashes. I need to go to 'ctrl alt del' to end scilab. Exporting as png or jpg works fine. What can i do to get my pdf graphic? The program and the debuginfo is included. Regards, Ronny Rooman This is the program: //problemprgrm s=poly(0,'s'); z=poly(0,'z'); tsamp=0.005; tdead=0.0; frequentie=1.59; delay=tdead/tsamp; kp=100.0;tau1=1.0;tau2=1.0; proces=syslin('c',kp/((1+s*tau1)*(1+s*tau2))); procesz=tf2ss(ss2tf(dscr(tf2ss(proces),tsamp))*z^(-delay)); u=[0:tsamp:10]; sig=sin(2*%pi*frequentie*u); y=dsimul(procesz,sig); clf(2) xset('window',2) plot2d(u,sig,style=3,rect=[8,-1.1,10,1.1]) e=gce(); e.children(1).thickness=2; plot2d(u,y,style=5,rect=[8,-1,10,1]) f=gcf();//fontsize van de assen bepalen f.children.font_size=3; e=gce();//dikte van de plotlijnen bepalen e.children(1).thickness=2; xgrid(2)//blauwe gridlijnen Debug info: ___________________________________________ scilab-5.2.1 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Startup execution: loading initial environment -->getdebuginfo ans = !Memory in use: 60 % ! ! ! !Total Physical Memory (Kbytes): 1048016 ! ! ! !Free Physical Memory (Kbytes): 409936 ! ! ! !Total Paging File (Kbytes): 2519128 ! ! ! !Free Paging File (Kbytes): 1929156 ! ! ! !Total Virtual Memory (Kbytes): 2097024 ! ! ! !Free Virtual Memory (Kbytes): 1586196 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows XP ! ! ! ! Intel(R) Pentium(R) 4 CPU 3.00GHz ! ! ! !Number of processors: 2 ! ! ! !Video card: RADEON X300/X550 Series ! ! ! !Video card driver version: 8.191.0.0 ! ! ! !Screen size: 1024 x 768 32 bits ! ! ! !Number of Monitors: 1 ! ! ! !Path: C:/Program Files/scilab-5.2.1/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WB EM;C:\Program Files\Microso! ! ft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Mi! ! crosoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin ! ! ! !ComSpec: C:\WINDOWS\system32\cmd.exe ! ! ! !TMP : C:\DOCUME~1\Ronny\LOCALS~1\Temp ! ! ! !TEMP: C:\DOCUME~1\Ronny\LOCALS~1\Temp ! ! ! !WSCI: C:\Program Files\scilab-5.2.1 ! ! ! !SCIHOME: C:\DOCUME~1\Ronny\APPLIC~1\Scilab\scilab-5.2.1 ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From elizotte at tampabay.rr.com Mon Mar 29 22:16:21 2010 From: elizotte at tampabay.rr.com (Ed) Date: Mon, 29 Mar 2010 16:16:21 -0400 Subject: Atoms module is not in english Message-ID: <000901cacf7c$b2d1d1f0$187575d0$@rr.com> The atoms module and the demo are in some unrecognizable language. I picked English as my install language. Please help me get to the bottom of it. Edward Lizotte 9515 Moore Rd Lakeland, FL 33809 863-838-3915 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Mar 30 09:58:40 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 30 Mar 2010 09:58:40 +0200 Subject: [scilab-Users] Atoms module is not in english In-Reply-To: <000901cacf7c$b2d1d1f0$187575d0$@rr.com> References: <000901cacf7c$b2d1d1f0$187575d0$@rr.com> Message-ID: <4BB1AF30.60707@univ-lemans.fr> ----- Message d'origine ----- De : Ed Date : 29/03/2010 22:16: > > The atoms module and the demo are in some unrecognizable language. I > picked English as my install language. > > Please help me get to the bottom of it. > In the console, enter: setdefaultlanguage("en") Then, quit the session and start a new one. Start demos and atoms to see which language is used. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricci2 at unisi.it Wed Mar 31 12:18:51 2010 From: ricci2 at unisi.it (Maso Ricci) Date: Wed, 31 Mar 2010 12:18:51 +0200 Subject: lsqrsolve Message-ID: <4BB3218B.4010305@unisi.it> Hi, I am using the lsqrsolve function to fit some data. I wonder whether lsqrsolve accepts contrains in order to force the solution to be positive. thanks in advance for any comments and suggestions -- ---------------------------------------- Maso RICCI PhD Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via Aldo Moro,2 Siena phone: +390577234367 email: ricci2 at unisi.it ---------------------------------------- From sdr at durietz.se Wed Mar 31 22:56:21 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 31 Mar 2010 22:56:21 +0200 Subject: unix-function Message-ID: <4BB3B6F5.8020608@durietz.se> Hi, I want to start a Windows XP program (timer) with command line arguments from Scilab (4.1.2; I have updated my graphic card (ATI Radeon 2.6 Pro, AGP) drivers innumerable times, but Scilab 5.2.1 still crashes when I plot anything...). Unfortunately, Scilab is "Not responding" until the timer program has ended (several hours!). I need to call something from Scilab that sends the command to the program. I have tried batch files (which can work but in Windows it is impossible (without VB scripts) to avoid a command window showing up. A shortcut (.lnk-file) works but how can I pass an argument from Scilab to the program through it? I have tried an environment variable, but the shortcut doesn't seem to be able to read it. I would be grateful for any tips. Most of the time, I love Scilab! Regards Stefan From vincent.guffens at googlemail.com Wed Mar 31 23:09:41 2010 From: vincent.guffens at googlemail.com (vinsz) Date: Wed, 31 Mar 2010 22:09:41 +0100 Subject: [scilab-Users] lsqrsolve In-Reply-To: <4BB3218B.4010305@unisi.it> References: <4BB3218B.4010305@unisi.it> Message-ID: <4BB3BA15.80305@gmail.com> On 31/03/2010 11:18, Maso Ricci wrote: > Hi, > > I am using the lsqrsolve function to fit some data. > I wonder whether lsqrsolve accepts contrains in order to force the > solution to be positive. > > thanks in advance for any comments and suggestions A common trick to force a parameter to remain positive is to use the exp() function in the solver, for instance: function er = to_fit(X, m) a = exp( X(1) ) b = X(2) [...] endfunction x = lsqrsolve([log(a0), b0], to_fit, N) a_fit = exp(x(1)) hope it helps, Best regards,