From mchait at ucn.cl Sat May 1 07:41:17 2010 From: mchait at ucn.cl (Marcos Chait) Date: Sat, 1 May 2010 01:41:17 -0400 Subject: Question on old versions Message-ID: Hello I have not been able to download Scilab 4.0 from the old versions section. I need it because is the only release that works with the SIP toolbox that I need to use to do image processing. Unfortunatelly that version has also vanished from the Iinternet. I would thank to receive a link to that old Scliab version 4.0, the file is scilab-4.0.exe , that is for Windows. gratefully yours -- Marcos Chait B. Director Departamento Ingenier?a de Sistemas y Computaci?n Tel?fono +56 55 355139 http://www.ucn.cl From sylvestre.ledru at scilab.org Sat May 1 08:55:12 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 01 May 2010 08:55:12 +0200 Subject: [scilab-Users] Question on old versions In-Reply-To: References: Message-ID: <1272696912.11723.2093.camel@zlarin> Hello Marcos, Le samedi 01 mai 2010 ? 01:41 -0400, Marcos Chait a ?crit : > Hello > I have not been able to download Scilab 4.0 from the old versions > section. I need it because is the only release that works with the SIP > toolbox that I need to use to do image processing. FYI, SIVP is perfectly compatible with Scilab 5.X family: http://sivp.sourceforge.net/ > Unfortunatelly that > version has also vanished from the Iinternet. http://www.scilab.org/communities/developer_zone/scilab_versions/oldreleases Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From allan.cornet at scilab.org Mon May 3 08:40:25 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 3 May 2010 08:40:25 +0200 Subject: [scilab-Users] Error 193 In-Reply-To: References: Message-ID: <002401caea8b$82ee75e0$88cb61a0$@cornet@scilab.org> Hi, Have you install binary version of scilab 5.2.2 (x86 or x64) ? Allan De : Aleksandar Kritski (Neterra PoP Varna) [mailto:akritski at neterra.net] Envoy? : vendredi 30 avril 2010 10:45 ? : users at lists.scilab.org Objet : [scilab-Users] Error 193 I am unable to start scilab at all. When started it fails with this error: "Wscilex.exe failed with error 193: %1 is not a valid Win32 application." The console version gives the same error. "scilex can't launch scilab. Error code : 193 %1 is not a valid Win32 application." Anyone stumbled upon such thing by any chance? Best Regards~ -- --- Aleksandar Kritski Support Engineer Neterra PoP Varna Telephone: +359 52 654 644 Fax: +359 2 975 34 36 Mobile: +359 887 990 933 www.neterra.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon May 3 08:46:44 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 3 May 2010 08:46:44 +0200 Subject: [scilab-Users] install scilab onto a windows HPC cluster In-Reply-To: <4BD99D43.4010600@insa-rennes.fr> References: <693333.83614.qm@web38508.mail.mud.yahoo.com> <019e01cae7aa$75621820$6501a8c0@HOUC35439> <4BD99D43.4010600@insa-rennes.fr> Message-ID: <002c01caea8c$64d67de0$2e8379a0$@cornet@scilab.org> Hi, You need to install x64 version of Scilab to work on x64 platform. http://www.scilab.org/download/5.2.2/scilab-5.2.2_x64.exe Best regards Allan CORNET -- ------------------------------ Allan CORNET ------------------------------ Consortium Scilab Digiteo ------------------------------ -----Message d'origine----- De?: olivier garo [mailto:olivier.garo at insa-rennes.fr] Envoy??: jeudi 29 avril 2010 16:53 ??: users at lists.scilab.org Objet?: [scilab-Users] install scilab onto a windows HPC cluster Hello i would like to install scilab on my cluster wich is under windows hpc 2008? is it compatible? should i wait the 5.3 version of scilab? thank you olivier From akritski at neterra.net Mon May 3 09:02:48 2010 From: akritski at neterra.net (Aleksandar Kritski (Neterra PoP Varna)) Date: Mon, 03 May 2010 10:02:48 +0300 Subject: [scilab-Users] Error 193 In-Reply-To: <002401caea8b$82ee75e0$88cb61a0$@cornet@scilab.org> References: <002401caea8b$82ee75e0$88cb61a0$@cornet@scilab.org> Message-ID: The 32-bit version. This installer: http://www.scilab.org/download/5.2.2/scilab-5.2.2.exe The cpu on the laptop I'm trying it does not have 64 support. Some time ago I've been running older scilab on the same laptop (4.x i think) but now the 5 won't run. Could it be that there are some registry settings left from the previous installation which break things down? ~ On Mon, 03 May 2010 09:40:25 +0300, Allan CORNET wrote: > > Hi, > > > Have you install binary version of scilab 5.2.2 (x86 or x64) ? > > > Allan > > > > De : Aleksandar Kritski (Neterra PoP Varna) [mailto:akritski at neterra.net] > Envoy? : vendredi 30 avril 2010 10:45 > ? : users at lists.scilab.org > Objet : [scilab-Users] Error 193 > > > I am unable to start scilab at all. > > > When started it fails with this error: > > "Wscilex.exe failed with error 193: %1 is not a valid Win32 application." > > > The console version gives the same error. > > "scilex can't launch scilab. > Error code : 193 > %1 is not a valid Win32 application." > > > Anyone stumbled upon such thing by any chance? > > > Best Regards~ > > -- > --- > Aleksandar Kritski > Support Engineer > Neterra PoP Varna > Telephone: +359 52 654 644 > Fax: +359 2 975 34 36 > Mobile: +359 887 990 933 > > www.neterra.net -- --- Aleksandar Kritski Support Engineer Neterra PoP Varna Telephone: +359 52 654 644 Fax: +359 2 975 34 36 Mobile: +359 887 990 933 www.neterra.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.garo at insa-rennes.fr Mon May 3 09:00:11 2010 From: olivier.garo at insa-rennes.fr (olivier garo) Date: Mon, 03 May 2010 09:00:11 +0200 Subject: [scilab-Users] install scilab onto a windows HPC cluster In-Reply-To: <002c01caea8c$64d67de0$2e8379a0$@cornet@scilab.org> References: <693333.83614.qm@web38508.mail.mud.yahoo.com> <019e01cae7aa$75621820$6501a8c0@HOUC35439> <4BD99D43.4010600@insa-rennes.fr> <002c01caea8c$64d67de0$2e8379a0$@cornet@scilab.org> Message-ID: <4BDE747B.9070005@insa-rennes.fr> Hi thank you but is there any documentation on how to parameter scilab i read that scilab 5.3 will be available for windows HPC 2008 and work well with the microsoft scheduler? is it true? best regards olivier Allan CORNET a ?crit : > Hi, > > You need to install x64 version of Scilab to work on x64 platform. > > http://www.scilab.org/download/5.2.2/scilab-5.2.2_x64.exe > > > Best regards > > Allan CORNET > > -- > ------------------------------ > Allan CORNET > ------------------------------ > Consortium Scilab > Digiteo > ------------------------------ > > -----Message d'origine----- > De : olivier garo [mailto:olivier.garo at insa-rennes.fr] > Envoy? : jeudi 29 avril 2010 16:53 > ? : users at lists.scilab.org > Objet : [scilab-Users] install scilab onto a windows HPC cluster > > Hello > i would like to install scilab on my cluster wich is under windows hpc > 2008? > is it compatible? should i wait the 5.3 version of scilab? > thank you > olivier > > > From allan.cornet at scilab.org Mon May 3 09:13:13 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 3 May 2010 09:13:13 +0200 Subject: [scilab-Users] Error 193 In-Reply-To: References: <002401caea8b$82ee75e0$88cb61a0$@cornet@scilab.org> Message-ID: <003001caea90$182c3120$48849360$@cornet@scilab.org> What is your operating system (2k, XP, vista , seven)? And your service pack level (for 2k,XP,vista)? Please report a bug report : http://bugzilla.scilab.org It will be easier to continue this thread Best regards Allan De : Aleksandar Kritski (Neterra PoP Varna) [mailto:akritski at neterra.net] Envoy? : lundi 3 mai 2010 09:03 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Error 193 The 32-bit version. This installer: http://www.scilab.org/download/5.2.2/scilab-5.2.2.exe The cpu on the laptop I'm trying it does not have 64 support. Some time ago I've been running older scilab on the same laptop (4.x i think) but now the 5 won't run. Could it be that there are some registry settings left from the previous installation which break things down? ~ On Mon, 03 May 2010 09:40:25 +0300, Allan CORNET wrote: Hi, Have you install binary version of scilab 5.2.2 (x86 or x64) ? Allan De : Aleksandar Kritski (Neterra PoP Varna) [mailto:akritski at neterra.net] Envoy? : vendredi 30 avril 2010 10:45 ? : users at lists.scilab.org Objet : [scilab-Users] Error 193 I am unable to start scilab at all. When started it fails with this error: "Wscilex.exe failed with error 193: %1 is not a valid Win32 application." The console version gives the same error. "scilex can't launch scilab. Error code : 193 %1 is not a valid Win32 application." Anyone stumbled upon such thing by any chance? Best Regards~ -- --- Aleksandar Kritski Support Engineer Neterra PoP Varna Telephone: +359 52 654 644 Fax: +359 2 975 34 36 Mobile: +359 887 990 933 www.neterra.net -- --- Aleksandar Kritski Support Engineer Neterra PoP Varna Telephone: +359 52 654 644 Fax: +359 2 975 34 36 Mobile: +359 887 990 933 www.neterra.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From denis.crete at thalesgroup.com Mon May 3 13:33:26 2010 From: denis.crete at thalesgroup.com (Denis Crete) Date: Mon, 03 May 2010 13:33:26 +0200 Subject: Solving B=inv(X)*A*X Message-ID: <4BDEB486.1070208@thalesgroup.com> Hello, I want to solve for X B = inv(X)*A*X where A and B are given symmetric complex matrices. I understand that there are solutions for only special cases, but as they originate from a physical problem, I know there should be a solution (although certainly approximate...) I could not figure out what function of Scilab I should use and how. I tried "balanc", "bdiag", "equil", "spec"; but none seems to be appropriate. Thank you very much in advance. Denis Cr?t? -------------- next part -------------- A non-text attachment was scrubbed... Name: denis_crete.vcf Type: text/x-vcard Size: 472 bytes Desc: not available URL: From stephane.mottelet at utc.fr Mon May 3 13:40:23 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 03 May 2010 13:40:23 +0200 Subject: [scilab-Users] Solving B=inv(X)*A*X In-Reply-To: <4BDEB486.1070208@thalesgroup.com> References: <4BDEB486.1070208@thalesgroup.com> Message-ID: <4BDEB627.7060407@utc.fr> Le 03/05/2010 13:33, Denis Crete a ?crit : > Hello, > I want to solve for X > > B = inv(X)*A*X > > where A and B are given symmetric complex matrices. > > I understand that there are solutions for only special cases, but as > they originate from a physical problem, I know there should be a > solution (although certainly approximate...) > > I could not figure out what function of Scilab I should use and how. I > tried "balanc", "bdiag", "equil", "spec"; but none seems to be > appropriate. > Thank you very much in advance. > Denis Cr?t? Hi, here is the solution of a closely related problem (find X s.t. XB+AX=C) http://aero-comlab.stanford.edu/Papers/jameson_007.pdf S. From Samuel.Gougeon at univ-lemans.fr Mon May 3 15:32:50 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 03 May 2010 15:32:50 +0200 Subject: [scilab-Users] Question on old versions In-Reply-To: <1272696912.11723.2093.camel@zlarin> References: <1272696912.11723.2093.camel@zlarin> Message-ID: <4BDED082.5080909@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Sylvestre Ledru Date : 01/05/2010 08:55: > Hello Marcos, > > FYI, SIVP is perfectly compatible with Scilab 5.X family: > http://sivp.sourceforge.net/ > Not for Scilab on Windows. There are no binaries for that, and compilation from sources bugs. However, since last december, the IPD (Image Processing Design) module is distributed through ATOMS and works, only for Windows :-) Samuel From bouchra.bensiali at yahoo.fr Mon May 3 19:50:30 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Mon, 3 May 2010 10:50:30 -0700 (PDT) Subject: [scilab-Users] A question about ode "rkf" Message-ID: <439529.37133.qm@web24402.mail.ird.yahoo.com> Hi, I come with concrete examples, and wish I can find some help. After some research www.math.univ-metz.fr/~sallet/ODE_Scilab.pdf, it seems that the methods used by ode choose their steps to control errors. They are not fixed step solvers. But have some questions: 1/ Consider this: ========================================================================= function Xdot=F(t,X) ? printf("t=%f \n ",t) ? ? Xdot = ((1-t)*X-X^2)/(10^(-4)); ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=180*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F); // printf("\n \n"); t0=178*pas_temps; tf=180*pas_temps; X0=Trajectoire1(:,9); Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F); //comparaison Dif = Trajectoire1(:,9:$)-Trajectoire2 ============================================================================= If you try this example, you'll find that the intermediate?times used between t=0.178 and t=0.179 (to predict the solution at t=0.179) are not the same in the first?and second integration. Why the time t=0.178?is not handeled the same way? A depandance to what happened before maybe? 2/ My initial problem was that?integrating xdot = f(t,x), x(t0)=x0, or integrationg together xdot=f(t,x), ydot=g(t,y), x(t0)=x0, y(t0)=y0, don't give the same result for x. An example that illustrates this is the following: ============================================================================== function Xdot=F1(t,X) ? printf("t=%f \n ",t) ? ? Xdot = X/10^(-3); ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F1); // printf("\n \n"); function Xdot=F2(t,X) ? printf("t=%f \n ",t) ? ? Xdot = [X(1)/10^(-3);((1-t)*X(2)-X(2)^2)/(10^(-4))]; ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=[1;1]; Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F2); //comparaison Dif = Trajectoire1 - Trajectoire2(1,:) =================================================================================== From what I understood, the "rkf" method, as?the?ode45 (Matlab) is a variable step solver: if the estimated error is bigger than the tolerance, the stepsize?is reduced. In the second integration, the error is related to x and y, while in the first integration, it's only related to x, so that can explain the difference in the results. Confirmation? Thanks. ________________________________ De : Bouchra Bensiali ? : users at lists.scilab.org Envoy? le : Ven 30 avril 2010, 16 h 21 min 41 s Objet?: [scilab-Users] A question about ode "rkf" Hi, I wonder if the "rkf" method uses a fixed number of intermediate times as said here http://math.fullerton.edu/mathews/n2003/RungeKuttaFehlbergMod.html. For example, if I define a function F: -- function Xdot=F(t,X) ? //printf("t=%f \n",t) ? ? Xdot = ... ; ? endfunction; -- and make a first integration: -- pas_temps = 0.001; t0 = 170*pas_temps; tf = 180*pas_temps; X0 = ... ; Trajectoire1 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- and a second integration beginning with the result obtained at time t=0.178 (for example): -- t0 = 178*pas_temps; tf = 180*pas_temps; X0 = Trajectoire1(:,9); Trajectoire2 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- then is Trajectoire2 supposed to be the same as Trajectoire1(:,9:11)? Because I have an example that gives different results and found (by using printf("t=%f \n",t)) that the number of intermediate times changed from one integration to another. Thank you in advance for your help. I'm really stuck. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Mon May 3 22:25:23 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Mon, 3 May 2010 20:25:23 +0000 (GMT) Subject: [scilab-Users] Re : [scilab-Users] A question about ode "rkf" In-Reply-To: <439529.37133.qm@web24402.mail.ird.yahoo.com> References: <439529.37133.qm@web24402.mail.ird.yahoo.com> Message-ID: <4159.13101.qm@web28308.mail.ukl.yahoo.com> Hi Bouchra, I am not a SCILAB developer, but normally an ODE uses a variable step size based on the relative error, in the case (x,y) it uses the you have a x-component of the error and a y-component of the error.. so is in the first case, just x-component.. Therefore if you start where the error is big, you have small step size, while if you have small error, you can increase the step size.. I would like to hear an answer from the development team about this, but 90% sure your approach is correct... Regards, Julio ________________________________ From: Bouchra Bensiali To: users at lists.scilab.org Sent: Mon, 3 May, 2010 19:50:30 Subject: [scilab-Users] Re : [scilab-Users] A question about ode "rkf" Hi, I come with concrete examples, and wish I can find some help. After some research www.math.univ-metz.fr/~sallet/ODE_Scilab.pdf, it seems that the methods used by ode choose their steps to control errors. They are not fixed step solvers. But have some questions: 1/ Consider this: ========================================================================= function Xdot=F(t,X) printf("t=%f \n ",t) Xdot = ((1-t)*X-X^2)/(10^(-4)); endfunction // pas_temps=0.001; t0=170*pas_temps; tf=180*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F); // printf("\n \n"); t0=178*pas_temps; tf=180*pas_temps; X0=Trajectoire1(:,9); Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F); //comparaison Dif = Trajectoire1(:,9:$)-Trajectoire2 ============================================================================= If you try this example, you'll find that the intermediate times used between t=0.178 and t=0.179 (to predict the solution at t=0.179) are not the same in the first and second integration. Why the time t=0.178 is not handeled the same way? A depandance to what happened before maybe? 2/ My initial problem was that integrating xdot = f(t,x), x(t0)=x0, or integrationg together xdot=f(t,x), ydot=g(t,y), x(t0)=x0, y(t0)=y0, don't give the same result for x. An example that illustrates this is the following: ============================================================================== function Xdot=F1(t,X) printf("t=%f \n ",t) Xdot = X/10^(-3); endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F1); // printf("\n \n"); function Xdot=F2(t,X) printf("t=%f \n ",t) Xdot = [X(1)/10^(-3);((1-t)*X(2)-X(2)^2)/(10^(-4))]; endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=[1;1]; Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F2); //comparaison Dif = Trajectoire1 - Trajectoire2(1,:) =================================================================================== From what I understood, the "rkf" method, as the ode45 (Matlab) is a variable step solver: if the estimated error is bigger than the tolerance, the stepsize is reduced. In the second integration, the error is related to x and y, while in the first integration, it's only related to x, so that can explain the difference in the results. Confirmation? Thanks. ________________________________ De : Bouchra Bensiali ? : users at lists.scilab.org Envoy? le : Ven 30 avril 2010, 16 h 21 min 41 s Objet : [scilab-Users] A question about ode "rkf" Hi, I wonder if the "rkf" method uses a fixed number of intermediate times as said here http://math.fullerton.edu/mathews/n2003/RungeKuttaFehlbergMod.html. For example, if I define a function F: -- function Xdot=F(t,X) //printf("t=%f \n",t) Xdot = ... ; endfunction; -- and make a first integration: -- pas_temps = 0.001; t0 = 170*pas_temps; tf = 180*pas_temps; X0 = ... ; Trajectoire1 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- and a second integration beginning with the result obtained at time t=0.178 (for example): -- t0 = 178*pas_temps; tf = 180*pas_temps; X0 = Trajectoire1(:,9); Trajectoire2 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- then is Trajectoire2 supposed to be the same as Trajectoire1(:,9:11)? Because I have an example that gives different results and found (by using printf("t=%f \n",t)) that the number of intermediate times changed from one integration to another. Thank you in advance for your help. I'm really stuck. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Tue May 4 21:12:37 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 4 May 2010 12:12:37 -0700 Subject: [scilab-Users] lsqrsolve In-Reply-To: <4BBC4C86.2050905@univ-lemans.fr> References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> Message-ID: I would like to fit a gaussian to some data samples using least squares. The gaussian has two parameters -- amplitude and width (sigma). I would like to use 6 to 12 samples that span a maximum and provide a first guess of the amplitude and width. After reading the manual on lsqsolve, it seems like it will do the job, but I would appreciate some guidance to make it work. Thanks Gary Nelson On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: > ----- Message d'origine ----- > De : Maso Ricci > Date : 31/03/2010 12:18: >> Hi, >> >> I am using the lsqrsolve function to fit some data. >> I wonder whether lsqrsolve accepts contrains in order to force the solution to be positive. >> >> thanks in advance for any comments and suggestions > Did you check the leastsq() function based on the optim() one ? Its 'b', binf, bsup > sequence of 3 input arguments allow to specify some boundaries. > So, for instance, if the solution you are searching for is a scalar that must be positive, > just set 'b',0,%inf. see help leastsq() > > HTH > Samuel > > Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Tue May 4 21:27:32 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 4 May 2010 12:27:32 -0700 Subject: MacOS-X 10.6.3 requires file to be in root Message-ID: <0730043A-5097-4BB3-8C03-437C53E36D95@quantasonics.com> I am encountering a perplexing issue regarding locations of certain files. In order to use loadwave() I have to put the target file in the root director. All the other file operators seem to work as expected, but loadwave seems to require target to be in root directory. This works: file="/WavefunctionProject/VanaquaShorterAFTOS" save(file,aftos); from console clear aftos aftos ...get undefined variable error load(file,aftos) aftos ...shows the data correctly Above works and clearly proves that the matrix aftos is written out and then read back and it does not have to be in the root directory However this does not work file1="/WavefunctionProject/VanaquaShorter.wav" [porp1,yze]=loadwave(file1); generates this-- !--error 10000 loadwave: Cannot open file /VanaquaShorter.wav. at line 22 of function loadwave called by : [porp1,yze]=loadwave(file1); at line 124 of exec file called by : exec('/WavefunctionProject/ Scilab PC/testOctvGen.sce', -1) But this does work file1="/VanaquaShorter.wav" [porp1,yze]=loadwave(file1); I can't see what I am doing wrong. Can you help? Gary Nelson gnelson at quantasonics.com From ray at aarden.us Wed May 5 04:57:10 2010 From: ray at aarden.us (ray joseph) Date: Tue, 4 May 2010 21:57:10 -0500 Subject: [scilab-Users] lsqrsolve References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> Message-ID: <01d301caebfe$a9864510$6501a8c0@HOUC35439> Gary, I am sorry that I am bypassing your original request; but if you calculate the mean and standard deviation of your data set, you will get the two parameters. Using the solver will be a fun exercise. Ray ----- Original Message ----- From: "Gary Nelson" To: Sent: Tuesday, May 04, 2010 2:12 PM Subject: Re: [scilab-Users] lsqrsolve I would like to fit a gaussian to some data samples using least squares. The gaussian has two parameters -- amplitude and width (sigma). I would like to use 6 to 12 samples that span a maximum and provide a first guess of the amplitude and width. After reading the manual on lsqsolve, it seems like it will do the job, but I would appreciate some guidance to make it work. Thanks Gary Nelson On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: > ----- Message d'origine ----- > De : Maso Ricci > Date : 31/03/2010 12:18: >> Hi, >> >> I am using the lsqrsolve function to fit some data. >> I wonder whether lsqrsolve accepts contrains in order to force the solution to be positive. >> >> thanks in advance for any comments and suggestions > Did you check the leastsq() function based on the optim() one ? Its 'b', binf, bsup > sequence of 3 input arguments allow to specify some boundaries. > So, for instance, if the solution you are searching for is a scalar that must be positive, > just set 'b',0,%inf. see help leastsq() > > HTH > Samuel > > Gary Nelson gnelson at quantasonics.com From rfabbri at gmail.com Wed May 5 07:43:47 2010 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Wed, 5 May 2010 01:43:47 -0400 Subject: link error upon loading SIP Message-ID: Hi, I have been working to get SIP to build in recent Linux systems and Scilab 5.2.2. While the SIP CVS version now builds and installs cleanly with Scilab 5.2.2, some systems give a quite obscure message in Scilab when loading the toolbox: Link failed for dynamic library '/home/renato/packs/scilab-5.2.1/share/scilab/contrib/sip-0.4.2-cvs//lib/libsip.so'. An error occurred: /home/renato/packs/scilab-5.2.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib/libMagickCore.so.3) Link failed for dynamic library '/home/renato/packs/scilab-5.2.1/share/scilab/contrib/sip-0.4.2-cvs//lib/libsip.so'. An error occurred: /home/renato/packs/scilab-5.2.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib/libMagickCore.so.3) addinter(libsip_path+'/libsip.so','libsip',functions); This was using Scilab 5.2.2 binary with a system ImageMagick. It seems to me that the system libz is not matching the libz that is linked to Scilab. Any ideas on how to solve this issue? Thanks, Ricardo From du1986lei at 163.com Wed May 5 04:26:04 2010 From: du1986lei at 163.com (du1986lei) Date: Wed, 5 May 2010 10:26:04 +0800 (CST) Subject: *****SPAM***** ask for help!!! Message-ID: <1cd6e62.2651.1286648c4e2.Coremail.du1986lei@163.com> hi, I'm a student of dut university in china. I'm intresting in the scilab.It is a useful tool.Now I have a question .When I use the function of svd,I found that it runs so fast. So I wonder how you do it to enhance the speed of the function.Are you use some special way or use some special technology .Please give me some advice or tell me how you do with it. Looking forward to your reply. best wishes to you! yours lei du -------------- next part -------------- An HTML attachment was scrubbed... URL: From amael.delaunoy at gmail.com Wed May 5 14:04:03 2010 From: amael.delaunoy at gmail.com (=?ISO-8859-1?Q?Ama=EBl_Delaunoy?=) Date: Wed, 5 May 2010 14:04:03 +0200 Subject: bug in rand generation? Message-ID: Dear all, It appears that the rand (also grand) functions generate equal numbers each time Scilab is launched. (tested in several scilab versions, 4.x and 5.2 under linux) This is not written in the documentation of those functions. How to reproduce? simply launch scilab, type rand(2,2,'uniform'), exit scilab, launch scilab, type rand(2,2,'uniform') again, values are identical. (same with grand(2,2,'def') for example) Is it an important missing point in the documentation? or a bug of the rand/grand functions? Or am I missing somethinghere?, Regards, Amael -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Wed May 5 14:21:53 2010 From: yann.collette at scilab.org (Collette yann) Date: Wed, 05 May 2010 14:21:53 +0200 Subject: [scilab-Users] bug in rand generation? In-Reply-To: References: Message-ID: <4BE162E1.7060402@scilab.org> Hello, Thanks for the report. I opened the bug 7037. YC Le 05/05/2010 14:04, Ama?l Delaunoy a ?crit : > Dear all, > > It appears that the rand (also grand) functions generate equal numbers > each time Scilab is launched. (tested in several scilab versions, 4.x > and 5.2 under linux) > This is not written in the documentation of those functions. > How to reproduce? simply launch scilab, type rand(2,2,'uniform'), exit > scilab, launch scilab, type rand(2,2,'uniform') again, values are > identical. (same with grand(2,2,'def') for example) > > Is it an important missing point in the documentation? or a bug of the > rand/grand functions? > Or am I missing somethinghere?, > > Regards, > Amael From yann.collette at scilab.org Wed May 5 14:58:45 2010 From: yann.collette at scilab.org (Collette yann) Date: Wed, 05 May 2010 14:58:45 +0200 Subject: [scilab-Users] bug in rand generation? In-Reply-To: <4BE162E1.7060402@scilab.org> References: <4BE162E1.7060402@scilab.org> Message-ID: <4BE16B85.2070007@scilab.org> So, it's a feature. This is in the current documentation, but not very clearly written. I will add a better warning in the documentation ASAP. YC Le 05/05/2010 14:21, Collette yann a ?crit : > Hello, > > Thanks for the report. I opened the bug 7037. > > YC > > Le 05/05/2010 14:04, Ama?l Delaunoy a ?crit : >> Dear all, >> >> It appears that the rand (also grand) functions generate equal >> numbers each time Scilab is launched. (tested in several scilab >> versions, 4.x and 5.2 under linux) >> This is not written in the documentation of those functions. >> How to reproduce? simply launch scilab, type rand(2,2,'uniform'), >> exit scilab, launch scilab, type rand(2,2,'uniform') again, values >> are identical. (same with grand(2,2,'def') for example) >> >> Is it an important missing point in the documentation? or a bug of >> the rand/grand functions? >> Or am I missing somethinghere?, >> >> Regards, >> Amael > From cgerardi at edu.univ-fcomte.fr Wed May 5 15:23:17 2010 From: cgerardi at edu.univ-fcomte.fr (Charles G.) Date: Wed, 5 May 2010 13:23:17 +0000 (UTC) Subject: Link Scilab/C : Problem passing char* to a C function from Scilab Message-ID: Hello, I'm currently working on Scilab functions and I need to call a C++ function. To do so, I need to go through a C function which does the link between C++ and Scilab. I succeeded in calling dynamically the C function from Scilab, but I still have an issue passing matrix of char* as an "in" argument. With the following function : void callQuantitative(char* model, int* lengthModel, int* nbL, int* nbC){ printf("%s\n",model); } I tried the following example : /* These 3 first lines are to load dynamically the C function */ exec('callQuantitative.sce'); exec('functionLoader.sce'); loadFunction('callQuantitative','libcallQuantitative'); /* Then we initialize the arguments we are going to give to the C function */ model = ["Test"]; lengthModel = length(model); [nbL,nbC] = size(model); /* Finally we call the function */ call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i'); As a result, I get the following error message : call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i') ans = i Attention: probl?me avec la pile ... nettoy?. The error message is : "Warning: Problem with the stack ... cleaned)." Note that the printf in the C function is done but weirdly in writes the name of the C function (ie. "callQuantitative"). Also another issue I encountered concerns 2D float or integer matrix. It seems that if we give a 2D matrix to a C function, it is actually given as a single dimension matrix. So I would like to know if it's a normal behavior or if it's possible to actually give the 2D matrix as to be used as a real 2D matrix in the C function. Thank you. Charles G. From yann.collette at scilab.org Wed May 5 15:33:41 2010 From: yann.collette at scilab.org (Collette yann) Date: Wed, 05 May 2010 15:33:41 +0200 Subject: [scilab-Users] Link Scilab/C : Problem passing char* to a C function from Scilab In-Reply-To: References: Message-ID: <4BE173B5.2080809@scilab.org> Hello, For the second part of your question, have a look on the wiki: http://wiki.scilab.org/Accessing_a_Scilab_matrix_from_a_C_interface Fro the first part: can you join your C function to a reply ? YC Le 05/05/2010 15:23, Charles G. a ?crit : > Hello, > > I'm currently working on Scilab functions and I need to call a C++ function. > To do so, I need to go through a C function which does the link between > C++ and Scilab. > > I succeeded in calling dynamically the C function from Scilab, but I still > have an issue passing matrix of char* as an "in" argument. > > With the following function : > > void callQuantitative(char* model, int* lengthModel, int* nbL, int* nbC){ > printf("%s\n",model); > } > > I tried the following example : > > /* These 3 first lines are to load dynamically the C function */ > exec('callQuantitative.sce'); > exec('functionLoader.sce'); > loadFunction('callQuantitative','libcallQuantitative'); > /* Then we initialize the arguments we are going to give to the C function */ > model = ["Test"]; > lengthModel = length(model); > [nbL,nbC] = size(model); > /* Finally we call the function */ > call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i'); > > As a result, I get the following error message : > > call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i') > ans = > > i > > Attention: probl?me avec la pile ... nettoy?. > > The error message is : "Warning: Problem with the stack ... cleaned)." > > Note that the printf in the C function is done but weirdly in writes > the name of the C function (ie. "callQuantitative"). > > > Also another issue I encountered concerns 2D float or integer matrix. > > It seems that if we give a 2D matrix to a C function, it is actually > given as a single dimension matrix. > > So I would like to know if it's a normal behavior or if it's possible to > actually give the 2D matrix as to be used as a real 2D matrix in the > C function. > > Thank you. > > Charles G. > > From amael.delaunoy at gmail.com Wed May 5 15:41:54 2010 From: amael.delaunoy at gmail.com (=?ISO-8859-1?Q?Ama=EBl_Delaunoy?=) Date: Wed, 5 May 2010 15:41:54 +0200 Subject: bug in rand generation? Message-ID: Why don't fixing the seed be the feature, and that by default the rand function would return real random values? It makes more sense to me, and I think this is the way it is done in other scientific programming environments I use (octave, matlab or python). So, it's a feature. > This is in the current documentation, but not very clearly written. > I will add a better warning in the documentation ASAP. > > YC > > Le 05/05/2010 14:21, Collette yann a ?crit : > > Hello, > > > > Thanks for the report. I opened the bug 7037. > > > > YC > > > > Le 05/05/2010 14:04, Ama?l Delaunoy a ?crit : > >> Dear all, > >> > >> It appears that the rand (also grand) functions generate equal > >> numbers each time Scilab is launched. (tested in several scilab > >> versions, 4.x and 5.2 under linux) > >> This is not written in the documentation of those functions. > >> How to reproduce? simply launch scilab, type rand(2,2,'uniform'), > >> exit scilab, launch scilab, type rand(2,2,'uniform') again, values > >> are identical. (same with grand(2,2,'def') for example) > >> > >> Is it an important missing point in the documentation? or a bug of > >> the rand/grand functions? > >> Or am I missing somethinghere?, > >> > >> Regards, > >> Amael > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Wed May 5 16:41:31 2010 From: ray at aarden.us (ray joseph) Date: Wed, 5 May 2010 09:41:31 -0500 Subject: Documentation Change Management References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> Message-ID: <008501caec61$0dd360e0$6701a8c0@HOUC35439> I would like to thank everyone for their great participation in this forum. I'm new to Scilab (with significant Matlab and Simulink experience) and I'm enjoying learning from the variety of papers and the activities in this group. I appreciate everyone's contributions. In reading the documentation, I occationally find spelling or gramatical issues. How can I help with the documentation in the manual and help pages? Ray From sylvestre.ledru at scilab.org Wed May 5 16:46:09 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 05 May 2010 16:46:09 +0200 Subject: [scilab-Users] Documentation Change Management In-Reply-To: <008501caec61$0dd360e0$6701a8c0@HOUC35439> References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> <008501caec61$0dd360e0$6701a8c0@HOUC35439> Message-ID: <1273070769.7315.48320.camel@korcula.inria.fr> Le mercredi 05 mai 2010 ? 09:41 -0500, ray joseph a ?crit : > I would like to thank everyone for their great participation in this forum. > I'm new to Scilab (with significant Matlab and Simulink experience) and I'm > enjoying learning from the variety of papers and the activities in this > group. I appreciate everyone's contributions. > > In reading the documentation, I occationally find spelling or gramatical > issues. How can I help with the documentation in the manual and help pages? Most of the writers are French and while we are doing our best in English, we are not native speaker. We would be indeed happy to get many feedback as possible on our mistakes. The best way would be to report bugs: http://bugzilla.scilab.org/ Please submit a bug par issue and don't hesitate to submit as many as needed. Sylvestre From antoine.elias at scilab.org Wed May 5 17:02:01 2010 From: antoine.elias at scilab.org (Antoine ELIAS) Date: Wed, 05 May 2010 17:02:01 +0200 Subject: [scilab-Users] Link Scilab/C : Problem passing char* to a C function from Scilab In-Reply-To: References: Message-ID: <4BE18869.9040201@scilab.org> hello Charles, I made some tests and it seems you have to add "out" in the call of "call". call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i', 'out') I wrote a short example inspired by your function : //function declaration functionDeclaration=['#include' 'void callQuantitative(char* model, int* lengthModel, int* nbL, int* nbC)' '{' ' printf(""model = \""%s\""\n"", model);' ' printf(""lengthModel = %d\n"", *lengthModel);' ' printf(""nbL = %d\n"", *nbL);' ' printf(""nbC = %d\n"", *nbC);' '}']; cd TMPDIR; mputl(functionDeclaration, 'callQuantitative.c') //creating the shared library (a gateway, a Makefile and a loader are generated. ilib_for_link('callQuantitative', 'callQuantitative.c', [], "c") exec loader.sce model = ["Test"]; lengthModel = length(model); [nbL, nbC] = size(model); // Finally we call the function call('callQuantitative', model, 1, 'c', lengthModel, 2, 'i', nbL, 3, 'i', nbC, 4, 'i', 'out'); output in terminal : model = "Test" lengthModel = 4 nbL = 1 nbC = 1 Regards, Antoine Le 05/05/2010 15:23, Charles G. a ?crit : > Hello, > > I'm currently working on Scilab functions and I need to call a C++ function. > To do so, I need to go through a C function which does the link between > C++ and Scilab. > > I succeeded in calling dynamically the C function from Scilab, but I still > have an issue passing matrix of char* as an "in" argument. > > With the following function : > > void callQuantitative(char* model, int* lengthModel, int* nbL, int* nbC){ > printf("%s\n",model); > } > > I tried the following example : > > /* These 3 first lines are to load dynamically the C function */ > exec('callQuantitative.sce'); > exec('functionLoader.sce'); > loadFunction('callQuantitative','libcallQuantitative'); > /* Then we initialize the arguments we are going to give to the C function */ > model = ["Test"]; > lengthModel = length(model); > [nbL,nbC] = size(model); > /* Finally we call the function */ > call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i'); > > As a result, I get the following error message : > > call('callQuantitative',model,1,'c',lengthModel,2,'i',nbL,3,'i',nbC,4,'i') > ans = > > i > > Attention: probl?me avec la pile ... nettoy?. > > The error message is : "Warning: Problem with the stack ... cleaned)." > > Note that the printf in the C function is done but weirdly in writes > the name of the C function (ie. "callQuantitative"). > > > Also another issue I encountered concerns 2D float or integer matrix. > > It seems that if we give a 2D matrix to a C function, it is actually > given as a single dimension matrix. > > So I would like to know if it's a normal behavior or if it's possible to > actually give the 2D matrix as to be used as a real 2D matrix in the > C function. > > Thank you. > > Charles G. > > -- 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 sumit.adhikari at gmail.com Wed May 5 20:24:10 2010 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Wed, 5 May 2010 20:24:10 +0200 Subject: Reg :: Contribution of Multirate Signal Procssing Message-ID: Hello All, Over the years I have developed some multirate signal processing scripts which could be useful to other users. How do I contribute them in scilab ? Regards, -- Sumit Adhikari, Institute of Computer Technology, Faculty of Electrical Engineering, Vienna University of Technology, Gu?hausstra?e 27-29,1040 Vienna -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Wed May 5 20:27:49 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 05 May 2010 20:27:49 +0200 Subject: [scilab-Users] Documentation Change Management In-Reply-To: <1273070769.7315.48320.camel@korcula.inria.fr> References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> <008501caec61$0dd360e0$6701a8c0@HOUC35439> <1273070769.7315.48320.camel@korcula.inria.fr> Message-ID: <4BE1B8A5.5010305@durietz.se> English is not my native language either, but I might anyhow also help occasionally (difficult spelling!) with spelling and grammatical (apparently also difficult!) errors. ;-) Regards Stefan On 2010-05-05 16:46, Sylvestre Ledru wrote: -------------------- > Le mercredi 05 mai 2010 ? 09:41 -0500, ray joseph a ?crit : >> I would like to thank everyone for their great participation in this forum. >> I'm new to Scilab (with significant Matlab and Simulink experience) and I'm >> enjoying learning from the variety of papers and the activities in this >> group. I appreciate everyone's contributions. >> >> In reading the documentation, I occationally find spelling or gramatical >> issues. How can I help with the documentation in the manual and help pages? > Most of the writers are French and while we are doing our best in > English, we are not native speaker. > > We would be indeed happy to get many feedback as possible on our > mistakes. > The best way would be to report bugs: > http://bugzilla.scilab.org/ > Please submit a bug par issue and don't hesitate to submit as many as > needed. > > Sylvestre > From sylvestre.ledru at scilab.org Wed May 5 20:42:00 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 05 May 2010 20:42:00 +0200 Subject: [scilab-Users] Reg :: Contribution of Multirate Signal Procssing In-Reply-To: References: Message-ID: <1273084920.5296.4944.camel@zlarin> Hello Sumit, Le mercredi 05 mai 2010 ? 20:24 +0200, Sumit Adhikari a ?crit : > > Hello All, > Over the years I have developed some multirate signal processing > scripts which could be useful to other users. > How do I contribute them in scilab ? Usually, the best way to make your work available to the user is to open a website about your project. For such task, we have a forge: http://forge.scilab.org/ where you can manage your sources, bugs, documentation, etc. Once you are happy with your current release, you can upload it on ATOMS: http://atoms.scilab.org/ which is a packaging system. This allows any users to install and use your module in just a command. You will find more information here: http://wiki.scilab.org/ATOMS Hope my email does not sound too marketing :p Anyway, don't hesitate if you have more questions. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From ray at aarden.us Wed May 5 20:45:31 2010 From: ray at aarden.us (ray joseph) Date: Wed, 5 May 2010 13:45:31 -0500 Subject: [scilab-Users] Documentation Change Management References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> <008501caec61$0dd360e0$6701a8c0@HOUC35439> <1273070769.7315.48320.camel@korcula.inria.fr> Message-ID: <00d201caec83$23f6d3d0$6701a8c0@HOUC35439> Sylvestre, Thank you. I have registered an account with bugzilla.Scilab. To be able to address either user manuals, help contents or wiki contents, I am not sure what choice I should make on the bugzilla page. The two choices for Scilab are: Scilab software: Scilab website: Do you have any suggestions on which would be most appropriate? Ray ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Wednesday, May 05, 2010 9:46 AM Subject: Re: [scilab-Users] Documentation Change Management > Le mercredi 05 mai 2010 ? 09:41 -0500, ray joseph a ?crit : > > I would like to thank everyone for their great participation in this forum. > > I'm new to Scilab (with significant Matlab and Simulink experience) and I'm > > enjoying learning from the variety of papers and the activities in this > > group. I appreciate everyone's contributions. > > > > In reading the documentation, I occationally find spelling or gramatical > > issues. How can I help with the documentation in the manual and help pages? > Most of the writers are French and while we are doing our best in > English, we are not native speaker. > > We would be indeed happy to get many feedback as possible on our > mistakes. > The best way would be to report bugs: > http://bugzilla.scilab.org/ > Please submit a bug par issue and don't hesitate to submit as many as > needed. > > Sylvestre > > > From sylvestre.ledru at scilab.org Wed May 5 20:52:20 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 05 May 2010 20:52:20 +0200 Subject: [scilab-Users] Documentation Change Management In-Reply-To: <00d201caec83$23f6d3d0$6701a8c0@HOUC35439> References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> <008501caec61$0dd360e0$6701a8c0@HOUC35439> <1273070769.7315.48320.camel@korcula.inria.fr> <00d201caec83$23f6d3d0$6701a8c0@HOUC35439> Message-ID: <1273085540.5296.4989.camel@zlarin> You can report them in "Scilab Software" and then "Online help pages" Sylvestre Le mercredi 05 mai 2010 ? 13:45 -0500, ray joseph a ?crit : > Sylvestre, > > Thank you. I have registered an account with bugzilla.Scilab. To be able to > address either user > manuals, help contents or wiki contents, I am not sure what choice I should > make on the bugzilla page. The two choices for Scilab are: > Scilab software: > Scilab website: > Do you have any suggestions on which would be most appropriate? > > Ray > > ----- Original Message ----- > From: "Sylvestre Ledru" > To: > Sent: Wednesday, May 05, 2010 9:46 AM > Subject: Re: [scilab-Users] Documentation Change Management > > > > Le mercredi 05 mai 2010 ? 09:41 -0500, ray joseph a ?crit : > > > I would like to thank everyone for their great participation in this > forum. > > > I'm new to Scilab (with significant Matlab and Simulink experience) and > I'm > > > enjoying learning from the variety of papers and the activities in this > > > group. I appreciate everyone's contributions. > > > > > > In reading the documentation, I occationally find spelling or gramatical > > > issues. How can I help with the documentation in the manual and help > pages? > > Most of the writers are French and while we are doing our best in > > English, we are not native speaker. > > > > We would be indeed happy to get many feedback as possible on our > > mistakes. > > The best way would be to report bugs: > > http://bugzilla.scilab.org/ > > Please submit a bug par issue and don't hesitate to submit as many as > > needed. > > > > Sylvestre > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From gnelson at quantasonics.com Wed May 5 21:10:55 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Wed, 5 May 2010 12:10:55 -0700 Subject: [scilab-Users] lsqrsolve In-Reply-To: <01d301caebfe$a9864510$6501a8c0@HOUC35439> References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> <01d301caebfe$a9864510$6501a8c0@HOUC35439> Message-ID: <73E4CEDE-2D8D-41C4-A993-115F8CE707AF@quantasonics.com> Thanks. Your observation is correct but, as far as I can determine, in my application would not apply. Perhaps one of the other scilab operators would be better suited to what I want to do -- lsqrsolve, datafit, fitdata, optim. Suppose we have a gaussian plus noise centered at C (ie, maximum at C) and we have samples from -(large number) to C from which we want to estimate C, amplitude A, and sigma. I don't see how the mean and variance of the data will reveal these 3 gaussian parameters. So I still want to try a parameter estimation tool and am soliciting a bit of guidance. Suppose I have N samples (sample_freq=fs) from the left side of gaussian-like data that includes a maximum. I have a scilab function that generates a gaussian based on fs and the value of the maximum and an estimate of width at the half-amplitde (or .707 or 1/e or your favorite gaussian definition) point. What tool do I use to improve the parameter estimate of A, C, and sigma? Thanks Gary Nelson On May 4, 2010, at 7:57 PM, ray joseph wrote: > Gary, > > I am sorry that I am bypassing your original request; but if you calculate > the mean and standard deviation of your data set, you will get the two > parameters. Using the solver will be a fun exercise. > > Ray > > ----- Original Message ----- > From: "Gary Nelson" > To: > Sent: Tuesday, May 04, 2010 2:12 PM > Subject: Re: [scilab-Users] lsqrsolve > > > I would like to fit a gaussian to some data samples using least squares. > The gaussian has two parameters -- amplitude and width (sigma). > > I would like to use 6 to 12 samples that span a maximum and provide a first > guess of the amplitude and width. > > After reading the manual on lsqsolve, it seems like it will do the job, but > I would appreciate some guidance to make it work. > > Thanks > > Gary Nelson > > > On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: > >> ----- Message d'origine ----- >> De : Maso Ricci >> Date : 31/03/2010 12:18: >>> Hi, >>> >>> I am using the lsqrsolve function to fit some data. >>> I wonder whether lsqrsolve accepts contrains in order to force the > solution to be positive. >>> >>> thanks in advance for any comments and suggestions >> Did you check the leastsq() function based on the optim() one ? Its 'b', > binf, bsup >> sequence of 3 input arguments allow to specify some boundaries. >> So, for instance, if the solution you are searching for is a scalar that > must be positive, >> just set 'b',0,%inf. see help leastsq() >> >> HTH >> Samuel >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com From ray at aarden.us Wed May 5 22:17:28 2010 From: ray at aarden.us (ray joseph) Date: Wed, 5 May 2010 15:17:28 -0500 Subject: [scilab-Users] Documentation Change Management References: <4BE162E1.7060402@scilab.org> <4BE16B85.2070007@scilab.org> <008501caec61$0dd360e0$6701a8c0@HOUC35439> <1273070769.7315.48320.camel@korcula.inria.fr> <00d201caec83$23f6d3d0$6701a8c0@HOUC35439> <1273085540.5296.4989.camel@zlarin> Message-ID: <016801caec8f$fcca3830$6701a8c0@HOUC35439> Sylvestre, Thank you. I will do that. Ray ----- Original Message ----- From: "Sylvestre Ledru" To: Sent: Wednesday, May 05, 2010 1:52 PM Subject: Re: [scilab-Users] Documentation Change Management > You can report them in "Scilab Software" and then > "Online help pages" > > Sylvestre > > Le mercredi 05 mai 2010 ? 13:45 -0500, ray joseph a ?crit : > > Sylvestre, > > > > Thank you. I have registered an account with bugzilla.Scilab. To be able to > > address either user > > manuals, help contents or wiki contents, I am not sure what choice I should > > make on the bugzilla page. The two choices for Scilab are: > > Scilab software: > > Scilab website: > > Do you have any suggestions on which would be most appropriate? > > > > Ray > > > > ----- Original Message ----- > > From: "Sylvestre Ledru" > > To: > > Sent: Wednesday, May 05, 2010 9:46 AM > > Subject: Re: [scilab-Users] Documentation Change Management > > > > > > > Le mercredi 05 mai 2010 ? 09:41 -0500, ray joseph a ?crit : > > > > I would like to thank everyone for their great participation in this > > forum. > > > > I'm new to Scilab (with significant Matlab and Simulink experience) and > > I'm > > > > enjoying learning from the variety of papers and the activities in this > > > > group. I appreciate everyone's contributions. > > > > > > > > In reading the documentation, I occationally find spelling or gramatical > > > > issues. How can I help with the documentation in the manual and help > > pages? > > > Most of the writers are French and while we are doing our best in > > > English, we are not native speaker. > > > > > > We would be indeed happy to get many feedback as possible on our > > > mistakes. > > > The best way would be to report bugs: > > > http://bugzilla.scilab.org/ > > > Please submit a bug par issue and don't hesitate to submit as many as > > > needed. > > > > > > Sylvestre > > > > > > > > > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > From rfabbri at gmail.com Thu May 6 00:24:21 2010 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Wed, 5 May 2010 18:24:21 -0400 Subject: link error upon loading SIP In-Reply-To: References: Message-ID: Hi, some more info on the problem: as I suspected, the system libz is 1.2.5, while the Scilab binary uses 1.2.3.3. The Scilab binary is loaded by the scilab shell script which sets LD_LIBRARY_PATH to have the lib/thirdparty in the front of the list. This work for the scilab binary, but doesn't work when you load a dynamic library that has been linked to the system libraries. Both Scilab and the system libraries are named libz.so.1, but this is a symlink to different libraries in the system and in the lib/thirdparty subdirectory. Perhaps there could be a way of specifying LD_LIBRARY_PATH or similar search path when loading a lib into Scilab. Ricardo On Wed, May 5, 2010 at 1:43 AM, Ricardo Fabbri wrote: > Hi, > > I have been working to get SIP to build in recent Linux systems and > Scilab 5.2.2. > While the SIP CVS version now builds and installs cleanly with Scilab > 5.2.2, some systems give a quite obscure message in Scilab when > loading the toolbox: > > Link failed for dynamic library > '/home/renato/packs/scilab-5.2.1/share/scilab/contrib/sip-0.4.2-cvs//lib/libsip.so'. > An error occurred: > /home/renato/packs/scilab-5.2.1/lib/thirdparty/libz.so.1: version > `ZLIB_1.2.3.3' not found (required by /usr/lib/libMagickCore.so.3) > Link failed for dynamic library > '/home/renato/packs/scilab-5.2.1/share/scilab/contrib/sip-0.4.2-cvs//lib/libsip.so'. > An error occurred: > /home/renato/packs/scilab-5.2.1/lib/thirdparty/libz.so.1: version > `ZLIB_1.2.3.3' not found (required by /usr/lib/libMagickCore.so.3) > addinter(libsip_path+'/libsip.so','libsip',functions); > > > This was using Scilab 5.2.2 binary with a system ImageMagick. It seems > to me that the system libz is not matching the libz that is linked to > Scilab. Any ideas on how to solve this issue? > > Thanks, > Ricardo > From ray at aarden.us Thu May 6 06:31:32 2010 From: ray at aarden.us (ray joseph) Date: Wed, 5 May 2010 23:31:32 -0500 Subject: Loading 5.2.2 - Is there a problem? References: <1269867149.11786.166.camel@korcula.inria.fr> Message-ID: <001a01caecd6$434ff330$0302a8c0@HOUC35439> I replaced my 5.2.1 by using Windows 2000 control panel to remove it and then ran the executable from the Scilab site to install 5.2.2. 1) At the setup of scilab 5.2.2, on the setup window "Ready to Install", I get an error message window called 'Setup' which states 'Impossible to download Intel Math Kernel Library files for Scilab. OK". What does this mean, and what should I do? 2) On selecting the "OK", the installation continued. Then a new Setup window popped up with the message "Some files have a wrong MD5 checksum. Blas, lapack Reference libraries will be installed. OK". What does this mean, and what should I do? 3) Then the installation 'completed'. How do I determine what I did? Scilab comes up just like 5.2.1, as far as I can tell. Ray From han.yi at stericsson.com Thu May 6 04:50:19 2010 From: han.yi at stericsson.com (Yi HAN) Date: Thu, 6 May 2010 04:50:19 +0200 Subject: question about Xcos Message-ID: Dear Sir/Madam Our group have some model as the matlab simulink format (.mdl). As you know, Matlab simulink require license, we try to use Scilab to replace matlab. Do you know whether we can open and run .mdl file in Xcos? Or any other approach? Thanks a lot! Best Rgds -------------- next part -------------- An HTML attachment was scrubbed... URL: From Lucian.Petria at Autoliv.com Thu May 6 09:01:13 2010 From: Lucian.Petria at Autoliv.com (Lucian.Petria at Autoliv.com) Date: Thu, 6 May 2010 10:01:13 +0300 Subject: Filters - Help Message-ID: Hi. I'm new with scilab programing and i hope you will give me some hints with signal processing. I have the next information about 3 filters (Bessel ord.3., Low pass filt. , Inertial filter ) Pls at least for one of those filters help me interpret the data in scilab. Tks a lot ! ######################################################### # Configuration file for a 3rd order bessel filter (fc = 426Hz) ######################################################### /Filter Name: SMB482/492 Description: Bessel 3 425 Hz Type: Pole Filter Direct Transfer: 0 Gain: 1.0 /Real Pole Pole: -3553.653 Residue: 6931.966 \Real Pole /Complex Pole PoleRealPart: -2814.090 PoleImaginaryPart: 2684.739 ResidueRealPart: -3465.983 ResidueImaginaryPart: -954.772 \Complex Pole \Filter ######################################################### # Configuration file for low-pass filter of SMB26x ######################################################### /Filter Name: SMB26x low-pass Description: custom Type: Pole Filter Direct Transfer: 0 Gain: 1.0 /Complex Pole PoleRealPart: -2755.10204081633 PoleImaginaryPart: 1616.63056303621 ResidueRealPart: 0 ResidueImaginaryPart: -6311.94403097803 \Complex Pole \Filter ######################################################### # Configuration file for intertial filter of SMB120 ######################################################### /Filter Name: SMB120 inertial Description: custom Type: Pole Filter Direct Transfer: 0 Gain: 1.0 /Complex Pole PoleRealPart: -19792.0337176157 PoleImaginaryPart: 34280.8079840267 ResidueRealPart: 0 ResidueImaginaryPart: -1.4585420513804e-5 \Complex Pole \Filter ****************************** Neither the footer nor anything else in this E-mail is intended to or constitutes an
electronic signature and/or legally binding agreement in the absence of an
express statement or Autoliv policy and/or procedure to the contrary.
This E-mail and any attachments hereto are Autoliv property and may contain legally
privileged, confidential and/or proprietary information.
The recipient of this E-mail is prohibited from distributing, copying, forwarding or in any way
disseminating any material contained within this E-mail without prior written
permission from the author. If you receive this E-mail in error, please
immediately notify the author and delete this E-mail. Autoliv disclaims all
responsibility and liability for the consequences of any person who fails to
abide by the terms herein.
****************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From methril at gmail.com Thu May 6 15:01:47 2010 From: methril at gmail.com (Rafael CamposLas Heras =?utf-8?b?KE1ldGhyaWwp?=) Date: Thu, 6 May 2010 13:01:47 +0000 (UTC) Subject: Error compiling scilab 5.1.1 or 5.2.2 in Ubuntu. Message-ID: Hi scilab guys, I'm trying to compile scilab 5.2.2 in my ubuntu 9.10 system. I allways have the same error: gcc: ../../modules/core/.libs/libscicore.so: No such file or directory I configured the compilations as: $ ./configure --enable-relocatable Why is not generating the .so file? I have to fill a bug into the bug tracker or it's a configuration problem? Best Regards, -- Rafael Campos Las Heras o0 Methril 0o http://openblog.methril.net From sylvestre.ledru at scilab.org Thu May 6 15:12:59 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 06 May 2010 15:12:59 +0200 Subject: [scilab-Users] Error compiling scilab 5.1.1 or 5.2.2 in Ubuntu. In-Reply-To: References: Message-ID: <1273151579.31795.2269.camel@korcula.inria.fr> Le jeudi 06 mai 2010 ? 13:01 +0000, Rafael CamposLas Heras (Methril) a ?crit : > Hi scilab guys, > > I'm trying to compile scilab 5.2.2 in my ubuntu 9.10 system. I allways have the > same error: > > gcc: ../../modules/core/.libs/libscicore.so: No such file or directory > > I configured the compilations as: > $ ./configure --enable-relocatable > > Why is not generating the .so file? > I have to fill a bug into the bug tracker or it's a configuration problem? It is likely a problem on your side. You should have a problem before the scicore issue which is causing the issue. Sylvestre From tremillon.laure at gmail.com Thu May 6 15:24:36 2010 From: tremillon.laure at gmail.com (Laure) Date: Thu, 6 May 2010 13:24:36 +0000 (UTC) Subject: Flex usb problems Message-ID: Hello, I actually works on a flex board and I try to make the USB example work. I had a problem with the pc_side scicos files, when I make it run Scicos his brutally close and noting works. The compiled file app_flex_scicos.exe seems to work correctly : [code] - flex_usbscicos_init() : OK. .data_sender->buffer[0]=0.000000 .data_sender->buffer[0]=0.000000 .data_sender->buffer[0]=0.000000 . . . .data_sender->buffer[0]=0.000000 [/code] I work on Scicos 4.4.7b and windows XP, I've installed all the required software (Erika, cygwin, mplab ide+c30) Thank you for your help. Best regards From julio.gonzalez at ymail.com Thu May 6 16:41:34 2010 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Thu, 6 May 2010 07:41:34 -0700 (PDT) Subject: [scilab-Users] Error compiling scilab 5.1.1 or 5.2.2 in Ubuntu. In-Reply-To: References: Message-ID: <993434.19578.qm@web28307.mail.ukl.yahoo.com> Hi Rafael, Did you check that the file is indeed in the path? Did you check to LD_LIB_PATH?? I have such issue and the solution was to include the directory in my LD path,, Julio PTS www.neex-technologies.com ________________________________ From: Rafael CamposLas Heras (Methril) To: users at lists.scilab.org Sent: Thu, 6 May, 2010 15:01:47 Subject: [scilab-Users] Error compiling scilab 5.1.1 or 5.2.2 in Ubuntu. Hi scilab guys, I'm trying to compile scilab 5.2.2 in my ubuntu 9.10 system. I allways have the same error: gcc: ../../modules/core/.libs/libscicore.so: No such file or directory I configured the compilations as: $ ./configure --enable-relocatable Why is not generating the .so file? I have to fill a bug into the bug tracker or it's a configuration problem? Best Regards, -- Rafael Campos Las Heras o0 Methril 0o http://openblog.methril.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Thu May 6 17:40:42 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 06 May 2010 17:40:42 +0200 Subject: [scilab-Users] Filters - Help In-Reply-To: References: Message-ID: <4BE2E2FA.9030005@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Lucian.Petria at Autoliv.com Date : 06/05/2010 09:01: > Hi. I'm new with scilab programing and i hope you will give me some > hints with signal processing. > > I have the next information about 3 filters (Bessel ord.3., Low > pass filt. , Inertial filter ) > Pls at least for one of those filters help me interpret the data in > scilab. > Tks a lot ! The still best tutorial that i know about Signal processing with Scilab is listed here http://wiki.scilab.org/Tutorials as Signal Processing (pdf version) INRIA 1998 You will find other nice documents about SP through the same list. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From methril at gmail.com Thu May 6 20:41:04 2010 From: methril at gmail.com (Rafael CamposLas Heras =?utf-8?b?KE1ldGhyaWwp?=) Date: Thu, 6 May 2010 18:41:04 +0000 (UTC) Subject: Error compiling scilab 5.1.1 or 5.2.2 in Ubuntu. References: <993434.19578.qm@web28307.mail.ukl.yahoo.com> Message-ID: Hi Julio, Julio Gonzalez-Saenz writes: > > > > Hi Rafael,Did you check that the file is indeed in the path? Did you check to LD_LIB_PATH??? I have such issue and the solution was to include the directory in my LD path,,JulioPTSwww.neex-technologies.com > > > > From: Rafael CamposLas Heras (Methril) To: users at lists.scilab.orgSent: Thu, 6 May, 2010 15:01:47Subject: [scilab-Users] Error compiling scilab 5.1.1 or 5.2.2 > in Ubuntu.Hi scilab guys,I'm trying to compile scilab 5.2.2 in my ubuntu 9.10 system. I allways have thesame error: gcc: ../../modules/core/.libs/libscicore.so: No such file or directoryI configured the compilations as:$ ./configure --enable-relocatable Why is not generating the .so file?I have to fill a bug into the bug tracker or it's a configuration problem?Best Regards,--Rafael Campos Las Heraso0 Methril 0o http://openblog.methril.net > > > > > Thank you all for the tips. I just managed to compile & install. I started from scratch filling the dependencies through the debian system (some missing -dev packages). I think it was a misconfiguration with the prerequisites. Regards -- Rafael Campos Las Heras o0 Methril 0o http://openblog.methril.net From Andrea.Amorosi76 at gmail.com Thu May 6 20:52:41 2010 From: Andrea.Amorosi76 at gmail.com (Andrea.Amorosi76 at gmail.com) Date: Thu, 06 May 2010 20:52:41 +0200 Subject: Some questions about Xcos Message-ID: <4BE30FF9.3070800@gmail.com> Hi to all, I'm a Simulink user and I would like to switch to Xcos. So I have the following questions: 1) is it possible to run a simulation in a soft real time mode? 2) is it possible to select a fixed step solver (Euler, Runge-Kutta 4, etc)? 3) is it possible to send and receive udp packet and/or interface with a joystick? 4) is it possible to generate c/c++ code from a model? 5) can I create additional blocks libraries? 6) is there any mechanism similar to the referenced model of Matlab/Simulink? Thank you, Andrea From Samuel.Gougeon at univ-lemans.fr Thu May 6 21:18:01 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 06 May 2010 21:18:01 +0200 Subject: [scilab-Users] Re: Re: bug in rand generation? In-Reply-To: References: Message-ID: <4BE315E9.8080905@univ-lemans.fr> ----- Message d'origine ----- De : Ama?l Delaunoy Date : 05/05/2010 15:41: > Why don't fixing the seed be the feature, and that by default the rand > function would return real random values? > It makes more sense to me, and I think this is the way it is done in > other scientific programming environments I use (octave, matlab or > python). I agree with you Ama?l. If for some experiments it is necessary to yield repeatable random sequences, it is always possible by fixing the seed at a given value. But this should not be the default. If you are eager to get a random seed indexed on the clock, you may set it in your SCI\scilab.start or your SCIHOME\scilab.ini | .scilab files. See also help rand , help grand , help getdate etc. Regards Samuel From bouchra.bensiali at yahoo.fr Thu May 6 22:56:33 2010 From: bouchra.bensiali at yahoo.fr (Bouchra Bensiali) Date: Thu, 6 May 2010 13:56:33 -0700 (PDT) Subject: [scilab-Users] Re : [scilab-Users] A question about ode "rkf" In-Reply-To: <4159.13101.qm@web28308.mail.ukl.yahoo.com> References: <439529.37133.qm@web24402.mail.ird.yahoo.com> <4159.13101.qm@web28308.mail.ukl.yahoo.com> Message-ID: <937250.66226.qm@web24401.mail.ird.yahoo.com> Thank you Julio for your confirmation, I checked that when tending the "pas_temps" to zero (t0, tf unchanged), the results tend to be the same. What about the first example? If a Scilab developer is near here,?could (s)he give an explanation please?? Thanks. ________________________________ De : Julio Gonzalez-Saenz ? : users at lists.scilab.org Envoy? le : Lun 3 mai 2010, 22 h 25 min 23 s Objet?: Re: [scilab-Users] Re : [scilab-Users] A question about ode "rkf" Hi Bouchra, I am not a SCILAB developer, but normally an ODE uses a variable step size based on the relative error, in the case (x,y) it uses the you have a x-component of the error and a y-component of the error.. so is in the first case, just x-component.. Therefore if you start where the error is big, you have small step size, while if you have small error, you can increase the step size.. I would like to hear an answer from the development team about this, but 90% sure your approach is correct... Regards, Julio ________________________________ From: Bouchra Bensiali To: users at lists.scilab.org Sent: Mon, 3 May, 2010 19:50:30 Subject: [scilab-Users] Re : [scilab-Users] A question about ode "rkf" Hi, I come with concrete examples, and wish I can find some help. After some research www.math.univ-metz.fr/~sallet/ODE_Scilab.pdf, it seems that the methods used by ode choose their steps to control errors. They are not fixed step solvers. But have some questions: 1/ Consider this: ========================================================================= function Xdot=F(t,X) ? printf("t=%f \n ",t) ? ? Xdot = ((1-t)*X-X^2)/(10^(-4)); ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=180*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F); // printf("\n \n"); t0=178*pas_temps; tf=180*pas_temps; X0=Trajectoire1(:,9); Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F); //comparaison Dif = Trajectoire1(:,9:$)-Trajectoire2 ============================================================================= If you try this example, you'll find that the intermediate?times used between t=0.178 and t=0.179 (to predict the solution at t=0.179) are not the same in the first?and second integration. Why the time t=0.178?is not handeled the same way? A depandance to what happened before maybe? 2/ My initial problem was that?integrating xdot = f(t,x), x(t0)=x0, or integrationg together xdot=f(t,x), ydot=g(t,y), x(t0)=x0, y(t0)=y0, don't give the same result for x. An example that illustrates this is the following: ============================================================================== function Xdot=F1(t,X) ? printf("t=%f \n ",t) ? ? Xdot = X/10^(-3); ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=1; Trajectoire1=ode("rkf",X0,t0,t0:pas_temps:tf,F1); // printf("\n \n"); function Xdot=F2(t,X) ? printf("t=%f \n ",t) ? ? Xdot = [X(1)/10^(-3);((1-t)*X(2)-X(2)^2)/(10^(-4))]; ? endfunction // pas_temps=0.001; t0=170*pas_temps; tf=172*pas_temps; X0=[1;1]; Trajectoire2=ode("rkf",X0,t0,t0:pas_temps:tf,F2); //comparaison Dif = Trajectoire1 - Trajectoire2(1,:) =================================================================================== From what I understood, the "rkf" method, as?the?ode45 (Matlab) is a variable step solver: if the estimated error is bigger than the tolerance, the stepsize?is reduced. In the second integration, the error is related to x and y, while in the first integration, it's only related to x, so that can explain the difference in the results. Confirmation? Thanks. ________________________________ De : Bouchra Bensiali ? : users at lists.scilab.org Envoy? le : Ven 30 avril 2010, 16 h 21 min 41 s Objet?: [scilab-Users] A question about ode "rkf" Hi, I wonder if the "rkf" method uses a fixed number of intermediate times as said here http://math.fullerton.edu/mathews/n2003/RungeKuttaFehlbergMod.html. For example, if I define a function F: -- function Xdot=F(t,X) ? //printf("t=%f \n",t) ? ? Xdot = ... ; ? endfunction; -- and make a first integration: -- pas_temps = 0.001; t0 = 170*pas_temps; tf = 180*pas_temps; X0 = ... ; Trajectoire1 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- and a second integration beginning with the result obtained at time t=0.178 (for example): -- t0 = 178*pas_temps; tf = 180*pas_temps; X0 = Trajectoire1(:,9); Trajectoire2 = ode("rkf",X0,t0,t0:pas_temps:tf,F); -- then is Trajectoire2 supposed to be the same as Trajectoire1(:,9:11)? Because I have an example that gives different results and found (by using printf("t=%f \n",t)) that the number of intermediate times changed from one integration to another. Thank you in advance for your help. I'm really stuck. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hinow at uwm.edu Fri May 7 00:16:24 2010 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 6 May 2010 17:16:24 -0500 (CDT) Subject: scilab profiler Message-ID: <1261810252.7813681273184184703.JavaMail.root@mail02.pantherlink.uwm.edu> Dear all, can anybody offer some help how to use the scilab profiler? My function is rather lengthy and the output does not match the lines of the code. In principle I want to profile my main program, not a function. Thanks for all help! Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From celso.co at gmail.com Fri May 7 00:35:46 2010 From: celso.co at gmail.com (Celso Co) Date: Fri, 7 May 2010 06:35:46 +0800 Subject: [scilab-Users] bug in rand generation? In-Reply-To: References: Message-ID: I observed the same. cco On Wed, May 5, 2010 at 8:04 PM, Ama?l Delaunoy wrote: > Dear all, > > It appears that the rand (also grand) functions generate equal numbers each > time Scilab is launched. (tested in several scilab versions, 4.x and 5.2 > under linux) > This is not written in the documentation of those functions. > How to reproduce? simply launch scilab, type rand(2,2,'uniform'), exit > scilab, launch scilab, type rand(2,2,'uniform') again, values are identical. > (same with grand(2,2,'def') for example) > > Is it an important missing point in the documentation? or a bug of the > rand/grand functions? > Or am I missing somethinghere?, > > Regards, > Amael > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgerardi at edu.univ-fcomte.fr Fri May 7 18:27:34 2010 From: cgerardi at edu.univ-fcomte.fr (Charles G.) Date: Fri, 7 May 2010 16:27:34 +0000 (UTC) Subject: Link Scilab/C : Problem passing char* to a C function from Scilab References: <4BE18869.9040201@scilab.org> Message-ID: Hello Antoine, I tested your solution and the problem was indeed the "out" missing in the "call" function. I will now try to make it work for 2D matrix of char*. Charles. From cgerardi at edu.univ-fcomte.fr Fri May 7 18:29:35 2010 From: cgerardi at edu.univ-fcomte.fr (Charles G.) Date: Fri, 7 May 2010 16:29:35 +0000 (UTC) Subject: Link Scilab/C : Problem passing char* to a C function from Scilab References: <4BE173B5.2080809@scilab.org> Message-ID: Hello Yann, My C function is given, it's the "callQuantitative" one. Charles. From cesarcarreon at gmail.com Sat May 8 01:19:26 2010 From: cesarcarreon at gmail.com (=?ISO-8859-1?Q?Cesar_Carreon_Ota=F1ez?=) Date: Fri, 7 May 2010 17:19:26 -0600 Subject: Question ... Message-ID: Hi, I'm programming in fortran and I link to scilab, recently you change the version to scilab 5.2.2. I could to link my dynamic lybrary in version 5.1.1 but when I compile my rutines again on version 5.2.2, appear this message "... error:'sci_gateway' undeclared here (not in a function)" I saw de rutine mex.h (I use this file to compile) and I notice changes to version 5.1.1 to 5.2.2 for example the variable "sci_gateway" it isn't in second version, the reason of my problem ... How can I fix that? ... I'd appreciate some help or some way to solve it. Greetings Atte: C?sar Carre?n Ota?ez -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andrea.Amorosi76 at gmail.com Sun May 9 11:10:41 2010 From: Andrea.Amorosi76 at gmail.com (Andrea.Amorosi76 at gmail.com) Date: Sun, 09 May 2010 11:10:41 +0200 Subject: Some questions about Xcos Message-ID: <4BE67C11.50406@gmail.com> Hi to all, I'm a Simulink user and I would like to switch to Xcos. So I have the following questions: 1) is it possible to run a simulation in a soft real time mode? 2) is it possible to select a fixed step solver (Euler, Runge-Kutta 4, etc)? 3) is it possible to send and receive udp packet and/or interface with a joystick? 4) is it possible to generate c/c++ code from a model? 5) can I create additional blocks libraries? 6) is there any mechanism similar to the referenced model of Matlab/Simulink? Thank you, Andrea From y.barois at free.fr Sun May 9 19:10:42 2010 From: y.barois at free.fr (Yves Barois) Date: Sun, 9 May 2010 19:10:42 +0200 Subject: Scilab 5.2.2 on line help Message-ID: Bonjour, je d?bute avec Scilab (en fran?ais sur Mac OS X 10.6.3 Intel Core Duo 32 bits) par cons?quent l'aide en ligne m'est n?cessaire. J'ai not? quelques anomalies dans l'aide en fran?ais ? fonctions ?l?mentaires? y compris dans les parties rest?es en langue anglaise. - "int" et "fix" : "partie enti?re" et non "arrondi vers z?ro ou troncature" (complication inutile, d?finition insuffisante) ; - "floor" : "arrondi ? l'entier imm?diatement inf?rieur" et non "partie enti?re" (erreur) ; - "ceil" : "arrondi ? l'entier imm?diatement sup?rieur" et non "partie enti?re sup?rieure" (volap?k)) ; - "round" : "arrondi ? l'entier le plus proche" et non "arrondi" (d?finition insuffisante) ; - "sqrt" : l'aide d?crit "SQRT" (math op?ration palette) et non l'op?ration "racine carr?e" ; - "atand" : S?quence d'appel, ligne 1, lire "phi=atand(x)" au lieu de "atan(xd)" (faute de frappe) ; - "asin" : "sinus inverse exprim? en radians" (l'unit? n'est pas pr?cis?e) ; - "acos" : "cosinus inverse exprim? en radians" (l'unit? n'est pas pr?cis?e). Les d?finitions en anglais sont peu claires ou manquent d'unit? pour ces fonctions, je propose : - "bin2dec", "oct2dec", "hex2dec" : "conversion of integers from binary (octal, hexadecimal) to decimal" ou "conversion d'entiers de binaire (octal, hexad?cimal) vers d?cimal ; - "dec2bin", dec2oct", "dec2hex" : "conversion of integers from decimal to binary (octal, hexadecimal)" ou "conversion d'entiers de d?cimal vers binaire (octal, hexad?cimal) ; - "base2dec" : "conversion of integers from base b to decimal" ou "conversion d'entiers de base b vers d?cimal. Cordialement, Yves Barois < y.barois at free.fr > From sylvestre.ledru at scilab.org Mon May 10 09:26:31 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 10 May 2010 09:26:31 +0200 Subject: [scilab-Users] question about Xcos In-Reply-To: References: Message-ID: <1273476391.31795.29495.camel@korcula.inria.fr> Hello, Le jeudi 06 mai 2010 ? 04:50 +0200, Yi HAN a ?crit : > Dear Sir/Madam > > > > Our group have some model as the matlab simulink format (.mdl). As you > know, Matlab simulink require license, we try to use Scilab to replace > matlab. Do you know whether we can open and run .mdl file in Xcos? Or > any other approach? For now, it is not possible but this might change in the close future. Indeed, in the context of the Google Summer of Code 2010 [1], Jerzy Zagorski is working on a Simulink import to Xcos. Sylvestre [1] http://www.scilab.org/en/projects/development/google From sylvestre.ledru at scilab.org Mon May 10 10:28:26 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 10 May 2010 10:28:26 +0200 Subject: [scilab-Users] Scilab 5.2.2 on line help In-Reply-To: References: Message-ID: <1273480106.31795.29829.camel@korcula.inria.fr> Le dimanche 09 mai 2010 ? 19:10 +0200, Yves Barois a ?crit : > Bonjour, > je d?bute avec Scilab (en fran?ais sur Mac OS X 10.6.3 Intel Core Duo 32 bits) par cons?quent l'aide en ligne m'est n?cessaire. J'ai not? quelques anomalies dans l'aide en fran?ais ? fonctions ?l?mentaires? y compris dans les parties rest?es en langue anglaise. > > - "int" et "fix" : "partie enti?re" et non "arrondi vers z?ro ou troncature" (complication inutile, d?finition insuffisante) ; > - "floor" : "arrondi ? l'entier imm?diatement inf?rieur" et non "partie enti?re" (erreur) ; > - "ceil" : "arrondi ? l'entier imm?diatement sup?rieur" et non "partie enti?re sup?rieure" (volap?k)) ; > - "round" : "arrondi ? l'entier le plus proche" et non "arrondi" (d?finition insuffisante) ; > - "sqrt" : l'aide d?crit "SQRT" (math op?ration palette) et non l'op?ration "racine carr?e" ; > - "atand" : S?quence d'appel, ligne 1, lire "phi=atand(x)" au lieu de "atan(xd)" (faute de frappe) ; > - "asin" : "sinus inverse exprim? en radians" (l'unit? n'est pas pr?cis?e) ; > - "acos" : "cosinus inverse exprim? en radians" (l'unit? n'est pas pr?cis?e). > > Les d?finitions en anglais sont peu claires ou manquent d'unit? pour ces fonctions, je propose : > - "bin2dec", "oct2dec", "hex2dec" : "conversion of integers from binary (octal, hexadecimal) to decimal" ou "conversion d'entiers de binaire (octal, hexad?cimal) vers d?cimal ; > - "dec2bin", dec2oct", "dec2hex" : "conversion of integers from decimal to binary (octal, hexadecimal)" ou "conversion d'entiers de d?cimal vers binaire (octal, hexad?cimal) ; > - "base2dec" : "conversion of integers from base b to decimal" ou "conversion d'entiers de base b vers d?cimal. Merci Yves. However, would you mind open a bug on the Scilab bug tracker ? http://bugzilla.scilab.org/ It is our favorite way to keep track of the issues and requests. Thanks Sylvestre From sylvestre.ledru at scilab.org Mon May 10 10:30:01 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 10 May 2010 10:30:01 +0200 Subject: [scilab-Users] Question ... In-Reply-To: References: Message-ID: <1273480201.31795.29834.camel@korcula.inria.fr> Hello Cesar, Le vendredi 07 mai 2010 ? 17:19 -0600, Cesar Carreon Ota?ez a ?crit : > Hi, > > > I'm programming in fortran and I link to scilab, recently you change > the > version to scilab 5.2.2. > > I could to link my dynamic lybrary in version 5.1.1 but when I compile > my rutines again on version 5.2.2, appear this message > > > "... error:'sci_gateway' undeclared here (not in a function)" > > I saw de rutine mex.h (I use this file to compile) and I notice > changes > to version 5.1.1 to 5.2.2 for example the variable "sci_gateway" it > isn't in second version, the reason of my problem ... > > > How can I fix that? ... Could you try to include sci_gateway.h to see if it fixes your problem ? Thanks Sylvestre From leszek.luchowski at iitis.gliwice.pl Mon May 10 12:47:23 2010 From: leszek.luchowski at iitis.gliwice.pl (leszek.luchowski at iitis.gliwice.pl) Date: Mon, 10 May 2010 12:47:23 +0200 (CEST) Subject: [scilab-Users] bug in rand generation? In-Reply-To: References: Message-ID: <2758.212.106.181.46.1273488443.squirrel@mail.iitis.gliwice.pl> Hi; I think you need to read about the seed of the random generator. >From the help in SciLab 4.1.2 (0): ---------------------------- Quote: rand('seed',n) puts the seed to n . (by default n=0 at first call). End quote ---------------------------- To initialize the generator with a different seed value at every execution, you may want to use a seed that depends on the time of execution. I mean time as in "what time is it", not duration of your program. Hope this helps, Leszek. > I observed the same. cco > > On Wed, May 5, 2010 at 8:04 PM, Ama?l Delaunoy > wrote: > >> Dear all, >> >> It appears that the rand (also grand) functions generate equal numbers >> each >> time Scilab is launched. (tested in several scilab versions, 4.x and 5.2 >> under linux) >> This is not written in the documentation of those functions. >> How to reproduce? simply launch scilab, type rand(2,2,'uniform'), exit >> scilab, launch scilab, type rand(2,2,'uniform') again, values are >> identical. >> (same with grand(2,2,'def') for example) >> >> Is it an important missing point in the documentation? or a bug of the >> rand/grand functions? >> Or am I missing somethinghere?, >> >> Regards, >> Amael >> > > > > -- > Eng'r Celso B. Co, PhD ECE > Assistant Professor > Dept. of Electronics, Computer, and Communication Engineering, > Loyola Schools of Science and Engineering, Ateneo De Manila > From jjdmon at pobox.com Mon May 10 18:49:58 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Mon, 10 May 2010 12:49:58 -0400 Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: <1273476391.31795.29495.camel@korcula.inria.fr> References: <1273476391.31795.29495.camel@korcula.inria.fr> Message-ID: <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> I was running Scilab 5.2.1 successfully, but after installing 5.2.2 and a few other things, Scilab will no longer start up. I've tried going back to 5.2.1 and have the same problem, so the issue is probably with something else I installed, not a change from 5.2.1 to 5.2.2. The most likely culprits are an Apple system update combined with an extension, or Python, which I installed to get something else to work. I'm not sure if Scilab uses Python or something that gets stepped on by the installation, but it is one of the things that changed. When I attempt to start Scilab, the icon in the dock changes to a generic Java icon and it basically hangs until I do a force quit. These are the messages I see in the console: 5/10/10 12:27:58 PM [0x0-0x72072].org.scilab.modules.jvm.Scilab[606] JavaVM: requested Java version (1.5) not available. Using Java at "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home" instead. 5/10/10 12:28:24 PM com.apple.spindump[632] ConnectPort: can't find mach server port name = jackdmp_entry.0_default err = unknown error code 5/10/10 12:28:24 PM com.apple.spindump[632] Cannot connect to server Mach port 5/10/10 12:28:24 PM com.apple.spindump[632] jack server is not running or cannot be started 5/10/10 12:28:25 PM com.apple.launchd.peruser.502[153] ([0x0-0x72072].org.scilab.modules.jvm.Scilab[606]) Exited with exit code: 143 The first message appears immediately. The rest appear when I force quit Scilab. I also have Scilab installed and working on another Mac running the same system version. The message about the Java version also shows up in the console on that machine, but since it works there I don't think that's the issue. The other messages seem to be referring to JackOSX, which is a configurable audio router. I don't know why Scilab would be trying to start or connect to that. It's not set up as the default audio device and Scilab was working with the same version of that installed before. I can only guess that an Apple OS update or the Python install have created an extension conflict with an extension that wasn't a problem before. The machine where Scilab is working has the same system version but I did not install Python or JackOSX. Does anyone have any suggestions as to what I could try to debug this further? I'd rather not have to start ripping out extensions or cleaning out the Python install, which there doesn't seem to be an easy way to do. From un_chico_muy_bueno at yahoo.com.br Mon May 10 19:16:59 2010 From: un_chico_muy_bueno at yahoo.com.br (=?gb2312?B?s88g1ec=?=) Date: Mon, 10 May 2010 17:16:59 +0000 Subject: script path from within script Message-ID: Hello fellow Scilab users, I have written a .sce script and would like to get the path to this script from within the script. For example, the script is called "test_script.sce" and is saved in "c:\users\adm\documents\scilab_scripts" I would like to use a function to find this path from within the script itself. Does anyone know how this can be accomplished and point me to the right direction? I checked the function get_absolute_file_path() in the Scilab manual, but although it is written there that this is possible, I could not figure out how to do it. Any help will be greatly appreciated. Thanks in advance, Daniel _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From petrialucian at yahoo.com Mon May 10 19:35:26 2010 From: petrialucian at yahoo.com (Petria Lucian) Date: Mon, 10 May 2010 10:35:26 -0700 (PDT) Subject: Scilab filters help Message-ID: <311536.41658.qm@web57706.mail.re3.yahoo.com> Hi. I have some problems using scilab signal processing and I hope you cand help me. I have read your book and i still haven't found the answer. ? ? ? ? ? ? Here it's my problem. I have a couple of informations about 3 filters. I don't know how to implement the residue and pole imaginary part in an transfer function and the plot the filtred signal, it simply doesn't work. ? ? ? ? Pls give me an example if you may, so i have something to start with. ? ? ? ? ? Thank you a lot. ######################################################### # Configuration file for a 3rd order bessel filter (fc = 426Hz) ######################################################### /Filter ? ? ? ? Name: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?SMB482/492 ? ? ? ? Description: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Bessel 3 425 Hz ? ? ? ? Type: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pole Filter ? ? ? ? Direct Transfer: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0 ? ? ? ? Gain: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0 ? ? ? ? /Real Pole ? ? ? ? ? ? ? ? Pole: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?-3553.653 ? ? ? ? ? ? ? ? Residue: ? ? ? ? ? ? ? ? ? ? ? ? ? 6931.966 ? ? ? ? \Real Pole ? ? ? ? /Complex Pole ? ? ? ? ? ? ? ? PoleRealPart: ? ? ? ? ? ? ? ? ? ? ? ?-2814.090 ? ? ? ? ? ? ? ? PoleImaginaryPart: ? ? ? ? ? ? ? ? 2684.739 ? ? ? ? ? ? ? ? ResidueRealPart: ? ? ? ? ? ? ? ? -3465.983 ? ? ? ? ? ? ? ? ResidueImaginaryPart: ? ? ? ? ? ? ? ? -954.772 ? ? ? ? \Complex Pole \Filter ######################################################### # Configuration file for low-pass filter of SMB26x ######################################################### /Filter ? ? ? ? Name: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?SMB26x low-pass ? ? ? ? Description: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?custom ? ? ? ? Type: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pole Filter ? ? ? ? Direct Transfer: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0 ? ? ? ? Gain: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0 ? ? ? ? /Complex Pole ? ? ? ? ? ? ? ? PoleRealPart: ? ? ? ? ? ? ? ? ? ? ? ?-2755.10204081633 ? ? ? ? ? ? ? ? PoleImaginaryPart: ? ? ? ? ? ? ? ?1616.63056303621 ? ? ? ? ? ? ? ? ResidueRealPart: ? ? ? ? ? ? ? ? 0 ? ? ? ? ? ? ? ? ResidueImaginaryPart: ? ? ? ? ? ? ? ?-6311.94403097803 ? ? ? ? \Complex Pole \Filter ######################################################### # Configuration file for intertial filter of SMB120 ######################################################### /Filter ? ? ? ? Name: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?SMB120 inertial ? ? ? ? Description: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?custom ? ? ? ? Type: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Pole Filter ? ? ? ? Direct Transfer: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0 ? ? ? ? Gain: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1.0 ? ? ? ? /Complex Pole ? ? ? ? ? ? ? ? PoleRealPart: ? ? ? ? ? ? ? ? ? ? ? ?-19792.0337176157 ? ? ? ? ? ? ? ? PoleImaginaryPart: ? ? ? ? ? ? ? ? 34280.8079840267 ? ? ? ? ? ? ? ? ResidueRealPart: ? ? ? ? ? ? ? ? 0 ? ? ? ? ? ? ? ? ResidueImaginaryPart: ? ? ? ? ? ? ? ?-1.4585420513804e-5 ? ? ? ? \Complex Pole \Filter -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Mon May 10 21:42:35 2010 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Mon, 10 May 2010 21:42:35 +0200 Subject: [scilab-Users] script path from within script In-Reply-To: References: Message-ID: Hello get_absolute_file_path("*test_script.sce") * is what I think you are searching for. ?ric. 2010/5/10 ? ? > Hello fellow Scilab users, > > I have written a .sce script and would like to get the path to this script > from within the script. > > For example, the script is called *"test_script.sce"* and is saved in * > "c:\users\adm\documents\scilab_scripts"* > > I would like to use a function to find this path from within the script > itself. Does anyone know how this can be accomplished and point me to the > right direction? > > I checked the function get_absolute_file_path() in the Scilab manual, but > although it is written there that this is possible, I could not figure out > how to do it. > > Any help will be greatly appreciated. > > Thanks in advance, > > Daniel > > ------------------------------ > Hotmail: Free, trusted and rich email service. Get it now. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon May 10 21:46:13 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 10 May 2010 21:46:13 +0200 Subject: [scilab-Users] Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> Message-ID: <1273520773.9092.331.camel@zlarin> Le lundi 10 mai 2010 ? 12:49 -0400, Jeff DuMonthier a ?crit : > I was running Scilab 5.2.1 successfully, but after installing 5.2.2 and a few other things, Scilab will no longer start up. I've tried going back to 5.2.1 and have the same problem, so the issue is probably with something else I installed, not a change from 5.2.1 to 5.2.2. The most likely culprits are an Apple system update combined with an extension, or Python, which I installed to get something else to work. I'm not sure if Scilab uses Python or something that gets stepped on by the installation, but it is one of the things that changed. > > When I attempt to start Scilab, the icon in the dock changes to a generic Java icon and it basically hangs until I do a force quit. These are the messages I see in the console: > > 5/10/10 12:27:58 PM [0x0-0x72072].org.scilab.modules.jvm.Scilab[606] JavaVM: requested Java version (1.5) not available. Using Java at "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home" instead. > 5/10/10 12:28:24 PM com.apple.spindump[632] ConnectPort: can't find mach server port name = jackdmp_entry.0_default err = unknown error code > 5/10/10 12:28:24 PM com.apple.spindump[632] Cannot connect to server Mach port > 5/10/10 12:28:24 PM com.apple.spindump[632] jack server is not running or cannot be started > 5/10/10 12:28:25 PM com.apple.launchd.peruser.502[153] ([0x0-0x72072].org.scilab.modules.jvm.Scilab[606]) Exited with exit code: 143 > > > The first message appears immediately. The rest appear when I force quit Scilab. I also have Scilab installed and working on another Mac running the same system version. The message about the Java version also shows up in the console on that machine, but since it works there I don't think that's the issue. The other messages seem to be referring to JackOSX, which is a configurable audio router. I don't know why Scilab would be trying to start or connect to that. It's not set up as the default audio device and Scilab was working with the same version of that installed before. I can only guess that an Apple OS update or the Python install have created an extension conflict with an extension that wasn't a problem before. The machine where Scilab is working has the same system version but I did not install Python or JackOSX. Does anyone have any suggestions as to what I could try to debug this further? I'd rather not have to start ripping out extensions or cleaning out the Python install, which there doesn't seem to be an easy way to do. We don't have this issue on our testing Mac OS X machines and I confirm that we are not doing anything with the sound card on the start up of the software. However, we noticed some random behaviors under Mac. Please let me know if you find a workaround on this issue. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From dmontezano at hotmail.com Mon May 10 23:26:17 2010 From: dmontezano at hotmail.com (=?utf-8?B?6K+aIOeUhA==?=) Date: Mon, 10 May 2010 21:26:17 +0000 Subject: [scilab-Users] script path from within script In-Reply-To: References: , Message-ID: Thank you ?ric. Your answer helped me a lot. It is working now. Actually, that is the way I was trying to do. After I got your reply I went to try the same thing again but it was still to no avail. Then after some thought I realised that it was because I am used to running my scripts using the CTRL+L shortcut in Scilab Text Editor instead of CTRL+E. If I start the script with CTRL+L the function get_absolute_file_path() does not work. Now I am running the script with the CTRL+E shortcut and everything works alright. Thank you for your answer and help. Daniel Date: Mon, 10 May 2010 21:42:35 +0200 From: grocer.toolbox at gmail.com To: users at lists.scilab.org Subject: Re: [scilab-Users] script path from within script Hello get_absolute_file_path("test_script.sce") is what I think you are searching for. ?ric. 2010/5/10 ? ? Hello fellow Scilab users, I have written a .sce script and would like to get the path to this script from within the script. For example, the script is called "test_script.sce" and is saved in "c:\users\adm\documents\scilab_scripts" I would like to use a function to find this path from within the script itself. Does anyone know how this can be accomplished and point me to the right direction? I checked the function get_absolute_file_path() in the Scilab manual, but although it is written there that this is possible, I could not figure out how to do it. Any help will be greatly appreciated. Thanks in advance, Daniel Hotmail: Free, trusted and rich email service. Get it now. _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at scilab.org Tue May 11 09:33:50 2010 From: Serge.Steer at scilab.org (Serge Steer) Date: Tue, 11 May 2010 09:33:50 +0200 Subject: [scilab-Users] Some questions about Xcos In-Reply-To: <4BE30FF9.3070800@gmail.com> References: <4BE30FF9.3070800@gmail.com> Message-ID: <4BE9085E.7040106@scilab.org> Andrea.Amorosi76 at gmail.com a ?crit : >
Hi to all, > I'm a Simulink user and I would like to switch to Xcos. > So I have the following questions: > 1) is it possible to run a simulation in a soft real time mode? Yes, select the "Simulation/Setup" Menu > 2) is it possible to select a fixed step solver (Euler, Runge-Kutta 4, > etc)? No in the simulation context, but it is possible (and easy) to a new block based on generated C code that embed fixed step solver. Hybrid asynchronous dynamical system requires high quality solvers which, in particular, have root finding capabilities, so it has been decided to base the Xcos/Scicos simulator on the Sundials library (CVODE and IDA). If one wants to check the behavior of a model with a fixed step solver, he may use the code generator which generates a new block using internaly a fixed step solver. This way it is possible to compare tthe results. > 3) is it possible to send and receive udp packet and/or interface with > a joystick? There is no pre defined block for that, but if you know the API of the driver is should be easy to developp a block for that. > 4) is it possible to generate c/c++ code from a model? Yes, use the "Tools/Code generation" menu. It will generate C code (standalone or new Xcos block) > 5) can I create additional blocks libraries? The answer here is yes and no: It is possible to create new blocks using the "user defned blocks" in particular the CBLOCK (which allow to interactively define a new block based on C code), The EXPRESSION block (which allow to interactively define a new functionnal block), ... But it is not yet possible (it is a Scicos feature which is not yet implemented in the xcos editor) to create a new block library from scratch. > 6) is there any mechanism similar to the referenced model of > Matlab/Simulink? No Thanks for your interest Serge Steer INRIA From antonelli1970 at gmail.com Tue May 11 09:50:01 2010 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Tue, 11 May 2010 09:50:01 +0200 Subject: fat32 partition issue Message-ID: <4BE90C29.2090203@gmail.com> Hi, I have the following problem, Scilab 5.2 under Linux is not able to access a fat32 partition (shared between linux and windows). On the same machine I could see that partition with Scilab 4.x version under Linux Any suggestion? Thanks g. From ray at aarden.us Tue May 11 15:09:21 2010 From: ray at aarden.us (ray joseph) Date: Tue, 11 May 2010 08:09:21 -0500 Subject: [scilab-Users] Some questions about Xcos References: <4BE30FF9.3070800@gmail.com> <4BE9085E.7040106@scilab.org> Message-ID: <00f901caf10b$2c7e00f0$0302a8c0@HOUC35439> Serge, Thank you for the detailed response. This really helps me as a new comer understand Scilab and Xcos better. If you would please, explain a little more about an Xcos library. You pointed out that we could build blocks but not libraries. What is unique/special about a library? Ray ----- Original Message ----- From: "Serge Steer" To: ; Sent: Tuesday, May 11, 2010 2:33 AM Subject: Re: [scilab-Users] Some questions about Xcos > Andrea.Amorosi76 at gmail.com a ?crit : > >
Hi to all, > > I'm a Simulink user and I would like to switch to Xcos. > > So I have the following questions: > > 1) is it possible to run a simulation in a soft real time mode? > Yes, select the "Simulation/Setup" Menu > > 2) is it possible to select a fixed step solver (Euler, Runge-Kutta 4, > > etc)? > No in the simulation context, but it is possible (and easy) to a new > block based on generated C code that embed fixed step solver. > > Hybrid asynchronous dynamical system requires high quality solvers > which, in particular, have root finding capabilities, so it has been > decided to base the Xcos/Scicos simulator on the Sundials library (CVODE > and IDA). > If one wants to check the behavior of a model with a fixed step solver, > he may use the code generator which generates a new block using > internaly a fixed step solver. This way it is possible to compare tthe > results. > > 3) is it possible to send and receive udp packet and/or interface with > > a joystick? > There is no pre defined block for that, but if you know the API of the > driver is should be easy to developp a block for that. > > > 4) is it possible to generate c/c++ code from a model? > Yes, use the "Tools/Code generation" menu. It will generate C code > (standalone or new Xcos block) > > 5) can I create additional blocks libraries? > The answer here is yes and no: > It is possible to create new blocks using the "user defned blocks" in > particular the CBLOCK (which allow to interactively define a new block > based on C code), The EXPRESSION block (which allow to interactively > define a new functionnal block), ... > > But it is not yet possible (it is a Scicos feature which is not yet > implemented in the xcos editor) to create a new block library from scratch. > > 6) is there any mechanism similar to the referenced model of > > Matlab/Simulink? > No > > Thanks for your interest > > Serge Steer > INRIA > From markknecht at gmail.com Tue May 11 15:34:31 2010 From: markknecht at gmail.com (Mark Knecht) Date: Tue, 11 May 2010 06:34:31 -0700 Subject: Graphical DSP filter design? Message-ID: Hi, I'm interested in doing a little bit of digital filter design. Looking around for Open Source tools I've just discovered Scilab and I'm wondering if it's well suited to this sort of study? Mainly I'd like to be able to input block level diagrams such as the one on this page: http://en.wikipedia.org/wiki/Finite_impulse_response and then set parameters and see amplitude and phase response. Scilab looks like it is probably capable of this sort of work but other than the very long (3400 pages?) user's manual I haven't found any examples of doing this sort of thing as of yet. Thanks in advance. Cheers, Mark From HMisono at umaryland.edu Wed May 12 00:31:23 2010 From: HMisono at umaryland.edu (Hiroaki Misono) Date: Tue, 11 May 2010 18:31:23 -0400 Subject: Scilab on OS X Snow leopard Message-ID: Hi, I have been trying to run Scilab-5.2 on a Macbook with OS X 10.6.3. When I launched it, the icon showed up in the Dock and bounced for a while. Then it stopped and nothing happened afterwards. I had to force quit to remove it fro the Dock. My student has a Macbook Pro with the same OS, and somehow Scilab runs on hers? Could anyone help me to figure out what I am missing here? Thank you, Miso (Hiroaki Misono) Assistant Professor Department of Neural and Pain Science Program in Neuroscience University of Maryland Baltimore Mail to: 650 W. Baltimore St. Rm 8-South Dental Building Baltimore, MD 21201 Tel: 410-706-7168 (office), 410-706-6547 (lab) Fax: 410-706-0865 http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed May 12 00:35:16 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 12 May 2010 00:35:16 +0200 Subject: [scilab-Users] Scilab on OS X Snow leopard In-Reply-To: References: Message-ID: <1273617316.20265.436.camel@zlarin> Le mardi 11 mai 2010 ? 18:31 -0400, Hiroaki Misono a ?crit : > Hi, > > > I have been trying to run Scilab-5.2 on a Macbook with OS X 10.6.3. > When I launched it, the icon showed up in the Dock and bounced for a > while. > Then it stopped and nothing happened afterwards. > I had to force quit to remove it fro the Dock. > My student has a Macbook Pro with the same OS, and somehow Scilab runs > on hers? > Could anyone help me to figure out what I am missing here? What happens when you start Scilab from a terminal ? Do you get any error message ? We have a few errors reports about Scilab 5.2.2 under Mac OS X 10.6.3 but we haven't been able to reproduce it. So any information which might help are most welcome! Sylvestre From hmisono at umaryland.edu Wed May 12 01:09:43 2010 From: hmisono at umaryland.edu (Hiroaki Misono) Date: Tue, 11 May 2010 19:09:43 -0400 Subject: [scilab-Users] Scilab on OS X Snow leopard In-Reply-To: <1273617316.20265.436.camel@zlarin> References: <1273617316.20265.436.camel@zlarin> Message-ID: <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> Hi Sylvestre, When I opened Scilab from Terminal, identical symptoms occurred (dock icon bouncing and hanging there until force-quit). I didn't get any error messages. Though when I force-quitted Scilab, an error report (to be sent to Apple) shows up. Let me know if you want a copy of it. While I was waiting for Scilab to start-up (well, it didn't at the end), there was a line showed up in Console saying "Error checking symlink for the target jvm" By the way, I have tried Scilab 5.2.1 (and its nightly builds) and 5.2.2, and nothing has worked so far. I have installed java SE 1.4, 5.0, and 6.0 and played with Java Preference, but no luck. Now I can see that some people have the same or similar issue. Hope you can find a workaround. Best, Miso P.S. I use Scilab on Windows XP (on Parallels) and love it. I would love it more if I can run it natively on Mac because it is very slow on the emulator..... On May 11, 2010, at 6:35 PM, Sylvestre Ledru wrote: > Le mardi 11 mai 2010 ? 18:31 -0400, Hiroaki Misono a ?crit : >> Hi, >> >> >> I have been trying to run Scilab-5.2 on a Macbook with OS X 10.6.3. >> When I launched it, the icon showed up in the Dock and bounced for a >> while. >> Then it stopped and nothing happened afterwards. >> I had to force quit to remove it fro the Dock. >> My student has a Macbook Pro with the same OS, and somehow Scilab runs >> on hers? >> Could anyone help me to figure out what I am missing here? > What happens when you start Scilab from a terminal ? Do you get any > error message ? > > We have a few errors reports about Scilab 5.2.2 under Mac OS X 10.6.3 > but we haven't been able to reproduce it. So any information which might > help are most welcome! > > Sylvestre > > Miso (Hiroaki Misono) Assistant Professor Department of Neural and Pain Science Program in Neuroscience University of Maryland Baltimore Mail to: 650 W. Baltimore St. Rm 8-South Dental Building Baltimore, MD 21201 Tel: 410-706-7168 (office), 410-706-6547 (lab) Fax: 410-706-0865 http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Wed May 12 06:16:46 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 11 May 2010 21:16:46 -0700 Subject: [scilab-Users] Scilab on OS X Snow leopard In-Reply-To: <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> Message-ID: <6B0CBF80-DF49-4128-A41B-C8976EE803D5@quantasonics.com> I am running 5.2.2 on my MacBookPro with OS-X Snow Leopard. I don't use the terminal, but open it from the Applications folder and then invoke editor. It works fine Gary Nelson On May 11, 2010, at 4:09 PM, Hiroaki Misono wrote: > Hi Sylvestre, > > When I opened Scilab from Terminal, identical symptoms occurred (dock icon bouncing and hanging there until force-quit). > I didn't get any error messages. > Though when I force-quitted Scilab, an error report (to be sent to Apple) shows up. > Let me know if you want a copy of it. > > While I was waiting for Scilab to start-up (well, it didn't at the end), there was a line showed up in Console saying "Error checking symlink for the target jvm" > By the way, I have tried Scilab 5.2.1 (and its nightly builds) and 5.2.2, and nothing has worked so far. > I have installed java SE 1.4, 5.0, and 6.0 and played with Java Preference, but no luck. > > Now I can see that some people have the same or similar issue. > Hope you can find a workaround. > > Best, > > > Miso > > > P.S. I use Scilab on Windows XP (on Parallels) and love it. I would love it more if I can run it natively on Mac because it is very slow on the emulator..... > > > > On May 11, 2010, at 6:35 PM, Sylvestre Ledru wrote: > >> Le mardi 11 mai 2010 ? 18:31 -0400, Hiroaki Misono a ?crit : >>> Hi, >>> >>> >>> I have been trying to run Scilab-5.2 on a Macbook with OS X 10.6.3. >>> When I launched it, the icon showed up in the Dock and bounced for a >>> while. >>> Then it stopped and nothing happened afterwards. >>> I had to force quit to remove it fro the Dock. >>> My student has a Macbook Pro with the same OS, and somehow Scilab runs >>> on hers? >>> Could anyone help me to figure out what I am missing here? >> What happens when you start Scilab from a terminal ? Do you get any >> error message ? >> >> We have a few errors reports about Scilab 5.2.2 under Mac OS X 10.6.3 >> but we haven't been able to reproduce it. So any information which might >> help are most welcome! >> >> Sylvestre >> >> > > Miso > (Hiroaki Misono) > Assistant Professor > Department of Neural and Pain Science > Program in Neuroscience > University of Maryland Baltimore > Mail to: 650 W. Baltimore St. > Rm 8-South Dental Building > Baltimore, MD 21201 > Tel: 410-706-7168 (office), 410-706-6547 (lab) > Fax: 410-706-0865 > http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 > > > Gary Nelson gnelson at quantasonics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed May 12 10:46:52 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 12 May 2010 10:46:52 +0200 Subject: [scilab-Users] Scilab on OS X Snow leopard In-Reply-To: <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> Message-ID: <1273654012.8206.6620.camel@korcula.inria.fr> If you could send me a copy, it would be indeed helpful. Anyway, could you try to start "Preferences Java" and put the Java SE 6 on the top of the list ? We did some minor changes here and since Apple has it own way of managing new releases, this might be a cause... Sylvestre Le mardi 11 mai 2010 ? 19:09 -0400, Hiroaki Misono a ?crit : > Hi Sylvestre, > > When I opened Scilab from Terminal, identical symptoms occurred (dock > icon bouncing and hanging there until force-quit). > I didn't get any error messages. > Though when I force-quitted Scilab, an error report (to be sent to > Apple) shows up. > Let me know if you want a copy of it. > > > While I was waiting for Scilab to start-up (well, it didn't at the > end), there was a line showed up in Console saying "Error checking > symlink for the target jvm" > By the way, I have tried Scilab 5.2.1 (and its nightly builds) and > 5.2.2, and nothing has worked so far. > I have installed java SE 1.4, 5.0, and 6.0 and played with Java > Preference, but no luck. > > > Now I can see that some people have the same or similar issue. > Hope you can find a workaround. > > > Best, > > > > > Miso > > > > > P.S. I use Scilab on Windows XP (on Parallels) and love it. I would > love it more if I can run it natively on Mac because it is very slow > on the emulator..... > > > > > > On May 11, 2010, at 6:35 PM, Sylvestre Ledru wrote: > > > Le mardi 11 mai 2010 ? 18:31 -0400, Hiroaki Misono a ?crit : > > > Hi, > > > > > > > > > I have been trying to run Scilab-5.2 on a Macbook with OS X > > > 10.6.3. > > > When I launched it, the icon showed up in the Dock and bounced for > > > a > > > while. > > > Then it stopped and nothing happened afterwards. > > > I had to force quit to remove it fro the Dock. > > > My student has a Macbook Pro with the same OS, and somehow Scilab > > > runs > > > on hers? > > > Could anyone help me to figure out what I am missing here? > > What happens when you start Scilab from a terminal ? Do you get any > > error message ? > > > > We have a few errors reports about Scilab 5.2.2 under Mac OS X > > 10.6.3 > > but we haven't been able to reproduce it. So any information which > > might > > help are most welcome! > > > > Sylvestre > > > > > > > > Miso > (Hiroaki Misono) > Assistant Professor > Department of Neural and Pain Science > Program in Neuroscience > University of Maryland Baltimore > Mail to: 650 W. Baltimore St. > Rm 8-South Dental Building > Baltimore, MD 21201 > Tel: 410-706-7168 (office), 410-706-6547 (lab) > Fax: 410-706-0865 > http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 > > > > > From hmisono at umaryland.edu Wed May 12 15:49:02 2010 From: hmisono at umaryland.edu (Hiroaki Misono) Date: Wed, 12 May 2010 09:49:02 -0400 Subject: [scilab-Users] Scilab on OS X Snow leopard In-Reply-To: <1273654012.8206.6620.camel@korcula.inria.fr> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> Message-ID: OK. I figured out my issue with Scilab. For an unknown reason, a symbolic link to Java 1.5 was missing in the System folder. I made it in /System/Library/Frameworks/JavaVM.framework/Versions/ to refer to 1.5.0. Voila! Scilab now starts! I guess it doesn't matter whether the symlink is set to 1.5 or 1.6 because it is set to 1.6.0 in my student's computer on which Scilab launched without a trouble. Thanks for the comments! Miso On May 12, 2010, at 4:46 AM, Sylvestre Ledru wrote: > If you could send me a copy, it would be indeed helpful. > Anyway, could you try to start "Preferences Java" and put the Java SE 6 > on the top of the list ? > > We did some minor changes here and since Apple has it own way of > managing new releases, this might be a cause... > > Sylvestre > > Le mardi 11 mai 2010 ? 19:09 -0400, Hiroaki Misono a ?crit : >> Hi Sylvestre, >> >> When I opened Scilab from Terminal, identical symptoms occurred (dock >> icon bouncing and hanging there until force-quit). >> I didn't get any error messages. >> Though when I force-quitted Scilab, an error report (to be sent to >> Apple) shows up. >> Let me know if you want a copy of it. >> >> >> While I was waiting for Scilab to start-up (well, it didn't at the >> end), there was a line showed up in Console saying "Error checking >> symlink for the target jvm" >> By the way, I have tried Scilab 5.2.1 (and its nightly builds) and >> 5.2.2, and nothing has worked so far. >> I have installed java SE 1.4, 5.0, and 6.0 and played with Java >> Preference, but no luck. >> >> >> Now I can see that some people have the same or similar issue. >> Hope you can find a workaround. >> >> >> Best, >> >> >> >> >> Miso >> >> >> >> >> P.S. I use Scilab on Windows XP (on Parallels) and love it. I would >> love it more if I can run it natively on Mac because it is very slow >> on the emulator..... >> >> >> >> >> >> On May 11, 2010, at 6:35 PM, Sylvestre Ledru wrote: >> >>> Le mardi 11 mai 2010 ? 18:31 -0400, Hiroaki Misono a ?crit : >>>> Hi, >>>> >>>> >>>> I have been trying to run Scilab-5.2 on a Macbook with OS X >>>> 10.6.3. >>>> When I launched it, the icon showed up in the Dock and bounced for >>>> a >>>> while. >>>> Then it stopped and nothing happened afterwards. >>>> I had to force quit to remove it fro the Dock. >>>> My student has a Macbook Pro with the same OS, and somehow Scilab >>>> runs >>>> on hers? >>>> Could anyone help me to figure out what I am missing here? >>> What happens when you start Scilab from a terminal ? Do you get any >>> error message ? >>> >>> We have a few errors reports about Scilab 5.2.2 under Mac OS X >>> 10.6.3 >>> but we haven't been able to reproduce it. So any information which >>> might >>> help are most welcome! >>> >>> Sylvestre >>> >>> >>> >> >> Miso >> (Hiroaki Misono) >> Assistant Professor >> Department of Neural and Pain Science >> Program in Neuroscience >> University of Maryland Baltimore >> Mail to: 650 W. Baltimore St. >> Rm 8-South Dental Building >> Baltimore, MD 21201 >> Tel: 410-706-7168 (office), 410-706-6547 (lab) >> Fax: 410-706-0865 >> http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 >> >> >> >> >> > > Miso (Hiroaki Misono) Assistant Professor Department of Neural and Pain Science Program in Neuroscience University of Maryland Baltimore Mail to: 650 W. Baltimore St. Rm 8-South Dental Building Baltimore, MD 21201 Tel: 410-706-7168 (office), 410-706-6547 (lab) Fax: 410-706-0865 http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnelson at quantasonics.com Sat May 15 00:14:47 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Fri, 14 May 2010 15:14:47 -0700 Subject: Gone missing Message-ID: Greetings I have not received anything from the group for a couple days. Has my account gotten lost? Gary Nelson gnelson at quantasonics.com From jessica.harvel at goodrich.com Fri May 14 22:54:57 2010 From: jessica.harvel at goodrich.com (Harvel, Jessica) Date: Fri, 14 May 2010 13:54:57 -0700 Subject: SciLab Message-ID: I was wondering if this software is free for corporations to use. Jessica Harvel Systems Administrator II Goodrich Interiors Evacuation Systems 3414 South 5th Street Phoenix, AZ 85040-1169 ' 602-232-4149 Office ' 602-330-9882 Cell 7 602-794-8788 Fax Jessica.Harvel at Goodrich.com FOR QUICKER RESPONSE TO YOUR ISSUES PLEASE USE eRFS. ( http://eRFS ) This email may contain confidential information. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy and delete all copies of this email and any attachments. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden. P Please consider the environment before printing this e-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat May 15 00:23:17 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 15 May 2010 00:23:17 +0200 Subject: [scilab-Users] SciLab In-Reply-To: References: Message-ID: <1273875797.4782.5707.camel@zlarin> Hello Jessica, As long as your respect the CeCILL license (pretty much the same conditions as the GPL), Scilab is free in both ways (ie, you don't have to pay to use it and you have access to the source) for professional, training, research, individual or education purposes... Sylvestre PS: Basically, the main condition of the CeCILL/GPL is: in the case you embeds Scilab into a thirdparty application, you would have to redistribute the source of this software too. Le vendredi 14 mai 2010 ? 13:54 -0700, Harvel, Jessica a ?crit : > I was wondering if this software is free for corporations to use. > > > > Jessica Harvel > Systems Administrator II > Goodrich Interiors > Evacuation Systems > 3414 South 5th Street > Phoenix, AZ 85040-1169 > ' 602-232-4149 Office > ' 602-330-9882 Cell > 7 602-794-8788 Fax > Jessica.Harvel at Goodrich.com > > FOR QUICKER RESPONSE TO YOUR ISSUES PLEASE USE eRFS. ( http://eRFS ) > > This email may contain confidential information. If you are not the > intended recipient (or have received this email in error) please > notify the sender immediately and destroy and delete all copies of > this email and any attachments. Any unauthorized copying, disclosure > or distribution of the material in this email is strictly forbidden. > > P Please consider the environment before printing this e-mail > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From markknecht at gmail.com Sat May 15 06:49:34 2010 From: markknecht at gmail.com (Mark Knecht) Date: Fri, 14 May 2010 21:49:34 -0700 Subject: [scilab-Users] Gone missing In-Reply-To: References: Message-ID: This message got through. There's only been a couple of responses in the last 3 days so you're not missing much. - Mark On Fri, May 14, 2010 at 3:14 PM, Gary Nelson wrote: > Greetings > I have not received anything from the group for a couple days. > Has my account gotten lost? > > > > Gary Nelson > gnelson at quantasonics.com > > > > From tpaysen at sbcglobal.net Mon May 17 09:33:41 2010 From: tpaysen at sbcglobal.net (Tim Paysen) Date: Mon, 17 May 2010 00:33:41 -0700 (PDT) Subject: problerm exporting graphic form Scilab 5.2.2 Message-ID: <690356.62100.qm@web80207.mail.mud.yahoo.com> following messages are generated when various graphic formats are tried.? ?(this?is the 32-bit version.? I haven't tried the 64 bit yet) -->plot(y) //Plots y against y-indexes (integers along x-axis) ?-5.2.2\Untitled-export', 'landscape') ????????????????????????????????????? !--error 999 xs2eps: Unable to create export file, permission denied. while executing a callback ? ? ?!--error 10000 xs2emf: Unable to create export file, permission denied. at line????? 84 of function xs2emf called by :? -5.2.2\Untitled-export', 'landscape') while executing a callback ? ? ?!--error 10000 xs2emf: Unable to create export file, permission denied. at line????? 84 of function xs2emf called by :? -5.2.2\Untitled-export', 'landscape') while executing a callback ? ? ?!--error 10000 xs2emf: Unable to create export file, permission denied. at line????? 84 of function xs2emf called by :? b-5.2.2\Untitled-export', 'portrait') while executing a callback ? ? -5.2.2\Untitled-export', 'landscape') ????????????????????????????????????? !--error 999 xs2pdf: Unable to create export file, permission denied. while executing a callback ? ? ?!--error 10000 xs2emf: Unable to create export file, permission denied. at line????? 84 of function xs2emf called by :? .2\Untitled-export.emf', 'landscape') while executing a callback -------------- next part -------------- An HTML attachment was scrubbed... URL: From Calixte.Denizet at ac-rennes.fr Mon May 17 09:43:09 2010 From: Calixte.Denizet at ac-rennes.fr (Calixte.Denizet at ac-rennes.fr) Date: Mon, 17 May 2010 09:43:09 +0200 Subject: [scilab-Users] problerm exporting graphic form Scilab 5.2.2 In-Reply-To: <690356.62100.qm@web80207.mail.mud.yahoo.com> References: <690356.62100.qm@web80207.mail.mud.yahoo.com> Message-ID: Hello Tim, Could you make a bug report on bugzilla.scilab.org where you precise your OS, what you want to export ... ? Check if you have the right to write in the directory where you want to put your file. Calixte ----- Message d'origine ----- De: Tim Paysen Date: Lundi, Mai 17, 2010 9:33 am Objet: [scilab-Users] problerm exporting graphic form Scilab 5.2.2 ?: users at lists.scilab.org > following messages are generated when various graphic formats are > tried.? ?(this?is the 32-bit version.? I haven't tried the 64 bit yet) > > -->plot(y) //Plots y against y-indexes (integers along x-axis) > ?-5.2.2\Untitled-export', 'landscape') > ????????????????????????????????????? !--error 999 > xs2eps: Unable to create export file, permission denied. > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > -5.2.2\Untitled-export', 'landscape') > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > -5.2.2\Untitled-export', 'landscape') > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > b-5.2.2\Untitled-export', 'portrait') > while executing a callback > ? > ? > -5.2.2\Untitled-export', 'landscape') > ????????????????????????????????????? !--error 999 > xs2pdf: Unable to create export file, permission denied. > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > .2\Untitled-export.emf', 'landscape')while executing a callback From petar.knezevich at gmail.com Mon May 17 13:39:02 2010 From: petar.knezevich at gmail.com (Petar Knezevich) Date: Mon, 17 May 2010 16:39:02 +0500 Subject: Multiple plots above each other with common x-axis Message-ID: Hi, Is it possible to stack multiple plots on top of each other with no vertical space between them and display the x-axis only on the bottom plot? I would like to combine any number of plots in this manner (e.g. 2, 3, 4 or 5 plots). -------------------- | plot 1 | | | -------------------- | plot 2 | | | -------------------- Common X-Axis Is there already an option in subplot to produce this result? Currently I use a standard subplot configuration but there is too much space between each plot. Regards, Petar Knezevich From Samuel.Gougeon at univ-lemans.fr Mon May 17 18:43:31 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 17 May 2010 18:43:31 +0200 Subject: Multiple plots above each other with common x-axis In-Reply-To: References: Message-ID: <4BF17233.4020809@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Petar Knezevich Date : 17/05/2010 13:39: > Hi, > > Is it possible to stack multiple plots on top of each other with no > vertical space between them and display the x-axis only on the bottom > plot? I would like to combine any number of plots in this manner > (e.g. 2, 3, 4 or 5 plots). > > -------------------- > | plot 1 | > | | > -------------------- > | plot 2 | > | | > -------------------- > Common X-Axis > Yes it is > Is there already an option in subplot to produce this result? > Currently I use a standard subplot configuration but there is too much > space between each plot. > Yes, subplot() is not dedicated to this task. There are several ways to do what you whish. One of the easiest and most straightforward one is to fit the .axes_bounds property by hand. Here is the most simple example i may propose to you: plot() // plots a sample with 2 subplots a=gca(); // gets the handle of the last plot twinkle(a) // to see which one was the last plotted a.axes_bounds=[0 0.41 1 0.55 ]; You can even share a common X axis within different plots, etc. To know more about possibilities, see as a starting point: help axes_properties and display the handle: a Regards Samuel From thiagoaax at gmail.com Mon May 17 19:00:01 2010 From: thiagoaax at gmail.com (Thiago Costa) Date: Mon, 17 May 2010 14:00:01 -0300 Subject: atomsGui Message-ID: I've noticed some kind of malfunction with atomsGui() in several computers which I have access. Does anyone have the same issue? I'm using Scilab 5.2.2 in a Windows xp system. -->atomsGui(); !--error 21 Invalid index. at line 87 of function atomsGui called by : atomsGui(); Thank you in advance. Thiago C. -- LCAP/DESQ - Department of Chemical Systems Engineering School of Chemical Engineering University of Campinas (UNICAMP) - E-mail: thiagocosta at feq.unicamp.br From tpaysen at sbcglobal.net Mon May 17 19:30:55 2010 From: tpaysen at sbcglobal.net (Tim Paysen) Date: Mon, 17 May 2010 10:30:55 -0700 (PDT) Subject: [scilab-Users] Re : [scilab-Users] problerm exporting graphic form Scilab 5.2.2 In-Reply-To: References: <690356.62100.qm@web80207.mail.mud.yahoo.com> Message-ID: <229738.40791.qm@web80204.mail.mud.yahoo.com> You just hit on the problem,!!? I discovered that Windows 7 won't let me write to certain directories.? If I write to "My Documents"? it works fine.? Thank you for your attention (and--yes I will use 'bugzilla' next time--as a metter of fact, I'll send a few x64 issues) Tim Paysen ________________________________ From: "Calixte.Denizet at ac-rennes.fr" To: users at lists.scilab.org Cc: tpaysen at sbcglobal.net Sent: Mon, May 17, 2010 12:43:09 AM Subject: [scilab-Users] Re : [scilab-Users] problerm exporting graphic form Scilab 5.2.2 Hello Tim, Could you make a bug report on bugzilla.scilab.org where you precise your OS, what you want to export ... ? Check if you have the right to write in the directory where you want to put your file. Calixte ----- Message d'origine ----- De: Tim Paysen Date: Lundi, Mai 17, 2010 9:33 am Objet: [scilab-Users] problerm exporting graphic form Scilab 5.2.2 ?: users at lists.scilab.org > following messages are generated when various graphic formats are > tried.? ?(this?is the 32-bit version.? I haven't tried the 64 bit yet) > > -->plot(y) //Plots y against y-indexes (integers along x-axis) > ?-5.2.2\Untitled-export', 'landscape') > ????????????????????????????????????? !--error 999 > xs2eps: Unable to create export file, permission denied. > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > -5.2.2\Untitled-export', 'landscape') > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > -5.2.2\Untitled-export', 'landscape') > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > b-5.2.2\Untitled-export', 'portrait') > while executing a callback > ? > ? > -5.2.2\Untitled-export', 'landscape') > ????????????????????????????????????? !--error 999 > xs2pdf: Unable to create export file, permission denied. > while executing a callback > ? > ? > ?!--error 10000 > xs2emf: Unable to create export file, permission denied. > at line????? 84 of function xs2emf called by :? > .2\Untitled-export.emf', 'landscape')while executing a callback -------------- next part -------------- An HTML attachment was scrubbed... URL: From kay-uwe.goetz at web.de Mon May 17 20:26:16 2010 From: kay-uwe.goetz at web.de (Kay-Uwe Goetz) Date: Mon, 17 May 2010 18:26:16 +0000 (UTC) Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> Message-ID: Sylvestre Ledru writes: > > We don't have this issue on our testing Mac OS X machines and I confirm > that we are not doing anything with the sound card on the start up of > the software. > However, we noticed some random behaviors under Mac. Please let me know > if you find a workaround on this issue. > > Sylvestre > I have exactly the same problems on my iMac. It must have to do something with Java, since I can start scilab with the -nogui option. I get the same message about using 1.6.0 since 1.5.0 could not be found. However, this can be excluded as a reason, since my MacBook which has the same OS-version is able to run scilab with the gui enabled. I've compared the scilab scripts and run them with SCI_VERBOSE on both machines. They produce the very same output, but on the iMac the process hangs (no reply) whereas on the MacBook it runs fine. A solution is essential for me since I use Scilab for teaching purposes and if the next update kills Scilab on my MacBook I will be upset :-( Kay-Uwe From kay-uwe.goetz at web.de Mon May 17 20:41:36 2010 From: kay-uwe.goetz at web.de (Kay-Uwe Goetz) Date: Mon, 17 May 2010 18:41:36 +0000 (UTC) Subject: Scilab on OS X Snow leopard References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> Message-ID: Hiroaki Misono writes: > > OK.I figured out my issue with Scilab. > For an unknown reason, a symbolic link to Java 1.5 was missing in > the System > folder. > I made it in /System/Library/Frameworks/JavaVM.framework/Versions/ to >refer to 1.5.0. > Voila! > Scilab now starts! > > I guess it doesn't matter whether the symlink is set to 1.5 or 1.6 because > it is set to 1.6.0 in my student's computer on which Scilab launched > without a trouble. > Could you please explain that in a bit more detail? What should the link refer to? Maybe you can include the output of 'ls -al'? Thanks Kay-Uwe From jjdmon at pobox.com Mon May 17 20:52:30 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Mon, 17 May 2010 14:52:30 -0400 Subject: [scilab-Users] Re: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> Message-ID: It's the same for me. Scilab works on a MacBook Pro but fails on my 2.4GHz Core 2 Duo iMac. Version 5.2.1 used to work, but after running Software Update at the same time I installed 5.2.2, neither will start anymore. It seems to be a problem with Java only on certain machines (maybe just iMac's?). On May 17, 2010, at 2:26 PM, Kay-Uwe Goetz wrote: > Sylvestre Ledru writes: > >> >> We don't have this issue on our testing Mac OS X machines and I confirm >> that we are not doing anything with the sound card on the start up of >> the software. >> However, we noticed some random behaviors under Mac. Please let me know >> if you find a workaround on this issue. >> >> Sylvestre >> > > I have exactly the same problems on my iMac. It must have to do something with > Java, since I can start scilab with the -nogui option. I get the same message > about using 1.6.0 since 1.5.0 could not be found. However, this can be excluded > as a reason, since my MacBook which has the same OS-version is able to run > scilab with the gui enabled. I've compared the scilab scripts and run them with > SCI_VERBOSE on both machines. They produce the very same output, but on the iMac > the process hangs (no reply) whereas on the MacBook it runs fine. > > A solution is essential for me since I use Scilab for teaching purposes and if > the next update kills Scilab on my MacBook I will be upset :-( > > Kay-Uwe > > > From Andrea.Amorosi76 at gmail.com Mon May 17 21:02:24 2010 From: Andrea.Amorosi76 at gmail.com (Andrea.Amorosi76 at gmail.com) Date: Mon, 17 May 2010 21:02:24 +0200 Subject: [scilab-Users] Some questions about Xcos In-Reply-To: <4BE9085E.7040106@scilab.org> References: <4BE30FF9.3070800@gmail.com> <4BE9085E.7040106@scilab.org> Message-ID: <4BF192C0.2050502@gmail.com> Thank you for your answer. I've another two questions: 1) can I use the auto generated code in a proprietary project? Is there any particular problem with libraries and licenses? 2) as far I've understand, I can add additional blocks to an existing model Library, but I can't create anew one, is it correct? Thank you, Andrea Serge Steer ha scritto: > Andrea.Amorosi76 at gmail.com a ?crit : >>
Hi to all, >> I'm a Simulink user and I would like to switch to Xcos. >> So I have the following questions: >> 1) is it possible to run a simulation in a soft real time mode? > Yes, select the "Simulation/Setup" Menu >> 2) is it possible to select a fixed step solver (Euler, Runge-Kutta 4, >> etc)? > No in the simulation context, but it is possible (and easy) to a new > block based on generated C code that embed fixed step solver. > > Hybrid asynchronous dynamical system requires high quality solvers > which, in particular, have root finding capabilities, so it has been > decided to base the Xcos/Scicos simulator on the Sundials library (CVODE > and IDA). > If one wants to check the behavior of a model with a fixed step solver, > he may use the code generator which generates a new block using > internaly a fixed step solver. This way it is possible to compare tthe > results. >> 3) is it possible to send and receive udp packet and/or interface with >> a joystick? > There is no pre defined block for that, but if you know the API of the > driver is should be easy to developp a block for that. > >> 4) is it possible to generate c/c++ code from a model? > Yes, use the "Tools/Code generation" menu. It will generate C code > (standalone or new Xcos block) >> 5) can I create additional blocks libraries? > The answer here is yes and no: > It is possible to create new blocks using the "user defned blocks" in > particular the CBLOCK (which allow to interactively define a new block > based on C code), The EXPRESSION block (which allow to interactively > define a new functionnal block), ... > > But it is not yet possible (it is a Scicos feature which is not yet > implemented in the xcos editor) to create a new block library from scratch. >> 6) is there any mechanism similar to the referenced model of >> Matlab/Simulink? > No > > Thanks for your interest > > Serge Steer > INRIA > From hmisono at umaryland.edu Mon May 17 21:37:21 2010 From: hmisono at umaryland.edu (Hiroaki Misono) Date: Mon, 17 May 2010 15:37:21 -0400 Subject: [scilab-Users] Re: Scilab on OS X Snow leopard In-Reply-To: References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> Message-ID: <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> Here is the output of ls -al. drwxr-xr-x 13 root wheel 442 May 12 09:36 . drwxr-xr-x 12 root wheel 408 Dec 4 08:50 .. lrwxr-xr-x 1 root wheel 5 Dec 4 08:50 1.3 -> 1.3.1 drwxr-xr-x 3 root wheel 102 Jul 20 2009 1.3.1 lrwxr-xr-x 1 root wheel 10 Dec 4 08:50 1.4 -> CurrentJDK drwxr-xr-x 8 root wheel 272 Jul 14 2009 1.4.2 lrwxr-xr-x 1 hiroakim hiroakim 5 May 12 09:36 1.5 -> 1.5.0 drwxr-xr-x 8 root wheel 272 Aug 13 2009 1.5.0 lrwxr-xr-x 1 root wheel 5 Dec 4 08:50 1.6 -> 1.6.0 drwxr-xr-x 7 root wheel 238 Sep 10 2009 1.6.0 drwxr-xr-x 8 root wheel 272 Dec 4 08:51 A lrwxr-xr-x 1 root wheel 1 Dec 4 08:50 Current -> A lrwxr-xr-x 1 root wheel 3 Dec 4 08:50 CurrentJDK -> 1.6 [Macbook:Frameworks/JavaVM.framework/Versions] % I installed JDK 1.5.0 with the symlink (1.5 -> 1.5.0) using Pacifist from JavaForMacOSX10.5Update5. I guess it can be done by using the ln command (sudo ln -fhsv 1.5 1.5.0?, well, I am novice to Unix.....). I think the default symlink in Snow Leopard is 1.5 -> CurrentJDK (haven't confirmed it). Hope this helps. Miso On May 17, 2010, at 2:41 PM, Kay-Uwe Goetz wrote: > Hiroaki Misono writes: > >> >> OK.I figured out my issue with Scilab. >> For an unknown reason, a symbolic link to Java 1.5 was missing in >> the System >> folder. >> I made it in /System/Library/Frameworks/JavaVM.framework/Versions/ to >> refer to 1.5.0. >> Voila! >> Scilab now starts! >> >> I guess it doesn't matter whether the symlink is set to 1.5 or 1.6 because >> it is set to 1.6.0 in my student's computer on which Scilab launched >> without a trouble. >> > > Could you please explain that in a bit more detail? What should the link > refer to? Maybe you can include the output of 'ls -al'? > > Thanks > Kay-Uwe > > From pierre.marechal at scilab.org Mon May 17 22:26:30 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Mon, 17 May 2010 22:26:30 +0200 Subject: [scilab-Users] atomsGui In-Reply-To: References: Message-ID: <4BF1A676.5010500@scilab.org> Le 17/05/2010 19:00, Thiago Costa a ?crit : > I've noticed some kind of malfunction with atomsGui() in several > computers which I have access. Does anyone have the same issue? > > I'm using Scilab 5.2.2 in a Windows xp system. > > -->atomsGui(); > !--error 21 > Invalid index. > > at line 87 of function atomsGui called by : > atomsGui(); > > > Thank you in advance. > Thiago C. > Hi Thiago, The problem is fixed now. atomsSystemUpdate() is needed. Sorry for the trouble and thanks for reporting. 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 ============================================== From sylvestre.ledru at scilab.org Mon May 17 23:07:52 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 17 May 2010 23:07:52 +0200 Subject: [scilab-Users] Re: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> Message-ID: <1274130472.5343.266.camel@zlarin> It would be nice if you could try again Scilab 5.2.1 to see if it happens or not I made a small change to improve the Java detection (the previous was not Apple-official) [1] & [2] If it is working with Scilab 5.2.1 and not with Scilab 5.2.2, this might be the cause of the issue. If Scilab 5.2.1 works, could you give me the output of: /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+ and ls /System/Library/Frameworks/JavaVM.framework/Home/ Thanks for your feedback guys. It is appreciated! Sylvestre [1] http://gitweb.scilab.org/?p=scilab.git;a=commitdiff;h=a6bcd928a4d66bc50922ef5bede689a7703380bf#patch2 [2] http://gitweb.scilab.org/?p=scilab.git;a=commitdiff;h=47d58004ff4866ba10adc376457c8d8fc093e6ed#patch2 Le lundi 17 mai 2010 ? 14:52 -0400, Jeff DuMonthier a ?crit : > It's the same for me. Scilab works on a MacBook Pro but fails on my 2.4GHz Core 2 Duo iMac. Version 5.2.1 used to work, but after running Software Update at the same time I installed 5.2.2, neither will start anymore. It seems to be a problem with Java only on certain machines (maybe just iMac's?). > > On May 17, 2010, at 2:26 PM, Kay-Uwe Goetz wrote: > > > Sylvestre Ledru writes: > > > >> > >> We don't have this issue on our testing Mac OS X machines and I confirm > >> that we are not doing anything with the sound card on the start up of > >> the software. > >> However, we noticed some random behaviors under Mac. Please let me know > >> if you find a workaround on this issue. > >> > >> Sylvestre > >> > > > > I have exactly the same problems on my iMac. It must have to do something with > > Java, since I can start scilab with the -nogui option. I get the same message > > about using 1.6.0 since 1.5.0 could not be found. However, this can be excluded > > as a reason, since my MacBook which has the same OS-version is able to run > > scilab with the gui enabled. I've compared the scilab scripts and run them with > > SCI_VERBOSE on both machines. They produce the very same output, but on the iMac > > the process hangs (no reply) whereas on the MacBook it runs fine. > > > > A solution is essential for me since I use Scilab for teaching purposes and if > > the next update kills Scilab on my MacBook I will be upset :-( > > > > Kay-Uwe > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From gnelson at quantasonics.com Tue May 18 00:25:14 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 17 May 2010 15:25:14 -0700 Subject: [scilab-Users] [scilab-users] stack size In-Reply-To: <4BD82A85.40605@univ-lemans.fr> References: <4BD6A2F0.3010408@kit.edu> <4BD82A85.40605@univ-lemans.fr> Message-ID: Hi, I can make this work by had, but so far not automatically Specifically, I find that tmp(1) has the free memory. I try a=tmp(1) stacksize(a) and get an error -->stacksize(a) !--error 204 stacksize: Wrong value for input argument #1: Scalar, 'min' or 'max' expected. Is there some way to convince stacksize that variable 'a' is a scalar? Thanks On Apr 28, 2010, at 5:31 AM, Samuel Gougeon wrote: > Beter than betting, you can get the instantaneous available RAM by: > tmp=getdebuginfo(); tmp=tokens(tmp(3),":"); strtod(tmp(2))*1024 > > By the way, the total installed RAM is > tmp=getdebuginfo(); tmp=tokens(tmp(2),":"); strtod(tmp(2))*1024 Gary Nelson gnelson at quantasonics.com From gnelson at quantasonics.com Tue May 18 00:57:41 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Mon, 17 May 2010 15:57:41 -0700 Subject: [scilab-Users] lsqrsolve In-Reply-To: <01d301caebfe$a9864510$6501a8c0@HOUC35439> References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> <01d301caebfe$a9864510$6501a8c0@HOUC35439> Message-ID: Suppose I have a dataset that has N maxima and I want to fit a gaussian to each one, and minimize the least square error between the sum of N gaussians and the dataset. I have tried this manually by tinkering the parameters and it clearly can be done to good effect. The datasets have 250 to 500 samples -- a smooth sequence of positive numbers with maxima that are plausibly gaussian shaped Initial guess could be a set of amplitudes whose time locations are taken from central difference positive to negative transits. I found that manual tweaking by moving centers a fraction of a sample left or right would change lsqerror, then tweaking amplitudes, then tweaking sigmas -- a couple interations and the visible fit would be very good. Now, how do I do this more rigorously? Thanks On May 4, 2010, at 7:57 PM, ray joseph wrote: > Gary, > > I am sorry that I am bypassing your original request; but if you calculate > the mean and standard deviation of your data set, you will get the two > parameters. Using the solver will be a fun exercise. > > Ray > > ----- Original Message ----- > From: "Gary Nelson" > To: > Sent: Tuesday, May 04, 2010 2:12 PM > Subject: Re: [scilab-Users] lsqrsolve > > > I would like to fit a gaussian to some data samples using least squares. > The gaussian has two parameters -- amplitude and width (sigma). > > I would like to use 6 to 12 samples that span a maximum and provide a first > guess of the amplitude and width. > > After reading the manual on lsqsolve, it seems like it will do the job, but > I would appreciate some guidance to make it work. > > Thanks > > Gary Nelson > > > On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: > >> ----- Message d'origine ----- >> De : Maso Ricci >> Date : 31/03/2010 12:18: >>> Hi, >>> >>> I am using the lsqrsolve function to fit some data. >>> I wonder whether lsqrsolve accepts contrains in order to force the > solution to be positive. >>> >>> thanks in advance for any comments and suggestions >> Did you check the leastsq() function based on the optim() one ? Its 'b', > binf, bsup >> sequence of 3 input arguments allow to specify some boundaries. >> So, for instance, if the solution you are searching for is a scalar that > must be positive, >> just set 'b',0,%inf. see help leastsq() >> >> HTH >> Samuel >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com From kay-uwe.goetz at web.de Tue May 18 08:04:15 2010 From: kay-uwe.goetz at web.de (Kay-Uwe Goetz) Date: Tue, 18 May 2010 06:04:15 +0000 (UTC) Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> Message-ID: Sylvestre Ledru writes: > > It would be nice if you could try again Scilab 5.2.1 to see if it > happens or not > I made a small change to improve the Java detection (the previous was > not Apple-official) [1] & [2] > If it is working with Scilab 5.2.1 and not with Scilab 5.2.2, this might > be the cause of the issue. > If Scilab 5.2.1 works, could you give me the output of: > /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+ > and > ls /System/Library/Frameworks/JavaVM.framework/Home/ > > Thanks for your feedback guys. It is appreciated! > > Sylvestre Sylvestre, 5.2.1 doesn't work on my iMac. I've tried all available versions, including one of the nightly builds. Here are some outputs under 5.2.1: (SCIVERBOSE=1) Kay-Uwe-Gotzs-iMac:bin kgoetz$ ./scilabSCILABBIN : scilab-bin DISABLE_JAVA_DETECTION : 0 SCILAB_MODE : gui Using default Mac OS X vm: /System/Library/Frameworks/JavaVM.framework/Home/ And LD_LIBRARY_PATH: /System/Library/Frameworks/JavaVM.framework/Home//../Libra ries: JAVA_HOME : /System/Library/Frameworks/JavaVM.framework/Home/ Cannot find /System/Library/Frameworks/JavaVM.framework/Home//lib//libjava.jni lib SCI : /Applications/scilab-5.2.1.app/Contents/MacOS SCIBIN : ./scilab-bin PATH : /Applications/scilab-5.2.1.app/Contents/MacOS:/Applications/scilab- 5.2.1.app/Contents/MacOS/bin:.:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin: /usr/texbin:/usr/X11/bin LD_LIBRARY_PATH : /Applications/scilab-5.2.1.app/Contents/MacOS/bin:/ Applications/scilab- 5.2.1.app/Contents/MacOS/lib/scilab/:/Applications/scilab- 5.2.1.app/Contents/MacOS/lib64/scilab/:/System/Library/Frameworks/ JavaVM.framework/Home//../Libraries::/sw/lib/ DYLD_LIBRARY_PATH: :/Applications/scilab- 5.2.1.app/Contents/MacOS/lib/scilab/:/Applications/scilab-5.2.1.app/ Contents/MacOS/lib/thirdparty/ DOCBOOK : /Applications/scilab-5.2.1.app/Contents/MacOS/thirdparty/ docbook Error checking symlink for the target jvm. ^C Kay-Uwe-Gotzs-iMac:bin kgoetz$ ls /System/Library/Frameworks /JavaVM.framework/Home appledocs.jar docs.jar man bin include shared_bundle bundle lib src.jar Kay-Uwe-Gotzs-iMac:bin kgoetz$ /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+ /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Regards Kay-Uwe From petar.knezevich at gmail.com Tue May 18 12:15:51 2010 From: petar.knezevich at gmail.com (Petar Knezevich) Date: Tue, 18 May 2010 15:15:51 +0500 Subject: [scilab-Users] Re: Multiple plots above each other with common x-axis In-Reply-To: <4BF17233.4020809@univ-lemans.fr> References: <4BF17233.4020809@univ-lemans.fr> Message-ID: Hi Samuel, Thank you for the advice. I used this technique to bring the subplots closer together. Along with setting the axis properties to turn off the x-label on the upper graphs this produces what I wants. See the attached files for my example. I need some more adjustments to stop the legends from overlapping data but it is almost done. If I re-use this method frequently I will think about turning it into a template or possible automating it. Regards, Petar On 17 May 2010 21:43, Samuel Gougeon wrote: > Hello, > > ----- Message d'origine ----- > De : Petar Knezevich > Date : 17/05/2010 13:39: >> >> Hi, >> >> Is it possible to stack multiple plots on top of each other with no >> vertical space between them and display the x-axis only on the bottom >> plot? ?I would like to combine any number of plots in this manner >> (e.g. 2, 3, 4 or 5 plots). >> >> -------------------- >> | ? ? ?plot 1 ? ? | >> | ? ? ? ? ? ? ? ? ? | >> -------------------- >> | ? ? ?plot 2 ? ? | >> | ? ? ? ? ? ? ? ? ? | >> -------------------- >> Common X-Axis >> > > Yes it is >> >> Is there already an option in subplot to produce this result? >> Currently I use a standard subplot configuration but there is too much >> space between each plot. >> > > Yes, subplot() is not dedicated to this task. There are several ways > to do what you whish. One of the easiest and most straightforward one > is to fit the .axes_bounds property by hand. Here is the most simple > example i may propose to you: > > plot() // plots a sample with 2 subplots > a=gca(); // gets the handle of the last plot > twinkle(a) // to see which one was the last plotted > a.axes_bounds=[0 0.41 1 0.55 ]; > > You can even share a common X axis within different plots, etc. > > To know more about possibilities, see as a starting point: help > axes_properties > and display the handle: > a ? > > Regards > Samuel > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Simulation Data.zip Type: application/zip Size: 177339 bytes Desc: not available URL: From liangjinxiang at gmail.com Tue May 18 13:17:08 2010 From: liangjinxiang at gmail.com (=?GB2312?B?wbq98M/p?=) Date: Tue, 18 May 2010 19:17:08 +0800 Subject: one user's question about install toolbox Message-ID: hello I am a student of soochow university,in suzhou city, jiangsu province,china,I have successfully install scilab 5.22 on my computer(windows7 operation system),but i don't know how to install some toolbox,in china,very little of scilab help document can found,could you introduce some help document of toolbox installment,thank you, yours 2010,04,18 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue May 18 14:19:15 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 18 May 2010 14:19:15 +0200 Subject: [scilab-Users] Re: Multiple plots above each other with common x-axis In-Reply-To: References: <4BF17233.4020809@univ-lemans.fr> Message-ID: <4BF285C3.5020405@univ-lemans.fr> Hello Petar, ----- Message d'origine ----- De : Petar Knezevich Date : 18/05/2010 12:15: > Hi Samuel, > > Thank you for the advice. You are welcome > I used this technique to bring the subplots > closer together. Along with setting the axis properties to turn off > the x-label on the upper graphs this produces what I wants. > > See the attached files for my example. I need some more adjustments > to stop the legends from overlapping data but it is almost done. > It is nice. When many graphical instructions are output, you can add drawlater() just after each figure(..) instruction, and drawnow() after the last instruction of a figure is done. This speeds up the display of the whole figure. Best regards Samuel From jjdmon at pobox.com Tue May 18 15:35:07 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Tue, 18 May 2010 09:35:07 -0400 Subject: [scilab-Users] Re: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: <1274130472.5343.266.camel@zlarin> References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> Message-ID: <8F30E743-5610-425B-A27E-DCF71225F2B4@pobox.com> Neither version works since whatever system update broke it. I've installed MacOSXUpdCombo10.6.3v1.1 and JavaForMacOSX10.6Update1 in that order, trying Scilab 5.2.1 after each and they made no difference. Haven't tried using Pacifist to install the obsolete Java 1.5 yet. I need to fall back to Scilab 5.2.1 anyway. We use Scilab on Linux (RHEL 5) and 5.2.2 seems to have broken both the terminal and file I/O in our code, and I don't have time right now to debug that. The outputs from the terminal commands are: > /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home > ls -al /System/Library/Frameworks/JavaVM.framework/Home lrwxr-xr-x 1 root wheel 24 May 17 17:39 /System/Library/Frameworks/JavaVM.framework/Home -> Versions/CurrentJDK/Home > ls -al /System/Library/Frameworks/JavaVM.framework/Versions total 64 drwxr-xr-x 13 root wheel 442 May 17 17:39 . drwxr-xr-x 12 root wheel 408 May 17 17:39 .. lrwxr-xr-x 1 root wheel 5 May 17 17:39 1.3 -> 1.3.1 drwxr-xr-x 3 root wheel 102 Jul 20 2009 1.3.1 lrwxr-xr-x 1 root wheel 10 May 17 17:39 1.4 -> CurrentJDK lrwxr-xr-x 1 root wheel 10 May 17 17:39 1.4.2 -> CurrentJDK lrwxr-xr-x 1 root wheel 10 May 17 17:39 1.5 -> CurrentJDK lrwxr-xr-x 1 root wheel 10 May 17 17:39 1.5.0 -> CurrentJDK lrwxr-xr-x 1 root wheel 5 May 17 17:39 1.6 -> 1.6.0 drwxr-xr-x 8 root wheel 272 Sep 5 2009 1.6.0 drwxr-xr-x 9 root wheel 306 May 17 17:39 A lrwxr-xr-x 1 root wheel 1 May 17 17:39 Current -> A lrwxr-xr-x 1 root wheel 3 May 17 17:39 CurrentJDK -> 1.6 > ls -al /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home total 218232 drwxr-xr-x 11 root wheel 374 May 17 17:39 . drwxr-xr-x 8 root wheel 272 Sep 5 2009 .. -rw-r--r-- 1 root wheel 101107 Jul 20 2009 appledocs.jar drwxr-xr-x 41 root wheel 1394 May 17 17:39 bin lrwxr-xr-x 1 root wheel 3 May 17 17:39 bundle -> ../ -rw-r--r-- 1 root wheel 39068674 Jul 20 2009 docs.jar lrwxr-xr-x 1 root wheel 10 May 17 17:39 include -> ../Headers drwxr-xr-x 41 _update_sharing wheel 1394 May 17 17:39 lib drwxr-xr-x 41 root wheel 1394 May 17 17:39 man lrwxr-xr-x 1 root wheel 9 May 17 17:39 shared_bundle -> ../../../ -rw-r--r-- 1 root wheel 72546967 Jul 20 2009 src.jar On May 17, 2010, at 5:07 PM, Sylvestre Ledru wrote: > It would be nice if you could try again Scilab 5.2.1 to see if it > happens or not > I made a small change to improve the Java detection (the previous was > not Apple-official) [1] & [2] > If it is working with Scilab 5.2.1 and not with Scilab 5.2.2, this might > be the cause of the issue. > If Scilab 5.2.1 works, could you give me the output of: > /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+ > and > ls /System/Library/Frameworks/JavaVM.framework/Home/ > > Thanks for your feedback guys. It is appreciated! > > Sylvestre > [1] > http://gitweb.scilab.org/?p=scilab.git;a=commitdiff;h=a6bcd928a4d66bc50922ef5bede689a7703380bf#patch2 > [2] > http://gitweb.scilab.org/?p=scilab.git;a=commitdiff;h=47d58004ff4866ba10adc376457c8d8fc093e6ed#patch2 From sylvestre.ledru at scilab.org Tue May 18 16:46:02 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 18 May 2010 16:46:02 +0200 Subject: [scilab-Users] Re: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: <8F30E743-5610-425B-A27E-DCF71225F2B4@pobox.com> References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> <8F30E743-5610-425B-A27E-DCF71225F2B4@pobox.com> Message-ID: <1274193962.6324.586.camel@zlarin> Le mardi 18 mai 2010 ? 09:35 -0400, Jeff DuMonthier a ?crit : > Neither version works since whatever system update broke it. I've installed MacOSXUpdCombo10.6.3v1.1 and JavaForMacOSX10.6Update1 in that order OK, you believe that this upgrades broke Scilab ? I am going to try that when I get access to my iMac. > We use Scilab on Linux (RHEL 5) and 5.2.2 seems to have broken both the terminal and file I/O in our code, and I don't have time right now to debug that. Hmm, I guess it is a different issue here. When you have time, I would like a bug report on this issue. Thanks Sylvestre From communication at scilab.org Tue May 18 17:40:47 2010 From: communication at scilab.org (Scilab Communication) Date: Tue, 18 May 2010 17:40:47 +0200 Subject: ScilabTec'10 Message-ID: <4BF2B4FF.4010301@scilab.org> *Register online to ScilabTec'10, Scilab Users Day, Wednesday 16th June, at the ?cole Polytechnique:* http://www.teratec.eu/forum/inscription.php Program of the day include technical and thematic workshops on the morning and conferences on the afternoon with *MIT, HPC Project, National Instruments, PSA Peugeot Citro?n, INRIA and the ?cole des Mines de Saint-?tienne. * Complete program at: http://www.scilab.org/en/news/events/2010/20100517 ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scilabtec10.pdf Type: application/pdf Size: 70156 bytes Desc: not available URL: From mathieu.dubois at limsi.fr Tue May 18 19:43:13 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 18 May 2010 19:43:13 +0200 Subject: Question about histograms Message-ID: <4BF2D1B1.40707@limsi.fr> Hello, the documentation of the dsearch and histplot functions says that "the classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i >= 2". I was wondering why the first class is different. Is there any reason? Thanks in advance, Mathieu From fvogelnew1 at free.fr Tue May 18 20:34:02 2010 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Tue, 18 May 2010 20:34:02 +0200 Subject: [scilab-Users] Question about histograms In-Reply-To: <4BF2D1B1.40707@limsi.fr> References: <4BF2D1B1.40707@limsi.fr> Message-ID: <4BF2DD9A.8000909@free.fr> Mathieu Dubois said on 18/05/2010 19:43: > > the documentation of the dsearch and histplot functions says that "the > classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i > >= 2". I was wondering why the first class is different. Is there any > reason? An interval defined as [...] is not the same as (...] http://en.wikipedia.org/wiki/Interval_(mathematics) Francois From dko at kth.se Tue May 18 20:05:05 2010 From: dko at kth.se (Daniel Korhonen) Date: Tue, 18 May 2010 20:05:05 +0200 Subject: Scilab for commercial use? Message-ID: Dear Mr. or Ms. I am an engineering student from Sweden planning a business start-up with a team. For our business idea we would need a program similar to MATLAB since it is too costly for us. We have checked a few possibilities but have decided that scilab would be the best one for our applications since we also need something like Scicos. The question is if Scilab/Scicos is free for commercial use? In our business we would use Scilab/Scicos as it is but it would interact with a database and/or excel charts. Best regards, Daniel Korhonen From sylvestre.ledru at scilab.org Tue May 18 22:14:44 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 18 May 2010 22:14:44 +0200 Subject: [scilab-Users] Scilab for commercial use? In-Reply-To: References: Message-ID: <1274213684.6324.1042.camel@zlarin> Hello Daniel, Le mardi 18 mai 2010 ? 20:05 +0200, Daniel Korhonen a ?crit : > Dear Mr. or Ms. > > I am an engineering student from Sweden planning a business start-up with a team. For our business idea we would need a program similar to MATLAB since it is too costly for us. We have checked a few possibilities but have decided that scilab would be the best one for our applications since we also need something like Scicos. > > The question is if Scilab/Scicos is free for commercial use? Yes, you can use for commercial use as long as you respect the CeCILL license. I answered about this question a few days ago. Please see: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=2216 > In our business we would use Scilab/Scicos as it is but it would interact with a database and/or excel charts. No worries. For your information, there is a MySQL connector existing: http://forge.scilab.org/index.php/p/scimysql/ and an Excel add-in: http://forge.scilab.org/index.php/p/scilab-xll/ An other DBMS module is going to be developed into the Google Summer of Code context probably on Qt SQL to be able to use other DBMS (Postgresql, SQL server, etc). Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From ray at aarden.us Tue May 18 22:44:21 2010 From: ray at aarden.us (ray joseph) Date: Tue, 18 May 2010 15:44:21 -0500 Subject: [scilab-Users] lsqrsolve References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> <01d301caebfe$a9864510$6501a8c0@HOUC35439> Message-ID: <03fd01caf6ca$e5c21910$0202a8c0@HOUC35439> Gary, Please let me know if this describes your experiment. You have N sets of data. You want to fit each one with its own Gaussian curve. You are not trying to determine the statistical distribution of the magnitude of the numbers in each of the sets, but are addressing the magnitudes of the sequence of numbers as if they were the range of (produced from) a function on a sequentially ordered set of integers. Such as: yi = A*exp(-((xi-m)^2)/(2*s^2)) To do a least squared fit of (xi,yi) wrt (A,m,s): Take the ln of both sides: ln(yi) = ln(A) + -((xi-m)^2)/(2*s^2) by letting -2*s^2 = 1/q, the above can be written: ln(yi) = ln(A) + q*((xi-m)^2) ln(yi) = ln(A) + q*(xi^2 - xi*m + m^2) ln(yi) = ln(A) + q*xi^2 - q*xi*m + q*m^2) If you do this for each of the j sets, each will have an independently fit set (Aj,mj,sj). Ray ----- Original Message ----- From: "Gary Nelson" To: Sent: Monday, May 17, 2010 5:57 PM Subject: Re: [scilab-Users] lsqrsolve Suppose I have a dataset that has N maxima and I want to fit a gaussian to each one, and minimize the least square error between the sum of N gaussians and the dataset. I have tried this manually by tinkering the parameters and it clearly can be done to good effect. The datasets have 250 to 500 samples -- a smooth sequence of positive numbers with maxima that are plausibly gaussian shaped Initial guess could be a set of amplitudes whose time locations are taken from central difference positive to negative transits. I found that manual tweaking by moving centers a fraction of a sample left or right would change lsqerror, then tweaking amplitudes, then tweaking sigmas -- a couple interations and the visible fit would be very good. Now, how do I do this more rigorously? Thanks On May 4, 2010, at 7:57 PM, ray joseph wrote: > Gary, > > I am sorry that I am bypassing your original request; but if you calculate > the mean and standard deviation of your data set, you will get the two > parameters. Using the solver will be a fun exercise. > > Ray > > ----- Original Message ----- > From: "Gary Nelson" > To: > Sent: Tuesday, May 04, 2010 2:12 PM > Subject: Re: [scilab-Users] lsqrsolve > > > I would like to fit a gaussian to some data samples using least squares. > The gaussian has two parameters -- amplitude and width (sigma). > > I would like to use 6 to 12 samples that span a maximum and provide a first > guess of the amplitude and width. > > After reading the manual on lsqsolve, it seems like it will do the job, but > I would appreciate some guidance to make it work. > > Thanks > > Gary Nelson > > > On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: > >> ----- Message d'origine ----- >> De : Maso Ricci >> Date : 31/03/2010 12:18: >>> Hi, >>> >>> I am using the lsqrsolve function to fit some data. >>> I wonder whether lsqrsolve accepts contrains in order to force the > solution to be positive. >>> >>> thanks in advance for any comments and suggestions >> Did you check the leastsq() function based on the optim() one ? Its 'b', > binf, bsup >> sequence of 3 input arguments allow to specify some boundaries. >> So, for instance, if the solution you are searching for is a scalar that > must be positive, >> just set 'b',0,%inf. see help leastsq() >> >> HTH >> Samuel >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com From ray at aarden.us Tue May 18 22:50:09 2010 From: ray at aarden.us (ray joseph) Date: Tue, 18 May 2010 15:50:09 -0500 Subject: [scilab-Users] Scilab for commercial use? References: <1274213684.6324.1042.camel@zlarin> Message-ID: <041101caf6cb$b53c6ab0$0202a8c0@HOUC35439> Great! I am looking forward to a Postgresql connector. Ray ----- Original Message ----- From: "Sylvestre Ledru" To: ; "Daniel Korhonen" Sent: Tuesday, May 18, 2010 3:14 PM Subject: Re: [scilab-Users] Scilab for commercial use? > Hello Daniel, > > Le mardi 18 mai 2010 ? 20:05 +0200, Daniel Korhonen a ?crit : > > Dear Mr. or Ms. > > > > I am an engineering student from Sweden planning a business start-up with a team. For our business idea we would need a program similar to MATLAB since it is too costly for us. We have checked a few possibilities but have decided that scilab would be the best one for our applications since we also need something like Scicos. > > > > The question is if Scilab/Scicos is free for commercial use? > Yes, you can use for commercial use as long as you respect the CeCILL > license. I answered about this question a few days ago. Please see: > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=showmsg&msgnum=2216 > > > In our business we would use Scilab/Scicos as it is but it would interact with a database and/or excel charts. > No worries. > For your information, there is a MySQL connector existing: > http://forge.scilab.org/index.php/p/scimysql/ > and an Excel add-in: > http://forge.scilab.org/index.php/p/scilab-xll/ > > An other DBMS module is going to be developed into the Google Summer of > Code context probably on Qt SQL to be able to use other DBMS > (Postgresql, SQL server, etc). > > > Sylvestre > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > From gnelson at quantasonics.com Wed May 19 00:31:44 2010 From: gnelson at quantasonics.com (Gary Nelson) Date: Tue, 18 May 2010 15:31:44 -0700 Subject: [scilab-Users] lsqrsolve In-Reply-To: <03fd01caf6ca$e5c21910$0202a8c0@HOUC35439> References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> <01d301caebfe$a9864510$6501a8c0@HOUC35439> <03fd01caf6ca$e5c21910$0202a8c0@HOUC35439> Message-ID: A non-text attachment was scrubbed... Name: env1.wav Type: audio/wav Size: 562 bytes Desc: not available URL: -------------- next part -------------- On May 18, 2010, at 1:44 PM, ray joseph wrote: > Gary, > > Please let me know if this describes your experiment. > > You have N sets of data. I did not communicate clearly. See attached wav file. I have many sets of data that look similar to this. I have processed this data using first central difference to find maxima and second central difference to find inflection points where the gaussian formulation I am using defines sigma. Some data sets have more maxima than this, but here we could find two maxima to the left, fit gaussians and subtract them out, then apply the algorithm again on the remaining maxima. I have done this manually, and can make it work. But that is not feasible except to test the idea. I find that (Ai, mi, Si) can be expressed to fractions of a sample time and squared error is sensitive to these parameters to that precision. I imagine a process that finds (as in this case) two larger maxima, fit a guassian to each and subtract. That will reveal a couple more, so recursively apply maxima finder, measure sigmas, fit gaussians again. > You want to fit each one with its own Gaussian > curve. You are not trying to determine the statistical distribution of the > magnitude of the numbers in each of the sets, but are addressing the > magnitudes of the sequence of numbers as if they were the range of (produced > from) a function on a sequentially ordered set of integers. Such as: exactly the form I use. S is measured at the inflection points > yi = A*exp(-((xi-m)^2)/(2*s^2)) My notion is that estimate(Ai,mi,Si) = sum(yi) //sum_over_i In this example, we can add two gaussians to fit the largest two maxima and tinker the parameters to minimize the squared error. > > To do a least squared fit of (xi,yi) wrt (A,m,s): > > Take the ln of both sides: > ln(yi) = ln(A) + -((xi-m)^2)/(2*s^2) > > by letting -2*s^2 = 1/q, the above can be written: > ln(yi) = ln(A) + q*((xi-m)^2) > ln(yi) = ln(A) + q*(xi^2 - xi*m + m^2) > ln(yi) = ln(A) + q*xi^2 - q*xi*m + q*m^2) > > If you do this for each of the j sets, each will have an independently fit > set (Aj,mj,sj). Thanks for taking the time to help. > > > Ray > > > > ----- Original Message ----- > From: "Gary Nelson" > To: > Sent: Monday, May 17, 2010 5:57 PM > Subject: Re: [scilab-Users] lsqrsolve > > > > Suppose I have a dataset that has N maxima and I want to fit a gaussian to > each one, and minimize the least square error between the sum of N gaussians > and the dataset. > I have tried this manually by tinkering the parameters and it clearly can be > done to good effect. > The datasets have 250 to 500 samples -- a smooth sequence of positive > numbers with maxima that are plausibly gaussian shaped > Initial guess could be a set of amplitudes whose time locations are taken > from central difference positive to negative transits. I found that manual > tweaking by moving centers a fraction of a sample left or right would change > lsqerror, then tweaking amplitudes, then tweaking sigmas -- a couple > interations and the visible fit would be very good. > > Now, how do I do this more rigorously? > > Thanks > > On May 4, 2010, at 7:57 PM, ray joseph wrote: > >> Gary, >> >> I am sorry that I am bypassing your original request; but if you calculate >> the mean and standard deviation of your data set, you will get the two >> parameters. Using the solver will be a fun exercise. >> >> Ray >> >> ----- Original Message ----- >> From: "Gary Nelson" >> To: >> Sent: Tuesday, May 04, 2010 2:12 PM >> Subject: Re: [scilab-Users] lsqrsolve >> >> >> I would like to fit a gaussian to some data samples using least squares. >> The gaussian has two parameters -- amplitude and width (sigma). >> >> I would like to use 6 to 12 samples that span a maximum and provide a > first >> guess of the amplitude and width. >> >> After reading the manual on lsqsolve, it seems like it will do the job, > but >> I would appreciate some guidance to make it work. >> >> Thanks >> >> Gary Nelson >> >> >> On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: >> >>> ----- Message d'origine ----- >>> De : Maso Ricci >>> Date : 31/03/2010 12:18: >>>> Hi, >>>> >>>> I am using the lsqrsolve function to fit some data. >>>> I wonder whether lsqrsolve accepts contrains in order to force the >> solution to be positive. >>>> >>>> thanks in advance for any comments and suggestions >>> Did you check the leastsq() function based on the optim() one ? Its 'b', >> binf, bsup >>> sequence of 3 input arguments allow to specify some boundaries. >>> So, for instance, if the solution you are searching for is a scalar that >> must be positive, >>> just set 'b',0,%inf. see help leastsq() >>> >>> HTH >>> Samuel >>> >>> >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com From kay-uwe.goetz at web.de Wed May 19 07:13:52 2010 From: kay-uwe.goetz at web.de (=?ISO-8859-1?Q?Kay-Uwe_G=F6tz?=) Date: Wed, 19 May 2010 07:13:52 +0200 Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: <8F30E743-5610-425B-A27E-DCF71225F2B4@pobox.com> References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> <8F30E743-5610-425B-A27E-DCF71225F2B4@pobox.com> Message-ID: Am 18.05.10 15:35, schrieb Jeff DuMonthier: > Neither version works since whatever system update broke it. I've installed MacOSXUpdCombo10.6.3v1.1 and JavaForMacOSX10.6Update1 in that order, trying Scilab 5.2.1 after each and they made no difference. Haven't tried using Pacifist to install the obsolete Java 1.5 yet. I need to fall back to Scilab 5.2.1 anyway. We use Scilab on Linux (RHEL 5) and 5.2.2 seems to have broken both the terminal and file I/O in our code, and I don't have time right now to debug that. > > The outputs from the terminal commands are: > >> /usr/libexec/java_home --arch x86_64 --failfast --version 1.6+/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home > /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home > I've tried to install Java 1.5.0. Install with Pacifist worked, but Scilab behaves exactly the same as before. Sylvestre, do you have any idea why Scilab works fine on my MacBook which is also 10.6.3? The install is pretty much the same since it was installed via migration assistent from the iMac. The main difference between the two is that the iMac hosts a large music library and has Airfoil installed. Unfortunately, I cannot remember whether the problem already ocurred before Airfoil was installed. Regards Kay-Uwe From mathieu.dubois at limsi.fr Wed May 19 09:49:53 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 19 May 2010 09:49:53 +0200 Subject: [scilab-Users] Question about histograms In-Reply-To: <4BF2DD9A.8000909@free.fr> References: <4BF2D1B1.40707@limsi.fr> <4BF2DD9A.8000909@free.fr> Message-ID: <4BF39821.8090407@limsi.fr> >> the documentation of the dsearch and histplot functions says that "the >> classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i >> >= 2". I was wondering why the first class is different. Is there any >> reason? > > An interval defined as [...] is not the same as (...] Yes I know about the notation! My question was why is it like that? For instance in matlab, the histc function "counts the value x(i) [in n(k)] if edges(k) <= x(i) < edges(k+1). The last bin counts any values of x that match edges(end)". This seems a more natural definition to me... Mathieu From paul_c at gmx.de Wed May 19 10:31:33 2010 From: paul_c at gmx.de (Paul Czienskowski) Date: Wed, 19 May 2010 10:31:33 +0200 Subject: Problem with figure.user_data Message-ID: <4BF3A1E5.2050500@gmx.de> Dear all, I just started using Scilab to program an EEG toolbox for my diploma thesis. When trying to display some MRI-Data I encountered a problem: I saved data about the MRI volume and which part to render in the figure.user_data property in my Plot function like f.user_data = struct(); f.user_data.slices = slices; f.user_data.vol = vol; Now I'm trying to use this data in the figures event-handler, calling fig = get_figure_handle(win); but fig.user_data is an empty cont now. What am I doing wrong? Ain't user_data supposed to be used for such reason? Thanks in advance, Paul Czienskowski -- Paul Czienskowski Bj?rnsonstr. 25 12163 Berlin Tel.: (+49)(0)30/221609359 Handy: (+49)(0)1788378772 From Samuel.Gougeon at univ-lemans.fr Wed May 19 10:44:05 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 19 May 2010 10:44:05 +0200 Subject: [scilab-Users] Question about histograms In-Reply-To: <4BF39821.8090407@limsi.fr> References: <4BF2D1B1.40707@limsi.fr> <4BF2DD9A.8000909@free.fr> <4BF39821.8090407@limsi.fr> Message-ID: <4BF3A4D5.5040005@univ-lemans.fr> Hello Mathieu, ----- Message d'origine ----- De : Mathieu Dubois Date : 19/05/2010 09:49: > >>> the documentation of the dsearch and histplot functions says that "the >>> classes are defined by C1 = [x(1), x(2)] and Ci = ( x(i), x(i+1)] for i >>> >= 2". I was wondering why the first class is different. Is there any >>> reason? >> >> An interval defined as [...] is not the same as (...] > Yes I know about the notation! I did not. So, i learnt it thanks to Fran?ois's pointer. > My question was why is it like that? > > For instance in matlab, the histc function "counts the value x(i) [in > n(k)] if edges(k) <= x(i) < edges(k+1). The last bin counts any values > of x that match edges(end)". So, Matlab uses Ci = [ x(i), x(i+1) ) for i=1 to n-2, and Cn-1 = [x(n-1), x(n)] So, i would be wondering about why the _last_ class is different... But may be i did not catch your point. > > This seems a more natural definition to me... Because you are likely a user coming from Matlab. IMO, both definitions are symetricaly "natural", mainly with respect to the user's background. Best regards Samuel From yann.collette at scilab.org Wed May 19 10:45:40 2010 From: yann.collette at scilab.org (Collette yann) Date: Wed, 19 May 2010 10:45:40 +0200 Subject: [scilab-Users] Problem with figure.user_data In-Reply-To: <4BF3A1E5.2050500@gmx.de> References: <4BF3A1E5.2050500@gmx.de> Message-ID: <4BF3A534.9090406@scilab.org> Hello, I have tried your example. The problem is that f.user_data is no more a figure handle after the struct creation: f.user_data = struct(); disp(typeof(f)) --> st I have tried to create a temporary struct and then put it into f.user_data without success: tmp = struct(); tmp.slice = 1; f.user_data = tmp; disp(typeof(f)) -> st So, fill a bug report .... YC Le 19/05/2010 10:31, Paul Czienskowski a ?crit : > Dear all, > > I just started using Scilab to program an EEG toolbox for my diploma > thesis. When trying to display some MRI-Data I encountered a problem: > I saved data about the MRI volume and which part to render in the > figure.user_data property in my Plot function like > > f.user_data = struct(); > f.user_data.slices = slices; > f.user_data.vol = vol; > > Now I'm trying to use this data in the figures event-handler, calling > > fig = get_figure_handle(win); > > but fig.user_data is an empty cont now. What am I doing wrong? Ain't > user_data supposed to be used for such reason? > > Thanks in advance, > > Paul Czienskowski > > From Samuel.Gougeon at univ-lemans.fr Wed May 19 10:53:51 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 19 May 2010 10:53:51 +0200 Subject: Problem with figure.user_data In-Reply-To: <4BF3A534.9090406@scilab.org> References: <4BF3A1E5.2050500@gmx.de> <4BF3A534.9090406@scilab.org> Message-ID: <4BF3A71F.7080209@univ-lemans.fr> ----- Message d'origine ----- De : Collette yann Date : 19/05/2010 10:45: > Hello, > > I have tried your example. > The problem is that f.user_data is no more a figure handle after the > struct creation: > > So, fill a bug report .... Hmm, done 6 days ago: http://bugzilla.scilab.org/show_bug.cgi?id=7110 Samuel From yann.collette at scilab.org Wed May 19 11:08:36 2010 From: yann.collette at scilab.org (Collette yann) Date: Wed, 19 May 2010 11:08:36 +0200 Subject: [scilab-Users] Re: Problem with figure.user_data In-Reply-To: <4BF3A71F.7080209@univ-lemans.fr> References: <4BF3A1E5.2050500@gmx.de> <4BF3A534.9090406@scilab.org> <4BF3A71F.7080209@univ-lemans.fr> Message-ID: <4BF3AA94.2000306@scilab.org> Samuel, you are SO fast :) Thanks for the bug report. YC Le 19/05/2010 10:53, Samuel Gougeon a ?crit : > ----- Message d'origine ----- > De : Collette yann > Date : 19/05/2010 10:45: >> Hello, >> >> I have tried your example. >> The problem is that f.user_data is no more a figure handle after the >> struct creation: >> >> So, fill a bug report .... > Hmm, done 6 days ago: > http://bugzilla.scilab.org/show_bug.cgi?id=7110 > > Samuel From mathieu.dubois at limsi.fr Wed May 19 11:39:27 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 19 May 2010 11:39:27 +0200 Subject: [scilab-Users] Question about histograms In-Reply-To: <4BF3A4D5.5040005@univ-lemans.fr> References: <4BF2D1B1.40707@limsi.fr> <4BF2DD9A.8000909@free.fr> <4BF39821.8090407@limsi.fr> <4BF3A4D5.5040005@univ-lemans.fr> Message-ID: <4BF3B1CF.8030105@limsi.fr> Hello, >> This seems a more natural definition to me... > Because you are likely a user coming from Matlab. IMO, both definitions > are symetricaly "natural", mainly with respect to the user's background. Well in fact I was thinking that it's just a matter of convention (but I wondered if I was missing some point). I asked the question because I have to implement the histogram functionality in a software and wanted to stick to some convention (by the way I am more familiar with scilab :). Mathieu From paul_c at gmx.de Wed May 19 12:24:13 2010 From: paul_c at gmx.de (Paul Czienskowski) Date: Wed, 19 May 2010 12:24:13 +0200 Subject: Problem with figure.user_data Message-ID: <4BF3BC4D.2020602@gmx.de> Dear all, I just started using Scilab to program an EEG toolbox for my diploma thesis. When trying to display some MRI-Data I encountered a problem: I saved data about the MRI volume and which part to render in the figure.user_data property in my Plot function like f.user_data = struct(); f.user_data.slices = slices; f.user_data.vol = vol; Now I'm trying to use this data in the figures event-handler, calling fig = get_figure_handle(win); but fig.user_data is an empty cont now. What am I doing wrong? Ain't user_data supposed to be used for such reason? Thanks in advance, Paul Czienskowski From chaithras30 at gmail.com Wed May 19 12:31:53 2010 From: chaithras30 at gmail.com (Chaithra S) Date: Wed, 19 May 2010 16:01:53 +0530 Subject: diphone---reg--plz help Message-ID: Sir, Can you please tell me how to cut a diphone whch is recorded for 1-2secs in .wav format in SCILAB... please suggest any method -- Thanks and Regards CHAITHRA S -------------- next part -------------- An HTML attachment was scrubbed... URL: From foncteur at club-internet.fr Wed May 19 12:49:20 2010 From: foncteur at club-internet.fr (Foncteur) Date: Wed, 19 May 2010 12:49:20 +0200 Subject: unsuscribe Message-ID: <4BF3C230.9080000@club-internet.fr> From foncteur at club-internet.fr Wed May 19 12:51:02 2010 From: foncteur at club-internet.fr (Foncteur) Date: Wed, 19 May 2010 12:51:02 +0200 Subject: users-unsubscribe-foncteur=club-internet.fr@users.scilab.org Message-ID: <4BF3C296.4080300@club-internet.fr> From petar.knezevich at gmail.com Wed May 19 13:01:01 2010 From: petar.knezevich at gmail.com (Petar Knezevich) Date: Wed, 19 May 2010 16:01:01 +0500 Subject: [scilab-Users] Re: Multiple plots above each other with common x-axis In-Reply-To: <4BF285C3.5020405@univ-lemans.fr> References: <4BF17233.4020809@univ-lemans.fr> <4BF285C3.5020405@univ-lemans.fr> Message-ID: Thank you again. >> > It is nice. When many graphical instructions are output, you can add > drawlater() just after each figure(..) instruction, and drawnow() after the > last instruction of a figure is done. This speeds up the display of the > whole > figure. > > Best regards > Samuel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul_c at gmx.de Wed May 19 13:52:00 2010 From: paul_c at gmx.de (Paul Czienskowski) Date: Wed, 19 May 2010 13:52:00 +0200 Subject: [scilab-Users] Problem with figure.user_data In-Reply-To: <4BF3BC4D.2020602@gmx.de> References: <4BF3BC4D.2020602@gmx.de> Message-ID: <4BF3D0E0.2040208@gmx.de> Dear all, I solved the problem. Instead of assigning f.user_data = struct(); I'm now doing it like this user_data = struct(); //assign fields set(f, "Userdata", user_data); Works fine for me. Cheers, Paul On 19.05.2010 12:24, Paul Czienskowski wrote: > Dear all, > > I just started using Scilab to program an EEG toolbox for my diploma > thesis. When trying to display some MRI-Data I encountered a problem: > I saved data about the MRI volume and which part to render in the > figure.user_data property in my Plot function like > > f.user_data = struct(); > f.user_data.slices = slices; > f.user_data.vol = vol; > > Now I'm trying to use this data in the figures event-handler, calling > > fig = get_figure_handle(win); > > but fig.user_data is an empty cont now. What am I doing wrong? Ain't > user_data supposed to be used for such reason? > > Thanks in advance, > > Paul Czienskowski > -- Paul Czienskowski Bj?rnsonstr. 25 12163 Berlin Tel.: (+49)(0)30/221609359 Handy: (+49)(0)1788378772 From allan.cornet at scilab.org Wed May 19 14:42:00 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 19 May 2010 14:42:00 +0200 Subject: [scilab-Users] diphone---reg--plz help In-Reply-To: References: Message-ID: <002701caf750$ad0a7af0$071f70d0$@cornet@scilab.org> Hi, See help wavread, wavwrite: [y, Fs, bits] = wavread("SCI/modules/sound/demos/chimes.wav"); sizeNewSample = 1:10; nbChannels = 2; newSample = y(1: nbChannels, sizeNewSample); wavwrite(newSample, Fs,bits ,TMPDIR+'/foo.wav') You can also try this toolbox: http://atoms.scilab.org/toolboxes/sndfile_toolbox/0.2 Best regards Allan CORNET -- ------------------------- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France De : Chaithra S [mailto:chaithras30 at gmail.com] Envoy? : mercredi 19 mai 2010 12:32 ? : users at lists.scilab.org; scilab.support at scilab.org Objet : [scilab-Users] diphone---reg--plz help Sir, Can you please tell me how to cut a diphone whch is recorded for 1-2secs in .wav format in SCILAB... please suggest any method -- Thanks and Regards CHAITHRA S -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed May 19 15:35:42 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 19 May 2010 15:35:42 +0200 Subject: [scilab-Users] Problem with figure.user_data In-Reply-To: <4BF3D0E0.2040208@gmx.de> References: <4BF3BC4D.2020602@gmx.de> <4BF3D0E0.2040208@gmx.de> Message-ID: <4BF3E92E.8010506@univ-lemans.fr> ----- Message d'origine ----- De : Paul Czienskowski Date : 19/05/2010 13:52: > Dear all, > > I solved the problem. Instead of assigning > > f.user_data = struct(); > > I'm now doing it like this > > user_data = struct(); > //assign fields > set(f, "Userdata", user_data); > > Works fine for me. Yes, with some restrictions: Please look at the reference in my previous message. Samuel From julien.colmars at imelavi.fr Wed May 19 19:41:51 2010 From: julien.colmars at imelavi.fr (Julien Colmars) Date: Wed, 19 May 2010 19:41:51 +0200 Subject: SciLab question dealing with linear algebra / tensor multiplication. Message-ID: Hi, I've a SciLab problem dealing with* linear algebra / tensor multiplication.* Let's say I have *a matrix A wich size is i * j * k* ( is it called a matrix in SciLab ? a 3rd order tensor ? a table ?...) SciLab knows that *A(:,:,1) is a matrix*, and SciLab is able to multiply it with another matrix... But it is *not the case of A(1,:,:)* for example.... which seems to be a table of 2 1x2 vectors. [at least in SciLab 4.2.1] I'm looking for an elegant solution to avoid many loops... my calculation is becoming too slow : *So these are my questions :* - why it is not implemented in SciLab ? (sorry for this naive question)*Is there a specific reason not to authorize to build a matrix from table values ?* - *How could it be done* (call to external C/Fortran routine or specific linear algebra libraries) ? - *Is it possible to simply make a permutation of two subscript* : for example from A(i,j,k) I want to get B = A(k,j,i) ? This way I could make my basic multiplications... I hope it is clear enough... Thank you in advance for your help. *Julien Colmars* PhD student, ?quipe M?canique de l'Arbre et du Bois Laboratoire de M?canique et G?nie Civil Adresse : LMGC - UMR5508 Universit? Montpellier 2 CC 048 Place Eug?ne Bataillon 34090 Montpellier, France Tel. : +33 (0)4 67 14 96 42 Fax. : +33 (0)4 67 14 47 92 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Wed May 19 20:54:20 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 19 May 2010 19:54:20 +0100 Subject: [scilab-Users] SciLab question dealing with linear algebra / tensor multiplication. In-Reply-To: Message-ID: Hi Julien, You can use the matrix( ) function to format the data back as a matrix. In your case: B = matrix (A(1, :, :), ,j, k); will do what you want I think. Be careful that you understand the data ordering that Scilab uses when storing Hypermatrices, or you may get the result permuted in the wrong way. There is also a useful function permute (), which allows you to "transpose" hypermatrices. I'm not sure it's what you need, but check it out anyway. HTH. Mike. -----Original Message----- From: Julien Colmars [mailto:julien.colmars at imelavi.fr] Sent: 19 May 2010 18:42 To: users at lists.scilab.org Subject: [scilab-Users] SciLab question dealing with linear algebra / tensor multiplication. Hi, I've a SciLab problem dealing with linear algebra / tensor multiplication. Let's say I have a matrix A wich size is i * j * k ( is it called a matrix in SciLab ? a 3rd order tensor ? a table ?...) SciLab knows that A(:,:,1) is a matrix, and SciLab is able to multiply it with another matrix... But it is not the case of A(1,:,:) for example.... which seems to be a table of 2 1x2 vectors. [at least in SciLab 4.2.1] I'm looking for an elegant solution to avoid many loops... my calculation is becoming too slow : So these are my questions : a.. why it is not implemented in SciLab ? (sorry for this naive question) Is there a specific reason not to authorize to build a matrix from table values ? b.. How could it be done (call to external C/Fortran routine or specific linear algebra libraries) ? c.. Is it possible to simply make a permutation of two subscript : for example from A(i,j,k) I want to get B = A(k,j,i) ? This way I could make my basic multiplications... I hope it is clear enough... Thank you in advance for your help. Julien Colmars PhD student, ?quipe M?canique de l'Arbre et du Bois Laboratoire de M?canique et G?nie Civil Adresse : LMGC - UMR5508 Universit? Montpellier 2 CC 048 Place Eug?ne Bataillon 34090 Montpellier, France Tel. : +33 (0)4 67 14 96 42 Fax. : +33 (0)4 67 14 47 92 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.lejeune at scilab.org Wed May 19 21:00:28 2010 From: vincent.lejeune at scilab.org (vincent.lejeune at scilab.org) Date: Wed, 19 May 2010 21:00:28 +0200 Subject: [scilab-Users] SciLab question dealing with linear algebra / tensor multiplication. In-Reply-To: References: Message-ID: A(1,:,:) is considered as a 1*j*k matrix, which is not the same as a j*k matrix, in Scilab 5.2.2. I don't know the underlying reason of this behaviour, but it may be due to storage constraint in memory : a j*k matrix is stored as a contigous array of double. A i*j*1 matrix is stored as a contigous array of double, too. whereas a 1*j*k is stored as a sequence of padded array (with pad = i). You can use the matrix() function : B=matrix(A(1,:,:),j,k); B is the j*k matrix that is equivalent to A(1,:,:). There is a memory copy but the performance should stay OK. Vincent On Wed, 19 May 2010 19:41:51 +0200, Julien Colmars wrote: > Hi, > > I've a SciLab problem dealing with* linear algebra / tensor > multiplication.* > > Let's say I have *a matrix A wich size is i * j * k* ( is it called a > matrix > in SciLab ? a 3rd order tensor ? a table ?...) > > SciLab knows that *A(:,:,1) is a matrix*, and SciLab is able to multiply it > with another matrix... > But it is *not the case of A(1,:,:)* for example.... which seems to be a > table of 2 1x2 vectors. [at least in SciLab 4.2.1] > > I'm looking for an elegant solution to avoid many loops... my calculation > is > becoming too slow : > > *So these are my questions :* > > - why it is not implemented in SciLab ? (sorry for this naive > question)*Is there a specific reason not to authorize to build a > matrix from table > values ?* > - *How could it be done* (call to external C/Fortran routine or specific > linear algebra libraries) ? > - *Is it possible to simply make a permutation of two subscript* : for > example from A(i,j,k) I want to get B = A(k,j,i) ? This way I could > make my > basic multiplications... > > I hope it is clear enough... > Thank you in advance for your help. > > > > *Julien Colmars* > > PhD student, > ?quipe M?canique de l'Arbre et du Bois > Laboratoire de M?canique et G?nie Civil > Adresse : LMGC - UMR5508 > Universit? Montpellier 2 > CC 048 Place Eug?ne Bataillon > 34090 Montpellier, France > Tel. : +33 (0)4 67 14 96 42 > Fax. : +33 (0)4 67 14 47 92 From Samuel.Gougeon at univ-lemans.fr Wed May 19 21:12:44 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 19 May 2010 21:12:44 +0200 Subject: [scilab-Users] SciLab question dealing with linear algebra / tensor multiplication. In-Reply-To: References: Message-ID: <4BF4382C.1030106@univ-lemans.fr> ----- Message d'origine ----- De : Julien Colmars Date : 19/05/2010 19:41: > Hi, > > I've a SciLab problem dealing with* linear algebra / tensor > multiplication.* > > Let's say I have *a matrix A wich size is i * j * k* ( is it called a > matrix in SciLab ? a 3rd order tensor ? a table ?...) A hypermatrix > *.../...* > > * *Is it possible to simply make a permutation of two subscript* : > for example from A(i,j,k) I want to get B = A(k,j,i) ? This way > I could make my basic multiplications... > you may use permute(): Example: h=fix(rand(3,3,3)*20-10) nh=permute(h,[3 2 1]) // reordering dims #1 and #3 (here it is a commutation) nh(:,:,1) We could also use s=squeeze(m(1,:,:)) and then transpose the result. Unfortunately, size(s) // => (3,3) is ok BUT typeof(s) // => "hypermat" instead of "constant" This is a bug from squeeze() already reported at http://bugzilla.scilab.org/show_bug.cgi?id=4042#c1 Since transposition of hypermats is not supported (quite meaningless), this way is wrong. While, permute() is straightforward. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gene.Sherrel at a-dec.com Wed May 19 22:30:27 2010 From: Gene.Sherrel at a-dec.com (Gene Sherrell) Date: Wed, 19 May 2010 13:30:27 -0700 Subject: [scilab-Users] one user's question about install toolbox In-Reply-To: References: Message-ID: <0B20D41B313432408F38C6CFB74A691F06C6E2DF@NBGEXCH.a-dec.com> If you are having trouble with Atoms try updating atomsSystemUpdate() Once the Atoms gui is working it is very easy to install modules Cheers From: ??? [mailto:liangjinxiang at gmail.com] Sent: Tuesday, May 18, 2010 4:17 AM To: users at lists.scilab.org Subject: [scilab-Users] one user's question about install toolbox hello I am a student of soochow university,in suzhou city, jiangsu province,china,I have successfully install scilab 5.22 on my computer(windows7 operation system),but i don't know how to install some toolbox,in china,very little of scilab help document can found,could you introduce some help document of toolbox installment,thank you, yours 2010,04,18 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu May 20 10:35:15 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Thu, 20 May 2010 10:35:15 +0200 Subject: XMLlab 1.73 is out ! Message-ID: <4BF4F443.5020201@utc.fr> Hi all, The new 1.73 release of XMLlab is available. The main change is about the XMLlab WebServer feature (Linux only), which was broken for Scilab version >=5. The XMLlab WebServer is now working with Scilab 5 thanks to VirtualGL . The example section of the xmllab.org site already makes use of this new version (dynamic pages served by the XMLlab Web Server). For the moment, the MacOSX version is stuck to 1.71, since Tcl/Tk is still broken in Scilab 5 for this platform. Give XMLlab a try at http://xmllab.org ! S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Thu May 20 13:23:34 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 May 2010 13:23:34 +0200 Subject: SIVP beginner question Message-ID: <4BF51BB6.4060207@limsi.fr> Hello, I am a new OpenCV user and I have see that the SIVP toolbox use it. So I decided to give it a try. When I type: t=imread('White_Image.png') I get error 999 with the following error message: "imread: Can not open file +." I have tried with various extension (jpg, png, ras, etc...) with no effect. Any idea? I use Ubuntu 10.04 (64 bits), OpenCV 2.0 (distribution packaged), scilab 5.2.1 (distribution packaged) and SIVP 0.5.0 (distribution packaged). By the way is there any plan to include this toolbox (or a similar one) in scilab official distribution? I think that scilab needs a toolbox that works out-of-the-box. Thanks, Mathieu. From edmondwee at hotmail.com Thu May 20 14:53:53 2010 From: edmondwee at hotmail.com (edmond wee) Date: Thu, 20 May 2010 12:53:53 +0000 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <4BF51BB6.4060207@limsi.fr> References: <4BF51BB6.4060207@limsi.fr> Message-ID: could be that you need to provide the folder location as well? maybe this will work? t=imread('c:\White_Image.png') what do you mean work out of box? > Date: Thu, 20 May 2010 13:23:34 +0200 > From: mathieu.dubois at limsi.fr > To: users at lists.scilab.org > Subject: [scilab-Users] SIVP beginner question > > Hello, > > I am a new OpenCV user and I have see that the SIVP toolbox use it. So I > decided to give it a try. > > When I type: > t=imread('White_Image.png') > I get error 999 with the following error message: "imread: Can not open > file +." > > I have tried with various extension (jpg, png, ras, etc...) with no effect. > > Any idea? > > I use Ubuntu 10.04 (64 bits), OpenCV 2.0 (distribution packaged), scilab > 5.2.1 (distribution packaged) and SIVP 0.5.0 (distribution packaged). > > By the way is there any plan to include this toolbox (or a similar one) > in scilab official distribution? I think that scilab needs a toolbox > that works out-of-the-box. > > Thanks, > Mathieu. _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Thu May 20 15:09:29 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 20 May 2010 15:09:29 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <4BF51BB6.4060207@limsi.fr> References: <4BF51BB6.4060207@limsi.fr> Message-ID: <1274360969.8673.4120.camel@korcula.inria.fr> Le jeudi 20 mai 2010 ? 13:23 +0200, Mathieu Dubois a ?crit : > Hello, > > I am a new OpenCV user and I have see that the SIVP toolbox use it. So I > decided to give it a try. > > When I type: > t=imread('White_Image.png') > I get error 999 with the following error message: "imread: Can not open > file +." Are you sure that the file is available in the current path ? What is the result of ? im = imread(SCI + '/contrib/sivp/images/lena.png'); > I have tried with various extension (jpg, png, ras, etc...) with no effect. > > Any idea? > > I use Ubuntu 10.04 (64 bits), OpenCV 2.0 (distribution packaged), scilab > 5.2.1 (distribution packaged) and SIVP 0.5.0 (distribution packaged). > > By the way is there any plan to include this toolbox (or a similar one) > in scilab official distribution? I think that scilab needs a toolbox > that works out-of-the-box. The main plan regarding SIVP is make it available correctly under ATOMS. For now, there are some flaws in the current packaging... Sylvestre From mathieu.dubois at limsi.fr Thu May 20 15:19:30 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 May 2010 15:19:30 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <1274360969.8673.4120.camel@korcula.inria.fr> References: <4BF51BB6.4060207@limsi.fr> <1274360969.8673.4120.camel@korcula.inria.fr> Message-ID: <4BF536E2.9090802@limsi.fr> Edmond, Sylvestre, This is not a matter of path. When I try: > im = imread(SCI + '/contrib/sivp/images/lena.png'); > I have the same error (the file is here)! Similarly giving the path (imread('./White_Image.png') has no effect.. Mathieu From mathieu.dubois at limsi.fr Thu May 20 15:22:04 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 May 2010 15:22:04 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: References: <4BF51BB6.4060207@limsi.fr> Message-ID: <4BF5377C.8080902@limsi.fr> > what do you mean work out of box? Something included in the standard installation (and that works, no bashing intended :)... From vincent.lejeune at scilab.org Thu May 20 15:40:23 2010 From: vincent.lejeune at scilab.org (vincent.lejeune at scilab.org) Date: Thu, 20 May 2010 15:40:23 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <4BF536E2.9090802@limsi.fr> References: <4BF51BB6.4060207@limsi.fr> <1274360969.8673.4120.camel@korcula.inria.fr> <4BF536E2.9090802@limsi.fr> Message-ID: <8fbf48532cf523f7d9f5efd916652544@localhost> On Thu, 20 May 2010 15:19:30 +0200, Mathieu Dubois wrote: > Edmond, Sylvestre, > > This is not a matter of path. > > When I try: >> im = imread(SCI + '/contrib/sivp/images/lena.png'); >> > I have the same error (the file is here)! > > Similarly giving the path (imread('./White_Image.png') has no effect.. > > Mathieu If you are on windows, try to remplace each occurence of '/' by '\'. From sylvestre.ledru at scilab.org Thu May 20 15:09:29 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 20 May 2010 15:09:29 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <4BF51BB6.4060207@limsi.fr> References: <4BF51BB6.4060207@limsi.fr> Message-ID: <1274360969.8673.4120.camel@korcula.inria.fr> Le jeudi 20 mai 2010 ? 13:23 +0200, Mathieu Dubois a ?crit : > Hello, > > I am a new OpenCV user and I have see that the SIVP toolbox use it. So I > decided to give it a try. > > When I type: > t=imread('White_Image.png') > I get error 999 with the following error message: "imread: Can not open > file +." Are you sure that the file is available in the current path ? What is the result of ? im = imread(SCI + '/contrib/sivp/images/lena.png'); > I have tried with various extension (jpg, png, ras, etc...) with no effect. > > Any idea? > > I use Ubuntu 10.04 (64 bits), OpenCV 2.0 (distribution packaged), scilab > 5.2.1 (distribution packaged) and SIVP 0.5.0 (distribution packaged). > > By the way is there any plan to include this toolbox (or a similar one) > in scilab official distribution? I think that scilab needs a toolbox > that works out-of-the-box. The main plan regarding SIVP is make it available correctly under ATOMS. For now, there are some flaws in the current packaging... Sylvestre From mathieu.dubois at limsi.fr Thu May 20 16:18:14 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 May 2010 16:18:14 +0200 Subject: [scilab-Users] SIVP beginner question In-Reply-To: <8fbf48532cf523f7d9f5efd916652544@localhost> References: <4BF51BB6.4060207@limsi.fr> <1274360969.8673.4120.camel@korcula.inria.fr> <4BF536E2.9090802@limsi.fr> <8fbf48532cf523f7d9f5efd916652544@localhost> Message-ID: <4BF544A6.4060002@limsi.fr> On 05/20/2010 03:40 PM, vincent.lejeune at scilab.org wrote: > On Thu, 20 May 2010 15:19:30 +0200, Mathieu Dubois > wrote: > >> Edmond, Sylvestre, >> >> This is not a matter of path. >> >> When I try: >> >>> im = imread(SCI + '/contrib/sivp/images/lena.png'); >>> >>> >> I have the same error (the file is here)! >> >> Similarly giving the path (imread('./White_Image.png') has no effect.. >> >> Mathieu >> > If you are on windows, try to remplace each occurence of '/' by '\'. > Thanks but as I said in my first post I'm under Ubuntu... From bernard.secher at cea.fr Thu May 20 16:28:01 2010 From: bernard.secher at cea.fr (Bernard Secher - SFME/LGLS) Date: Thu, 20 May 2010 16:28:01 +0200 Subject: problem of configuration of scilab 5.2.2 Message-ID: <4BF546F1.1050806@cea.fr> I have installed scilab 5.2.2. When I tried to display 2D graphic I get the following error message: "An error occurred when Scilab tried to open a Canvas: Unable to select one of the provided GLCapabilities" Thanks to help me Bernard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gattomatto at hotmail.com Fri May 21 00:55:59 2010 From: gattomatto at hotmail.com (gattomatto) Date: Thu, 20 May 2010 22:55:59 +0000 (UTC) Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> Message-ID: I have the same problem on my MacBook Pro, but not on my MacMini. Same OS version BUT, on the MacMini, File System in not case sensitive! It is not the first time that I find that some application was developed on non case sensitive FS installation and then (very likely because misspelled filenames) it doesn't run on case sensitive OS installation. I would suggest to check which FS you have. From adelson.oliveira at gmail.com Fri May 21 02:01:14 2010 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Thu, 20 May 2010 21:01:14 -0300 Subject: [scilab-Users] problem of configuration of scilab 5.2.2 In-Reply-To: <4BF546F1.1050806@cea.fr> References: <4BF546F1.1050806@cea.fr> Message-ID: Isn't it the intel graphics problem? Is your video card an intel one? Try reading the "details" about your problem. 2010/5/20 Bernard Secher - SFME/LGLS > I have installed scilab 5.2.2. > When I tried to display 2D graphic I get the following error message: > > "An error occurred when Scilab tried to open a Canvas: Unable to select one > of the provided GLCapabilities" > > Thanks to help me > > Bernard > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From petar.knezevich at gmail.com Fri May 21 10:16:52 2010 From: petar.knezevich at gmail.com (Petar Knezevich) Date: Fri, 21 May 2010 13:16:52 +0500 Subject: Practical Subplot Limits Message-ID: Hello, I am using subplot to stack multiple time series to allow comparison with the different y-axis scales on the same x-axis, time, scale. I find if I use more than 2 rows, subplot(3,1,x), then the title at the top plot and the xlabel data on the bottom lot is off the screen. I need to enlarge the figure window to be able to read them. I am using scilab 5.2.2 on Windows XP Professional 2002 on Dell Latitude D630. Screen is configured to it's maximum size of 1280 x 800 pixels. When I have an external monitor attached (1280 x 1024) the bottom x-axis label is visible when the graphic window is maximized. Is this an issue with fixed font size in the plot() function? I attached the script and data files I am using along with screen captures at various window sizes. Regards, Petar Knezevich -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Simulation Data.zip Type: application/zip Size: 177377 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: plots.zip Type: application/zip Size: 255903 bytes Desc: not available URL: From jjdmon at pobox.com Fri May 21 14:56:23 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Fri, 21 May 2010 08:56:23 -0400 Subject: [scilab-Users] Re: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> Message-ID: The file systems on my MacBook Pro (where Scilab runs) and iMac (where it doesn't) both identify as Mac OS X Extended (Journaled). I don't believe either is case sensitive. On May 20, 2010, at 6:55 PM, gattomatto wrote: > > > I have the same problem on my MacBook Pro, but not on my MacMini. > Same OS version BUT, on the MacMini, File System in not case sensitive! > > It is not the first time that I find that some application was developed > on non case sensitive FS installation and then (very likely because > misspelled filenames) it doesn't run on case sensitive OS installation. > > I would suggest to check which FS you have. > > From hmisono at umaryland.edu Fri May 21 15:02:03 2010 From: hmisono at umaryland.edu (Hiroaki Misono) Date: Fri, 21 May 2010 09:02:03 -0400 Subject: [scilab-Users] Re: Scilab on OS X Snow leopard In-Reply-To: <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> Message-ID: <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> Has anybody tried to run Scilab 5.2.2 after installing Java for Mac OS X 10.6 Update 2? Please let us know whether the update affected Scilab or not. Thanks! Miso (Hiroaki Misono) Assistant Professor Department of Neural and Pain Science Program in Neuroscience University of Maryland Baltimore Mail to: 650 W. Baltimore St. Rm 8-South Dental Building Baltimore, MD 21201 Tel: 410-706-7168 (office), 410-706-6547 (lab) Fax: 410-706-0865 http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjdmon at pobox.com Fri May 21 15:48:10 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Fri, 21 May 2010 09:48:10 -0400 Subject: [scilab-Users] Re: Scilab on OS X Snow leopard In-Reply-To: <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> Message-ID: I installed it on my iMac running 10.6.3 where Scilab hangs on launch, and it didn't help. Both 5.2.1 and 5.2.2 still hang. I'm not going to install it on my MacBook where Scilab is still working since it might break that too. On May 21, 2010, at 9:02 AM, Hiroaki Misono wrote: > Has anybody tried to run Scilab 5.2.2 after installing Java for Mac OS X 10.6 Update 2? > Please let us know whether the update affected Scilab or not. > Thanks! > > > > Miso > (Hiroaki Misono) > Assistant Professor > Department of Neural and Pain Science > Program in Neuroscience > University of Maryland Baltimore > Mail to: 650 W. Baltimore St. > Rm 8-South Dental Building > Baltimore, MD 21201 > Tel: 410-706-7168 (office), 410-706-6547 (lab) > Fax: 410-706-0865 > http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri May 21 15:59:28 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 21 May 2010 15:59:28 +0200 Subject: [scilab-Users] Re: Scilab on OS X Snow leopard In-Reply-To: <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> Message-ID: <1274450368.6240.2961.camel@korcula.inria.fr> Le vendredi 21 mai 2010 ? 09:02 -0400, Hiroaki Misono a ?crit : > Has anybody tried to run Scilab 5.2.2 after installing Java for Mac OS > X 10.6 Update 2? My snow leopard is up to date with Java 1.6.0 b20 (the one provided by Apple in the update 2) and I don't have any problem... Can you let me know if the workaround described here fixed your issue: http://bugzilla.scilab.org/show_bug.cgi?id=7012#c4 Thanks Sylvestre PS: I am going to be offline for the next two weeks, don't be surprised if you don't get any feedback from me. From kay-uwe.goetz at web.de Fri May 21 16:00:27 2010 From: kay-uwe.goetz at web.de (=?ISO-8859-1?Q?Kay-Uwe_G=F6tz?=) Date: Fri, 21 May 2010 16:00:27 +0200 Subject: Scilab 5.2.2 fails to start on Mac OS 10.6.3 In-Reply-To: References: <1273476391.31795.29495.camel@korcula.inria.fr> <7F68B133-3695-4DA5-A880-4FE8267FEE83@pobox.com> <1273520773.9092.331.camel@zlarin> <1274130472.5343.266.camel@zlarin> Message-ID: Am 21.05.10 14:56, schrieb Jeff DuMonthier: > The file systems on my MacBook Pro (where Scilab runs) and iMac (where it doesn't) both identify as Mac OS X Extended (Journaled). I don't believe either is case sensitive. > On my iMac (where it doesn't run) the FS identifies as HFS+. I didn't find any information on case sensitivity. Kay-Uwe From hmisono at umaryland.edu Fri May 21 16:25:24 2010 From: hmisono at umaryland.edu (Hiroaki Misono) Date: Fri, 21 May 2010 10:25:24 -0400 Subject: [scilab-Users] Re: Scilab on OS X Snow leopard In-Reply-To: <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> Message-ID: <25140D3D-18EE-479B-A02F-41DC03A430BF@umaryland.edu> Well, I've done it myself. This is what happened. On my MacBook, Scilab 5.2.2 initially didn't want to start but became functional after making a symlink (1.5 --> 1.5.0) that was missing initially. The Java update wiped obsolete Java VM 1.4.2 and 1.5.0, which I had installed using Pacifist for other applications, and replaced the symlink 1.5 --> 1.5.0 with a symlink 1.5 --> CurrentJDK I tried to launch Scilab at this point, and it run flawlessly. Then I reinstalled Java SE 1.5.0, which is required to run another java application (the symlink 1.5-->CurrenJDK stays). Scilab launched without a problem. I guess my problem was just simply the lack of the symlink 1.5-->CurrentJDK. Miso On May 21, 2010, at 9:02 AM, Hiroaki Misono wrote: > Has anybody tried to run Scilab 5.2.2 after installing Java for Mac OS X 10.6 Update 2? > Please let us know whether the update affected Scilab or not. > Thanks! > > > > Miso > (Hiroaki Misono) > Assistant Professor > Department of Neural and Pain Science > Program in Neuroscience > University of Maryland Baltimore > Mail to: 650 W. Baltimore St. > Rm 8-South Dental Building > Baltimore, MD 21201 > Tel: 410-706-7168 (office), 410-706-6547 (lab) > Fax: 410-706-0865 > http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 > > > Miso (Hiroaki Misono) Assistant Professor Department of Neural and Pain Science Program in Neuroscience University of Maryland Baltimore Mail to: 650 W. Baltimore St. Rm 8-South Dental Building Baltimore, MD 21201 Tel: 410-706-7168 (office), 410-706-6547 (lab) Fax: 410-706-0865 http://neuroscience.umaryland.edu/Pages/faculty_profile.aspx?ID=315 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Fri May 21 17:29:59 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 21 May 2010 17:29:59 +0200 Subject: [scilab-Users] Question about (higher-order) histograms In-Reply-To: <4BF3B1CF.8030105@limsi.fr> References: <4BF2D1B1.40707@limsi.fr> <4BF2DD9A.8000909@free.fr> <4BF39821.8090407@limsi.fr> <4BF3A4D5.5040005@univ-lemans.fr> <4BF3B1CF.8030105@limsi.fr> Message-ID: <4BF6A6F7.8030607@limsi.fr> Hello again, Is there a way to compute multidimensionnal histograms? Mathieu From ray at aarden.us Fri May 21 18:19:43 2010 From: ray at aarden.us (ray joseph) Date: Fri, 21 May 2010 11:19:43 -0500 Subject: [scilab-Users] lsqrsolve References: <4BB3218B.4010305@unisi.it> <4BBC4C86.2050905@univ-lemans.fr> <01d301caebfe$a9864510$6501a8c0@HOUC35439> <03fd01caf6ca$e5c21910$0202a8c0@HOUC35439> Message-ID: <090801caf901$6cc19570$0202a8c0@HOUC35439> ----- Original Message ----- From: "Gary Nelson" To: Sent: Tuesday, May 18, 2010 5:31 PM Subject: Re: [scilab-Users] lsqrsolve On May 18, 2010, at 1:44 PM, ray joseph wrote: >> Gary, >> >> Please let me know if this describes your experiment. >> >>You have N sets of data. >I did not communicate clearly. See attached wav file. I have many sets of data that look similar to this. My Windows Media 9 could not play this. Is there some other program to open it? >I have processed this data using first central difference to find maxima and second central difference to find inflection points where >the gaussian formulation I am using defines sigma. >Some data sets have more maxima than this, but here we could find two maxima to the left, fit gaussians and subtract them out, then apply the algorithm again on >the remaining maxima. This sounds like for any one dataset, a graph of the data would have one or more maxima and you want to identify the Gaussian curves that would fit each of these maxima. I would suggest a two step process. 1} Find the number and general location of the maxima. This can be 'slope' based method such a Newton. Or you could smooth the data, differentiate it and look for zero crossings. 2) Simultaneously resolve the sum of Gaussian curves which best fit the data. You don't want to find each one and subtract it out as you won't be able to resolve out the tails. With the count and location of maxima, use a least squared method. Depending upon your application, you may find that the LSS can be weighted to maximize the fit at the peaks, shoulders or tails or some combination. How does that sound? Ray >I have done this manually, and can make it work. But that is not feasible except to test the idea. I find that (Ai, mi, Si) can be expressed to fractions of a sample ?time and squared error is sensitive to these parameters to that precision. >I imagine a process that finds (as in this case) two larger maxima, fit a guassian to each and subtract. That will reveal a couple more, so recursively apply maxima >finder, measure sigmas, fit gaussians again. >> You want to fit each one with its own Gaussian >>curve. You are not trying to determine the statistical distribution of the >>magnitude of the numbers in each of the sets, but are addressing the >>magnitudes of the sequence of numbers as if they were the range of (produced >>from) a function on a sequentially ordered set of integers. Such as: >>exactly the form I use. S is measured at the inflection points >> yi = A*exp(-((xi-m)^2)/(2*s^2)) >My notion is that >estimate(Ai,mi,Si) = sum(yi) //sum_over_i >In this example, we can add two gaussians to fit the largest two maxima and tinker the parameters to minimize the squared error. >> >> To do a least squared fit of (xi,yi) wrt (A,m,s): >> >> Take the ln of both sides: >> ln(yi) = ln(A) + -((xi-m)^2)/(2*s^2) >> >> by letting -2*s^2 = 1/q, the above can be written: >> ln(yi) = ln(A) + q*((xi-m)^2) >> ln(yi) = ln(A) + q*(xi^2 - xi*m + m^2) >> ln(yi) = ln(A) + q*xi^2 - q*xi*m + q*m^2) >> >> If you do this for each of the j sets, each will have an independently fit >> set (Aj,mj,sj). >Thanks for taking the time to help. >> >> >> Ray >> >> >> >> ----- Original Message ----- > From: "Gary Nelson" > To: > Sent: Monday, May 17, 2010 5:57 PM > Subject: Re: [scilab-Users] lsqrsolve > > > > Suppose I have a dataset that has N maxima and I want to fit a gaussian to > each one, and minimize the least square error between the sum of N gaussians > and the dataset. > I have tried this manually by tinkering the parameters and it clearly can be > done to good effect. > The datasets have 250 to 500 samples -- a smooth sequence of positive > numbers with maxima that are plausibly gaussian shaped > Initial guess could be a set of amplitudes whose time locations are taken > from central difference positive to negative transits. I found that manual > tweaking by moving centers a fraction of a sample left or right would change > lsqerror, then tweaking amplitudes, then tweaking sigmas -- a couple > interations and the visible fit would be very good. > > Now, how do I do this more rigorously? > > Thanks > > On May 4, 2010, at 7:57 PM, ray joseph wrote: > >> Gary, >> >> I am sorry that I am bypassing your original request; but if you calculate >> the mean and standard deviation of your data set, you will get the two >> parameters. Using the solver will be a fun exercise. >> >> Ray >> >> ----- Original Message ----- >> From: "Gary Nelson" >> To: >> Sent: Tuesday, May 04, 2010 2:12 PM >> Subject: Re: [scilab-Users] lsqrsolve >> >> >> I would like to fit a gaussian to some data samples using least squares. >> The gaussian has two parameters -- amplitude and width (sigma). >> >> I would like to use 6 to 12 samples that span a maximum and provide a > first >> guess of the amplitude and width. >> >> After reading the manual on lsqsolve, it seems like it will do the job, > but >> I would appreciate some guidance to make it work. >> >> Thanks >> >> Gary Nelson >> >> >> On Apr 7, 2010, at 2:12 AM, Samuel Gougeon wrote: >> >>> ----- Message d'origine ----- >>> De : Maso Ricci >>> Date : 31/03/2010 12:18: >>>> Hi, >>>> >>>> I am using the lsqrsolve function to fit some data. >>>> I wonder whether lsqrsolve accepts contrains in order to force the >> solution to be positive. >>>> >>>> thanks in advance for any comments and suggestions >>> Did you check the leastsq() function based on the optim() one ? Its 'b', >> binf, bsup >>> sequence of 3 input arguments allow to specify some boundaries. >>> So, for instance, if the solution you are searching for is a scalar that >> must be positive, >>> just set 'b',0,%inf. see help leastsq() >>> >>> HTH >>> Samuel >>> >>> >> >> Gary Nelson >> gnelson at quantasonics.com >> >> >> >> >> > > Gary Nelson > gnelson at quantasonics.com > > > > > Gary Nelson gnelson at quantasonics.com From acar15_hayri at hotmail.fr Mon May 24 21:15:31 2010 From: acar15_hayri at hotmail.fr (hayri acar) Date: Mon, 24 May 2010 19:15:31 +0000 Subject: Appel scilab depuis C++ Message-ID: Bonjour, je fais un projet actuellement et je suis nouveau dans le domaine.Mon projet est le suivant :je travail sous Code::Blocks pour programmer un code en C++, j'ai d?fini un certains nombre de param?tre et je voudrai faire appel a scilab pour qu'il me prenne en compte ces param?tres et que scilab me calcul certaine matrice et vecteur en fonction de ces param?tres. Puis, je voudrai que ces matrices renvoient leurs r?sultats dans mon code en c++ pour pouvoir continuer.De plus, je voudrai effectuer cette op?ration d'appel a scilab plusieurs fois. Est-ce que vous avez un exemple d?crivant mon id?e svp? Cordialement. _________________________________________________________________ Installez gratuitement les nouvelles Emoch'ticones ! http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Tue May 25 13:55:12 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 25 May 2010 13:55:12 +0200 (CEST) Subject: Particular optimization Message-ID: <2145061074.1871961274788512030.JavaMail.root@zimbra26-e5.priv.proxad.net> All, I would like to know if it?s possible or if somebody has ever experienced the following : a) is it possible to optimize a design in dynamic condition (in term of modal analysis and dynamic response i.e. dynamic stress) by looking for the MAXIMUM stress and not the minimum one as traditionally done, b) I?m under windows (hard constraint !!) and is it possible to link a commercial FEA code to Scilab throughout a script for example for this optimization ? Please note I?ve about 6 different parameters to be optimized so that I've the maximum stress at the particular natural frequency. Any suggestion ? Regards Paul From yann.collette at scilab.org Tue May 25 14:06:46 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 25 May 2010 14:06:46 +0200 Subject: [scilab-Users] Particular optimization In-Reply-To: <2145061074.1871961274788512030.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <2145061074.1871961274788512030.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4BFBBD56.8040602@scilab.org> Hello, I joined to this mail an example of such a thing performed using code aster and scilab. The script to be launched is launch_optim.sce. Be careful, you will need to set up some paths in this script. The optimization problem is the following: optimize the shape of a truss bridge so as to minimize the deformation of the deck of the bridge. YC Le 25/05/2010 13:55, paul.carrico at free.fr a ?crit : > All, > > I would like to know if it?s possible or if somebody has ever experienced the following : > > a) is it possible to optimize a design in dynamic condition (in term of modal analysis and dynamic response i.e. dynamic stress) by looking for the MAXIMUM stress and not the minimum one as traditionally done, > b) I?m under windows (hard constraint !!) and is it possible to link a commercial FEA code to Scilab throughout a script for example for this optimization ? > > Please note I?ve about 6 different parameters to be optimized so that I've the maximum stress at the particular natural frequency. > > Any suggestion ? > > Regards > > Paul > -------------- next part -------------- A non-text attachment was scrubbed... Name: Bridge.zip Type: application/zip Size: 745811 bytes Desc: not available URL: From paul.carrico at free.fr Tue May 25 14:11:01 2010 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Tue, 25 May 2010 14:11:01 +0200 (CEST) Subject: [scilab-Users] Particular optimization In-Reply-To: <4BFBBD56.8040602@scilab.org> Message-ID: <1253560864.1874111274789461330.JavaMail.root@zimbra26-e5.priv.proxad.net> Thanks for the so quick answer ... However I would like to MAXIMIZE and not minimize the stress mapping and I don't know if it's possible ... But i'll take a particular look on your example ... Speak to you soon Bye Paul ----- Mail Original ----- De: "Collette yann" ?: users at lists.scilab.org Envoy?: Mardi 25 Mai 2010 14h06:46 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [scilab-Users] Particular optimization Hello, I joined to this mail an example of such a thing performed using code aster and scilab. The script to be launched is launch_optim.sce. Be careful, you will need to set up some paths in this script. The optimization problem is the following: optimize the shape of a truss bridge so as to minimize the deformation of the deck of the bridge. YC Le 25/05/2010 13:55, paul.carrico at free.fr a ?crit : > All, > > I would like to know if it?s possible or if somebody has ever experienced the following : > > a) is it possible to optimize a design in dynamic condition (in term of modal analysis and dynamic response i.e. dynamic stress) by looking for the MAXIMUM stress and not the minimum one as traditionally done, > b) I?m under windows (hard constraint !!) and is it possible to link a commercial FEA code to Scilab throughout a script for example for this optimization ? > > Please note I?ve about 6 different parameters to be optimized so that I've the maximum stress at the particular natural frequency. > > Any suggestion ? > > Regards > > Paul > From yann.collette at scilab.org Tue May 25 14:13:08 2010 From: yann.collette at scilab.org (Collette yann) Date: Tue, 25 May 2010 14:13:08 +0200 Subject: [scilab-Users] Particular optimization In-Reply-To: <1253560864.1874111274789461330.JavaMail.root@zimbra26-e5.priv.proxad.net> References: <1253560864.1874111274789461330.JavaMail.root@zimbra26-e5.priv.proxad.net> Message-ID: <4BFBBED4.5010703@scilab.org> You just have to multiply the objective function by -1 to transform a minimization problem into a maximization one. YC Le 25/05/2010 14:11, paul.carrico at free.fr a ?crit : > Thanks for the so quick answer ... > > However I would like to MAXIMIZE and not minimize the stress mapping and I don't know if it's possible ... > > But i'll take a particular look on your example ... > > Speak to you soon > > Bye > > Paul > > > ----- Mail Original ----- > De: "Collette yann" > ?: users at lists.scilab.org > Envoy?: Mardi 25 Mai 2010 14h06:46 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [scilab-Users] Particular optimization > > Hello, > > I joined to this mail an example of such a thing performed using code > aster and scilab. > The script to be launched is launch_optim.sce. Be careful, you will need > to set up some paths in this script. > > The optimization problem is the following: optimize the shape of a truss > bridge so as to minimize the deformation of the deck of the bridge. > > YC > > Le 25/05/2010 13:55, paul.carrico at free.fr a ?crit : > >> All, >> >> I would like to know if it?s possible or if somebody has ever experienced the following : >> >> a) is it possible to optimize a design in dynamic condition (in term of modal analysis and dynamic response i.e. dynamic stress) by looking for the MAXIMUM stress and not the minimum one as traditionally done, >> b) I?m under windows (hard constraint !!) and is it possible to link a commercial FEA code to Scilab throughout a script for example for this optimization ? >> >> Please note I?ve about 6 different parameters to be optimized so that I've the maximum stress at the particular natural frequency. >> >> Any suggestion ? >> >> Regards >> >> Paul >> >> > From masy07 at wanadoo.fr Tue May 25 17:08:14 2010 From: masy07 at wanadoo.fr (Samy) Date: Tue, 25 May 2010 17:08:14 +0200 (CEST) Subject: scilab interface with C Message-ID: <4530926.91950.1274800094767.JavaMail.www@wwinf1e16> Hello, I am a French student (at ENSTA ParisTech) and I am currently working with prof. Chris Rogers at Cambridge University. I would like to know if an interface exists in order to use a package computed in C in Scilab. Actually I would like to interface the qhull package (which determines the convex hull of a set of points, among other things), which is programmed in C, to use it with Scilab. I know that it is possible to interface functions in C but as there are many functions in this package I would like to know if there is a better way to use the package in Scilab than to interface all the functions one by one. Thanks for considering my request. Regards. Samy Hocini. From martin934 at gmail.com Tue May 25 17:21:15 2010 From: martin934 at gmail.com (Dan Martin) Date: Tue, 25 May 2010 08:21:15 -0700 Subject: tcl/tk GUI missing legend text in linux, works on MS-Windows Message-ID: <4BFBEAEB.6020401@gmail.com> The tcl/tk data entry GUI .tcl file I call from my .sci file makes an incomplete GUI in ubuntu linux. It works fine on Windows. In ubuntu the text in the text entry boxes is missing, and some check box widgets are also missing. I am using the latest version of scilab in both cases (5.2.2). Please help! Dan From vincent.lejeune at scilab.org Tue May 25 17:27:44 2010 From: vincent.lejeune at scilab.org (vincent.lejeune at scilab.org) Date: Tue, 25 May 2010 17:27:44 +0200 Subject: [scilab-Users] scilab interface with C In-Reply-To: <4530926.91950.1274800094767.JavaMail.www@wwinf1e16> References: <4530926.91950.1274800094767.JavaMail.www@wwinf1e16> Message-ID: <3d6ad3b0e4ad9a533806da9bc0c18826@localhost> I suggest that you give a try to the SWIG Scilab wrapper generator. There is a branch of swig devoted to scilab : http://wiki.scilab.org/SWIG_and_Scilab you still need to write some code to interface scilab and qhull ; but it should mostly consist in providing function prototype... Vincent On Tue, 25 May 2010 17:08:14 +0200 (CEST), Samy wrote: > Hello, > I am a French student (at ENSTA ParisTech) and I am currently working with > prof. Chris Rogers at Cambridge University. > I would like to know if an interface exists in order to use a package > computed in C in Scilab. Actually I would like to interface the qhull > package (which determines the convex hull of a set of points, among other > things), which is programmed in C, to use it with Scilab. > > I know that it is possible to interface functions in C but as there are > many functions in this package I would like to know if there is a better > way to use the package in Scilab than to interface all the functions one by > one. > > Thanks for considering my request. > > Regards. > Samy Hocini. From stephane.mottelet at utc.fr Tue May 25 18:04:13 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 25 May 2010 18:04:13 +0200 Subject: [scilab-Users] tcl/tk GUI missing legend text in linux, works on MS-Windows In-Reply-To: <4BFBEAEB.6020401@gmail.com> References: <4BFBEAEB.6020401@gmail.com> Message-ID: <20100525180413.31956snn7d8m44cg@webmail.utc.fr> Dan Martin a ?crit?: > The tcl/tk data entry GUI .tcl file I call from my .sci file makes > an incomplete GUI in ubuntu linux. It works fine on Windows. In > ubuntu the text in the text entry boxes is missing, and some check > box widgets are also missing. I am using the latest version of > scilab in both cases (5.2.2). Please help! > > Dan > Hi, can you give your example code ? S. From cesarcarreon at gmail.com Tue May 25 02:50:08 2010 From: cesarcarreon at gmail.com (=?ISO-8859-1?Q?Cesar_Carreon_Ota=F1ez?=) Date: Mon, 24 May 2010 17:50:08 -0700 Subject: question ... Message-ID: Hi ... I program over scilab some rutines and I create libraries to link with fortran, my principal rutines are in fortran and in linux all work fine. The next lines show the instructions that I use to compile them. *1.* * * *gfortran -fPIC -I /usr/libx86_64-linux-gnu/4.4.3/libgfortranbegin.o -c *.f* (here compile fortran rutines) * * *2.* * * *gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c sci_fsum.c * * * *gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c libfsum.c* (here compile the rutines con C, they link scilab with fortran*)* * * *3.* * * *gcc -shared -Wl,-soname,libfsum.so -o libfsum.so *.o * (finally, here create the file ".so" to link all files create before) Then I tried to compile the rutines for Mac, the first and second step run fine, but in the third step appears the next message: *gcc -shared -Wl,-soname,libautobnd.so -o libautobnd.so *.o * l*d: unknown option: -soname* *collect2: ld returned 1 exit status* If you know what it is happen I'd agree your help while I continue my search in internet for someone to have the same problem ... Greetings ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From kay-uwe.goetz at web.de Wed May 26 07:32:10 2010 From: kay-uwe.goetz at web.de (=?ISO-8859-1?Q?Kay-Uwe_G=F6tz?=) Date: Wed, 26 May 2010 07:32:10 +0200 Subject: Scilab on OS X Snow leopard In-Reply-To: <25140D3D-18EE-479B-A02F-41DC03A430BF@umaryland.edu> References: <1273617316.20265.436.camel@zlarin> <4E5D67E9-F8D1-41ED-815F-49522E8BB1B0@umaryland.edu> <1273654012.8206.6620.camel@korcula.inria.fr> <4FD07862-50AB-4914-BA5C-2188A21D0753@umaryland.edu> <0C22FA23-ADB1-452E-B156-858686C8B0FF@umaryland.edu> <25140D3D-18EE-479B-A02F-41DC03A430BF@umaryland.edu> Message-ID: Am 21.05.10 16:25, schrieb Hiroaki Misono: > The Java update wiped obsolete Java VM 1.4.2 and 1.5.0, which I had > installed using Pacifist for other applications, and replaced the > symlink 1.5 --> 1.5.0 with a symlink 1.5 --> CurrentJDK > I tried to launch Scilab at this point, and it run flawlessly. > Then I reinstalled Java SE 1.5.0, which is required to run another java > application (the symlink 1.5-->CurrenJDK stays). > Scilab launched without a problem. > > I guess my problem was just simply the lack of the symlink 1.5-->CurrentJDK. > I've tried Hiroaki's solution, but it didn't work for me. The only effect was that the message about not finding the 1.5.0 version in the logs disappeared. Scilab didn't start and the java logo hung around in the dock. The update to 1.6.0 v2 moved the 1.5.0 install into a separate folder and replaced the links for 1.5.x with links to CurrentJDK. Now the message reappeared (1.5.0 not found, using 1.6.0 instead) but Scilab doesn't start anyway. I will try the solution from bugzilla as soon as I will be able to access my iMac. Kay-Uwe From allan.cornet at scilab.org Wed May 26 08:00:37 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 26 May 2010 08:00:37 +0200 Subject: [scilab-Users] question ... In-Reply-To: References: Message-ID: <001d01cafc98$c35470c0$49fd5240$@cornet@scilab.org> Hi, It will be better that you use dynamic link functions of Scilab. These functions are multiplatform and manage C,C++,Fortran. See : help ilib_for_link help ilib_build and demo about dynamic link in scilab Best Regards Allan CORNET De : Cesar Carreon Ota?ez [mailto:cesarcarreon at gmail.com] Envoy? : mardi 25 mai 2010 02:50 ? : users at lists.scilab.org Objet : [scilab-Users] question ... Hi ... I program over scilab some rutines and I create libraries to link with fortran, my principal rutines are in fortran and in linux all work fine. The next lines show the instructions that I use to compile them. 1. gfortran -fPIC -I /usr/libx86_64-linux-gnu/4.4.3/libgfortranbegin.o -c *.f (here compile fortran rutines) 2. gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c sci_fsum.c gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c libfsum.c (here compile the rutines con C, they link scilab with fortran) 3. gcc -shared -Wl,-soname,libfsum.so -o libfsum.so *.o (finally, here create the file ".so" to link all files create before) Then I tried to compile the rutines for Mac, the first and second step run fine, but in the third step appears the next message: gcc -shared -Wl,-soname,libautobnd.so -o libautobnd.so *.o ld: unknown option: -soname collect2: ld returned 1 exit status If you know what it is happen I'd agree your help while I continue my search in internet for someone to have the same problem ... Greetings ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From javed364 at gmail.com Wed May 26 13:16:54 2010 From: javed364 at gmail.com (Javed Dhillon) Date: Wed, 26 May 2010 16:46:54 +0530 Subject: Reg: Open Modelica Message-ID: Dear Sir I m working on some project in scicos which required few electical blocks like thyristor, IGBT etc, but these are not avaliable in Scicos Pallates. So i am trying to call the modelica based block from the Modelica Standard library using modelicac compiler. But this compiler is unable to compile modelica library files because Scicos Modelica compiler does not cover the full range of Modelica syntax. So my question is that.......can we call the modelica library files in scilab using Open modelica compiler (OMC) in scicos if yes than how it is possible. Regards Javed -------------- next part -------------- An HTML attachment was scrubbed... URL: From scilab.support at scilab.org Wed May 26 08:14:48 2010 From: scilab.support at scilab.org (Scilab Support) Date: Wed, 26 May 2010 08:14:48 +0200 Subject: [Ticket#2010052510000095] scilab interface with C In-Reply-To: <4530926.91950.1274800094767.JavaMail.www@wwinf1e16> References: <4530926.91950.1274800094767.JavaMail.www@wwinf1e16> Message-ID: <1274854488.866969.455680187.6349.8@scilab.org> Dear Samy, You can try with SWIG (development version) if a SWIG interface file exists for Qhull. Regards, 25.05.2010 21:18 - Samy a ?crit: > Hello, > I am a French student (at ENSTA ParisTech) and I am currently working with > prof. > Chris Rogers at Cambridge University. > I would like to know if an interface exists in order to use a package computed > in > C in Scilab. Actually I would like to interface the qhull package (which > determines the convex hull of a set of points, among other things), which is > programmed in C, to use it with Scilab. > > I know that it is possible to interface functions in C but as there are many > functions in this package I would like to know if there is a better way to use > the > package in Scilab than to interface all the functions one by one. > > Thanks for considering my request. > > Regards. > Samy Hocini. > Scilab Team -- =================================================== The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France =================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at aarden.us Wed May 26 17:20:13 2010 From: ray at aarden.us (ray joseph) Date: Wed, 26 May 2010 10:20:13 -0500 Subject: Binary Logic Simulation Blocks References: Message-ID: <00bd01cafce6$f0caf170$0302a8c0@HOUC35439> I would like to use Scicos for binary logic design. To facilitate such designs, there are three items I could use help on: 1) There is a logic function which allows a truth table to define its operation. I can make this, for example, an AND gate or an OR gate. Is there a way that I can change the icon so it will be easy to tell which type of gate I am working with? It would be sufficent to add a label affixed to the icon (rather than a text node that would have to be moved independent of the function block). To change the shape of the block would be even better. 2) I would like to have a push-button input to the circuit that I could operate during the simulation. Can this be done? 3) I would like to have a indicator light output from the circuit that I could view the current state of a line during the simulation. Can this be done? I will appreciate all help. Thanks, ray -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeancg at intelcan.com Wed May 26 16:37:58 2010 From: jeancg at intelcan.com (Jean-Christophe Guay) Date: Wed, 26 May 2010 10:37:58 -0400 Subject: Plot --> Java ruen time Error Message-ID: <71F3459806EBE44CAB605E116D2210D603FB6A7A@itiexch01.iti.local> Hi, When I tried to plot a graph I got a Java error See attached file Regards Jean-Christophe Guay FPGA/DSP Junior Engineer Intelcan Technosystems Inc. 5490 Thimens, Suite 250, Saint Laurent Quebec, Canada, H4R 2K9 Phone : 514-903-3727 ext. 3210 Fax : 514-903-3703 jeancg at intelcan.com www.intelcan.com This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid3788.log Type: application/octet-stream Size: 20848 bytes Desc: hs_err_pid3788.log URL: From calixte.denizet at ac-rennes.fr Wed May 26 21:02:34 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Wed, 26 May 2010 21:02:34 +0200 Subject: [scilab-Users] Plot --> Java ruen time Error In-Reply-To: <71F3459806EBE44CAB605E116D2210D603FB6A7A@itiexch01.iti.local> References: <71F3459806EBE44CAB605E116D2210D603FB6A7A@itiexch01.iti.local> Message-ID: <1274900554.2269.1.camel@calixte-laptop> Hello Jean-Christophe, You should make a bug report at bugzilla.scilab.org . Calixte Le mercredi 26 mai 2010 ? 10:37 -0400, Jean-Christophe Guay a ?crit : > Hi, > > > > When I tried to plot a graph I got a Java error > > > > See attached file > > > > > > Regards > > > > > > Jean-Christophe Guay > > FPGA/DSP Junior Engineer > > > > Intelcan Technosystems Inc. > > 5490 Thimens, Suite 250, Saint Laurent > > Quebec, Canada, H4R 2K9 > > Phone : 514-903-3727 ext. 3210 > > Fax : 514-903-3703 > > jeancg at intelcan.com > > www.intelcan.com > > > > > > > This e-mail and any attachments may contain confidential and > privileged information. If you are not the intended recipient, > please notify the sender immediately by return e-mail, delete this > e-mail and destroy any copies. Any dissemination or use of this > information by a person other than the intended recipient is > unauthorized and may be illegal. > > From girl.meteor at gmail.com Thu May 27 10:08:14 2010 From: girl.meteor at gmail.com (meteor girl) Date: Thu, 27 May 2010 03:08:14 -0500 Subject: Working with audio Message-ID: I'm new to Scilab, and I'm having a difficult time figuring out how I can analyze the signals in these mp3s: http://www.archive.org/details/ird062 How would I go about this? Is there any way I import the file without requiring it to be a .wav file? I have converted, but I'd like to not lose in a audio quality through transcoding it from an already lossy format. I did convert it to .wav to see if I could use wavread and analyze, as mentioned at http://cermics.enpc.fr/~jpc/mopsi/doc/ch19.html Wavread told me "mget: stack size exceeded (Use stacksize function to increase it)." So, I tried y=wavread("test.wav", [1 5]) That made it not complain, but I'm not sure what that does. analyze(y) and mapsound(y) complain that y is an undefined variable after what I thought was already assigned above. I need a decent overview of how to work with audio in Scilab and hope someone here can help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Thu May 27 10:23:04 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 27 May 2010 10:23:04 +0200 Subject: [scilab-Users] Working with audio In-Reply-To: References: Message-ID: <4BFE2BE8.8000506@laas.fr> On 05/27/2010 10:08 AM, meteor girl wrote: > I'm new to Scilab, and I'm having a difficult time figuring out how I can > analyze the signals in these mp3s: > > http://www.archive.org/details/ird062 > > How would I go about this? Is there any way I import the file without > requiring it to be a .wav file? I have converted, but I'd like to not lose > in a audio quality through transcoding it from an already lossy format. > > I did convert it to .wav to see if I could use wavread and analyze, as > mentioned at http://cermics.enpc.fr/~jpc/mopsi/doc/ch19.html > > Wavread told me "mget: stack size exceeded (Use stacksize function to > increase it)." The file you try to open is too big for the current stacksize. You need to try to increase the stacksize to avoid this problem: stacksize('max'); > So, I tried > > y=wavread("test.wav", [1 5]) > > That made it not complain, but I'm not sure what that does. > > analyze(y) and mapsound(y) complain that y is an undefined variable after > what I thought was already assigned above. > > I need a decent overview of how to work with audio in Scilab and hope > someone here can help. > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From allan.cornet at scilab.org Thu May 27 10:32:34 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 27 May 2010 10:32:34 +0200 Subject: [scilab-Users] Working with audio In-Reply-To: References: Message-ID: <000c01cafd77$27d5d0a0$778171e0$@cornet@scilab.org> Hi, To read audio files in scilab : http://atoms.scilab.org/toolboxes/sndfile_toolbox/0.2 Best Regards Allan CORNET De : meteor girl [mailto:girl.meteor at gmail.com] Envoy? : jeudi 27 mai 2010 10:08 ? : users at lists.scilab.org Objet : [scilab-Users] Working with audio I'm new to Scilab, and I'm having a difficult time figuring out how I can analyze the signals in these mp3s: http://www.archive.org/details/ird062 How would I go about this? Is there any way I import the file without requiring it to be a .wav file? I have converted, but I'd like to not lose in a audio quality through transcoding it from an already lossy format. I did convert it to .wav to see if I could use wavread and analyze, as mentioned at http://cermics.enpc.fr/~jpc/mopsi/doc/ch19.html Wavread told me "mget: stack size exceeded (Use stacksize function to increase it)." So, I tried y=wavread("test.wav", [1 5]) That made it not complain, but I'm not sure what that does. analyze(y) and mapsound(y) complain that y is an undefined variable after what I thought was already assigned above. I need a decent overview of how to work with audio in Scilab and hope someone here can help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From girl.meteor at gmail.com Thu May 27 23:28:58 2010 From: girl.meteor at gmail.com (meteor girl) Date: Thu, 27 May 2010 16:28:58 -0500 Subject: [scilab-Users] Working with audio In-Reply-To: <1153070504921157899@unknownmsgid> References: <1153070504921157899@unknownmsgid> Message-ID: Thanks Antoine, the stacksize('max'); command allowed me to run mapsound('y'); successfully. The analyze('y'), however, didn't seem to do anything really. Allan, the sndfile toolbox looks useful if you have files that you don't want to transcode, thank you. I'm new to analyzing sound spectra and am lost on how to go about doing it in scilab. Can anyone recommend helpful references? On Thu, May 27, 2010 at 3:32 AM, Allan CORNET wrote: > Hi, > > > > To read audio files in scilab : > > http://atoms.scilab.org/toolboxes/sndfile_toolbox/0.2 > > > > Best Regards > > > > Allan CORNET > > > > *De :* meteor girl [mailto:girl.meteor at gmail.com] > *Envoy? :* jeudi 27 mai 2010 10:08 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] Working with audio > > > > I'm new to Scilab, and I'm having a difficult time figuring out how I can > analyze the signals in these mp3s: > > http://www.archive.org/details/ird062 > > How would I go about this? Is there any way I import the file without > requiring it to be a .wav file? I have converted, but I'd like to not lose > in a audio quality through transcoding it from an already lossy format. > > I did convert it to .wav to see if I could use wavread and analyze, as > mentioned at http://cermics.enpc.fr/~jpc/mopsi/doc/ch19.html > > Wavread told me "mget: stack size exceeded (Use stacksize function to > increase it)." So, I tried > > y=wavread("test.wav", [1 5]) > > That made it not complain, but I'm not sure what that does. > > analyze(y) and mapsound(y) complain that y is an undefined variable after > what I thought was already assigned above. > > I need a decent overview of how to work with audio in Scilab and hope > someone here can help. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri May 28 07:20:32 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 28 May 2010 07:20:32 +0200 Subject: [scilab-Users] Appel scilab depuis C++ In-Reply-To: References: Message-ID: <1275024032.26819.352.camel@zlarin> Hello, call_scilab is probably what you are looking for: http://www.scilab.org/product/man/call_scilab.html Sylvestre Le lundi 24 mai 2010 ? 19:15 +0000, hayri acar a ?crit : > Bonjour, > > > je fais un projet actuellement et je suis nouveau dans le domaine. > Mon projet est le suivant : > je travail sous Code::Blocks pour programmer un code en C++, j'ai > d?fini un certains nombre de param?tre et je voudrai faire appel a > scilab pour qu'il me prenne en compte ces param?tres et que scilab me > calcul certaine matrice et vecteur en fonction de ces param?tres. > Puis, je voudrai que ces matrices renvoient leurs r?sultats dans mon > code en c++ pour pouvoir continuer. > De plus, je voudrai effectuer cette op?ration d'appel a scilab > plusieurs fois. > > > Est-ce que vous avez un exemple d?crivant mon id?e svp? > > > Cordialement. > > > ______________________________________________________________________ > Vous voulez prot?ger votre vie priv?e ? La solution avec Internet > Explorer 8 -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From clement.david at scilab.org Fri May 28 14:44:10 2010 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= DAVID) Date: Fri, 28 May 2010 14:44:10 +0200 Subject: [scilab-Users] Binary Logic Simulation Blocks In-Reply-To: <00bd01cafce6$f0caf170$0302a8c0@HOUC35439> References: <00bd01cafce6$f0caf170$0302a8c0@HOUC35439> Message-ID: <1275050650.2110.268.camel@pinarellu.inria.fr> Hi, > 1) There is a logic function which allows a truth table to define its > operation. I can make this, for example, an AND gate or an OR gate. > Is there a way that I can change the icon so it will be easy to tell > which type of gate I am working with? It would be sufficent to add a > label affixed to the icon (rather than a text node that would have to > be moved independent of the function block). To change the shape of > the block would be even better. I think that for that query you can post a bug (priority=wishlist) and/or submit a patch. > 2) I would like to have a push-button input to the circuit that I > could operate during the simulation. Can this be done? Now it's not possible to use the Xcos UI to generate events. Your need is really specific and may be implemented with your own blocks (scilab blocks with uicontrols). > > 3) I would like to have a indicator light output from the circuit > that I could view the current state of a line during the simulation. > Can this be done? Same as above, please draw your diagram as any Xcos diagram with your custom blocks (push-button, light, ...) and implement your own UI with uicontrols which is simulation reactive and share your blocks data. -- Cl?ment From Martin.Schulte at t-systems.com Fri May 28 17:36:21 2010 From: Martin.Schulte at t-systems.com (Martin.Schulte at t-systems.com) Date: Fri, 28 May 2010 17:36:21 +0200 Subject: Does Scilab and Octave use same libraries? Message-ID: Hello Users, we are developing a dissimilar system. We have to use different development tools for each dissimilar component. We found, that Octave uses several libraries like fftw. I didn't find any references in the Installation Guide, but when I checked the bin directory surprisingly I found fftw. Does Scilab use public libraries? If Yes, which are these? Regards, Martin Schulte ------------------------------------------------------------------------ T-Systems GEI GmbH Systems Integration Martin Schulte Aerospace Information Technologies Magirusstr. 39/1, 89077 Ulm Internet: http://www.t-systems.com T-Systems GEI GmbH Supervisory Board: Dr. Ferri Abolhassan (Vorsitzender) Executive Committee: Ulrich Meister (Vorsitzender), Rita Lietzke, Marc Stehle Commercial register: Amtsgericht Aachen HRB 7106 Registered Office: Aachen Ust.-Id Nr. DE 811 137 130 Notice: This transmittal and/or attachments may be privileged or confidential. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xendoo at gmail.com Fri May 28 19:21:38 2010 From: xendoo at gmail.com (xendo) Date: Fri, 28 May 2010 19:21:38 +0200 Subject: [scilab-Users] Does Scilab and Octave use same libraries? In-Reply-To: References: Message-ID: You can find all (or almost all) external libraries that scilab uses here: http://wiki.scilab.org/Dependencies_of_Scilab_5.X On 28 May 2010 17:36, wrote: > Hello Users, > > we are developing a dissimilar system. > We have to use different development tools for each dissimilar component. > We found, that Octave uses several libraries like fftw. > I didn't find any references in the Installation Guide, but > when I checked the bin directory surprisingly I found fftw. > > Does Scilab use public libraries? If Yes, which are these? > > > Regards, > > Martin Schulte > > ------------------------------------------------------------------------ > T-Systems GEI GmbH > Systems Integration > Martin Schulte > Aerospace Information Technologies > Magirusstr. 39/1, 89077 Ulm > Internet: http://www.t-systems.com > > T-Systems GEI GmbH > Supervisory Board: Dr. Ferri Abolhassan (Vorsitzender) > Executive Committee: Ulrich Meister (Vorsitzender), Rita Lietzke, Marc > Stehle > Commercial register: Amtsgericht Aachen HRB 7106 > Registered Office: Aachen > Ust.-Id Nr. DE 811 137 130 > > Notice: This transmittal and/or attachments may be privileged or > confidential. If > you are not the intended recipient, you are hereby notified that you have > received this transmittal in error; any review, dissemination, or copying is > strictly prohibited. If you received this transmittal in error, please > notify us > immediately by reply and immediately delete this message and all its > attachments. Thank you. > > > From Martin.Schulte at t-systems.com Fri May 28 12:45:54 2010 From: Martin.Schulte at t-systems.com (Martin.Schulte at t-systems.com) Date: Fri, 28 May 2010 12:45:54 +0200 Subject: Does Scilab and Octave use same libraries? Message-ID: Hello Users, we are developing a dissimilar system. We have to use different development tools for each dissimilar component. We found, that Octave uses several libraries like fftw. I didn't find any references in the Installation Guide, but when I checked the bin directory surprisingly I found fftw. Does Scilab use public libraries? If Yes, which are these? Regards, Martin Schulte ------------------------------------------------------------------------ T-Systems GEI GmbH Systems Integration Martin Schulte Aerospace Information Technologies Magirusstr. 39/1, 89077 Ulm Internet: http://www.t-systems.com T-Systems GEI GmbH Supervisory Board: Dr. Ferri Abolhassan (Vorsitzender) Executive Committee: Ulrich Meister (Vorsitzender), Rita Lietzke, Marc Stehle Commercial register: Amtsgericht Aachen HRB 7106 Registered Office: Aachen Ust.-Id Nr. DE 811 137 130 Notice: This transmittal and/or attachments may be privileged or confidential. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon May 31 03:18:16 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 31 May 2010 03:18:16 +0200 Subject: [scilab-Users] Does Scilab and Octave use same libraries? In-Reply-To: References: Message-ID: <1275268696.23757.1258.camel@zlarin> Hello, We are indeed using some common libraries. For example, the most commons are blas & lapack but the fftw is also among them like others... You will find most of the Scilab's dependencies here: http://wiki.scilab.org/Dependencies_of_Scilab_5.X Sylvestre Le vendredi 28 mai 2010 ? 17:36 +0200, Martin.Schulte at t-systems.com a ?crit : > Hello Users, > > we are developing a dissimilar system. > We have to use different development tools for each dissimilar > component. > We found, that Octave uses several libraries like fftw. > I didn't find any references in the Installation Guide, but > when I checked the bin directory surprisingly I found fftw. > > Does Scilab use public libraries? If Yes, which are these? > > > Regards, > > Martin Schulte > > ------------------------------------------------------------------------ > T-Systems GEI GmbH > Systems Integration > Martin Schulte > Aerospace Information Technologies > Magirusstr. 39/1, 89077 Ulm > Internet: http://www.t-systems.com > > T-Systems GEI GmbH > Supervisory Board: Dr. Ferri Abolhassan (Vorsitzender) > Executive Committee: Ulrich Meister (Vorsitzender), Rita Lietzke, Marc > Stehle > Commercial register: Amtsgericht Aachen HRB 7106 > Registered Office: Aachen > Ust.-Id Nr. DE 811 137 130 > > Notice: This transmittal and/or attachments may be privileged or > confidential. If > you are not the intended recipient, you are hereby notified that you > have > received this transmittal in error; any review, dissemination, or > copying is > strictly prohibited. If you received this transmittal in error, please > notify us > immediately by reply and immediately delete this message and all its > attachments. Thank you. > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From kay-uwe.goetz at web.de Mon May 31 07:17:51 2010 From: kay-uwe.goetz at web.de (=?ISO-8859-15?Q?Kay-Uwe_G=F6tz?=) Date: Mon, 31 May 2010 07:17:51 +0200 Subject: Problems on MacOSX Snow Leopard - Scilab not starting Message-ID: Hi, several of us have reported problems about Scilab not starting on one of their machines while it is starting on their other Mac. A typical setup is that it works on a MacBook while it is not working on an iMac. This is also the case in my setup. In my setup, I can run Scilab without any problem on my MacBook Air. On my iMac I have the problem of "the hanging java logo". I can start Scilab on the iMac if I add the parameter -nogui. I've tried all the suggestions of checking links in Java_Home, installing 1.5.0 in addition to 1.6 etc. Nothing worked. I suspect that it is an interaction of Scilab with some other installed software. My proposal is that people experiencing the same problem (works on one machine, but not on the other) post here a list of software that is installed on the machine where it doesn't run, but NOT on the machine, where it runs. Maybe we can find some similarities and track the problem down. Here is my list: + 1password + Airfoil Speakers + Airfoil + Garmin Training Center + Gisteq Phototrackr + GoogleEarth + iTunes Library Manager + MAX + LINN Download Manager + Spyder2Express + Adobe AIR Application Installer/Uninstaller + iPhone Backup Extractor + TrueCrypt Regards Kay-Uwe From hkmsama at gmail.com Mon May 31 06:46:41 2010 From: hkmsama at gmail.com (hkm) Date: Mon, 31 May 2010 12:46:41 +0800 Subject: can console mode of scilab use the GNU library readline or bind user's own shortcuts? Message-ID: I don't know wether I can define my own shortcuts in console mode of scilab. I like emacs and bind many key bindings like( alt+f, alt+b, ...) . But in console mode of scilab( start as "scilab -nw"), ctrl+w doesn't work, neither does ctrl+left or ctrl+right. while, scilab seems abandons the alt .... -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernard.secher at cea.fr Mon May 31 11:54:03 2010 From: bernard.secher at cea.fr (Bernard Secher - SFME/LGLS) Date: Mon, 31 May 2010 11:54:03 +0200 Subject: help to build a scilab interface to a C function In-Reply-To: <4BF546F1.1050806@cea.fr> References: <4BF546F1.1050806@cea.fr> Message-ID: <4C03873B.1080901@cea.fr> Hello, I have a little C function: int myfunc(int a) { int b = 4*a; return b; } Please, can you help me to interface this C function in scilab ? I don't find any documentation about this. Thanks, Bernard -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon May 31 11:57:44 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 31 May 2010 11:57:44 +0200 Subject: [scilab-Users] help to build a scilab interface to a C function In-Reply-To: <4C03873B.1080901@cea.fr> References: <4BF546F1.1050806@cea.fr> <4C03873B.1080901@cea.fr> Message-ID: <000301cb00a7$b73bf750$25b3e5f0$@cornet@scilab.org> Hi, ? help ilib_buid http://www.scilab.org/product/man/ilib_build.html http://www.scilab.org/product/man/section_eb691bc0a443eb3a95bc5db4d1be2102.h tml http://www.scilab.org/product/man/call.html Best regards Allan CORNET De : Bernard Secher - SFME/LGLS [mailto:bernard.secher at cea.fr] Envoy? : lundi 31 mai 2010 11:54 ? : users at lists.scilab.org Objet : [scilab-Users] help to build a scilab interface to a C function Hello, I have a little C function: int myfunc(int a) { int b = 4*a; return b; } Please, can you help me to interface this C function in scilab ? I don't find any documentation about this. Thanks, Bernard -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul_c at gmx.de Mon May 31 11:58:37 2010 From: paul_c at gmx.de (Paul Czienskowski) Date: Mon, 31 May 2010 11:58:37 +0200 Subject: [scilab-Users] help to build a scilab interface to a C function In-Reply-To: <4C03873B.1080901@cea.fr> References: <4BF546F1.1050806@cea.fr> <4C03873B.1080901@cea.fr> Message-ID: <4C03884D.4030406@gmx.de> Hey Bernard, there is a template toolbox implementation in SCI\contrib\toolbox_skeleton\ along with examples on FORTRAN and C interfacing. Hope this helps. Cheers, Paul On 31.05.2010 11:54, Bernard Secher - SFME/LGLS wrote: > Hello, > > I have a little C function: > > int myfunc(int a) > { > int b = 4*a; > return b; > } > > Please, can you help me to interface this C function in scilab ? > I don't find any documentation about this. > > Thanks, > Bernard > > > > -- Paul Czienskowski Bj?rnsonstr. 25 12163 Berlin Tel.: (+49)(0)30/221609359 Handy: (+49)(0)1788378772 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernard.secher at cea.fr Mon May 31 12:12:59 2010 From: bernard.secher at cea.fr (Bernard Secher - SFME/LGLS) Date: Mon, 31 May 2010 12:12:59 +0200 Subject: [scilab-Users] help to build a scilab interface to a C function In-Reply-To: <000301cb00a7$b73bf750$25b3e5f0$@cornet@scilab.org> References: <4BF546F1.1050806@cea.fr> <4C03873B.1080901@cea.fr> <000301cb00a7$b73bf750$25b3e5f0$@cornet@scilab.org> Message-ID: <4C038BAB.7040902@cea.fr> Thanks, that's work! Bernard Allan CORNET a ?crit : > > Hi, > > > > ? help ilib_buid > > http://www.scilab.org/product/man/ilib_build.html > > http://www.scilab.org/product/man/section_eb691bc0a443eb3a95bc5db4d1be2102.html > > http://www.scilab.org/product/man/call.html > > > > Best regards > > > > Allan CORNET > > > > *De :* Bernard Secher - SFME/LGLS [mailto:bernard.secher at cea.fr] > *Envoy? :* lundi 31 mai 2010 11:54 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] help to build a scilab interface to a C function > > > > Hello, > > I have a little C function: > > int myfunc(int a) > { > int b = 4*a; > return b; > } > > Please, can you help me to interface this C function in scilab ? > I don't find any documentation about this. > > Thanks, > Bernard > > > -- _\\|//_ (' 0 0 ') ____ooO (_) Ooo______________________________________________________ Bernard S?cher DEN/DM2S/SFME/LGLS mailto : bsecher at cea.fr CEA Saclay, B?t 454, Pi?ce 114 Phone : 33 (0)1 69 08 73 78 91191 Gif-sur-Yvette Cedex, France Fax : 33 (0)1 69 08 10 87 ------------Oooo--------------------------------------------------- oooO ( ) ( ) ) / \ ( (_/ \_) Ce message ?lectronique et tous les fichiers attach?s qu'il contient sont confidentiels et destin?s exclusivement ? l'usage de la personne ? laquelle ils sont adress?s. Si vous avez re?u ce message par erreur, merci d'en avertir imm?diatement son ?metteur et de ne pas en conserver de copie. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual to whom they are addressed. If you have received this e-mail in error please inform the sender immediately, without keeping any copy thereof. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.laarhuis at gmail.com Mon May 31 22:21:58 2010 From: jan.laarhuis at gmail.com (Jan Laarhuis) Date: Mon, 31 May 2010 22:21:58 +0200 Subject: Xcos problems on MacBook Message-ID: <8CE0C0BD-A701-4750-B450-ED93A3AE488B@gmail.com> Hi all, can any of you tell me why Xcos does not work on my MacBook? Even when I open one of the Xcos demos (in this case the RLC Modelica demo) and run it causes a freeze of Xcos and gives the following error messages: --------------------------------------------- Startup execution: loading initial environment Modelica code generated at "/private/tmp/SD_1050_/imppart_RLC_Modelica.mo" C code generated at "/private/tmp/SD_1050_/imppart_RLC_Modelica.c" Modelica blocks are reduced to a block with: Number of continuous time states: 2 Number of discrete time states : 0 Number of zero-crossing surfaces: 0 Number of modes : 0 Number of inputs : 0 Number of outputs: 2 Compile and link Modelica generated C code Generate a loader file Generate a Makefile ilib_gen_Make: configure : Generate Makefile. configure: error: in `/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts': ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Did not copy imppart_RLC_Modelica.c: Source and target directories are the same (/private/tmp/SD_1050_). ilib_gen_Make: configure : Generate Makefile. configure: error: in `/private/tmp/SD_1050_': ilib_gen_Make: Modification of the Makefile in TMPDIR. ilib_gen_Make: Error while modifying the reference Makefile: Running the Makefile ilib_compile: An error occurred during the compilation: sh: make: command not found ilib_compile: The command was: make CFLAGS="-I/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/../../include/scilab/ -I/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/modules/scicos_blocks/includes/" CXXFLAGS="-I/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/../../include/scilab/ -I/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/modules/scicos_blocks/includes/" FFLAGS="-I/Applications/scilab-5.2.2.app/Contents/MacOS/share/scilab/../../include/scilab/ " Generate a cleaner file Link failed for dynamic library '/private/tmp/SD_1050_/libimppart_RLC_Modelica.dylib'. An error occurred: dlopen(/private/tmp/SD_1050_/libimppart_RLC_Modelica.dylib, 10): image not found art_RLC_Modelica'],'c') !--error 236 link: The shared archive was not loaded: (null) at line 9 of exec file called by : at line 185 of function buildnewblock called by : at line 219 of function compile_modelica called by : at line 24 of function build_modelica_block called by : at line 200 of function c_pass1 called by : at line 50 of function do_compile called by : at line 96 of function do_update called by : at line 108 of function xcos_simulate called by : 0);xcos_simulate(scs_m);deletefile("/var/folder while executing a callback --------------------------------------------- I have a MacBook late 2009 with Snow Leopard 10.6.3 and I have installed Scilab 5.2.2. Thanks in anticipation for your responses and suggestions. Best regards, Jan