From jason.lillywhite at gmail.com Thu Jul 2 01:00:15 2009 From: jason.lillywhite at gmail.com (Jason Lillywhite) Date: Wed, 1 Jul 2009 17:00:15 -0600 Subject: compile source Message-ID: <408616110907011600m21417beyf535cc10c6c2037d@mail.gmail.com> Is it possible to compile Scilab source code into a stand alone exe file that can run independently? From Samuel.Gougeon at univ-lemans.fr Thu Jul 2 12:47:42 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Thu, 02 Jul 2009 12:47:42 +0200 Subject: [scilab-Users] compile source In-Reply-To: <408616110907011600m21417beyf535cc10c6c2037d@mail.gmail.com> References: <408616110907011600m21417beyf535cc10c6c2037d@mail.gmail.com> Message-ID: <4A4C904E.5000003@univ-lemans.fr> Hello Jason, ----- Message d'origine ----- De : Jason Lillywhite Date : 02/07/2009 01:00: > Is it possible to compile Scilab source code into a stand alone exe > file that can run independently? > You will find a discussion and answers to this question e.g. in thread http://groups.google.com/group/comp.soft-sys.math.scilab/browse_frm/thread/8a18c27c05e6ba54# Cheers Samuel From stephane.mottelet at utc.fr Thu Jul 2 17:27:28 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TDqXBoYW5lIE1vdHRlbGV0?=) Date: Thu, 02 Jul 2009 17:27:28 +0200 Subject: Plotlib 3, svn version, looking for contributors ! Message-ID: <4A4CD1E0.7060703@utc.fr> Hi all, 11 days ago Richard Owlett was looking for something which was in fact the "ColorOrder" axes property for Scilab. Since that day I have been working hard and I am proud to annouce that the next version of the plotlib implements many Matlab properties. With the plotlib, you can now issue commands like : _set(gca(),'linestyleorder',[1 0 0;1 0 0]); t=linspace(0,2*%pi,100); plot(t,sin((1:10)'*t)) The new command "_set" extends "set" to new properties, which are hidden in the user_data field of graphics entities. 1-Available highlevel commands of the plotlib : "plot", "semilogx", "semilogy", "loglog", "mesh","surf","surfl", "pcolor", "plot3", "quiver", "quiver3", "triplot", "tripcolor" "trimesh", "trisurf", "trisurfl", "fill", "fill3","axis","caxis", "grid","shading","view","hidden","_set" quiver3 and quiver are new. The commands axis, caxis, view, shading, grid where previously supported as property/value pairs in a non-standard way (with respect to Matlab) : Plotlib < 0.3 : plot(1:10,sin(1:10),'axis','equal') Plotlib >=0.3 : plot(1:10,sin(1:10)) axis equal got it ? The new version of the caxis command behaves like in Matlab. Changing the CLim property automatically updates the colors in a shaded plot : pcolor(rand(10,10) shading interp caxis([0 0.5]) typing "caxis auto" restores the automatic scaling. If you don't like the way plots flicker each time you modify a property, use the drawlater/drawnow commands (original Scilab comands) drawlater pcolor(rand(10,10)) shading interp caxis([0 0.5]) colorbar drawnow 2-properties for "leaf" entities 'XData', 'YData', 'ZData', 'CData', 'UData','VData','WData','VertexNormals' 'Color','FaceColor','EdgeColor','BackFaceLighting','LineWidth','LineStyle' 'Marker','MarkerSize','MarkerEdgeColor', 'MarkerFaceColor' Most of these properties can be specified at entity creation time, e.g. plot(t,sin(t),'o','markerfacecolor',[1,0,0],'LineWidth',2) but for the moment XData, YData, ZData, UData, VData, WData can be modified only by using _set. As far as I am concerned, I will use this for animations in XMLlab : [x,y]=meshgrid(-1:0.1:1); h=surf(x,y,cos(x.*x+y.*y)); shading interp _set(h,'cdata',rand(x)); 3-properties for "axes" entities 'XColor','YColor','ZColor','Color' 'XTick','YTick','ZTick' 'XTickLabel','YTickLabel','ZTickLabel' 'XLabel','YLabel','ZLabel','Title','XGrid','YGrid','ZGrid' 'XGridColor','YGridColor','ZGridColor','PlotBoxAspectRatio' 'CLim','XLim','YLim','ZLim' 'CLimMode','XLimMode','YLimMode','ZLimMode' 'XScale','YScale','ZScale' 'ColorOrder','LineStyleOrder' 'Visible','XAxisLocation','YAxisLocation','Light' 'Box','View' All these properties are used by using "_set" : plot(1:10,sin(1:10)); _set(gca(),'xtick',[1 5 10],'xticklabel',['one','five','ten']); 4-funny things : if you make subplots [x,y]=meshgrid(-1:0.1:1); subplot 221; pcolor(x.*x-y.*y); colorbar subplot 222; surfl(x.*x-y.*y); subplot 223; quiver(x,y,-y,x); subplot 224; surf(x.*x+y.*y); grid then you can double-click within an axes box to zoom back and forth a given plot. You can download the new plotlib at the following urls : http://www.lmac.utc.fr/~mottelet/plotlib/plotlib0.3.tgz http://www.lmac.utc.fr/~mottelet/plotlib/plotlib0.3.zip Comments are welcome. If someone wants to contribute, this is now easy to add a missing property. Enjoy ! S. -- St?phane Mottelet Laboratoire de Math?matiques Appliqu?es Universit? de Technologie de Compi?gne http://www.lmac.utc.fr/~mottelet From ricci2 at unisi.it Mon Jul 6 11:27:39 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Mon, 06 Jul 2009 11:27:39 +0200 Subject: hiding a script Message-ID: <4A51C38B.8000709@unisi.it> Hi all, I need to distribuite a scilab script and I would like to 'hide' the script to the users so they will have the ability to run and use the script but they can't change it. Does anybody know whether is it possible to do in scilab ? thanks in advance Maso -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it From florent.lebeau at scilab.org Mon Jul 6 11:40:49 2009 From: florent.lebeau at scilab.org (Florent LEBEAU) Date: Mon, 06 Jul 2009 11:40:49 +0200 Subject: [scilab-Users] hiding a script In-Reply-To: <4A51C38B.8000709@unisi.it> References: <4A51C38B.8000709@unisi.it> Message-ID: <4A51C6A1.8090407@scilab.org> Hi Maso, Unfortunately, not currently. This possibility might appear in future versions. Regards, Florent Maso Ricci a ?crit : > Hi all, > > I need to distribuite a scilab script and I would like to 'hide' the > script to the users so they will have the ability to run and use the > script but they can't change it. > Does anybody know whether is it possible to do in scilab ? > > thanks in advance > > Maso > From Francis.Drossaert at pgs.com Mon Jul 6 11:53:46 2009 From: Francis.Drossaert at pgs.com (Francis Drossaert) Date: Mon, 6 Jul 2009 10:53:46 +0100 Subject: [scilab-Users] hiding a script In-Reply-To: <4A51C6A1.8090407@scilab.org> References: <4A51C38B.8000709@unisi.it> <4A51C6A1.8090407@scilab.org> Message-ID: <6D1269A4C2D21240807B91421B1872550922B8D3@lonms21.onshore.pgs.com> You could change the file permissions to just readable using the chmod command in Unix (or something unwieldy in Windows) to prevent others changing the content of the script. Off course they still can read the text and use it if that is a problem. -----Original Message----- From: Florent LEBEAU [mailto:florent.lebeau at scilab.org] Sent: 06 July 2009 10:41 To: users at lists.scilab.org Subject: Re: [scilab-Users] hiding a script Hi Maso, Unfortunately, not currently. This possibility might appear in future versions. Regards, Florent Maso Ricci a ?crit : > Hi all, > > I need to distribuite a scilab script and I would like to 'hide' the > script to the users so they will have the ability to run and use the > script but they can't change it. > Does anybody know whether is it possible to do in scilab ? > > thanks in advance > > Maso > This e-mail, any attachments and response string may contain proprietary information, which are confidential and may be legally privileged. It is for the intended recipient only and if you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely in this e-mail in any way except as permitted by the author. From ricci2 at unisi.it Mon Jul 6 12:19:45 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Mon, 06 Jul 2009 12:19:45 +0200 Subject: [scilab-Users] hiding a script In-Reply-To: <6D1269A4C2D21240807B91421B1872550922B8D3@lonms21.onshore.pgs.com> References: <4A51C38B.8000709@unisi.it> <4A51C6A1.8090407@scilab.org> <6D1269A4C2D21240807B91421B1872550922B8D3@lonms21.onshore.pgs.com> Message-ID: <4A51CFC1.4080101@unisi.it> Thanks Francis , I was thinking to a solution like the one you suggested but my platform is windows and I am not sure how to change permission in XP and how safe it is. Maso Francis Drossaert wrote: > You could change the file permissions to just readable using the chmod command in Unix (or something unwieldy in Windows) to prevent others changing the content of the script. Off course they still can read the text and use it if that is a problem. > > > -----Original Message----- > From: Florent LEBEAU [mailto:florent.lebeau at scilab.org] > Sent: 06 July 2009 10:41 > To: users at lists.scilab.org > Subject: Re: [scilab-Users] hiding a script > > Hi Maso, > > Unfortunately, not currently. This possibility might appear in future > versions. > Regards, > > Florent > > > Maso Ricci a ?crit : >> Hi all, >> >> I need to distribuite a scilab script and I would like to 'hide' the >> script to the users so they will have the ability to run and use the >> script but they can't change it. >> Does anybody know whether is it possible to do in scilab ? >> >> thanks in advance >> >> Maso >> > > > > This e-mail, any attachments and response string may contain proprietary information, which are confidential and may be legally privileged. It is for the intended recipient only and if you are not the intended recipient or transmission error has misdirected this e-mail, please notify the author by return e-mail and delete this message and any attachment immediately. If you are not the intended recipient you must not use, disclose, distribute, forward, copy, print or rely in this e-mail in any way except as permitted by the author. > -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it From rutledge.michael at gmail.com Mon Jul 6 12:56:38 2009 From: rutledge.michael at gmail.com (Mic) Date: Mon, 6 Jul 2009 11:56:38 +0100 Subject: scipad download? In-Reply-To: References: Message-ID: > > It seems Scipad was not included in the Scilab 5.1.1-alpha Leopard > installaion. I have been searching for a couple of hours and can't find > where to download it from. Anyone know how I can get scipad up and running? > > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Jul 6 13:00:01 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 06 Jul 2009 13:00:01 +0200 Subject: [scilab-Users] Re: scipad download? In-Reply-To: References: Message-ID: <1246878001.11423.17860.camel@korcula.inria.fr> Le lundi 06 juillet 2009 ? 11:56 +0100, Mic a ?crit : > It seems Scipad was not included in the Scilab 5.1.1-alpha > Leopard installaion. I have been searching for a couple of > hours and can't find where to download it from. Anyone know > how I can get scipad up and running? Hello, This problem is due to a incompatibility about the way Tk and Java are handle by the Cocoa. It is why we had to disable Tcl/Tk and therefor Scipad... Sorry about this issue, Sylvestre From ricci2 at unisi.it Thu Jul 9 12:28:10 2009 From: ricci2 at unisi.it (Maso Ricci) Date: Thu, 09 Jul 2009 12:28:10 +0200 Subject: lsqrsolve with ode Message-ID: <4A55C63A.4050704@unisi.it> hi all, I wrote a script for studying some kinetics and would like to fit the the thoeretical data from the script with my real data in order to evaluate the kinetic constants (ki). Is it possible to "combine" the lsqrsolve command with ode ? thanks in advance /maso xg=read('guess3.txt',-1,1); iSize=size(xg); for i = 1:iSize(1) //x0(i)=[x1(i)]; end function dx = purineval(t,x) f1 = k1*x(1)*x(2) f2=k2*x(4)*x(3) f3=k3*x(4) dx(1)=-f1+f2 dx(2)=f1/2+f2 dx(3)=-f1-f2 dx(4)=-f2-f3 dx(5)=f3 endfunction k1=0.32*10^(-3); k2=14.3*10^(-6); k3= 5.3 *10^(-5) ; t=0:10000:1000000; x0=[xg(1);xg(2);xg(3);xg(4);xg(5)]; x=ode(x0, 0, t ,purineval); xbasc() plot2d(t,x(1,:), style=1) plot2d(t,x(2,:), style=2) plot2d(t,x(3,:), style=3) plot2d(t,x(4,:), style=4) plot2d(t,x(5,:), style=5) -- Maso Ricci Ph.D. Dipartimento Farmaco Chimico Tecnologico Universit? degli Studi di Siena Via A. Moro, 2 ? 53100 Siena ITALY Tel: +39 0577 234367 Fax: +39 0577 234177 email: ricci2 at unisi.it From dianitais at gmail.com Thu Jul 9 22:00:34 2009 From: dianitais at gmail.com (Dianita) Date: Thu, 9 Jul 2009 15:00:34 -0500 Subject: Doubt_Scilab Message-ID: Good afternoon, I'm working with Scilab 3.0 and Visual c++ standard edition 4.0 version, I'm trying to do a interface program between C and Scilab, I'm following a pdf called "Introduction SCILAB" in this I find an example in the section 6.2.2 but always I get an error, attached the pdf and the .txt file with the error....the run example is when they talk about dynamic library , I change the directory to ('C:\Archivos de programa\scilab-3.0\examples\interface-tutorial-so') where is the example, then exec the builder.sce but the nmake is not recognized, however on the directory "BIN" in visual c++ appears "nmake", I change the path too, I don't know what else to do. I thank in advance the help they can give me. ============================================================ -->chdir('C:\Archivos de programa\scilab-3.0\examples\interface-tutorial-so'); -->exec builder.sce -->// This is the builder.sce -->// must be run from this directory -->ilib_name = 'libtutorial' // interface library name ilib_name = libtutorial -->files = ['intview.o','intmatmul.o'] // objects files files = !intview.o intmatmul.o ! --> // -->libs = [] // other libs needed for linking libs = [] -->table = [ 'view', 'intview'; // table of (scilab_name,interface-name) --> 'matmul','intmatmul']; // for fortran coded interface use 'C2F(name)' -->// do not modify below -->// ---------------------------------------------- -->ilib_build(ilib_name,table,files,libs) generate a gateway file generate a loader file generate a Makefile: Makelib running the makefile compilation of intview Makelib.mak(12) : fatal error U1033: syntax error : 'de programa\scilab-3.0\Makefile.incl.mak' unexpected Stop. !--error 9999 unix_s: error during ``nmake /nologo /f Makelib.mak intview.obj'' execution at line 50 of function unix_s called by : line 25 of function ilib_compile called by : line 20 of function ilib_build called by : ilib_build(ilib_name,table,files,libs) line -25 of exec file called by : exec builder.sce --> ============================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- -->chdir('C:\Archivos de programa\scilab-3.0\examples\interface-tutorial-so'); -->exec builder.sce -->// This is the builder.sce -->// must be run from this directory -->ilib_name = 'libtutorial' // interface library name ilib_name = libtutorial -->files = ['intview.o','intmatmul.o'] // objects files files = !intview.o intmatmul.o ! --> // -->libs = [] // other libs needed for linking libs = [] -->table = [ 'view', 'intview'; // table of (scilab_name,interface-name) --> 'matmul','intmatmul']; // for fortran coded interface use 'C2F(name)' -->// do not modify below -->// ---------------------------------------------- -->ilib_build(ilib_name,table,files,libs) generate a gateway file generate a loader file generate a Makefile: Makelib running the makefile compilation of intview Makelib.mak(12) : fatal error U1033: syntax error : 'de programa\scilab-3.0\Makefile.incl.mak' unexpected Stop. !--error 9999 unix_s: error during ``nmake /nologo /f Makelib.mak intview.obj'' execution at line 50 of function unix_s called by : line 25 of function ilib_compile called by : line 20 of function ilib_build called by : ilib_build(ilib_name,table,files,libs) line -25 of exec file called by : exec builder.sce --> -------------- next part -------------- A non-text attachment was scrubbed... Name: Introducci?n SCILAB.pdf Type: application/pdf Size: 605803 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Thu Jul 9 23:19:39 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 09 Jul 2009 23:19:39 +0200 Subject: [scilab-Users] Doubt_Scilab In-Reply-To: References: Message-ID: <1247174379.5082.57.camel@zlarin> Hello, Le jeudi 09 juillet 2009 ? 15:00 -0500, Dianita a ?crit : > Good afternoon, > I'm working with Scilab 3.0 Scilab 3.0 is a very old and outdated version. Could you try with a more recent version ? A lot of work has been done on these functions during the last few years. Sylvestre > and Visual c++ standard edition 4.0 version, I'm trying to do a > interface program between C and Scilab, I'm following a pdf called > "Introduction SCILAB" in this I find an example in the section 6.2.2 > but always I get an error, attached the pdf and the .txt file with the > error....the run example is when they talk about dynamic library , I > change the directory to ('C:\Archivos de programa\scilab-3.0\examples > \interface-tutorial-so') where is the example, then exec the > builder.sce but the nmake is not recognized, however on the directory > "BIN" in visual c++ appears "nmake", I change the path too, I don't > know what else to do. > > I thank in advance the help they can give me. > > ============================================================ > -->chdir('C:\Archivos de programa\scilab-3.0\examples > \interface-tutorial-so'); > > -->exec builder.sce > > -->// This is the builder.sce > > -->// must be run from this directory > > > -->ilib_name = 'libtutorial' // interface library name > ilib_name = > > libtutorial > > -->files = ['intview.o','intmatmul.o'] // objects files > files = > > !intview.o intmatmul.o ! > > --> // > > -->libs = [] // other libs needed for > linking > libs = > > [] > > -->table = [ 'view', 'intview'; // table of > (scilab_name,interface-name) > --> 'matmul','intmatmul']; // for fortran coded interface > use 'C2F(name)' > > > -->// do not modify below > > -->// ---------------------------------------------- > > -->ilib_build(ilib_name,table,files,libs) > generate a gateway file > generate a loader file > generate a Makefile: Makelib > running the makefile > compilation of intview > Makelib.mak(12) : fatal error U1033: syntax error : 'de programa > \scilab-3.0\Makefile.incl.mak' unexpected > Stop. > !--error 9999 > unix_s: error during ``nmake /nologo /f Makelib.mak intview.obj'' > execution > at line 50 of function unix_s called by : > line 25 of function ilib_compile called by : > line 20 of function ilib_build called by : > ilib_build(ilib_name,table,files,libs) > line -25 of exec file called by : > exec builder.sce > > --> > ============================================================ From stephane.mottelet at utc.fr Fri Jul 10 15:59:16 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Fri, 10 Jul 2009 15:59:16 +0200 Subject: XMLlab 1.71 is out ! Message-ID: <4A574934.3020603@utc.fr> Hi all, XMLlab is now fully compatible with Scilab 5. Graphics are now faster with Scilab 5 compared to previous versions. I am currently working on a completely revamped version of the Plotlib, which will allow even faster interactive graphics with the next version of XMLlab. http://xmllab.org Enjoy ! S. From daniel.lindstedt at gmx.de Sun Jul 12 16:06:51 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 16:06:51 +0200 Subject: /modules/core/macros/lib missing after compiling sources Message-ID: <6B0F996D-FFED-41ED-BC0F-8CEE84846EC3@gmx.de> Hello there, I've got a problem running SciLab on my Mac. I tried to use the binary, but it didn't work, it couldn't find scipad, so I hoped that it could work with the sources. I downloaded them and compiled them, using "--without-pvm --without-hdf5" as settings for ./configure( and of course the right prefix) and now, running the binary that it created in the "bin" directory, the usual scilab window opens, but there's an error occurring: load('SCI/modules/core/macros/lib'); !--error 241 File 'SCI/modules/core/macros/lib' doesn't exist or restricts acces. at line 11 of exec file called by : +modules(i)+".start",-1) line 100 of exec file called by : exec('SCI/etc/scilab.start',-1);; After that, the usual prompt appears and I can, as far as I tested it, use the program in a usual way( well, I can define Variables, Functions, I can use for example rand module) but I cannot start scipad, for example. If I try, I get: "Error 4: Undefined Variable: scipad"... But there's something else missing: That bar, on top of the window, that usually appears, where you can choose scipad, cut, copy and that kind of stuff, I think that is the "javasci" element(to me, it seemed to be java), that bar doesn't exist. I did not set the "--without- javasci" option. Does anyone have an idea, where that bar went? I would be quite interested in having it. But back to the original problem: I looked into the directory it called, and found that there is no lib directory. There's a bunch of .sci's and .bin's and that's it. I didn't get any error messages of configure, make and make install that had any connection with core/lib or something like this. Well, I had the idea, that the problem could easily be solved by simply downloading the file and it's contents from somewhere, but I didn't find anything on web... Does anyone have an idea, why file wasn't created during compile? Thank you in advace Daniel Lindstedt From ycollet at freesurf.fr Sun Jul 12 12:24:14 2009 From: ycollet at freesurf.fr (Collette Yann) Date: Sun, 12 Jul 2009 12:24:14 +0200 Subject: [scilab-Users] /modules/core/macros/lib missing after compiling sources In-Reply-To: <6B0F996D-FFED-41ED-BC0F-8CEE84846EC3@gmx.de> References: <6B0F996D-FFED-41ED-BC0F-8CEE84846EC3@gmx.de> Message-ID: <4A59B9CE.5080804@freesurf.fr> Can you try: make clean-macros make macros Install and the launch scilab ? YC From daniel.lindstedt at gmx.de Sun Jul 12 20:07:51 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 20:07:51 +0200 Subject: /modules/core/macros/lib missing after compiling sources Message-ID: <42F1B293-DB0F-4B86-871D-082FAA7F957A@gmx.de> Well, I couldn't make clean-makros, it resolved an error: -- Cleaning macros (*.bin) -- -- Cleaning names files (names) -- -- Cleaning lib files (lib) -- make: *** [clean-macros] Error 1 Well, the fact that it did stop executing at lib files makes me think... Though, after make makros and make install, it still doesn't work, scilab returns the same error as before. From yann.collette at scilab.org Sun Jul 12 15:40:22 2009 From: yann.collette at scilab.org (Yann Collette) Date: Sun, 12 Jul 2009 15:40:22 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources In-Reply-To: <42F1B293-DB0F-4B86-871D-082FAA7F957A@gmx.de> References: <42F1B293-DB0F-4B86-871D-082FAA7F957A@gmx.de> Message-ID: <4A59E7C6.5000001@scilab.org> Daniel Lindstedt a ?crit : > Well, I couldn't make clean-makros, it resolved an error: > > -- Cleaning macros (*.bin) -- > -- Cleaning names files (names) -- > -- Cleaning lib files (lib) -- > make: *** [clean-macros] Error 1 > > Well, the fact that it did stop executing at lib files makes me think... > Though, after make makros and make install, it still doesn't work, > scilab returns the same error as before. Can you do a: make > log.txt 2>&1 And then post the log.txt in the mailing list ? YC From daniel.lindstedt at gmx.de Sun Jul 12 20:30:45 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 20:30:45 +0200 Subject: /modules/core/macros/lib missing after compiling sources Message-ID: <93C3FA05-78F2-4056-BA46-DC1D112C4EC5@gmx.de> Here you are. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log.txt URL: -------------- next part -------------- From yann.collette at scilab.org Sun Jul 12 16:06:12 2009 From: yann.collette at scilab.org (Yann Collette) Date: Sun, 12 Jul 2009 16:06:12 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources In-Reply-To: <93C3FA05-78F2-4056-BA46-DC1D112C4EC5@gmx.de> References: <93C3FA05-78F2-4056-BA46-DC1D112C4EC5@gmx.de> Message-ID: <4A59EDD4.3070503@scilab.org> Everything seems to be fine. Now, in your build directory, do a: bin/scilab Does it works here ? If it does not work, do a make install > log.txt 2>&1 and post the new log. YC From daniel.lindstedt at gmx.de Sun Jul 12 20:52:29 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 20:52:29 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources Message-ID: <3EDE2C65-5FD5-4DFA-B30A-6EED9E19F70B@gmx.de> Well, now what happens is quite interesting: Scilab opens, the error message does NOT appear. Thank you very much for solving that problem Now I've got a new one^^: The scipad still isn't running. As soon as I click on one of the buttons in that bar on top of the window(thank you for solving that problem[that the bar doesn't appear], too) that should launch scipad, the program crashes with the following message displayed(by mac's crash reporter): KERN PROTECTION FAILURE 0 ??? 0000000000 0 + 0 1 com.tcltk.tklibrary 0x0b05273f TkRegisterObjTypes + 27 2 com.tcltk.tklibrary 0x0b076ad7 Initialize + 96 3 libtcl8.4.dylib 0x020bccbd Tcl_LoadObjCmd + 1819 4 libtcl8.4.dylib 0x0207ba00 TclEvalObjvInternal + 770 5 libtcl8.4.dylib 0x0207bd16 Tcl_EvalEx + 494 6 libtcl8.4.dylib 0x0207c129 Tcl_Eval + 42 7 libscitclsci.5.dylib 0x01f8fed5 evaluateTclCommand + 37 (TCL_Command.c:95) 8 libscitclsci.5.dylib 0x01f90031 startTclLoop + 289 (TCL_Command.c:187) 9 libscitclsci.5.dylib 0x01f8e604 DaemonOpenTCLsci + 500 (InitTclTk.c:189) 10 libSystem.B.dylib 0x91117155 _pthread_start + 321 11 libSystem.B.dylib 0x91117012 thread_start + 34 and that one by terminal: bin/scilab: line 469: 46878 Bus error "$SCILABBIN" "$@" Now, do you still have any ideas, what errors could occur here? I also appended another log.txt of make, as you said. But I do already thank you very much again for solving the macros/lib problem(though I don't know what exactly was changed by your mental presence, as most of the things I did were the same as everytime...) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log.txt URL: -------------- next part -------------- From yann.collette at scilab.org Sun Jul 12 16:24:43 2009 From: yann.collette at scilab.org (Yann Collette) Date: Sun, 12 Jul 2009 16:24:43 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources In-Reply-To: <3EDE2C65-5FD5-4DFA-B30A-6EED9E19F70B@gmx.de> References: <3EDE2C65-5FD5-4DFA-B30A-6EED9E19F70B@gmx.de> Message-ID: <4A59F22B.2050407@scilab.org> So, you are using a mac. Sorry to say that, but for now, scipad is not working on mac yet. You will have to wait until scilab-5.2 is released to have a working editor on mac. Today, the TCL/TK part is not working because it does not work when java is working. So, be patient for this one ... Yc Daniel Lindstedt a ?crit : > Well, now what happens is quite interesting: > Scilab opens, the error message does NOT appear. > Thank you very much for solving that problem > Now I've got a new one^^: > The scipad still isn't running. As soon as I click on one of the > buttons in that bar on top of the window(thank you for solving that > problem[that the bar doesn't appear], too) that should launch scipad, > the program crashes with the following message displayed(by mac's > crash reporter): > > KERN PROTECTION FAILURE > 0 ??? 0000000000 0 + 0 > 1 com.tcltk.tklibrary 0x0b05273f TkRegisterObjTypes + 27 > 2 com.tcltk.tklibrary 0x0b076ad7 Initialize + 96 > 3 libtcl8.4.dylib 0x020bccbd Tcl_LoadObjCmd + 1819 > 4 libtcl8.4.dylib 0x0207ba00 TclEvalObjvInternal + > 770 > 5 libtcl8.4.dylib 0x0207bd16 Tcl_EvalEx + 494 > 6 libtcl8.4.dylib 0x0207c129 Tcl_Eval + 42 > 7 libscitclsci.5.dylib 0x01f8fed5 evaluateTclCommand + > 37 (TCL_Command.c:95) > 8 libscitclsci.5.dylib 0x01f90031 startTclLoop + 289 > (TCL_Command.c:187) > 9 libscitclsci.5.dylib 0x01f8e604 DaemonOpenTCLsci + > 500 (InitTclTk.c:189) > 10 libSystem.B.dylib 0x91117155 _pthread_start + 321 > 11 libSystem.B.dylib 0x91117012 thread_start + 34 > > > and that one by terminal: > > bin/scilab: line 469: 46878 Bus error "$SCILABBIN" "$@" > > Now, do you still have any ideas, what errors could occur here? > > I also appended another log.txt of make, as you said. > > But I do already thank you very much again for solving the macros/lib > problem(though I don't know what exactly was changed by your mental > presence, as most of the things I did were the same as everytime...) > ------------------------------------------------------------------------ > > > > From daniel.lindstedt at gmx.de Sun Jul 12 20:58:03 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 20:58:03 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources Message-ID: Oh no. Okay, that's quite sad, but not to change. Thank you very much though. Daniel Lindstedt From fvogelnew1 at free.fr Sun Jul 12 16:57:50 2009 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 12 Jul 2009 16:57:50 +0200 Subject: [scilab-Users] Re: /modules/core/macros/lib missing after compiling sources In-Reply-To: <4A59F22B.2050407@scilab.org> References: <3EDE2C65-5FD5-4DFA-B30A-6EED9E19F70B@gmx.de> <4A59F22B.2050407@scilab.org> Message-ID: <4A59F9EE.5000100@free.fr> Yann Collette said on 12/07/2009 16:24: > So, you are using a mac. > Sorry to say that, but for now, scipad is not working on mac yet. > You > will have to wait until scilab-5.2 is released to have a working editor > on mac. How nicely, cleverly, and carefully this is expressed... Each and every word above counts. Decrypting exercise: 1. "Scipad is not working on mac yet": According to the opteam, Scipad does not work on MacOSX since they couldn't make Tcl work on this platform, for some java-related reason. See bug 4541 plus periodic duplicate requests on the mailing lists. I'm wondering what's their plan on this. I did not read anything so far about any intention of the opteam to resolve this Tcl - Java issue. My guess is there is no plan because Scipad will die from Scilab (see 2. below). 2. "You will have to wait until scilab-5.2 is released to have a working editor on mac" Again, you have to read between lines here. He does not tell you that this editor will be Scipad, and indeed it will not. They are developing a fresh new editor. Details about the plan here: http://groups.google.fr/group/comp.soft-sys.math.scilab/msg/ac0621f4cbb7b489?hl=fr I'm really curious to see when they will have the same level of performance as Scipad has, in particular the debugger of the new editor. Francois From daniel.lindstedt at gmx.de Sun Jul 12 04:58:05 2009 From: daniel.lindstedt at gmx.de (Daniel Lindstedt) Date: Sun, 12 Jul 2009 04:58:05 +0200 Subject: modules/core/macros/lib missing Message-ID: <5E934E82-5E4D-4416-8423-DB912292C3F4@gmx.de> Hello there, I've got a problem running SciLab on my mac. I tried to use the binary, but it didn't work, it couldn't find scipad, so I hoped that it could work with the sources. I downloaded them and compiled them, using "--without-pvm --without-hdf5" as settings for ./configure( and of course the right prefix) and now, running the binary that it created in the "bin" directory, the usual scilab window opens, but there's an error occurring: load('SCI/modules/core/macros/lib'); !--error 241 File 'SCI/modules/core/macros/lib' doesn't exist or restricts acces. at line 11 of exec file called by : +modules(i)+".start",-1) line 100 of exec file called by : exec('SCI/etc/scilab.start',-1);; After that, the usual prompt appears and I can, as far as I tested it, use some modules, for example the "rand" module is working. But there's something else missing: That bar, on top of the window, that usually appears, where you can choose scipad, cut, copy and that kind of stuff, I think that is the "javasci" element(to me, it seemed to be java), that bar doesn't exist. I did not set the "--without- javasci" option. Does anyone have an idea, where that bar went? I would be quite interested in having it. But back to the original problem: I looked into the directory it called, and found that there is no lib directory. There's a bunch of .sci's and .bin's and that's it. I didn't get any error messages of configure, make and make install that had any connection with core/lib or something like this. Well, I had the idea, that the problem could easily be solved by simply downloading the file and it's contents from somewhere, but I didn't find anything on web... Does anyone have an idea, why file wasn't created during compile? Thank you in advace Daniel Lindstedt From adelson.oliveira at gmail.com Mon Jul 13 13:27:26 2009 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 13 Jul 2009 08:27:26 -0300 Subject: printf is broken Message-ID: <246780b40907130427r1743e3a4j9db46852b7b3bbd3@mail.gmail.com> Using scilab-5.1.1 64bits binary for linux downloaded from scilab home page. The following code, y=1/20 makes scilab crash with messages, At line 27 of file src/fortran/formatnumber.f Internal Error: printf is broken Installed c and fortran libraries are, gcc-java-4.1.1-52.el5 gcc-gfortran-4.1.1-52.el5 compat-libgcc-296-2.96-138 gcc-objc-4.1.1-52.el5 compat-gcc-34-g77-3.4.6-4 libgcc-4.1.1-52.el5 gcc-gnat-4.1.1-52.el5 compat-gcc-34-c++-3.4.6-4 gcc-c++-4.1.1-52.el5 compat-gcc-34-3.4.6-4 gcc-4.1.1-52.el5 libgcc-4.1.1-52.el5 This is a CENTOS linux system Did anybody have this problem? Does someone know how to correct this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollet at freesurf.fr Mon Jul 13 14:05:11 2009 From: ycollet at freesurf.fr (Collette Yann) Date: Mon, 13 Jul 2009 14:05:11 +0200 Subject: [scilab-Users] printf is broken In-Reply-To: <246780b40907130427r1743e3a4j9db46852b7b3bbd3@mail.gmail.com> References: <246780b40907130427r1743e3a4j9db46852b7b3bbd3@mail.gmail.com> Message-ID: <4A5B22F7.8080601@freesurf.fr> Hello, Works fine on the current master. This bug has been corrected a while ago. Tested on linux mandriva 2009.1 64 bits. YC Adelson Oliveira a ?crit : > Using scilab-5.1.1 64bits binary for linux downloaded from scilab home > page. > > The following code, > > > y=1/20 > > makes scilab crash with messages, > > At line 27 of file src/fortran/formatnumber.f > Internal Error: printf is broken > > Installed c and fortran libraries are, > > gcc-java-4.1.1-52.el5 > gcc-gfortran-4.1.1-52.el5 > compat-libgcc-296-2.96-138 > gcc-objc-4.1.1-52.el5 > compat-gcc-34-g77-3.4.6-4 > libgcc-4.1.1-52.el5 > gcc-gnat-4.1.1-52.el5 > compat-gcc-34-c++-3.4.6-4 > gcc-c++-4.1.1-52.el5 > compat-gcc-34-3.4.6-4 > gcc-4.1.1-52.el5 > libgcc-4.1.1-52.el5 > > This is a CENTOS linux system > > Did anybody have this problem? Does someone know how to correct this? > > Thanks From adelson.oliveira at gmail.com Mon Jul 13 19:02:41 2009 From: adelson.oliveira at gmail.com (Adelson Oliveira) Date: Mon, 13 Jul 2009 14:02:41 -0300 Subject: [scilab-Users] printf is broken In-Reply-To: <4A5B22F7.8080601@freesurf.fr> References: <246780b40907130427r1743e3a4j9db46852b7b3bbd3@mail.gmail.com> <4A5B22F7.8080601@freesurf.fr> Message-ID: <246780b40907131002v68b52bbekd3e8b73126fd0fb4@mail.gmail.com> I was googling and found out that gfortran has a bug with non-english locale and printf. This is the cause for scilab to crash in systems with old versions of gfortran. I have scilab rpm 64 bits Mandriva 2009.1 at home and no problems as well. However, I cannot change the linux distribution in my job. Thus, as a workaround, I am making, LC_ALL=en_US.utf8 ./scilab Thanks 2009/7/13 Collette Yann > Hello, > > Works fine on the current master. This bug has been corrected a while ago. > Tested on linux mandriva 2009.1 64 bits. > > YC > > Adelson Oliveira a ?crit : > > Using scilab-5.1.1 64bits binary for linux downloaded from scilab home >> page. >> >> The following code, >> >> >> y=1/20 >> >> makes scilab crash with messages, >> >> At line 27 of file src/fortran/formatnumber.f >> Internal Error: printf is broken >> >> Installed c and fortran libraries are, >> >> gcc-java-4.1.1-52.el5 >> gcc-gfortran-4.1.1-52.el5 >> compat-libgcc-296-2.96-138 >> gcc-objc-4.1.1-52.el5 >> compat-gcc-34-g77-3.4.6-4 >> libgcc-4.1.1-52.el5 >> gcc-gnat-4.1.1-52.el5 >> compat-gcc-34-c++-3.4.6-4 >> gcc-c++-4.1.1-52.el5 >> compat-gcc-34-3.4.6-4 >> gcc-4.1.1-52.el5 >> libgcc-4.1.1-52.el5 >> >> This is a CENTOS linux system >> >> Did anybody have this problem? Does someone know how to correct this? >> >> Thanks >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at ac-rennes.fr Wed Jul 22 14:13:00 2009 From: calixte.denizet at ac-rennes.fr (Calixte Denizet) Date: Wed, 22 Jul 2009 14:13:00 +0200 Subject: Toolbox to connect Scilab and Maxima Message-ID: <1248264780.4154.6.camel@debian> Hi, I wrote (in C and in Lisp) a new toolbox to make symbolic calculus in Scilab with Maxima. You can download it : http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1230 It needs the Overload Toolbox : http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1221 It was developped under Gnu/Linux and it was not tested under others systems. I'm waiting for your comments. Calixte Denizet From msvilans at aeonyx.ca Tue Jul 21 19:38:11 2009 From: msvilans at aeonyx.ca (Markus Svilans) Date: Tue, 21 Jul 2009 13:38:11 -0400 Subject: Cascaded IIR filter design Message-ID: <4A65FD03.3090306@aeonyx.ca> Hello, I would like to use Scilab to design a cascaded IIR filter. I'm able to design a filter using iir(), as in the following example code: ystr=[ 'type (lp, hp, bp, sb) '; 'order (integer)'; 'design (butt, cheb1, cheb2 , ellip)' ; 'cut-off frequencies (2-vector in [0, 0.5])'; 'error values 0 delta(1),delta(2) 1 ']; w = x_mdialog('Choose filter type and parameters',... ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) if w<>[] then hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); [hzm,fr]=frmag(hz,256); xselect(); plot2d(fr',hzm') xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); hz end My question is, how can I convert the z domain expression in hz to a set of coefficients suitable for use in a cascaded IIR filter implementation? Any help would be greatly appreciated. Best regards, Markus. (also posted in the comp.soft-sys.math.scilab group) From adelson.oliveira at gmail.com Thu Jul 23 04:00:20 2009 From: adelson.oliveira at gmail.com (Adelson Santos de Oliveira) Date: Wed, 22 Jul 2009 23:00:20 -0300 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A65FD03.3090306@aeonyx.ca> References: <4A65FD03.3090306@aeonyx.ca> Message-ID: <4A67C434.7060904@gmail.com> Do you mean, coef_hz=coeff(hz) ? coef_hz is a vector with the coefficients of hz. coefhz=coeff Markus Svilans escreveu: > Hello, > > I would like to use Scilab to design a cascaded IIR filter. > > I'm able to design a filter using iir(), as in the following example > code: > > ystr=[ 'type (lp, hp, bp, sb) '; > 'order (integer)'; > 'design (butt, cheb1, cheb2 , ellip)' ; > 'cut-off frequencies (2-vector in [0, 0.5])'; > 'error values 0 delta(1),delta(2) 1 ']; > w = x_mdialog('Choose filter type and parameters',... > ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) > > if w<>[] then > hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); > [hzm,fr]=frmag(hz,256); > xselect(); > plot2d(fr',hzm') > xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); > > hz > end > > My question is, how can I convert the z domain expression in hz to a > set of coefficients suitable for use in a cascaded IIR filter > implementation? Any help would be greatly appreciated. > > Best regards, > Markus. > > (also posted in the comp.soft-sys.math.scilab group) > > From msvilans at gmail.com Thu Jul 23 22:57:21 2009 From: msvilans at gmail.com (Markus Svilans) Date: Thu, 23 Jul 2009 16:57:21 -0400 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A67C434.7060904@gmail.com> References: <4A65FD03.3090306@aeonyx.ca> <4A67C434.7060904@gmail.com> Message-ID: <4A68CEB1.1000303@gmail.com> Adelson, Thanks for your response. It doesn't seem to work. The error message I get is: -- Function not defined for given argument type(s), check arguments or define function %r_coeff for overloading. -- I'm looking for a way to get the b0, b1, a1, b2, a2, ... coefficients required for a cascaded IIR. From what I understand, there is an algorithm by which they are computed from the z-domain coefficients hz. Regards, Markus. Adelson Santos de Oliveira wrote: > Do you mean, > > coef_hz=coeff(hz) ? > > coef_hz is a vector with the coefficients of hz. > > coefhz=coeff > Markus Svilans escreveu: >> Hello, >> >> I would like to use Scilab to design a cascaded IIR filter. >> >> I'm able to design a filter using iir(), as in the following example >> code: >> >> ystr=[ 'type (lp, hp, bp, sb) '; >> 'order (integer)'; >> 'design (butt, cheb1, cheb2 , ellip)' ; >> 'cut-off frequencies (2-vector in [0, 0.5])'; >> 'error values 0 delta(1),delta(2) 1 ']; >> w = x_mdialog('Choose filter type and parameters',... >> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >> >> if w<>[] then >> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >> [hzm,fr]=frmag(hz,256); >> xselect(); >> plot2d(fr',hzm') >> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >> >> hz >> end >> >> My question is, how can I convert the z domain expression in hz to a >> set of coefficients suitable for use in a cascaded IIR filter >> implementation? Any help would be greatly appreciated. >> >> Best regards, >> Markus. >> >> (also posted in the comp.soft-sys.math.scilab group) >> >> > From adelson.oliveira at gmail.com Fri Jul 24 03:45:29 2009 From: adelson.oliveira at gmail.com (Adelson Santos de Oliveira) Date: Thu, 23 Jul 2009 22:45:29 -0300 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A68CEB1.1000303@gmail.com> References: <4A65FD03.3090306@aeonyx.ca> <4A67C434.7060904@gmail.com> <4A68CEB1.1000303@gmail.com> Message-ID: <4A691239.30605@gmail.com> Sorry, I did not analyse your program. I supposed that hz is a polinomial according to SCILAB definition. See the following example and check if you can adapt it to your needs, Polz=poly([1,2,3],'Z','coefs') <= this define a polynomial in variable Z, maybe your hz is not a polynomial for SCILAB coefz=coeff(Polz) <= this will return the coefficients 1, 2, and 3 Markus Svilans escreveu: > Adelson, > > Thanks for your response. > > It doesn't seem to work. The error message I get is: > > -- > Function not defined for given argument type(s), > > check arguments or define function %r_coeff for overloading. > -- > > I'm looking for a way to get the b0, b1, a1, b2, a2, ... coefficients > required for a cascaded IIR. From what I understand, there is an > algorithm by which they are computed from the z-domain coefficients hz. > > Regards, > Markus. > > > Adelson Santos de Oliveira wrote: >> Do you mean, >> >> coef_hz=coeff(hz) ? >> >> coef_hz is a vector with the coefficients of hz. >> >> coefhz=coeff >> Markus Svilans escreveu: >>> Hello, >>> >>> I would like to use Scilab to design a cascaded IIR filter. >>> >>> I'm able to design a filter using iir(), as in the following example >>> code: >>> >>> ystr=[ 'type (lp, hp, bp, sb) '; >>> 'order (integer)'; >>> 'design (butt, cheb1, cheb2 , ellip)' ; >>> 'cut-off frequencies (2-vector in [0, 0.5])'; >>> 'error values 0 delta(1),delta(2) 1 ']; >>> w = x_mdialog('Choose filter type and parameters',... >>> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >>> >>> if w<>[] then >>> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >>> [hzm,fr]=frmag(hz,256); >>> xselect(); >>> plot2d(fr',hzm') >>> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >>> >>> hz >>> end >>> >>> My question is, how can I convert the z domain expression in hz to a >>> set of coefficients suitable for use in a cascaded IIR filter >>> implementation? Any help would be greatly appreciated. >>> >>> Best regards, >>> Markus. >>> >>> (also posted in the comp.soft-sys.math.scilab group) >>> >>> >> > > From msvilans at gmail.com Fri Jul 24 04:02:21 2009 From: msvilans at gmail.com (Markus Svilans) Date: Thu, 23 Jul 2009 22:02:21 -0400 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A691239.30605@gmail.com> References: <4A65FD03.3090306@aeonyx.ca> <4A67C434.7060904@gmail.com> <4A68CEB1.1000303@gmail.com> <4A691239.30605@gmail.com> Message-ID: <4A69162D.4000702@gmail.com> Hi Adelson, Thanks for your response. I think hz must be a Scilab rational polynomial. Here are its contents: -->hz hz = 2 3 4 5 6 - 0.0513754 + 0.0469923z - 0.0057700z + 2.282D-17z + 0.0057700z - 0.0469923z + 0.0513754z --------------------------------------------------------------------------------------- 2 3 4 5 6 0.5046613 - 1.0416559z + 2.4270369z - 2.6222075z + 2.9969513z - 1.6458787z + z From what I have been able to research so far, I am starting to feel that it's not possible to get Scilab to directly return the a,b cascaded IIR coefficients. Perhaps, could you lend your expertise on these related questions: 1. How to get the poles of hz? 2. How to get the zeroes of hz? Knowing the poles and zeroes, I can hope to derive the IIR coefficients by hand. Thanks very much, Markus. Adelson Santos de Oliveira wrote: > Sorry, > > I did not analyse your program. I supposed that hz is a polinomial > according to SCILAB definition. See the following example and check > if you can adapt it to your needs, > > > Polz=poly([1,2,3],'Z','coefs') <= this define a polynomial in > variable Z, maybe your hz is not a polynomial for SCILAB > > coefz=coeff(Polz) <= this will return the > coefficients 1, 2, and 3 > > > Markus Svilans escreveu: >> Adelson, >> >> Thanks for your response. >> >> It doesn't seem to work. The error message I get is: >> >> -- >> Function not defined for given argument type(s), >> >> check arguments or define function %r_coeff for overloading. >> -- >> >> I'm looking for a way to get the b0, b1, a1, b2, a2, ... coefficients >> required for a cascaded IIR. From what I understand, there is an >> algorithm by which they are computed from the z-domain coefficients hz. >> >> Regards, >> Markus. >> >> >> Adelson Santos de Oliveira wrote: >>> Do you mean, >>> >>> coef_hz=coeff(hz) ? >>> >>> coef_hz is a vector with the coefficients of hz. >>> >>> coefhz=coeff >>> Markus Svilans escreveu: >>>> Hello, >>>> >>>> I would like to use Scilab to design a cascaded IIR filter. >>>> >>>> I'm able to design a filter using iir(), as in the following example >>>> code: >>>> >>>> ystr=[ 'type (lp, hp, bp, sb) '; >>>> 'order (integer)'; >>>> 'design (butt, cheb1, cheb2 , ellip)' ; >>>> 'cut-off frequencies (2-vector in [0, 0.5])'; >>>> 'error values 0 delta(1),delta(2) 1 ']; >>>> w = x_mdialog('Choose filter type and parameters',... >>>> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >>>> >>>> if w<>[] then >>>> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >>>> [hzm,fr]=frmag(hz,256); >>>> xselect(); >>>> plot2d(fr',hzm') >>>> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >>>> >>>> hz >>>> end >>>> >>>> My question is, how can I convert the z domain expression in hz to a >>>> set of coefficients suitable for use in a cascaded IIR filter >>>> implementation? Any help would be greatly appreciated. >>>> >>>> Best regards, >>>> Markus. >>>> >>>> (also posted in the comp.soft-sys.math.scilab group) >>>> >>>> >>> >> >> > From adelson.oliveira at gmail.com Sat Jul 25 04:03:13 2009 From: adelson.oliveira at gmail.com (Adelson Santos de Oliveira) Date: Fri, 24 Jul 2009 23:03:13 -0300 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A69162D.4000702@gmail.com> References: <4A65FD03.3090306@aeonyx.ca> <4A67C434.7060904@gmail.com> <4A68CEB1.1000303@gmail.com> <4A691239.30605@gmail.com> <4A69162D.4000702@gmail.com> Message-ID: <4A6A67E1.1000300@gmail.com> Sorry, I would like to help but I can make only general comments. I would not go into the subject of your work. If hz were a Scilab polynomial, getting poles and zeroes would be straightforward from numerator and denominator ... I can only suggest you find a way to decompose hz into scilab objects (polys, ....), Good luck, Adelson Markus Svilans escreveu: > Hi Adelson, > > Thanks for your response. > I think hz must be a Scilab rational polynomial. Here are its contents: > > -->hz > hz = > > 2 3 > 4 5 6 - 0.0513754 + 0.0469923z - 0.0057700z + > 2.282D-17z + 0.0057700z - 0.0469923z + 0.0513754z > --------------------------------------------------------------------------------------- > > 2 3 > 4 5 6 0.5046613 - 1.0416559z + 2.4270369z - > 2.6222075z + 2.9969513z - 1.6458787z + z > > From what I have been able to research so far, I am starting to feel > that it's not possible to get Scilab to directly return the a,b > cascaded IIR coefficients. > > Perhaps, could you lend your expertise on these related questions: > 1. How to get the poles of hz? > 2. How to get the zeroes of hz? > > Knowing the poles and zeroes, I can hope to derive the IIR > coefficients by hand. > > Thanks very much, > Markus. > > > > Adelson Santos de Oliveira wrote: >> Sorry, >> >> I did not analyse your program. I supposed that hz is a polinomial >> according to SCILAB definition. See the following example and check >> if you can adapt it to your needs, >> >> >> Polz=poly([1,2,3],'Z','coefs') <= this define a polynomial in >> variable Z, maybe your hz is not a polynomial for SCILAB >> >> coefz=coeff(Polz) <= this will return the >> coefficients 1, 2, and 3 >> >> >> Markus Svilans escreveu: >>> Adelson, >>> >>> Thanks for your response. >>> >>> It doesn't seem to work. The error message I get is: >>> >>> -- >>> Function not defined for given argument type(s), >>> >>> check arguments or define function %r_coeff for overloading. >>> -- >>> >>> I'm looking for a way to get the b0, b1, a1, b2, a2, ... >>> coefficients required for a cascaded IIR. From what I understand, >>> there is an algorithm by which they are computed from the z-domain >>> coefficients hz. >>> >>> Regards, >>> Markus. >>> >>> >>> Adelson Santos de Oliveira wrote: >>>> Do you mean, >>>> >>>> coef_hz=coeff(hz) ? >>>> >>>> coef_hz is a vector with the coefficients of hz. >>>> >>>> coefhz=coeff >>>> Markus Svilans escreveu: >>>>> Hello, >>>>> >>>>> I would like to use Scilab to design a cascaded IIR filter. >>>>> >>>>> I'm able to design a filter using iir(), as in the following example >>>>> code: >>>>> >>>>> ystr=[ 'type (lp, hp, bp, sb) '; >>>>> 'order (integer)'; >>>>> 'design (butt, cheb1, cheb2 , ellip)' ; >>>>> 'cut-off frequencies (2-vector in [0, 0.5])'; >>>>> 'error values 0 delta(1),delta(2) 1 ']; >>>>> w = x_mdialog('Choose filter type and parameters',... >>>>> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >>>>> >>>>> if w<>[] then >>>>> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >>>>> [hzm,fr]=frmag(hz,256); >>>>> xselect(); >>>>> plot2d(fr',hzm') >>>>> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >>>>> >>>>> hz >>>>> end >>>>> >>>>> My question is, how can I convert the z domain expression in hz to a >>>>> set of coefficients suitable for use in a cascaded IIR filter >>>>> implementation? Any help would be greatly appreciated. >>>>> >>>>> Best regards, >>>>> Markus. >>>>> >>>>> (also posted in the comp.soft-sys.math.scilab group) >>>>> >>>>> >>>> >>> >>> >> > > From Dan_Gill at mksinst.com Sat Jul 25 05:03:33 2009 From: Dan_Gill at mksinst.com (Dan_Gill at mksinst.com) Date: Fri, 24 Jul 2009 23:03:33 -0400 Subject: Dan Gill/US/MKS is out of the office. Message-ID: I will be out of the office starting 07/24/2009 and will not return until 08/03/2009. I will respond to your message when I return. From celso.co at gmail.com Sun Jul 26 13:42:34 2009 From: celso.co at gmail.com (Celso Co) Date: Sun, 26 Jul 2009 19:42:34 +0800 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: <4A6A67E1.1000300@gmail.com> Message-ID: You may want to consider some means of manipulating poles and zeros in the attached file. Celso -----Original Message----- From: Adelson Santos de Oliveira [mailto:adelson.oliveira at gmail.com] Sent: Saturday, July 25, 2009 10:03 AM To: users at lists.scilab.org Subject: Re: [scilab-Users] Cascaded IIR filter design Sorry, I would like to help but I can make only general comments. I would not go into the subject of your work. If hz were a Scilab polynomial, getting poles and zeroes would be straightforward from numerator and denominator ... I can only suggest you find a way to decompose hz into scilab objects (polys, ....), Good luck, Adelson Markus Svilans escreveu: > Hi Adelson, > > Thanks for your response. > I think hz must be a Scilab rational polynomial. Here are its contents: > > -->hz > hz = > > 2 3 > 4 5 6 - 0.0513754 + 0.0469923z - 0.0057700z + > 2.282D-17z + 0.0057700z - 0.0469923z + 0.0513754z > -------------------------------------------------------------------------- ------------- > > 2 3 > 4 5 6 0.5046613 - 1.0416559z + 2.4270369z - > 2.6222075z + 2.9969513z - 1.6458787z + z > > From what I have been able to research so far, I am starting to feel > that it's not possible to get Scilab to directly return the a,b > cascaded IIR coefficients. > > Perhaps, could you lend your expertise on these related questions: > 1. How to get the poles of hz? > 2. How to get the zeroes of hz? > > Knowing the poles and zeroes, I can hope to derive the IIR > coefficients by hand. > > Thanks very much, > Markus. > > > > Adelson Santos de Oliveira wrote: >> Sorry, >> >> I did not analyse your program. I supposed that hz is a polinomial >> according to SCILAB definition. See the following example and check >> if you can adapt it to your needs, >> >> >> Polz=poly([1,2,3],'Z','coefs') <= this define a polynomial in >> variable Z, maybe your hz is not a polynomial for SCILAB >> >> coefz=coeff(Polz) <= this will return the >> coefficients 1, 2, and 3 >> >> >> Markus Svilans escreveu: >>> Adelson, >>> >>> Thanks for your response. >>> >>> It doesn't seem to work. The error message I get is: >>> >>> -- >>> Function not defined for given argument type(s), >>> >>> check arguments or define function %r_coeff for overloading. >>> -- >>> >>> I'm looking for a way to get the b0, b1, a1, b2, a2, ... >>> coefficients required for a cascaded IIR. From what I understand, >>> there is an algorithm by which they are computed from the z-domain >>> coefficients hz. >>> >>> Regards, >>> Markus. >>> >>> >>> Adelson Santos de Oliveira wrote: >>>> Do you mean, >>>> >>>> coef_hz=coeff(hz) ? >>>> >>>> coef_hz is a vector with the coefficients of hz. >>>> >>>> coefhz=coeff >>>> Markus Svilans escreveu: >>>>> Hello, >>>>> >>>>> I would like to use Scilab to design a cascaded IIR filter. >>>>> >>>>> I'm able to design a filter using iir(), as in the following example >>>>> code: >>>>> >>>>> ystr=[ 'type (lp, hp, bp, sb) '; >>>>> 'order (integer)'; >>>>> 'design (butt, cheb1, cheb2 , ellip)' ; >>>>> 'cut-off frequencies (2-vector in [0, 0.5])'; >>>>> 'error values 0 delta(1),delta(2) 1 ']; >>>>> w = x_mdialog('Choose filter type and parameters',... >>>>> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >>>>> >>>>> if w<>[] then >>>>> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >>>>> [hzm,fr]=frmag(hz,256); >>>>> xselect(); >>>>> plot2d(fr',hzm') >>>>> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >>>>> >>>>> hz >>>>> end >>>>> >>>>> My question is, how can I convert the z domain expression in hz to a >>>>> set of coefficients suitable for use in a cascaded IIR filter >>>>> implementation? Any help would be greatly appreciated. >>>>> >>>>> Best regards, >>>>> Markus. >>>>> >>>>> (also posted in the comp.soft-sys.math.scilab group) >>>>> >>>>> >>>> >>> >>> >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Poles and Zeros.sci Type: application/octet-stream Size: 372 bytes Desc: not available URL: From sumit.adhikari at gmail.com Sun Jul 26 18:08:41 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Sun, 26 Jul 2009 21:38:41 +0530 Subject: [scilab-Users] Cascaded IIR filter design In-Reply-To: References: Message-ID: <4A6C7F89.9010409@gmail.com> Hello, Following is the way you can get poles and zeros b = coeff(numer(hz)); a = coeff(denom(hz)); BR, Sumit Celso Co wrote: > You may want to consider some means of manipulating poles and zeros in the > attached file. Celso > > -----Original Message----- > From: Adelson Santos de Oliveira [mailto:adelson.oliveira at gmail.com] > Sent: Saturday, July 25, 2009 10:03 AM > To: users at lists.scilab.org > Subject: Re: [scilab-Users] Cascaded IIR filter design > > > Sorry, > I would like to help but I can make only general comments. I would not > go into the subject of your work. > If hz were a Scilab polynomial, getting poles and zeroes would be > straightforward from numerator and denominator ... > > I can only suggest you find a way to decompose hz into scilab objects > (polys, ....), > > Good luck, > > Adelson > > Markus Svilans escreveu: > >> Hi Adelson, >> >> Thanks for your response. >> I think hz must be a Scilab rational polynomial. Here are its contents: >> >> -->hz >> hz = >> >> 2 3 >> 4 5 6 - 0.0513754 + 0.0469923z - 0.0057700z + >> 2.282D-17z + 0.0057700z - 0.0469923z + 0.0513754z >> -------------------------------------------------------------------------- >> > ------------- > >> 2 3 >> 4 5 6 0.5046613 - 1.0416559z + 2.4270369z - >> 2.6222075z + 2.9969513z - 1.6458787z + z >> >> From what I have been able to research so far, I am starting to feel >> that it's not possible to get Scilab to directly return the a,b >> cascaded IIR coefficients. >> >> Perhaps, could you lend your expertise on these related questions: >> 1. How to get the poles of hz? >> 2. How to get the zeroes of hz? >> >> Knowing the poles and zeroes, I can hope to derive the IIR >> coefficients by hand. >> >> Thanks very much, >> Markus. >> >> >> >> Adelson Santos de Oliveira wrote: >> >>> Sorry, >>> >>> I did not analyse your program. I supposed that hz is a polinomial >>> according to SCILAB definition. See the following example and check >>> if you can adapt it to your needs, >>> >>> >>> Polz=poly([1,2,3],'Z','coefs') <= this define a polynomial in >>> variable Z, maybe your hz is not a polynomial for SCILAB >>> >>> coefz=coeff(Polz) <= this will return the >>> coefficients 1, 2, and 3 >>> >>> >>> Markus Svilans escreveu: >>> >>>> Adelson, >>>> >>>> Thanks for your response. >>>> >>>> It doesn't seem to work. The error message I get is: >>>> >>>> -- >>>> Function not defined for given argument type(s), >>>> >>>> check arguments or define function %r_coeff for overloading. >>>> -- >>>> >>>> I'm looking for a way to get the b0, b1, a1, b2, a2, ... >>>> coefficients required for a cascaded IIR. From what I understand, >>>> there is an algorithm by which they are computed from the z-domain >>>> coefficients hz. >>>> >>>> Regards, >>>> Markus. >>>> >>>> >>>> Adelson Santos de Oliveira wrote: >>>> >>>>> Do you mean, >>>>> >>>>> coef_hz=coeff(hz) ? >>>>> >>>>> coef_hz is a vector with the coefficients of hz. >>>>> >>>>> coefhz=coeff >>>>> Markus Svilans escreveu: >>>>> >>>>>> Hello, >>>>>> >>>>>> I would like to use Scilab to design a cascaded IIR filter. >>>>>> >>>>>> I'm able to design a filter using iir(), as in the following example >>>>>> code: >>>>>> >>>>>> ystr=[ 'type (lp, hp, bp, sb) '; >>>>>> 'order (integer)'; >>>>>> 'design (butt, cheb1, cheb2 , ellip)' ; >>>>>> 'cut-off frequencies (2-vector in [0, 0.5])'; >>>>>> 'error values 0 delta(1),delta(2) 1 ']; >>>>>> w = x_mdialog('Choose filter type and parameters',... >>>>>> ystr,['bp';'3';'ellip';'0.15 0.25';'0.08 0.035']) >>>>>> >>>>>> if w<>[] then >>>>>> hz=iir(evstr(w(2)),w(1),w(3),evstr(w(4)),evstr(w(5))); >>>>>> [hzm,fr]=frmag(hz,256); >>>>>> xselect(); >>>>>> plot2d(fr',hzm') >>>>>> xtitle('Discrete IIR filter '+'( '+ w(3)+' ) ',' ',' '); >>>>>> >>>>>> hz >>>>>> end >>>>>> >>>>>> My question is, how can I convert the z domain expression in hz to a >>>>>> set of coefficients suitable for use in a cascaded IIR filter >>>>>> implementation? Any help would be greatly appreciated. >>>>>> >>>>>> Best regards, >>>>>> Markus. >>>>>> >>>>>> (also posted in the comp.soft-sys.math.scilab group) >>>>>> >>>>>> >>>>>> >>>> >> -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit.adhikari at gmail.com Mon Jul 27 05:43:29 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 27 Jul 2009 09:13:29 +0530 Subject: Reg :: Speed of this script Message-ID: <4A6D2261.8080205@gmail.com> Hello All, Following is a script in which I am suffering from speed problem. Also if I do little further I get stacksize problem (the problem I am facing from last several years with scilab). Is it possible to do something with this script ? What experts has to say ? printf("\n ---------------------------------- \n"); printf(" Calculating Frequency Response \n"); printf(" ---------------------------------- \n\n"); clear all ; //stacksize(5000001); stacksize('max'); a1 = 0.5 ; a2 = 2.0 ; z=poly(0,'z'); Hsdm_sig = syslin('c',(a1*a2), (z^2 + (a2 - 2)*z + (a1*a2 - a2 + 1))); Hsdm_noise = syslin('c',(z^2 + z -2.0), (z^2 + (a2 - 2)*z + (a1*a2 - a2 + 1))); Hsdm = Hsdm_sig ; M = 1024 ; Hn = syslin('c',(z^M - 1.0), (z^M)); Hcic_num = Hn*Hn*Hn; Hd = syslin('c',(z- 1.0), (z)); Hcic_den = Hd*Hd*Hd ; Hcic = Hcic_num / Hcic_den ; H = (Hsdm * Hcic)/2^14; clear Hsdm_sig Hsdm_noise Hsdm Hd Hcic_den Hm Hcic_num Hcic ; Npoints = 1024*1024; [hzm,fr]=frmag(H,Npoints); clear H ; N = 512; SBW = Npoints; frm = fr*SBW; //clf(); plot(log10(frm(2:N)),20*log10(hzm(2:N)),"red"); mtlb_grid("on"); //plot(frm(2:N),20*log10(hzm(2:N)),"red"); //bode(H); //plzr(H); Best Regards, -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 From Samuel.Gougeon at univ-lemans.fr Mon Jul 27 10:09:45 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 27 Jul 2009 10:09:45 +0200 Subject: [scilab-Users] Reg :: Speed of this script In-Reply-To: <4A6D2261.8080205@gmail.com> References: <4A6D2261.8080205@gmail.com> Message-ID: <4A6D60C9.1080306@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Sumit Adhikari Date : 27/07/2009 05:43: > Hello All, > Following is a script in which I am suffering from speed problem. > Also if I do little further I get stacksize problem (the problem I am > facing from > last several years with scilab). Is it possible to do something with > this script ? What experts has to say ? > > > printf("\n ---------------------------------- \n"); > printf(" Calculating Frequency Response \n"); > printf(" ---------------------------------- \n\n"); > clear all ; > .../... Scilab proposes a set a profiling functions assessing, displaying and plotting for each line of a function the number of times the line is executed, the CPU time spent for executing it, the difficulty for interpreting it. May you see /profile()/, showprofile() and plotprofile() in the help. As these functions may be used only for functions -- not for scripts --, you would first have to turn your script into a function. HTH, Regards Samuel From sumit.adhikari at gmail.com Mon Jul 27 10:32:48 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 27 Jul 2009 14:02:48 +0530 Subject: [scilab-Users] Reg :: Speed of this script In-Reply-To: <4A6D60C9.1080306@univ-lemans.fr> References: <4A6D2261.8080205@gmail.com> <4A6D60C9.1080306@univ-lemans.fr> Message-ID: Hello Samuel, Understood. Thanks for the assistance. I will make the modification and let you know. BR, Sumit On Mon, Jul 27, 2009 at 1:39 PM, Samuel GOUGEON < Samuel.Gougeon at univ-lemans.fr> wrote: > Hello, > ----- Message d'origine ----- > De : Sumit Adhikari > Date : 27/07/2009 05:43: > >> Hello All, >> Following is a script in which I am suffering from speed problem. Also if >> I do little further I get stacksize problem (the problem I am facing from >> last several years with scilab). Is it possible to do something with this >> script ? What experts has to say ? >> >> >> printf("\n ---------------------------------- \n"); >> printf(" Calculating Frequency Response \n"); >> printf(" ---------------------------------- \n\n"); >> clear all ; >> .../... >> > Scilab proposes a set a profiling functions assessing, displaying and > plotting > for each line of a function the number of times the line is executed, the > CPU > time spent for executing it, the difficulty for interpreting it. > May you see /profile()/, showprofile() and plotprofile() in the help. > As these functions may be used only for functions -- not for scripts --, > you > would first have to turn your script into a function. > > HTH, > Regards > Samuel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: