From manasdas17 at gmail.com Mon Oct 1 12:24:44 2012 From: manasdas17 at gmail.com (manasdas17) Date: Mon, 1 Oct 2012 03:24:44 -0700 (PDT) Subject: [Scilab-Dev] Adding new palettes to xcos Message-ID: <1349087084797-4024927.post@n3.nabble.com> Hello, I am having a problem with adding new palettes to xcos. I have 3 folders for my xcos toolbox: i)one having the graphical structure of palettes in .sci files. ii)other one having having the computational functions of these blocks in .sci files. iii)the third one having the scs_m format of palettes in .cos files. The problem is that in the xcos_toolbox_skeleton that is provided have no option of having a files in scs_m format,but i need this for my toolbox.So how could i packaged all the 3 folders as xcos toolbox. Regards Manas IIT-Bombay -- View this message in context: http://mailinglists.scilab.org/Adding-new-palettes-to-xcos-tp4024927.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Mon Oct 1 12:38:12 2012 From: communication at scilab-enterprises.com (Communication) Date: Mon, 01 Oct 2012 12:38:12 +0200 Subject: [Scilab-Dev] Release of Scilab 5.4.0 Message-ID: <50697294.5080800@scilab-enterprises.com> Dear Scilab Users, Scilab Enterprises is pleased to announce the release of Scilab 5.4.0. Download and information can be found at: http://www.scilab.org/products/scilab/download We also invite you to consult the video explaining the major new functionalities at: http://www.youtube.com/scilabchannel Best Regards -- Communications and Public Relations Department ------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From clement.david at scilab-enterprises.com Mon Oct 1 13:20:44 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 01 Oct 2012 13:20:44 +0200 Subject: [Scilab-Dev] Adding new palettes to xcos In-Reply-To: <1349087084797-4024927.post@n3.nabble.com> References: <1349087084797-4024927.post@n3.nabble.com> Message-ID: <1349090444.26352.4.camel@paros> Hello, xcos_toolbox_skeleton builders and start file use function wrappers to ease maintenance but you can easily use a scs_m as a palette just use: pal=xcosPal(scs_m); xcosPalAdd(pal); See help xcosPal for more information. Le lundi 01 octobre 2012 ? 03:24 -0700, manasdas17 a ?crit : > Hello, > I am having a problem with adding new palettes to xcos. > I have 3 folders for my xcos toolbox: > i)one having the graphical structure of palettes in .sci files. > ii)other one having having the computational functions of these blocks > in .sci files. > iii)the third one having the scs_m format of palettes in .cos files. > > The problem is that in the xcos_toolbox_skeleton that is provided have > no option of > having a files in scs_m format,but i need this for my toolbox.So how > could i packaged > all the 3 folders as xcos toolbox. > > Regards > Manas > IIT-Bombay -- Cl?ment DAVID Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From communication at scilab-enterprises.com Tue Oct 9 16:46:18 2012 From: communication at scilab-enterprises.com (Communication) Date: Tue, 09 Oct 2012 16:46:18 +0200 Subject: [Scilab-Dev] Professional Training Message-ID: <507438BA.1020208@scilab-enterprises.com> Dear Scilab Users, You are interested in a fundamental or more advanced training on Scilab and Xcos? Scilab Enterprises offers professional training sessions and next sessions for 2013 are online on http://www.scilab-enterprises.com/services/training Training can also be customized to fit your needs, so do not hesitate to contact us at formation at scilab-enterprises.com Best Regards -- Communications and Public Relations Department ------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From arvid at softube.com Wed Oct 10 13:01:10 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Wed, 10 Oct 2012 13:01:10 +0200 Subject: [Scilab-Dev] syredi broken? Message-ID: <590182E9-B57A-4794-8C08-8394D44E27E2@softube.com> Hi! I am having problems with the macro eqiir in scilab 5.4 on MacOS. I have traced it down to the call to syredi, which is a fortran function. When run the example from the help file I get different results from scilab 5.4 and scilab 4. // Scilab 5.4 [fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001); disp(b1) --> [2 2 1] // Scilab 4.1 [fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001); disp(b1) --> [ - 0.5354229 0.3489640 1. ] The poles end up correct, but the zeros are rounded or casted to int or something like that. Does anyone know anything about this? Should I report it as a bug? This turns out to break a lot of code for me, but in a very non-obvious way. Best regards, Arvid -- Arvid Ros?n Softube AB S:t Larsgatan 10c SE-582 24 Link?ping Sweden Mobile: (+46) 73 25 123 47 Office: (+46) 13 21 16 23 Fax: (+46) 13 10 00 23 Mail: arvid at softube.com URL: www.softube.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Oct 10 13:55:00 2012 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 10 Oct 2012 13:55:00 +0200 Subject: [Scilab-Dev] syredi broken? In-Reply-To: <590182E9-B57A-4794-8C08-8394D44E27E2@softube.com> References: <590182E9-B57A-4794-8C08-8394D44E27E2@softube.com> Message-ID: <50756214.5030808@scilab-enterprises.com> Hi, You can report it as a bug. It is a MacOS only issue because b1 value is the same as in Scilab 4.1 under Linux and Windows. Regards. Le 10/10/12 13:01, Arvid Ros?n a ?crit : > Hi! > I am having problems with the macro eqiir in scilab 5.4 on MacOS. I > have traced it down to the call to syredi, which is a fortran > function. When run the example from the help file I get different > results from scilab 5.4 and scilab 4. > > > // Scilab 5.4 > [fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001); > > disp(b1) > --> [2 2 1] > > // Scilab 4.1 > [fact,b2,b1,b0,c1,c0,zzeros,zpoles]=syredi(1,4,[2*%pi/10,4*%pi/10,0,0],0.02,0.001); > > disp(b1) > --> [ - 0.5354229 0.3489640 1. ] > > The poles end up correct, but the zeros are rounded or casted to int > or something like that. > > Does anyone know anything about this? Should I report it as a bug? > > This turns out to break a lot of code for me, but in a very > non-obvious way. > > Best regards, > Arvid > > -- > Arvid Ros?n > > Softube AB > S:t Larsgatan 10c > SE-582 24 Link?ping > Sweden > Mobile: (+46) 73 25 123 47 > Office: (+46) 13 21 16 23 > Fax: (+46) 13 10 00 23 > Mail: arvid at softube.com > URL: www.softube.com > > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From gledsonmelotti at yahoo.com.br Thu Oct 11 00:38:27 2012 From: gledsonmelotti at yahoo.com.br (Gledson Melotti) Date: Wed, 10 Oct 2012 15:38:27 -0700 (PDT) Subject: [Scilab-Dev] scilab Message-ID: <1349908707.2979.YahooMailNeo@web125402.mail.ne1.yahoo.com> Hi, deculpa me the hassle. I gostari to simulate a transfer function in SCILAB (as the commands below), but I can not because scilab provides several errors. Could you tell me what I should do to get simulate the transfer function. s=poly(0,'s'); funcprot(0); num=x_dialog('numerador','s^5*kd+s^4*(60*kd+kp)+s^3*(1500*kd-60*kp+ki)+s^2*(-15000*kd+1500*kp-60*ki)+s*(-15000*kp+1500*ki)-15000*ki') den=x_dialog('denominador','s^5*(kd)+s^4*(-1-60*kd+kp)+s^3*(-1500-60+1500*kd-60*kp+ki)+s^2*(-15000-1500-15000*kd+1500*kp-60*ki)+s*(-15000-15000*kp+1500*ki)-15000*ki') kp=96.770532; ki=42.568724 ; kd=18.711118; t=0:0.01:100; numerador=evstr(num); denominador=evstr(den); y=csim('step',t,numerador/denominador) I thank you for your attention, Gledson Melotti. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gledsonmelotti at yahoo.com.br Thu Oct 11 00:39:49 2012 From: gledsonmelotti at yahoo.com.br (Gledson Melotti) Date: Wed, 10 Oct 2012 15:39:49 -0700 (PDT) Subject: [Scilab-Dev] scilab Message-ID: <1349908789.3960.YahooMailNeo@web125406.mail.ne1.yahoo.com> Hi, deculpa me the hassle. I gostari to simulate a transfer function in SCILAB (as the commands below), but I can not because scilab provides several errors. Could you tell me what I should do to get simulate the transfer function. s=poly(0,'s'); funcprot(0); num=x_dialog('numerador','s^5*kd+s^4*(60*kd+kp)+s^3*(1500*kd-60*kp+ki)+s^2*(-15000*kd+1500*kp-60*ki)+s*(-15000*kp+1500*ki)-15000*ki') den=x_dialog('denominador','s^5*(kd)+s^4*(-1-60*kd+kp)+s^3*(-1500-60+1500*kd-60*kp+ki)+s^2*(-15000-1500-15000*kd+1500*kp-60*ki)+s*(-15000-15000*kp+1500*ki)-15000*ki') kp=96.770532; ki=42.568724 ; kd=18.711118; t=0:0.01:100; numerador=evstr(num); denominador=evstr(den); y=csim('step',t,numerador/denominador) I thank you for your attention, Gledson Melotti. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Thu Oct 11 18:15:58 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 11 Oct 2012 18:15:58 +0200 Subject: [Scilab-Dev] scilab In-Reply-To: <1349908789.3960.YahooMailNeo@web125406.mail.ne1.yahoo.com> References: <1349908789.3960.YahooMailNeo@web125406.mail.ne1.yahoo.com> Message-ID: <5076F0BE.4090106@inria.fr> Take care that your system is unstable because the some roots of the denominator have positive real parts. Consequently the step response diverge. The solver sends messages about that and finally stops the integration before the final time. The csim function really do not take care of such cases. I will fix it (probabily sending ans error message), but in any case it is not possible to get correct result simulating a unstable system for a so long time. //the following instructions work and reveal the divergence. t=0:0.01:1;//a shorter simulation time y=csim('step',t,syslin('c',numerador/denominador)); plot(t,y) Le 11/10/2012 00:39, Gledson Melotti a ?crit : > Hi, deculpa me the hassle. I gostari to simulate a transfer function > in SCILAB (as the commands below), but I can not because scilab > provides several errors. Could you tell me what I should do to get > simulate the transfer function. > s=poly(0,'s'); > funcprot(0); > > num=x_dialog('numerador','s^5*kd+s^4*(60*kd+kp)+s^3*(1500*kd-60*kp+ki)+s^2*(-15000*kd+1500*kp-60*ki)+s*(-15000*kp+1500*ki)-15000*ki') > den=x_dialog('denominador','s^5*(kd)+s^4*(-1-60*kd+kp)+s^3*(-1500-60+1500*kd-60*kp+ki)+s^2*(-15000-1500-15000*kd+1500*kp-60*ki)+s*(-15000-15000*kp+1500*ki)-15000*ki') > kp=96.770532; > ki=42.568724 ; > kd=18.711118; > > t=0:0.01:100; > numerador=evstr(num); > denominador=evstr(den); > > y=csim('step',t,numerador/denominador) > I thank you for your attention, > > Gledson Melotti. > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From krotersv at gmail.com Sat Oct 27 09:03:17 2012 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Sat, 27 Oct 2012 13:03:17 +0600 Subject: [Scilab-Dev] bitset function Message-ID: <508B8735.2040606@gmail.com> Hi. I have reported an issue about bitset function (see bug #12013). I have changed the code of function. My solution is not brilliant but it works good for me. The bitset function does not have a test-file so I have wrote it. I am going to write a SEP-file which will include description of: 1) algorithm of work when pos is more than 32 or/and x is more than 2^32-1; 2) algorithm of work when x is an uint8, uint16 or uint32 value and pos is more than 8 (bitset works wrong if x is uint8 and pos is 9); 3) change of type of x in different cases. If someone is working on bitset function let we discuss it. Stanislav From u.fechner at tudelft.nl Sat Oct 27 22:29:26 2012 From: u.fechner at tudelft.nl (Uwe Fechner) Date: Sat, 27 Oct 2012 22:29:26 +0200 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit Message-ID: <508C4426.70105@tudelft.nl> Hello, I tried to compile Scilab 5.4.0 from source and get the following configure error: ... Generic Blas found checking if LAPACK is available... checking for cheev_... no checking for cheev_ in -llapack... yes Library -llapack found checking if ARPACK-NG is available... checking for znaupd_ in -larpack... no configure: error: Impossible to find the ARPACK library. Please note that arpack was bundled with version prior to 5.4.0 and Scilab requires arpack-ng ( http://forge.scilab.org/index.php/p/arpack-ng/ ). I have not only the source, but also the package with the required libraries and copied it into the same directory as the source. I already installed libarpack2, libarpack2-dev, libparpack2 and libparpack2-dev. I also tried to download, compile and install arpack-ng from http://forge.scilab.org/index.php/p/arpack-ng/ but I still get this error message. Any idea how to fix it? Best regards: Uwe Fechner, TU Delft From mcardinot at gmail.com Sat Oct 27 23:27:00 2012 From: mcardinot at gmail.com (Marcos Cardinot) Date: Sat, 27 Oct 2012 19:27:00 -0200 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit In-Reply-To: <508C4426.70105@tudelft.nl> References: <508C4426.70105@tudelft.nl> Message-ID: Hello Uwe, Which OS? 2012/10/27 Uwe Fechner > Hello, > > I tried to compile Scilab 5.4.0 from source and get the following > configure error: > > ... > Generic Blas found > checking if LAPACK is available... > checking for cheev_... no > checking for cheev_ in -llapack... yes > Library -llapack found > checking if ARPACK-NG is available... > checking for znaupd_ in -larpack... no > configure: error: Impossible to find the ARPACK library. Please note that > arpack was bundled with version prior to 5.4.0 and Scilab requires > arpack-ng ( http://forge.scilab.org/index.**php/p/arpack-ng/). > > I have not only the source, but also the package with the required > libraries and copied it into the same directory as the source. > > I already installed libarpack2, libarpack2-dev, libparpack2 and > libparpack2-dev. > > I also tried to download, compile and install arpack-ng from > http://forge.scilab.org/index.**php/p/arpack-ng/ but I still get this error > message. > > Any idea how to fix it? > > Best regards: > > Uwe Fechner, TU Delft > ______________________________**_________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/**mailman/listinfo/dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From u.fechner at tudelft.nl Sat Oct 27 23:27:46 2012 From: u.fechner at tudelft.nl (Uwe Fechner) Date: Sat, 27 Oct 2012 23:27:46 +0200 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit In-Reply-To: References: <508C4426.70105@tudelft.nl> Message-ID: <508C51D2.8060908@tudelft.nl> As said in the header, Ubuntu 12.04 32 bits. Uwe Am 27.10.2012 23:27, schrieb Marcos Cardinot: > Hello Uwe, > Which OS? > > 2012/10/27 Uwe Fechner > > > Hello, > > I tried to compile Scilab 5.4.0 from source and get the following configure error: > > ... > Generic Blas found > checking if LAPACK is available... > checking for cheev_... no > checking for cheev_ in -llapack... yes > Library -llapack found > checking if ARPACK-NG is available... > checking for znaupd_ in -larpack... no > configure: error: Impossible to find the ARPACK library. Please note that arpack was bundled > with version prior to 5.4.0 and Scilab requires arpack-ng ( > http://forge.scilab.org/index.php/p/arpack-ng/ ). > > I have not only the source, but also the package with the required libraries and copied it > into the same directory as the source. > > I already installed libarpack2, libarpack2-dev, libparpack2 and libparpack2-dev. > > I also tried to download, compile and install arpack-ng from > http://forge.scilab.org/index.php/p/arpack-ng/ but I still get this error > message. > > Any idea how to fix it? > > Best regards: > > Uwe Fechner, TU Delft > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev > > > > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -------------- next part -------------- An HTML attachment was scrubbed... URL: From u.fechner at tudelft.nl Sun Oct 28 10:57:26 2012 From: u.fechner at tudelft.nl (Uwe Fechner) Date: Sun, 28 Oct 2012 10:57:26 +0100 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit In-Reply-To: References: <508C4426.70105@tudelft.nl> <508C51D2.8060908@tudelft.nl> <508C53C8.1010906@tudelft.nl> <508C6BCC.6020106@tudelft.nl> <508C718E.9050300@tudelft.nl> Message-ID: <508D0186.9000204@tudelft.nl> No, I did not install them explicitly. I just downloaded the file "prerequirements-scilab-5.4.0-src.tar.gz" and unpacked it into the same folder as the scilab sources. I have now a folder: ~/00Software/scilab-5.4.0/thirdparty which contains the thirdparty libraries. I did NOT install Scilab systemwide (I did NOT run make install), I just run it locally from the folder ~/00Software/scilab-5.4.0. Regards: Uwe Fechner Am 28.10.2012 02:10, schrieb Marcos Cardinot: > You installed the libraries through thirdparty? > > 2012/10/27 Uwe Fechner > > > Same problem: > > Starte Ausf?hrung: > lade Startumgebung > link(npend_path + 'libnpend' + getdynlibext(), ['npend','np','ener'],'f'); > !--error 236 > link: das gemeinsame Archiv wurde nicht geladen: /tmp/SCI_TMP_1071_W9F0tx/libnpend.so: > undefined symbol: e_wsfe > at line 23 of exec file called by : > > at line 18 of function npend_build_and_load called by : > at line 134 of function demo_pendulum called by : > demo_pendulum() > at line 11 of exec file called by : > script_path = demo_gui_update();exec(script_path,-1);clear script_path;;if exists("%oldgcbo") > then gcbo = %ol > while executing a callback > > Regards: > > Uwe Fechner > > Am 28.10.2012 01:30, schrieb Marcos Cardinot: >> I also have problems with ARPACK, and use the command "- without" every time I compile... it >> never hurt me at all, my demos work well... >> >> Try: >> $ make distclean >> $ ./configure --without-arpack-ng >> $ make >> $ ./bin/scilab >> >Demos>... >> >> The demos work now? >> >> 2012/10/27 Uwe Fechner > >> >> I tried: >> $ make distclean >> $ configure >> >> Same result: >> >> >> Generic Blas found >> checking if LAPACK is available... >> checking for cheev_... no >> checking for cheev_ in -llapack... yes >> Library -llapack found >> checking if ARPACK-NG is available... >> checking for znaupd_ in -larpack... no >> configure: error: Impossible to find the ARPACK library. Please note that arpack was >> bundled with version prior to 5.4.0 and Scilab requires arpack-ng ( >> http://forge.scilab.org/index.php/p/arpack-ng/ ). >> >> I think that this is the following bug: >> http://bugzilla.scilab.org/show_bug.cgi?id=10646 >> >> It is unresolved (at least for Ubuntu 12.04 32 bit) and should be re-opend. >> >> Regards: >> >> Uwe Fechner >> >> >> Am 27.10.2012 23:57, schrieb Marcos Cardinot: >>> No, this bug isn't related to ARPACK! >>> >>> Have you tried a removal of all settings before compiling? (make distclean) >>> >>> Marcos >>> >>> 2012/10/27 Uwe Fechner > >>> >>> Hello, >>> >>> yes, this works. But than I have the the same problem as if I use the >>> binary version: >>> http://bugzilla.scilab.org/show_bug.cgi?id=12039 >>> >>> Could this bug be related to the arpack problem? >>> >>> Regards: >>> >>> Uwe >>> >>> >>> Am 27.10.2012 23:30, schrieb Marcos Cardinot: >>>> Sorry, I haven't seen! >>>> >>>> Well... try: >>>> ./configure --without-arpack-ng >>>> >>>> 2012/10/27 Uwe Fechner > >>>> >>>> As said in the header, Ubuntu 12.04 32 bits. >>>> Uwe >>>> >>>> Am 27.10.2012 23:27, schrieb Marcos Cardinot: >>>>> Hello Uwe, >>>>> Which OS? >>>>> >>>>> 2012/10/27 Uwe Fechner > >>>>> >>>>> Hello, >>>>> >>>>> I tried to compile Scilab 5.4.0 from source and get the following >>>>> configure error: >>>>> >>>>> ... >>>>> Generic Blas found >>>>> checking if LAPACK is available... >>>>> checking for cheev_... no >>>>> checking for cheev_ in -llapack... yes >>>>> Library -llapack found >>>>> checking if ARPACK-NG is available... >>>>> checking for znaupd_ in -larpack... no >>>>> configure: error: Impossible to find the ARPACK library. Please note that >>>>> arpack was bundled with version prior to 5.4.0 and Scilab requires >>>>> arpack-ng ( http://forge.scilab.org/index.php/p/arpack-ng/ ). >>>>> >>>>> I have not only the source, but also the package with the required >>>>> libraries and copied it into the same directory as the source. >>>>> >>>>> I already installed libarpack2, libarpack2-dev, libparpack2 and >>>>> libparpack2-dev. >>>>> >>>>> I also tried to download, compile and install arpack-ng from >>>>> http://forge.scilab.org/index.php/p/arpack-ng/ but I still get this error >>>>> message. >>>>> >>>>> Any idea how to fix it? >>>>> >>>>> Best regards: >>>>> >>>>> Uwe Fechner, TU Delft >>>>> _______________________________________________ >>>>> dev mailing list >>>>> dev at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/dev >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> dev mailing list >>>>> dev at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/dev >>>> >>>> >>> >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludo.wag at laposte.net Sun Oct 28 19:25:15 2012 From: ludo.wag at laposte.net (Orbeman) Date: Sun, 28 Oct 2012 11:25:15 -0700 (PDT) Subject: [Scilab-Dev] Intersection of two vectors Message-ID: <1351448715744-4025092.post@n3.nabble.com> Hello, Does anyone have an idea to modify the native intersect function in Scilab. I would like to have all positions (not only for unique element) of a vector that is in an other vector. I prefer avoid any loop because it's huge matrix. For example, a=[1 2 3 2 3 4 5 2 6 3] and b=[2 3] give c=[2 3 4 5 8 10] as result. Thanks. Sorry, for my bad english. I hope its understable. -- View this message in context: http://mailinglists.scilab.org/Intersection-of-two-vectors-tp4025092.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From arvid at softube.com Mon Oct 29 09:13:05 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Mon, 29 Oct 2012 09:13:05 +0100 Subject: [Scilab-Dev] Intersection of two vectors In-Reply-To: <1351448715744-4025092.post@n3.nabble.com> References: <1351448715744-4025092.post@n3.nabble.com> Message-ID: <948A2045-047D-46C9-B15A-CC9574118DAB@softube.com> Maybe like this: [dummy, index] = find(kron(a, ones(length(b),1)) - kron(b', ones(a)) == 0) Don't know if it is fast. Cheers, Arvid 28 okt 2012 kl. 19:25 skrev Orbeman : > Hello, > > Does anyone have an idea to modify the native intersect function in Scilab. > I would like to have all positions (not only for unique element) of a vector > that is in an other vector. I prefer avoid any loop because it's huge > matrix. > > For example, a=[1 2 3 2 3 4 5 2 6 3] and b=[2 3] give c=[2 3 4 5 8 10] as > result. > > Thanks. > > Sorry, for my bad english. I hope its understable. > > > > -- > View this message in context: http://mailinglists.scilab.org/Intersection-of-two-vectors-tp4025092.html > Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev -- Arvid Ros?n Softube AB S:t Larsgatan 10c SE-582 24 Link?ping Sweden Mobile: (+46) 73 25 123 47 Office: (+46) 13 21 16 23 Fax: (+46) 13 10 00 23 Mail: arvid at softube.com URL: www.softube.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Oct 30 19:02:06 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 30 Oct 2012 19:02:06 +0100 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit In-Reply-To: <508C4426.70105@tudelft.nl> References: <508C4426.70105@tudelft.nl> Message-ID: <5090161E.3020503@scilab-enterprises.com> On 27/10/2012 22:29, Uwe Fechner wrote: > Hello, > > I tried to compile Scilab 5.4.0 from source and get the following > configure error: > > ... > Generic Blas found > checking if LAPACK is available... > checking for cheev_... no > checking for cheev_ in -llapack... yes > Library -llapack found > checking if ARPACK-NG is available... > checking for znaupd_ in -larpack... no > configure: error: Impossible to find the ARPACK library. Please note > that arpack was bundled with version prior to 5.4.0 and Scilab requires > arpack-ng ( http://forge.scilab.org/index.php/p/arpack-ng/ ). > > I have not only the source, but also the package with the required > libraries and copied it into the same directory as the source. > > I already installed libarpack2, libarpack2-dev, libparpack2 and > libparpack2-dev. > > I also tried to download, compile and install arpack-ng from > http://forge.scilab.org/index.php/p/arpack-ng/ but I still get this error > message. > > Any idea how to fix it? Try to remove atlas. It should fix your problem. Otherwise, have a look to the config.log for more information on the failure. Sylvestre From ludo.wag at laposte.net Wed Oct 31 08:48:34 2012 From: ludo.wag at laposte.net (Orbeman) Date: Wed, 31 Oct 2012 00:48:34 -0700 (PDT) Subject: [Scilab-Dev] Intersection of two vectors In-Reply-To: <948A2045-047D-46C9-B15A-CC9574118DAB@softube.com> References: <1351448715744-4025092.post@n3.nabble.com> <948A2045-047D-46C9-B15A-CC9574118DAB@softube.com> Message-ID: <1351669714862-4025117.post@n3.nabble.com> It works fine for small size vectors. In my case the size of the vectors is about 1x100000 and the stacksize was exceeding. I look for to loop the native intersect function and for each iteration I "remove" the components of b in a. I suppose there's no more than ten common elements per nodes. the syntax of elements is : ind_element, ind_node1, ind_node2, ind_node3, ind_node4 ... which coordinates of ind_node are node_coord_x, node_coord_y, node_coord_z the results is : ind_node, data_node (pressure, temperature, ....) ... So, I would like to have all of the ind_element that the 4 ind_node are present in the results. I fact, I try to post processing a flow simulation and the whole aera is not completely filled at the time t. Thanks. -- View this message in context: http://mailinglists.scilab.org/Intersection-of-two-vectors-tp4025092p4025117.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From u.fechner at tudelft.nl Wed Oct 31 21:04:08 2012 From: u.fechner at tudelft.nl (Uwe Fechner) Date: Wed, 31 Oct 2012 21:04:08 +0100 Subject: [Scilab-Dev] Compiling Scilab 5.4.0 from source fails on Ubuntu 12.04 32 bit In-Reply-To: <5090161E.3020503@scilab-enterprises.com> References: <508C4426.70105@tudelft.nl> <5090161E.3020503@scilab-enterprises.com> Message-ID: <50918438.8010305@tudelft.nl> Hello, thanks for your help. Atlas was not installed. But I found a workaround for the configure problem (bug 10646): cd ~/00Software/arpack-ng_3.1.2/ sudo make uninstall sudo apt-get install libarpack++2-dev sudo apt-get remove libarpack2 cd ~/00Software/ cd ~/00Software/scilab-5.4.0 make distclean ./configure make This worked now. But this also means that I cannot have Octave installed at the same time. Octave depends on libarpack2. And as soon as I install libarpack2 ./configure fails. Is this a bug in the packaging of Ubuntu or in the ./configure script of Scilab 5.4.0? Best regards: Uwe Fechner Am 30.10.2012 19:02, schrieb Sylvestre Ledru: > On 27/10/2012 22:29, Uwe Fechner wrote: >> Hello, >> >> I tried to compile Scilab 5.4.0 from source and get the following >> configure error: >> >> ... >> Generic Blas found >> checking if LAPACK is available... >> checking for cheev_... no >> checking for cheev_ in -llapack... yes >> Library -llapack found >> checking if ARPACK-NG is available... >> checking for znaupd_ in -larpack... no >> configure: error: Impossible to find the ARPACK library. Please note >> that arpack was bundled with version prior to 5.4.0 and Scilab requires >> arpack-ng ( http://forge.scilab.org/index.php/p/arpack-ng/ ). >> >> I have not only the source, but also the package with the required >> libraries and copied it into the same directory as the source. >> >> I already installed libarpack2, libarpack2-dev, libparpack2 and >> libparpack2-dev. >> >> I also tried to download, compile and install arpack-ng from >> http://forge.scilab.org/index.php/p/arpack-ng/ but I still get this error >> message. >> >> Any idea how to fix it? > Try to remove atlas. It should fix your problem. > > Otherwise, have a look to the config.log for more information on the > failure. > > Sylvestre > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev From u.fechner at tudelft.nl Wed Oct 31 21:11:32 2012 From: u.fechner at tudelft.nl (Uwe Fechner) Date: Wed, 31 Oct 2012 21:11:32 +0100 Subject: [Scilab-Dev] Please help me to fix bug 12039 Message-ID: <509185F4.3070804@tudelft.nl> Hello, I am trying to solve the following bug: http://bugzilla.scilab.org/show_bug.cgi?id=12039 I installed the binary version of Scilab for Linux 32 bit on four machines now (all Ubuntu 12.04). On one machine the simulations, that need Fortran run fine. On all other machines they fail, even if I compile Scilab from source without any ./configure problem. Which kind of information shall I collect to investigate the difference between these installations? Best regards: Uwe Fechner