From celso.co at gmail.com Fri Oct 1 04:15:44 2010 From: celso.co at gmail.com (Celso Co) Date: Thu, 30 Sep 2010 19:15:44 -0700 Subject: [scilab-Users] Problem with loop In-Reply-To: References: Message-ID: Dear Marcin, I cannot make such loop since there are still missing informations. Base on your discussion, I see that your inputs are b and A and your output is modified A. Then you reused your modified A with the same function until A=[]. My suggestionn is to copy your A matrix into say B matrix. Then work on your B. Then for the next loop, copy A again on B and work on the B matrix. and so on. In other words, your input is A and your output is B. Don't change the input A as you reuse it in your loop. You may be deleting rows of A to serve as your exit index in "do" or "while" loop. However, using "for" loop the index nos is given and you do not need to delete rows. Attached file contains some example of matrix manipulation. Regards, celso 2010/9/30 marcin.wozniczka Gazeta.pl : > Ok, so I'll try to explian and describe (in general) how my program is > working and what exactly it should count. > I have matrix 'A' and vector 'b'. > A = [10 ? ? 5 ? ?2 ? 56.1385 > ?? ? ? ? 2 ? 10 ? ?5 ? ?61.8331 > ?? ? ? ??5 ? 10 ?17 ? ?46.2755 > ?? ? ??10 ? 17 ? ?5 ? ?70.5242 > ?? ? ? ? 5 ? 17 ? 30 ? 66.5410 > ?? ? ? 30 ? ?5 ? 17 ? ?86.5961] -?Numbers in columns 1-3 are numbers of > points which define angle in triangle (First column is left point in angle, > second is center and third is rigth). > b = [10 2] - points which coordinates are known. > So, next I have several function (general loops), which are taking from > matrix 'A' data (4 column) using data in vector 'b'. When data is taking > from matrix 'A' they are automatically deleted in this matrix, and the new > number is added to vector 'b'. In this example in matrix will be deleted > lines 1 & 2 and to vector will be added number 5. This function I have > defined and they are working correctly. > And the problem which I have is to create loop or function which will repeat > all loops and function until the matrix A will be empty (A=[]). > Do you know how to create this loop? > -- > Marcin Wo?niczka > -- 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 -------------- A non-text attachment was scrubbed... Name: Marcin.sce Type: application/octet-stream Size: 705 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Fri Oct 1 11:12:34 2010 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Fri, 1 Oct 2010 10:12:34 +0100 Subject: [scilab-Users] Problem with loop In-Reply-To: Message-ID: Hi Marcin, I agree - it is difficult to know what exactly you want from your description. I have modified Celso's script (attached) to do something like what you might want. Maybe that gives you enough ideas to write the code you need? If you want some explanation of what this code does, please ask. I didn't want to create a wonderfully documented script if it is completely off-target ;-) HTH Mike. -----Original Message----- From: Celso Co [mailto:celso.co at gmail.com] Sent: 01 October 2010 03:16 To: users at lists.scilab.org Subject: Re: [scilab-Users] Problem with loop Dear Marcin, I cannot make such loop since there are still missing informations. Base on your discussion, I see that your inputs are b and A and your output is modified A. Then you reused your modified A with the same function until A=[]. My suggestionn is to copy your A matrix into say B matrix. Then work on your B. Then for the next loop, copy A again on B and work on the B matrix. and so on. In other words, your input is A and your output is B. Don't change the input A as you reuse it in your loop. You may be deleting rows of A to serve as your exit index in "do" or "while" loop. However, using "for" loop the index nos is given and you do not need to delete rows. Attached file contains some example of matrix manipulation. Regards, celso 2010/9/30 marcin.wozniczka Gazeta.pl : > Ok, so I'll try to explian and describe (in general) how my program is > working and what exactly it should count. > I have matrix 'A' and vector 'b'. > A = [10 5 2 56.1385 > 2 10 5 61.8331 > 5 10 17 46.2755 > 10 17 5 70.5242 > 5 17 30 66.5410 > 30 5 17 86.5961] - Numbers in columns 1-3 are numbers of > points which define angle in triangle (First column is left point in angle, > second is center and third is rigth). > b = [10 2] - points which coordinates are known. > So, next I have several function (general loops), which are taking from > matrix 'A' data (4 column) using data in vector 'b'. When data is taking > from matrix 'A' they are automatically deleted in this matrix, and the new > number is added to vector 'b'. In this example in matrix will be deleted > lines 1 & 2 and to vector will be added number 5. This function I have > defined and they are working correctly. > And the problem which I have is to create loop or function which will repeat > all loops and function until the matrix A will be empty (A=[]). > Do you know how to create this loop? > -- > Marcin Wo?niczka > -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.856 / Virus Database: 271.1.1/3169 - Release Date: 09/30/10 19:34:00 -------------- next part -------------- A non-text attachment was scrubbed... Name: Marcin.sce Type: application/octet-stream Size: 886 bytes Desc: not available URL: From R.S.Etienne at rug.nl Fri Oct 1 11:44:57 2010 From: R.S.Etienne at rug.nl (R.S. Etienne) Date: Fri, 01 Oct 2010 11:44:57 +0200 Subject: Matlab to SciLab Message-ID: <4CA5AD99.9030000@rug.nl> Dear users, I have a Matlab code which has problems with the double precision limitation of Matlab. I am therefore looking for alternatives, particularly those where I don't have to change my code too much, and therefore I stumbled upon SciLab Before installing it, I would like to know whether SciLab has this double precision limitation, or not. Can someone please tell me? If it does not have this limitation, then can SciLab handle ordinary differntial equations? I am using Matlab's ode45; is there a SciLab equivalent? Kind regards, Rampal Etienne -- Rampal S. Etienne, PhD. Community and Conservation Ecology Group University of Groningen Box 14 9750 AA Haren The Netherlands Tel: +31 50 363 2230 r.s.etienne at rug.nl Web: www.rug.nl/biologie/onderzoek/onderzoekgroepen/cocon/people/etienne From jan.laarhuis at gmail.com Fri Oct 1 17:44:38 2010 From: jan.laarhuis at gmail.com (Jan Laarhuis) Date: Fri, 1 Oct 2010 17:44:38 +0200 Subject: still having problems with Xcos Message-ID: <6FB751E0-892F-41E1-A7E8-E2410DC9C497@gmail.com> Dear all, a couple of months ago I posted to this list that I was having problems running Xcos demos. The response was that I should install a C-compiler from the Xcode toolbox. I did install the software, but the problems remained. For example, a simple Xcos demo about an RLC electrical circuit doesn't run but gives the following message: Startup execution: loading initial environment --------------------------------------------\ Main Modelica : /var/folders/Ch/ChPAbkZsEPGXBdbKBDIf4++++TI/-Tmp-//SCI_TMP_225_mxb1zN/RLC_Modelica_im.mo Flat Modelica : /var/folders/Ch/ChPAbkZsEPGXBdbKBDIf4++++TI/-Tmp-//SCI_TMP_225_mxb1zN/RLC_Modelica_imf.mo Simulation C code :/var/folders/Ch/ChPAbkZsEPGXBdbKBDIf4++++TI/-Tmp-//SCI_TMP_225_mxb1zN/RLC_Modelica_im.c Generate a loader file Generate a Makefile ilib_gen_Make: configure : Generate Makefile. configure: error: in `/Applications/scilab-5.3.0-beta-4.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts': !sorry compiling problem ! ! ! !ilib_gen_Make: An error occurred during the d! ! etection of the compiler(s). Set ilib_ve! ! rbose(2) for more information. ! --------------------------------------------\ Can any of you advice me what to do? I have the latest MacBook running SL. Thanks in anticipation. Regards, Jan From sylvestre.ledru at scilab.org Sat Oct 2 00:22:54 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 02 Oct 2010 00:22:54 +0200 Subject: [scilab-Users] still having problems with Xcos In-Reply-To: <6FB751E0-892F-41E1-A7E8-E2410DC9C497@gmail.com> References: <6FB751E0-892F-41E1-A7E8-E2410DC9C497@gmail.com> Message-ID: <1285971774.2498.31.camel@losinj.inria.fr> Le vendredi 01 octobre 2010 ? 17:44 +0200, Jan Laarhuis a ?crit : [...] > ilib_gen_Make: configure : Generate Makefile. > configure: error: in `/Applications/scilab-5.3.0-beta-4.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts': > !sorry compiling problem ! > ! ! > !ilib_gen_Make: An error occurred during the d! > ! etection of the compiler(s). Set ilib_ve! > ! rbose(2) for more information. ! > --------------------------------------------\ > > > > Can any of you advice me what to do? I have the latest MacBook running SL. My advice would be to follow the advice described in the error message: ilib_verbose(2) should give you much more feedback on the error... Sylvestre From p_ledoux at yahoo.com.br Sat Oct 2 04:01:50 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Fri, 1 Oct 2010 19:01:50 -0700 (PDT) Subject: Why an interpreter? Message-ID: <947323.85199.qm@web120517.mail.ne1.yahoo.com> Hello everyone. Scilab, Matlab, Octave and others softwares of this kind uses an interpreter not a compiler. Is there any specific rason to do it? I don't know deeply the technical details about interpreters and compilers but i've become curious about it. In long interative process a compiled code runs much more faster because in a interpreter to each interation the language commands should be converted to machine language and in a compiled one it happens only one time when the object code is generated. Was told me that in a interpreter debug is more easy. So why those everyoments chose do numerical process by an interpreted language? -------------- next part -------------- An HTML attachment was scrubbed... URL: From w_artichowicz at o2.pl Sat Oct 2 12:30:55 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Sat, 2 Oct 2010 12:30:55 +0200 Subject: Sparse preprocessing Message-ID: <06F22189AA7042ACB46D0C42E3BC6F39@nonecf1c5f6867> Hello, Fluid mechanics computations often lead to sparse matrix systems. Scilab has marvellous sparse functions, however I cannot find any function for sparse preprocessing. For example: I have built quite big system with sparse matrix with no explicit pattern of non-zero elements. The best way to solve this system is to use modified SOR method (my own implementation). My question is: Is there any function in Scilab that would remove zero entries from diagonal (which isn't in this case very easy), and that would do some additional stuff like placing at diagonal the biggest possible element. If no, is there any well known not too complicated algorithm for such a purpose? Thank You in advance, Regards, W.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From w_artichowicz at o2.pl Sat Oct 2 12:32:51 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Sat, 2 Oct 2010 12:32:51 +0200 Subject: XCos save file problem Message-ID: <676E72660DD345E197BF635AF9C611CC@nonecf1c5f6867> Hi, I would like to use XCos, however I am unable to save diagrams to my hard drive, after I place on it any blocks. Only empty diagram can be saved. How to solve this problem? Regards, W.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From w_artichowicz at o2.pl Sat Oct 2 12:46:36 2010 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Sat, 2 Oct 2010 12:46:36 +0200 Subject: XCos file saing problem Message-ID: Well Actually I've noticed that I cannot save diagram file only if I have PROD block on the diagram. -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.macaleese at amolf.nl Sat Oct 2 14:04:37 2010 From: l.macaleese at amolf.nl (Luke MacAleese) Date: Sat, 02 Oct 2010 14:04:37 +0200 Subject: [scilab-Users] Scinotes / systematic crash when attempting to save file In-Reply-To: <002201cb5efb$bbac8900$33059b00$@scilab.org> References: <4CA128B5.8000506@amolf.nl> <002201cb5efb$bbac8900$33059b00$@scilab.org> Message-ID: <4CA71FD5.8080602@amolf.nl> Dear Allan, here is the result of your query: -->ver() !Scilab Version: 5.3.0.1283255793 ! !Operating System: Windows XP 5.1 ! !Java version : 1.6.0_18 ! !Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_18-b07) ! !Java vm information : Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) ! !Vendor specification: Sun Microsystems Inc. ! -->jre_path() C:\PROGRA~1\SCILAB~1.0-~\java\jre -->isfile(SCI+'/java/jre/bin/client/jvm.dll') T -->[a,b] =getdebuginfo() a = !Memory in use: 27 % ! !Total Physical Memory (Kbytes): 3144940 ! !Free Physical Memory (Kbytes): 2288540 ! !Total Paging File (Kbytes): 3509184 ! !Free Paging File (Kbytes): 2634176 ! !Total Virtual Memory (Kbytes): 2097024 ! !Free Virtual Memory (Kbytes): 1498132 ! !Free Extended Memory (Kbytes): 0 ! !Operating System: Windows XP ! ! Intel(R) Pentium(R) 4 CPU 3.00GHz ! !Number of processors: 2 ! !Video card: NVIDIA GeForce 6800 ! !Video card driver version: 6.14.12.5896 ! !Screen size: 1680 x 1050 32 bits ! !Number of Monitors: 1 ! !Path: C:/Program Files/scilab-5.3.0-beta-3/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0! ! ;C:\Program Files\cpuz;C:\Program Files\Executive Software\DiskeeperLite\;C:\Program Files\Fichiers communs\Bruker Daltonik\NTDS\Bin;C:\Prog! ! ram Files\Fichiers communs\Bruker Daltonik\DLLs\;C:\Program Files\Bruker Daltonik\ClinProTools2.2\;C:\Program Files\Fichiers communs\MDL SHA! ! RED\ISIS;C:\Program Files\Fichiers communs\HP\Digital Imaging\\bin;C:\Program Files\Fichiers communs\DivX Shared\;C:\Program Files\Symyx\Sym! ! yx Draw 3.2\lib;C:\Program Files\OpenCV2.0\bin;C:\Program Files\OpenCV2.0\bin;C:\Program Files\CMake 2.8\bin;C:\Program Files\SlikSvn\bin\;C! ! :\Program Files\Fichiers communs\Bruker Daltonik\DLLs\;C:\Program Files\Bruker Daltonik\ClinProTools2.2\ ! !ComSpec: C:\WINDOWS\system32\cmd.exe ! !TMP : C:\DOCUME~1\Luke\LOCALS~1\Temp ! !TEMP: C:\DOCUME~1\Luke\LOCALS~1\Temp ! !WSCI: C:\Program Files\scilab-5.3.0-beta-3 ! !SCIHOME: C:\DOCUME~1\Luke\APPLIC~1\Scilab\scilab-5.3.0-beta-3 ! b = !Version: scilab-5.3.0-beta-3 ! !Compilation date: Aug 31 2010 ! !Compilation time: 14:52:32 ! !Compiler Architecture: x86 ! !Compiled with Intel compiler ! !XML version: 2.4.26 ! !Tcl/Tk: Enable ! !TCL version: 8.5.2 ! !TK version: 8.5.2 ! !Path separator: ; ! !Directory separator: \ ! !PCRE Version: 8.2 ! thanks a lot for your help! Luke Le 28/09/2010 12:55, Allan CORNET a ?crit : > Hi, > > Can you give results of (from scilab): > > ver() > jre_path() > isfile(SCI+'/java/jre/bin/client/jvm.dll') > > and > [a,b] =getdebuginfo() > > Thanks you > > Allan > > > -----Message d'origine----- > De : Luke MacAleese [mailto:l.macaleese at amolf.nl] > Envoy? : mardi 28 septembre 2010 01:29 > ? : calixte at contrib.scilab.org; users at lists.scilab.org > Objet : Re: [scilab-Users] Scinotes / systematic crash when attempting to > save file > > Hi Calixte, > increasing to 512 did no good. > increasing to 1024 causes scilab to crash at startup (error message: > "Scilab cannot open jvm library") > about another jvm... do you mean running in the same time? or at all? > (I will ask around because my knowledge there is very limited...sorry) > regards Luke > > Le 28/09/2010 01:08, Calixte Denizet a ?crit : >> Le mardi 28 septembre 2010 ? 00:34 +0200, Luke MacAleese a ?crit : >>> here is the last one... >>> (I must say I only peeped into it...) >> I have no good idea for the moment... Could you try to increase the >> java memory in the file C:\Program Files\scilab-5.3.0-beta-3\etc >> \jvm_options.xml at line 26: >>