From grocer.toolbox at gmail.com Sat Jan 1 12:12:52 2011 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 1 Jan 2011 12:12:52 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: Dear Harald. As for me, I hvae found the source of the problem: I had identical help files in different directories; when duplicate files are removed, it works. Hope it will help you. Eric. PS: to the Scilab team: I think it would be wothwhile to have in that case an explicit message, such as: "error: duplicate help files in your distribution". 2010/12/29 hadi motamedi > On 12/28/10, Harald Galda, Dr. Eng. (J) wrote: > > Dear users, > > > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > > following error message: > > > > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > > !--error 10000 > > xmltoformat: > > > C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar > > has not been generated. > > at line 728 of function xmltoformat called by : > > at line 15 of function xmltojar called by : > > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > > at line 23 of exec file called by : > > > > at line 13 of function tbx_builder called by : > > at line 49 of function tbx_builder_help_lang called by : > > tbx_builder_help_lang('de_DE', HelpPath); > > at line 29 of exec file called by : > > > > at line 13 of function tbx_builder called by : > > at line 26 of function tbx_builder_help called by : > > tbx_builder_help(ToolboxPath); > > > > > > On the beta versions of Scilab 5.3.0 it was still possible to build the > help > > and > > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files > considered > > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the > > directory > > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. > By > > the > > way, the same problem occurs with English help. > > > > Best regards > > Harald Galda > > > > > > > Excuse me, how to unsubscribe? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From haraldgalda at yahoo.com Sat Jan 1 13:40:33 2011 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Sat, 1 Jan 2011 04:40:33 -0800 (PST) Subject: AW: [scilab-Users] Problems with xmltojar In-Reply-To: References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: <212168.97396.qm@web112619.mail.gq1.yahoo.com> Dear Eric, you mean that files with exactly the same *contents* written in the same language are in different directories? Or do you think the problem is that files with the same *name* are in different directories? The online help of my toolbox is written in German, English and Japanese. The files for German version reside in de_DE, the English files in en_US and the files in Japanese are located in ja_JP. There are three files called AnalyzeBlobs.xml for example. There is one German, one English and one Japanese version. The names are identical and so are the XML tags, but the contents are different, of course.Should I rename the files, e.g. AnalyzeBlobs.xml in AnalyzeBlobs_de.xml, AnalyzeBlobs_en.xml and AnalyzeBlobs_ja.xml? Harald ________________________________ Von: Eric Dubois An: users at lists.scilab.org Gesendet: Samstag, den 1. Januar 2011, 12:12:52 Uhr Betreff: Re: [scilab-Users] Problems with xmltojar Dear Harald. As for me, I hvae found the source of the problem: I had identical help files in different directories; when duplicate files are removed, it works. Hope it will help you. Eric. PS: to the Scilab team: I think it would be wothwhile to have in that case an explicit message, such as: "error: duplicate help files in your distribution". From grocer.toolbox at gmail.com Sat Jan 1 14:49:51 2011 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 1 Jan 2011 14:49:51 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <212168.97396.qm@web112619.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <212168.97396.qm@web112619.mail.gq1.yahoo.com> Message-ID: Dear Harald, In my case, the files had exactly the same name and content (I maintain help in English only). Suppressing the doubles allowed to remove the error. If this is not the case for you. To check if the problems comes from the names (not the content) you can either try : - to keep help in only one language. - to rename the help files with suffixes (_en, _de, _jp for instances). Hope it helps. Eric. 2011/1/1 Harald Galda, Dr. Eng. (J) > Dear Eric, > > you mean that files with exactly the same *contents* written in the same > language are in different directories? Or do you think the problem is that > files > with the same *name* are in different directories? > > > The online help of my toolbox is written in German, English and Japanese. > The > files for German version reside in de_DE, the English files in en_US and > the > files in Japanese are located in ja_JP. There are three files called > AnalyzeBlobs.xml for example. There is one German, one English and one > Japanese > version. The names are identical and so are the XML tags, but the contents > are > different, of course.Should I rename the files, e.g. AnalyzeBlobs.xml in > AnalyzeBlobs_de.xml, AnalyzeBlobs_en.xml and AnalyzeBlobs_ja.xml? > > Harald > > ________________________________ > Von: Eric Dubois > An: users at lists.scilab.org > Gesendet: Samstag, den 1. Januar 2011, 12:12:52 Uhr > Betreff: Re: [scilab-Users] Problems with xmltojar > > > Dear Harald. > > As for me, I hvae found the source of the problem: I had identical help > files in > > different directories; when duplicate files are removed, it works. > > > Hope it will help you. > > Eric. > > PS: to the Scilab team: I think it would be wothwhile to have in that case > an > explicit message, such as: "error: duplicate help files in your > distribution". > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunigami.dev at gmail.com Sun Jan 2 20:09:01 2011 From: kunigami.dev at gmail.com (Guilherme Kunigami) Date: Sun, 2 Jan 2011 17:09:01 -0200 Subject: Using ATOMS Modules Message-ID: Hi all, I'm trying to use ATOMS modules. I followed the wiki http://wiki.scilab.org/ATOMS In the case, the number theory module, named 'number'. I'm not quite sure how to use it. What I did was: atomsInstall('dispmat'); atomsInstall('apifun'); atomsInstall('number', '1.1'); In here: http://atoms.scilab.org/toolboxes/number/1.1 are listed some functions, like 'number_carmichael'. I tried the following: number_carmichael(); But it didn't work. Am I doing it right? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlvolta at fibertel.com.py Mon Jan 3 01:26:52 2011 From: jlvolta at fibertel.com.py (=?iso-8859-1?Q?Jos=E9_Luis_Volta_Grau?=) Date: Sun, 2 Jan 2011 21:26:52 -0300 Subject: Number format changes in editvar function Message-ID: Hi all: When I edit a matrix of doubles using "editvar" function, it changes the normal format I am using in the console. Example: 1234.5 in the console, changes to 1.234,5 in the editvar worksheet. Is there a way to avoid this change ? The OS is Windows XP Pro, Scilab version is 5.3.0 I will appreciate any information about this. Best regards, J.L.V. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Jan 3 08:45:55 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 03 Jan 2011 08:45:55 +0100 Subject: [scilab-Users] Integration between LPSolve and Scilab In-Reply-To: <60161.49746.qm@web45506.mail.sp1.yahoo.com> References: <60161.49746.qm@web45506.mail.sp1.yahoo.com> Message-ID: <4D217EB3.8050609@scilab.org> Hi, As far as I know, the lpsolve interface is not available for Scilab 5.3. It is not available in ATOMS. A linear solver which is available in Scilab 5.3 is linpro, from the quapro module : http://atoms.scilab.org/toolboxes/quapro Is there a reason why you specifically need the lpsolve module ? Best regards, Micha?l Baudin Le 29/12/2010 23:52, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi, > > I would like to know if someone can help me to integrate LPSOLVE with Scilab. > Seems hard to do it into Scilab. > > I have Win7 home edition. > > What I did: > > First: > > I downloaded the file: lp_solve_5.5.2.0_IDE_Setup.exe and ran it. I wanted > to check if LPSOLVE is > a good software and easy to use it. > > I tested a simple linear equation and it worked in LPSOLVE console ! Good signal > ! > > Second: > > I accessed the URL: http://lpsolve.sourceforge.net/5.5/ and read Quickstart. Wow > ... it was so confused !!!! > > Then, I downloaded the file: lp_solve_5.5.2.0_scilab_exe_win32.zip at URL: > http://en.sourceforge.jp/projects/sfnet_lpsolve/downloads/lpsolve/5.5.2.0/lp_solve_5.5.2.0_scilab_exe_win32.zip/ > > > and unzipped it. The directory lp_solve contains three sub-directories bin, > macros and man, and some files, as follows: > > 12/29/2010 07:00 PM . > 12/29/2010 07:00 PM .. > 12/29/2010 07:00 PM bin > 12/29/2010 07:00 PM 3,796 builder.sce > 12/29/2010 07:00 PM 730 changes > 12/29/2010 07:00 PM 3,699 ex.sce > 12/29/2010 07:00 PM 974 example1.sce > 12/29/2010 07:00 PM 837 example2.sce > 12/29/2010 07:00 PM 296 example3.sce > 12/29/2010 07:00 PM 258 example4.sce > 12/29/2010 07:00 PM 279 example5.sce > 12/29/2010 07:00 PM 527 example6.sce > 12/29/2010 07:00 PM 916 loader.sce > 12/29/2010 07:00 PM 2,682 lpdemo.sce > 12/29/2010 07:00 PM macros > 12/29/2010 07:00 PM man > 12/29/2010 07:19 PM 2,127 README.txt > 12/29/2010 07:00 PM 123,079 Scilab.htm > > I tried to read again the Quickstart at http://lpsolve.sourceforge.net/5.5/, but > it really seems confused ! > > I stopped here !! > > I copied it to this mail and wrote some comments (doubts), as follows: > > Quickstart > Compile and build sclpsolve: ---------------------------- > 1. Get the needed sources and libraries: Archive > lp_solve_5.5.2.0_scilab_source.tar.gz contains the sources to build sclpsolve. > Uncompress it to a directory, for example d:\lp_solve. Make sure that the folder > structure is kept. It will create a directory structure > lp_solve_5.5\extra\scilab\lpsolve in that folder. > > > > MY COMMENT: it is not the file that I downloaded, because my OS is Win7 home > edition. Moreover, > when I unzipped it, it does not create that directory structure: > lp_solve_5.5\extra\scilab\lpsolve > So, need I create it ??? > > > Archive lp_solve_5.5.2.0_dev.zip (Windows) or lp_solve_5.5.2.0_dev.tar.gz > (Unix) contains needed libraries and include files to link the sources with. > Uncompress it to the same folder as for the sources, appended with lp_solve_5.5. > In this example that would be d:\lp_solve\lp_solve_5.5 > > > MY COMMENT: I could not find the file lp_solve_5.5.2.0_dev.zip to download !! > > You have now all needed files in place. In your chosen directory (in this > example d:\lp_solve) there will only be a directory lp_solve_5.5 In this > directory, you have a directory extra and some files ending with .h and .lib The > extra directory contains a scilab directory which contains a directory lpsolve > with some files and directories. Under Windows, the lpsolve library > lpsolve55.lib must be available in the lpsolve55 directory. However older > version of scilab (<=3.0) require that this file is called lpsolve55.ilib In > that case copy lpsolve55.lib to lpsolve55.ilib > > 1. > 2. > 3. Under Windows, the Microsoft Visual C/C++ compiler must be installed and the > environment variables must be active so that when a command prompt is opened, > the cl and nmake commands can be executed. This can be done also by opening a > command prompt and execute the batch file VCVARS32.BAT (somewhere on your > system) and then starting scilab from that same command prompt. > > > MY COMMENT: I am not sure if I have C/C++ compiler installed in my computer. > Before I installed > Mingw and it installed some C/C++ files and created a directory called gcc which > contains: > > 12/20/2010 12:34 PM . > 12/20/2010 12:34 PM .. > 12/20/2010 12:33 PM bin > 12/20/2010 12:33 PM i686-pc-mingw32 > 12/20/2010 12:34 PM include > 12/20/2010 12:34 PM lib > 12/20/2010 12:34 PM libexec > 12/20/2010 12:34 PM manual > 12/20/2010 12:34 PM share > > How can I certify that C/C++ compiler is installed ? In case it is installed, > what are cl and nmake > commands ? How can I know if they work properly ? Moreover, what can I do with > the file VCVARS32.BAT ? > > > 1. Start Scilab > 1. > 2. Check under Scilab that the current directory is the lpsolve directory. Use > the Scilab pwd command to show the current directory. With the chdir command, > you can change the current directory. This current directory must be > lp_solve_5.5/extra/scilab/lpsolve example: > chdir('d:/lp_solve/lp_solve_5.5/extra/scilab/lpsolve') > > > MY COMMENT: when I type pwd in Scilab, the path is: > > -->pwd > ans = > > C:\Program Files (x86)\scilab-5.3.0 > > > 1. To compile and build sclpsolve, enter the following command in Scilab: > -->exec builder.sce This should be done once to build the sclpsolve driver and > to produce the file loader.sce. Load the sclpsolve driver in the Scilab memory > space: ----------------------------------------------------- > 1. Under Windows, make sure that the lpsolve55.dll file is somewhere in the > path Under Unix/Linux, make sure that the liblpsolve55.so shared library is in > /usr/lib or /lib so that Unix can find it. They are in archives > lp_solve_5.5.2.0_dev.zip/lp_solve_5.5.2.0_dev.tar.gz and were installed in the > lp_solve_5.5 directory of step 1 of the previous procedure. > > 2. It is required that the sclpsolve driver is first build. That must be done > only once. So if you haven't taken the steps yet to build the sclpsolve driver, > then do this first as described previously in 'Compile and build sclpsolve' > > 3. Start Scilab > 4. Check under Scilab that the current directory is the lpsolve directory. Use > the Scilab pwd command to show the current directory. With the chdir command, > you can change the current directory. This current directory must be > lp_solve_5.5/extra/scilab/lpsolve example: > chdir('/lp_solve/lp_solve_5.5/extra/scilab/lpsolve') > > 5. Enter the following command in Scilab: -->exec loader.sce > > > > Therefore, I think the Quickstart is a little bit confused to understand ! > Could be better if we might transfer lp_solve directory to Scilab and type > atomsInstall([...]) > like other modules !!! > > If someone knows how to integrate LPSOLVE with Scilab, please give me some hints > !! > > Thank you in advance. > > All best, > Reinaldo. > > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From sam at cctech.co.in Mon Jan 3 08:50:25 2011 From: sam at cctech.co.in (Sam Mathew) Date: Mon, 3 Jan 2011 13:20:25 +0530 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: References: Message-ID: Hi, I think you may have to check whether you are connecting to the internet directly or through a proxy server. If you are connecting through a proxy, please follow these steps (See the help file for atomsSetConfig): -->atomsSetConfig('useProxy','True') -->atomsSetConfig('proxyHost',) // e.g., atomsSetConfig('proxyHost',"198.201.2.2") -->atomsSetConfig('proxyPort',) // e.g., atomsSetConfig('proxyPort',"3120") -->atomsSetConfig('proxyUser',) // e.g., atomsSetConfig('proxyUser',' guilherme') -->atomsSetConfig('proxyPassword',) // e.g., atomsSetConfig('proxyPassword','guilherme123') You can find more on help regarding 'atomsSetConfig' Regards, Sam On 3 January 2011 00:39, Guilherme Kunigami wrote: > Hi all, > I'm trying to use ATOMS modules. > > I followed the wiki http://wiki.scilab.org/ATOMS In the case, the number > theory module, named 'number'. I'm not quite sure how to use it. > > What I did was: > > atomsInstall('dispmat'); > atomsInstall('apifun'); > atomsInstall('number', '1.1'); > > In here: http://atoms.scilab.org/toolboxes/number/1.1 are listed some > functions, like 'number_carmichael'. I tried the following: > > number_carmichael(); > > But it didn't work. > > Am I doing it right? > > Thanks, > -- Asst. Manager, CFD Centre for Computational Technologies www.cctech.co.in Phone: +91 20 2552 1873 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Jan 3 08:53:03 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 03 Jan 2011 08:53:03 +0100 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: References: Message-ID: <4D21805F.90303@scilab.org> Hi, Did you restart Scilab before actually running the functions ? If yes, this is a bug. If not, this is your fault, but you should be able to dynamically load the module with atomsLoad("number"), for example. Regards, Micha?l Baudin Le 02/01/2011 20:09, Guilherme Kunigami a ?crit : > Hi all, > I'm trying to use ATOMS modules. > > I followed the wiki http://wiki.scilab.org/ATOMS In the case, the > number theory module, named 'number'. I'm not quite sure how to use it. > > What I did was: > > atomsInstall('dispmat'); > atomsInstall('apifun'); > atomsInstall('number', '1.1'); > > In here: http://atoms.scilab.org/toolboxes/number/1.1 are listed some > functions, like 'number_carmichael'. I tried the following: > > number_carmichael(); > > But it didn't work. > > Am I doing it right? > > Thanks, -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Mon Jan 3 08:56:48 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 03 Jan 2011 08:56:48 +0100 Subject: [scilab-Users] Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: References: Message-ID: <4D218140.4070206@scilab.org> Hi, In order to solve a nonlinear equation in Scilab, you can use the fsolve function: help fsolve This requires that you define the nonlinear function f(x) associated with the f(x)=0 equation. Best regards, Micha?l Baudin Le 28/12/2010 01:39, JOSE KANTOLE a ?crit : > Hello > > > > I am fairly new to using Scilab but need to solve a transcendental > equation. I would like to write the code to solve this equation > .The value sought is F0 > > Given data: emin=0.688; > > NTU= 1.488 ; > > B=0.334; > > p=-ln(1-emin); > > x=( NTU-p) *2/B; > > y=exp(x) ; > > F0=(y-1)/(1-y*(1-emin)); > > If F0>10; or F0<0, then > > y=exp(2*x/p); > > This is the first approximation F0=sqrt(y/(1-emin)) > > My problem is to solve the problem using Raphson-Newton method > > F1=(1-emin)*F0; > > p0=ln(1+F0); > > p20=p0*p0; > > G0= p0*(1+17*p20/450)/(1+p20/100)+p20/4 > > > > p=ln(1+ F1); > > > > p2=p*p; > > > > G1= p*(1+17*p2/450)/(1+p2/450)+p2/4; > > > > > > x=-ln (1-emin)+B/2*(G0-G1)-NTU; > > y=B/2*(p0/F0-(1-emin)*p/(1+F1)); this is the derivative of x > > Fon=F0-x/y ( Newton-Raphson) > > > > Hopefully someone can see what is needed to get things working. Thanks > in advance all. -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From kunigami.dev at gmail.com Tue Jan 4 11:13:27 2011 From: kunigami.dev at gmail.com (Guilherme Kunigami) Date: Tue, 4 Jan 2011 08:13:27 -0200 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: <4D21805F.90303@scilab.org> References: <4D21805F.90303@scilab.org> Message-ID: Hi Micha?l, Thanks for the answer. Indeed, that was my fault. I didn't read the wiki carefully :( Regards, On Mon, Jan 3, 2011 at 5:53 AM, Micha?l Baudin wrote: > Hi, > > Did you restart Scilab before actually running the functions ? > > If yes, this is a bug. If not, this is your fault, but you should be able > to dynamically load the module with atomsLoad("number"), for example. > > Regards, > > Micha?l Baudin > > Le 02/01/2011 20:09, Guilherme Kunigami a ?crit : > >> Hi all, >> I'm trying to use ATOMS modules. >> >> I followed the wiki http://wiki.scilab.org/ATOMS In the case, the number >> theory module, named 'number'. I'm not quite sure how to use it. >> >> What I did was: >> >> atomsInstall('dispmat'); >> atomsInstall('apifun'); >> atomsInstall('number', '1.1'); >> >> In here: http://atoms.scilab.org/toolboxes/number/1.1 are listed some >> functions, like 'number_carmichael'. I tried the following: >> >> number_carmichael(); >> >> But it didn't work. >> >> Am I doing it right? >> >> Thanks, >> > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jc.francois at gmail.com Tue Jan 4 16:00:12 2011 From: jc.francois at gmail.com (JC Francois) Date: Tue, 04 Jan 2011 16:00:12 +0100 Subject: Wrong HDF5 library version Message-ID: Hi, I just installed scilab-5.3.0-beta-4 on OpenSUSE 11.3 from OpenSUSE-Education repository. The installation also pulled libhdf5-0 1.8.5 and jhdf5 2.6.1 among other packages. When I run Scilab and want to start Xcos, I get the following error message: xcos: Unable to load the hdf5-java (jhdf5) library. Expecting version [1, 8, 4] ; Getting version [1, 8, 5] . while executing a callback Unfortunately, only libhdf5 1.8.5 is provided as a package by OpenSUSE. How can I resolve this dependency problem? Thanks, JC Francois From dean.parsons at att.net Wed Jan 5 06:10:42 2011 From: dean.parsons at att.net (Dean Parsons) Date: Tue, 4 Jan 2011 23:10:42 -0600 Subject: grid lines on subticks? Message-ID: <230D9816EEDF4BA39B9B1250CE2D4CB7@optiplex745> Is it possible to add a grid to a plot such that there are grid lines drawn for the subticks as well as for the main ticks? If so, how do I do it? Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Louis.Auge at grenoble.cnrs.fr Wed Jan 5 09:06:40 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Wed, 05 Jan 2011 09:06:40 +0100 Subject: [scilab-Users] Graphic interfaces In-Reply-To: <4D1C5BBE.1090308@scilab.org> References: <4D1A0BAF.501@grenoble.cnrs.fr> <4D1C5BBE.1090308@scilab.org> Message-ID: <4D242690.3000604@grenoble.cnrs.fr> Ok, it is working! I used the tag property. I discovered that SCILAB (findobj function) looks for in the code everywhere and that whatever the location of the tag (function in a function). The notion of the local or global variable do not exist for the research of the tag with the findobject function. Thank you for your help. Best regards. JL Vincent COUVERT a ?crit : > Hi Jean-Louis, > > Your callback functions must not take input arguments because when > they are called, "B_style" and "A_style" are undefined. > > The good way to manage your test case is to identify your buttons > using a tag (see the tag property), then using findobj to get them in > your callback functions and finally setting the string value. > > // Creation > A_style.tag = "A_style" > > // Callback function > A_style = findobj("Tag", "A_style"); > A_style.string = "B"; > > Regards, > Vincent > > > > Le 28/12/10 17:09, Jean-Louis Auge a ?crit : >> Dear users, >> >> I attempted to do a little program to change the label of a >> pushbutton but the result is was inconclusive. >> >> Here the programm: >> >> //Initialisation stage >> clear all; >> clc; >> for i=0:100, close(i), end; >> >> >> //to change the label of the button A >> function [A_style]=changeA(B_style,A_style) >> A_style.String="B" >> disp("go through changeA") >> endfunction; >> >> //to change the label of the button B >> function [B_style]=changeB(A_style) >> B_style.String="A" >> disp("go through changeB") >> endfunction; >> >> >> h=scf(); >> h.position=[0 0 1000 800]; >> A_style=uicontrol(h,"style", "pushbutton"); >> A_style.Units="normalized"; >> A_style.Position = [0 0.95 0.2 0.05]; >> A_style.BackgroundColor="1|0|1"; >> A_style.Fontsize=20; >> A_style.String = "A"; >> A_style.Callback="changeB"; >> >> B_style=uicontrol(h,"style", "pushbutton"); >> B_style.Units="normalized"; >> B_style.Position = [0 0 0.2 0.05]; >> B_style.BackgroundColor="1|0|1"; >> B_style.Fontsize=20; >> B_style.String = "B"; >> B_style.Callback="changeA"; >> >> >> I wanted change the label of the pressbutton A pushing the button B >> and vice versa. >> The result is inconclusive. >> >> Does somebody meet this case in this development. >> >> Moreover, do you know websites where graphic interfaces >> documentations are given? I did not find many comments about the >> subject. >> Is Scilab often use to develop interface graphics? >> >> Best regards, >> >> JL. From mathieu.dubois at limsi.fr Wed Jan 5 09:09:56 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 05 Jan 2011 09:09:56 +0100 Subject: [scilab-Users] grid lines on subticks? In-Reply-To: <230D9816EEDF4BA39B9B1250CE2D4CB7@optiplex745> References: <230D9816EEDF4BA39B9B1250CE2D4CB7@optiplex745> Message-ID: <4D242754.6080205@limsi.fr> Hello Dean, On 01/05/2011 06:10 AM, Dean Parsons wrote: > *Is it possible to add a grid to a plot such that there are grid lines > drawn for the subticks as well as for the main ticks?* As far as I know there is no minor grid in scilab. However the help page of the "grid" function (Scilab manual >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > G > grid (Matlab function)) provides some tips to emulate this. > *If so, how do I do it?* > *Dean Parsons* -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.parsons at att.net Wed Jan 5 09:14:37 2011 From: dean.parsons at att.net (Dean Parsons) Date: Wed, 5 Jan 2011 02:14:37 -0600 Subject: [scilab-Users] grid lines on subticks? References: <230D9816EEDF4BA39B9B1250CE2D4CB7@optiplex745> <4D242754.6080205@limsi.fr> Message-ID: <9DE7221870604E0EB64BF4D318949D24@optiplex745> Mathieu, Thanks so much or your prompt reply. Dean ----- Original Message ----- From: Mathieu Dubois To: users at lists.scilab.org Sent: Wednesday, January 05, 2011 2:09 AM Subject: Re: [scilab-Users] grid lines on subticks? Hello Dean, On 01/05/2011 06:10 AM, Dean Parsons wrote: Is it possible to add a grid to a plot such that there are grid lines drawn for the subticks as well as for the main ticks? As far as I know there is no minor grid in scilab. However the help page of the "grid" function (Scilab manual >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > G > grid (Matlab function)) provides some tips to emulate this. If so, how do I do it? Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Jan 5 12:21:21 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 05 Jan 2011 12:21:21 +0100 Subject: Using WinGW compiler In-Reply-To: References: Message-ID: <4D245431.1000508@centre-cired.fr> Hi I downloaded mingw from http://www.mingw.org, and installed ATOMS module: atomsInstall('mingw') I also added *C:\MinGW\bin *to the PATH, and debuginfo is OK ! ! !Path: C:/Program Files/scilab-5.3.0-SSE3/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;c:\Program Files\Fichiers communs\Roxio Sha! ! red\10.0\DLLShared\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\WinMerge;*C:\MinGW\bin;*C:\Program Files\OpenVPN\bin still, when starting sci5.3, i get this message : ___________________________________________ scilab-5.3.0-SSE3 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail Start MKL Tools Load gateways Load help Load demos Mingw Compiler support for Scilab Load macros *ATTENTION : MinGW Compiler not detected.* Load help any idea? -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Wed Jan 5 12:29:56 2011 From: sylvestre.ledru at scilab.org (sylvestre Ledru) Date: Wed, 05 Jan 2011 18:29:56 +0700 Subject: [scilab-Users] Wrong HDF5 library version In-Reply-To: References: Message-ID: On Tue, 04 Jan 2011 16:00:12 +0100, JC Francois wrote: > Hi, > > I just installed scilab-5.3.0-beta-4 on OpenSUSE 11.3 from > OpenSUSE-Education repository. The installation also pulled libhdf5-0 > 1.8.5 and jhdf5 2.6.1 among other packages. > > When I run Scilab and want to start Xcos, I get the following error > message: > > xcos: Unable to load the hdf5-java (jhdf5) library. > Expecting version [1, 8, 4] ; Getting version [1, 8, 5] . > while executing a callback > > Unfortunately, only libhdf5 1.8.5 is provided as a package by > OpenSUSE. How can I resolve this dependency problem? Please report a bug on the opensuse bug tracker. We (Scilab team) are not involved in the maintenance of this package. Thanks, Sylvestre From vogt at centre-cired.fr Wed Jan 5 12:45:25 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 05 Jan 2011 12:45:25 +0100 Subject: [scilab-Users] Using WinGW compiler In-Reply-To: <4D245431.1000508@centre-cired.fr> References: <4D245431.1000508@centre-cired.fr> Message-ID: <4D2459D5.40109@centre-cired.fr> If anyone has the same problem : the mingw atoms module is not compatible with *any* mingw compiler, but only with the package provided by equation.com More info here : http://atoms.scilab.org/toolboxes/mingw/0.4 Le 05/01/2011 12:21, Adrien Vogt-Schilb a ?crit : > Hi > > I downloaded mingw from http://www.mingw.org, and installed ATOMS > module: atomsInstall('mingw') > I also added *C:\MinGW\bin *to the PATH, and debuginfo is OK > > > ! > ! > !Path: C:/Program > Files/scilab-5.3.0-SSE3/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\Intel\DMIX;c:\Program Files\Fichiers communs\Roxio Sha! > ! red\10.0\DLLShared\;C:\Program Files\TortoiseSVN\bin;C:\Program > Files\WinMerge;*C:\MinGW\bin;*C:\Program Files\OpenVPN\bin > > still, when starting sci5.3, i get this message : > > ___________________________________________ > scilab-5.3.0-SSE3 > > Consortium Scilab (DIGITEO) > Copyright (c) 1989-2010 (INRIA) > Copyright (c) 1989-2007 (ENPC) > ___________________________________________ > > > Initialisation : > Chargement de l'environnement de travail > > Start MKL Tools > Load gateways > Load help > Load demos > > Mingw Compiler support for Scilab > Load macros > *ATTENTION : MinGW Compiler not detected.* > Load help > > > any idea? > > -- > > *Adrien Vogt-Schilb* > > Research Fellow > > vogt at centre-cired.fr > > Tel: (+33) 1 43 94 73 72 > > Fax: (+33) 1 43 94 73 70 > > CIRED > > > > 45 bis, Av de la Belle Gabrielle > > F-94736 Nogent-sur-Marne > > http://www.centre-cired.fr/ > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 4092 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From jc.francois at gmail.com Wed Jan 5 14:12:04 2011 From: jc.francois at gmail.com (JC Francois) Date: Wed, 05 Jan 2011 14:12:04 +0100 Subject: Wrong HDF5 library version In-Reply-To: References: Message-ID: On 05/01/11 12:29, sylvestre Ledru wrote: > > Please report a bug on the opensuse bug tracker. We (Scilab team) are > not involved in the maintenance of this package. > > Thanks, > Sylvestre > Thanks, I will do that. I just thought there was a way to configure Scilab to accept a newer revision of the lib. JC From jc.francois at gmail.com Wed Jan 5 14:40:41 2011 From: jc.francois at gmail.com (JC Francois) Date: Wed, 05 Jan 2011 14:40:41 +0100 Subject: Wrong HDF5 library version In-Reply-To: References: Message-ID: On 05/01/11 14:12, JC Francois wrote: > > Thanks, I will do that. I just thought there was a way to configure > Scilab to accept a newer revision of the lib. > > JC > Responding to myself... actually there is a way: set the following environment variable to ignore version check: HDF5_DISABLE_VERSION_CHECK=1 Cheers, JC From tiraduvidascefet at yahoo.com Wed Jan 5 15:23:54 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Wed, 5 Jan 2011 06:23:54 -0800 (PST) Subject: [scilab-Users] Using Mingw compiler In-Reply-To: <4D2459D5.40109@centre-cired.fr> References: <4D245431.1000508@centre-cired.fr> <4D2459D5.40109@centre-cired.fr> Message-ID: <485478.892.qm@web45514.mail.sp1.yahoo.com> Hi Adrien, Scilab loads Mingw correctly. My Windows 7 home edition is 64 bits, but I installed Scilab 5.3 for 32 bits Windows, and runs very well. Adrien, follow this procedure: 1) Download: ftp://ftp.equation.com/gcc/gcc-4.5.1-32.exe 2) Execute that file; 3) Go to the URL: http://atoms.scilab.org/toolboxes/mingw/ and download the file: mingw_0.6-2.bin.windows.zip 4) Unzip it and transfer the folder mingw_0.6 to C:\Program Files (x86)\scilab-5.3.0\modules 5) Then, initialize Scilab and type the command: atomsInstall(['mingw','0.6']) 6)?Type in Scilab: quit 7) Afterthat, initialize Scilab again and it will load the Mingw toolbox !! Well, I followed that procedure exactly?and Scilab works well ... No error message appeared ! All best, Reinaldo. ________________________________ From: Adrien Vogt-Schilb To: users at lists.scilab.org Sent: Wed, January 5, 2011 9:45:25 AM Subject: Re: [scilab-Users] Using WinGW compiler If anyone has the same problem : the mingw atoms module is not compatible with *any* mingw compiler, but only with the package provided by equation.com More info here : http://atoms.scilab.org/toolboxes/mingw/0.4 Le 05/01/2011 12:21, Adrien Vogt-Schilb a ?crit?: Hi > >I downloaded mingw from http://www.mingw.org, and installed ATOMS module: >atomsInstall('mingw') >I also added C:\MinGW\bin to the PATH, and debuginfo is OK > > >!??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? > ! >!Path: C:/Program >Files/scilab-5.3.0-SSE3/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\Intel\DMIX;c:\Program Files\Fichiers communs\Roxio Sha! >!???? red\10.0\DLLShared\;C:\Program Files\TortoiseSVN\bin;C:\Program >Files\WinMerge;C:\MinGW\bin;C:\Program Files\OpenVPN\bin??? > > >still, when starting sci5.3, i get this message : > >??????? ___________________________________________??????? >???????????????????? scilab-5.3.0-SSE3 > >???????????????? Consortium Scilab (DIGITEO) >?????????????? Copyright (c) 1989-2010 (INRIA) >?????????????? Copyright (c) 1989-2007 (ENPC) >??????? ___________________________________________??????? >? >? >Initialisation : >? Chargement de l'environnement de travail > >Start MKL Tools >??? Load gateways >??? Load help >??? Load demos > >Mingw Compiler support for Scilab >??? Load macros >ATTENTION : MinGW Compiler not detected. >??? Load help > >? >any idea? > > >-- > >Adrien Vogt-Schilb >Research Fellow >vogt at centre-cired.fr >Tel: (+33) 1 43 94 73 72 >Fax: (+33) 1 43 94 73 70 > 45 bis, Av de la Belle Gabrielle >F-94736 Nogent-sur-Marne >http://www.centre-cired.fr/ >? -- Adrien Vogt-Schilb Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 4092 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Wed Jan 5 16:33:25 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 05 Jan 2011 16:33:25 +0100 Subject: How to load 16bit TIFF image in Scilab? Message-ID: <4D248F45.6010201@laas.fr> Hi everyone, I try to load 16bit grayscale TIFF image into Scilab. I tried to use SIVP as it handles TIFF images. However, it does not import 16bit TIFF correctly. It seems to me that it interprets the 16bit image as an 8 bit one, which results in a great loss of information. Does anyone have some experience with handling 16bits images in Scilab? Alternatively, do you know some tool I could use to convert my 16bit image in a csv or any other format that Scilab can import? Thank you in advance, Antoine From cwarner7_11 at hotmail.com Wed Jan 5 18:59:34 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Wed, 5 Jan 2011 12:59:34 -0500 Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? In-Reply-To: <4D248F45.6010201@laas.fr> References: <4D248F45.6010201@laas.fr> Message-ID: Have a look at ImageMagick or possibly libTIFF In the Linux world, GIMP or ImagJ may accomplish what you are wanting to accomplish. Charlie > Date: Wed, 5 Jan 2011 16:33:25 +0100 > From: antoine.monmayrant at laas.fr > To: users at lists.scilab.org > Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? > > Hi everyone, > > I try to load 16bit grayscale TIFF image into Scilab. > I tried to use SIVP as it handles TIFF images. > However, it does not import 16bit TIFF correctly. > It seems to me that it interprets the 16bit image as an 8 bit one, which > results in a great loss of information. > Does anyone have some experience with handling 16bits images in Scilab? > Alternatively, do you know some tool I could use to convert my 16bit > image in a csv or any other format that Scilab can import? > > Thank you in advance, > > Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Jan 5 19:59:57 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 05 Jan 2011 19:59:57 +0100 Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? In-Reply-To: References: <4D248F45.6010201@laas.fr> Message-ID: <4D24BFAD.2080205@laas.fr> Thanks for your answer! Le 05/01/11 18:59, Charlie Warner a ?crit : > Have a look at ImageMagick > or possibly libTIFF > I already played with ImageMagick but I don't know how to use it to convert in a format scilab can import. As for libTIFF, I am currently playing with it in an attempt to write my own import function for scilab. > > In the Linux world, GIMP or ImagJ > may accomplish what you are > wanting to accomplish. Gimp (at least the version I have on Fedora13) does not support 16bit. Antoine > > Charlie > > > Date: Wed, 5 Jan 2011 16:33:25 +0100 > > From: antoine.monmayrant at laas.fr > > To: users at lists.scilab.org > > Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? > > > > Hi everyone, > > > > I try to load 16bit grayscale TIFF image into Scilab. > > I tried to use SIVP as it handles TIFF images. > > However, it does not import 16bit TIFF correctly. > > It seems to me that it interprets the 16bit image as an 8 bit one, > which > > results in a great loss of information. > > Does anyone have some experience with handling 16bits images in Scilab? > > Alternatively, do you know some tool I could use to convert my 16bit > > image in a csv or any other format that Scilab can import? > > > > Thank you in advance, > > > > Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From cwarner7_11 at hotmail.com Wed Jan 5 21:25:07 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Wed, 5 Jan 2011 15:25:07 -0500 Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? In-Reply-To: <4D24BFAD.2080205@laas.fr> References: <4D248F45.6010201@laas.fr> ,<4D24BFAD.2080205@laas.fr> Message-ID: Another possibility- goetiff I am not sure about the Fedora repositories, but Ubuntu packages has a "Science" section that lists a lot of specialized processing packages from a variety of sources that may offer the conversion feature you are looking for. Charlie Date: Wed, 5 Jan 2011 19:59:57 +0100 From: antoine.monmayrant at laas.fr To: users at lists.scilab.org Subject: Re: [scilab-Users] How to load 16bit TIFF image in Scilab? Thanks for your answer! Le 05/01/11 18:59, Charlie Warner a ?crit : Have a look at ImageMagick or possibly libTIFF I already played with ImageMagick but I don't know how to use it to convert in a format scilab can import. As for libTIFF, I am currently playing with it in an attempt to write my own import function for scilab. In the Linux world, GIMP or ImagJ may accomplish what you are wanting to accomplish. Gimp (at least the version I have on Fedora13) does not support 16bit. Antoine Charlie > Date: Wed, 5 Jan 2011 16:33:25 +0100 > From: antoine.monmayrant at laas.fr > To: users at lists.scilab.org > Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? > > Hi everyone, > > I try to load 16bit grayscale TIFF image into Scilab. > I tried to use SIVP as it handles TIFF images. > However, it does not import 16bit TIFF correctly. > It seems to me that it interprets the 16bit image as an 8 bit one, which > results in a great loss of information. > Does anyone have some experience with handling 16bits images in Scilab? > Alternatively, do you know some tool I could use to convert my 16bit > image in a csv or any other format that Scilab can import? > > Thank you in advance, > > Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From cwarner7_11 at hotmail.com Wed Jan 5 23:02:12 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Wed, 5 Jan 2011 17:02:12 -0500 Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? In-Reply-To: <4D24BFAD.2080205@laas.fr> References: <4D248F45.6010201@laas.fr> ,<4D24BFAD.2080205@laas.fr> Message-ID: A bit more information about ImagJ, from the documentation: "16-bit and 32-bit grayscale images are not directly displayable on computer monitors, which typically can show only 256 shades of gray. Therefore, the data are mapped to 8-bits by windowing. The window defines the range of gray values that are displayed: values below the window are made black, while values above the window are white. The window is defined by minimum and maximum values that can be modified using Image>Adjust>Brightness/Contrast." Is this the sort of function you are looking for? Charlie Date: Wed, 5 Jan 2011 19:59:57 +0100 From: antoine.monmayrant at laas.fr To: users at lists.scilab.org Subject: Re: [scilab-Users] How to load 16bit TIFF image in Scilab? Thanks for your answer! Le 05/01/11 18:59, Charlie Warner a ?crit : Have a look at ImageMagick or possibly libTIFF I already played with ImageMagick but I don't know how to use it to convert in a format scilab can import. As for libTIFF, I am currently playing with it in an attempt to write my own import function for scilab. In the Linux world, GIMP or ImagJ may accomplish what you are wanting to accomplish. Gimp (at least the version I have on Fedora13) does not support 16bit. Antoine Charlie > Date: Wed, 5 Jan 2011 16:33:25 +0100 > From: antoine.monmayrant at laas.fr > To: users at lists.scilab.org > Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? > > Hi everyone, > > I try to load 16bit grayscale TIFF image into Scilab. > I tried to use SIVP as it handles TIFF images. > However, it does not import 16bit TIFF correctly. > It seems to me that it interprets the 16bit image as an 8 bit one, which > results in a great loss of information. > Does anyone have some experience with handling 16bits images in Scilab? > Alternatively, do you know some tool I could use to convert my 16bit > image in a csv or any other format that Scilab can import? > > Thank you in advance, > > Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Thu Jan 6 08:32:27 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 06 Jan 2011 08:32:27 +0100 Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? In-Reply-To: References: <4D248F45.6010201@laas.fr> ,<4D24BFAD.2080205@laas.fr> Message-ID: <4D25700B.4020000@laas.fr> Le 05/01/11 23:02, Charlie Warner a ?crit : > A bit more information about ImagJ, from the documentation: > > "16-bit and 32-bit grayscale images are not directly displayable on > computer monitors, which typically can show only 256 shades of gray. > Therefore, the data are mapped to 8-bits by windowing. The window > defines the range of gray values that are displayed: values below the > window are made black, while values above the window are white. The > window is defined by minimum and maximum values that can be modified > using /Image>Adjust>Brightness/Contrast/." > > Is this the sort of function you are looking for? Not really, but thanks for the information. In fact, we use a 16bit camera to acquire some signal that we process with Scilab. We don't really need to directly look at the unprocessed image. We don't want to throw away information while processing the data. Moreover, we need to be able to compare the relative intensity between to different images which mean we cannot adjust image settings independently. > > Charlie > > > ------------------------------------------------------------------------ > Date: Wed, 5 Jan 2011 19:59:57 +0100 > From: antoine.monmayrant at laas.fr > To: users at lists.scilab.org > Subject: Re: [scilab-Users] How to load 16bit TIFF image in Scilab? > > Thanks for your answer! > > Le 05/01/11 18:59, Charlie Warner a ?crit : > > Have a look at ImageMagick > or possibly libTIFF > > > I already played with ImageMagick but I don't know how to use it to > convert in a format scilab can import. > As for libTIFF, I am currently playing with it in an attempt to write > my own import function for scilab. > > > In the Linux world, GIMP or ImagJ > may accomplish what you > are wanting to accomplish. > > Gimp (at least the version I have on Fedora13) does not support 16bit. > > Antoine > > > Charlie > > > Date: Wed, 5 Jan 2011 16:33:25 +0100 > > From: antoine.monmayrant at laas.fr > > To: users at lists.scilab.org > > Subject: [scilab-Users] How to load 16bit TIFF image in Scilab? > > > > Hi everyone, > > > > I try to load 16bit grayscale TIFF image into Scilab. > > I tried to use SIVP as it handles TIFF images. > > However, it does not import 16bit TIFF correctly. > > It seems to me that it interprets the 16bit image as an 8 bit > one, which > > results in a great loss of information. > > Does anyone have some experience with handling 16bits images in > Scilab? > > Alternatively, do you know some tool I could use to convert my > 16bit > > image in a csv or any other format that Scilab can import? > > > > Thank you in advance, > > > > Antoine > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio.vezzani at gmail.com Wed Jan 5 20:01:39 2011 From: fabio.vezzani at gmail.com (FABIO VEZZANI) Date: Wed, 5 Jan 2011 20:01:39 +0100 Subject: SCILAB 5.3 Message-ID: Good evening I have tried to download software on my PC (windows xp) today Trying to start to work I have seen the screen the screen you see in enclosed file. In this it is required an input for 'Starting iniotial environment' which code I am not able to find I tested wsilex Scilab 5.3 without succeed Can you help me on this subject Best regards F.Vezzani -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: START SCREEN SCILAB 5-3-0.pdf Type: application/pdf Size: 26686 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: START SCREEN SCILAB 5-3-0.pdf Type: application/pdf Size: 26686 bytes Desc: not available URL: From marc.couedic at orange.fr Wed Jan 5 22:20:52 2011 From: marc.couedic at orange.fr (Marc COUEDIC) Date: Wed, 05 Jan 2011 21:20:52 -0000 Subject: tr: C compiler Message-ID: <12984971.108748.1294262436247.JavaMail.www@wwinf1f04> > Message du 05/01/11 22:15 > De : "Marc COUEDIC" > A : users at lists.scilab.org > Copie ? : > Objet : > > Hello, I am a beginner with scilab and I downloaded the free borland c compiler yesterday. I don't know what I have to do when xcos or scicos say "Compiler not found " when I try to simulate an electrical pattern ? Regards. Marc Cou?dic. (french user) -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Thu Jan 6 09:03:44 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 6 Jan 2011 09:03:44 +0100 Subject: [scilab-Users] tr: C compiler In-Reply-To: <12984971.108748.1294262436247.JavaMail.www@wwinf1f04> References: <12984971.108748.1294262436247.JavaMail.www@wwinf1f04> Message-ID: <002701cbad78$3d2de5d0$b789b170$@scilab.org> Hi, Borland C compiler is not supported. You can use Ms Visual studio Pro or Express ( http://msdn.microsoft.com/en-us/express/aa718373) Or mingw with http://atoms.scilab.org/toolboxes/mingw/0.6 Or lcc-win32 with http://atoms.scilab.org/toolboxes/lcc_windows Best regards Allan CORNET De : Marc COUEDIC [mailto:marc.couedic at orange.fr] Envoy? : Aucune ? : utilisateur scilab Objet : [scilab-Users] tr: C compiler > Message du 05/01/11 22:15 > De : "Marc COUEDIC" > A : users at lists.scilab.org > Copie ? : > Objet : > > Hello, I am a beginner with scilab and I downloaded the free borland c compiler yesterday. I don't know what I have to do when xcos or scicos say "Compiler not found " when I try to simulate an electrical pattern ? Regards. Marc Cou?dic. (french user) -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Thu Jan 6 09:05:46 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 6 Jan 2011 09:05:46 +0100 Subject: [scilab-Users] SCILAB 5.3 In-Reply-To: References: Message-ID: <003401cbad78$85e9bd80$91bd3880$@scilab.org> Hi, You can read : http://www.scilab.org/content/download/1754/19024/file/introscilab.pdf or type in scilab : help Best regards Allan CORNET De : FABIO VEZZANI [mailto:fabio.vezzani at gmail.com] Envoy? : mercredi 5 janvier 2011 20:02 ? : users at lists.scilab.org Objet : [scilab-Users] SCILAB 5.3 Good evening I have tried to download software on my PC (windows xp) today Trying to start to work I have seen the screen the screen you see in enclosed file. In this it is required an input for 'Starting iniotial environment' which code I am not able to find I tested wsilex Scilab 5.3 without succeed Can you help me on this subject Best regards F.Vezzani -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Thu Jan 6 13:23:54 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 06 Jan 2011 13:23:54 +0100 Subject: Linking to C from Scilab: looking for some advice Message-ID: <4D25B45A.2000904@laas.fr> Hi everyone, As some of you have seen here, I was looking for a way to load 16bit tiff images in Scilab. I found a way: compile a C routine that uses libtiff and link to it using "ilib_for_link". It's the first time I manage to link to C code and I am looking for some advice on what is good/bad practice. Is there a tutorial or an article on that? I also have a specific question concerning "dynamic allocation". More precisely, I would like in the end to get something like: image=openTIFF("test.tiff"); where "test.tiff" is an image of unknown width and height, and "image" a matrix of the same size than the image. My problem is that it involves filling the "image" matrix without a priori knowing how big the matrix is. Is there a way to do it properly using a single C call? Or should I resort to something like function image=openTIFF("test.tiff") w=call("width_of_tiff","out",[1,1],1,"i"); h=call("height_of_tiff","out",[1,1],1,"i"); image=call("read_tiff","out",[h,w],1,"i"); endfunction that uses several calls to C? Thanks in advance, Antoine From lauffenp at gmail.com Thu Jan 6 15:08:58 2011 From: lauffenp at gmail.com (phil lauffenburger) Date: Thu, 6 Jan 2011 07:08:58 -0700 Subject: scinotes saving issue Message-ID: Hello, I cannot save any scinotes file. Whenever I attempt to save and conduct another activity (i.e. save and execute, save and quit...) the program merely returns to its original state before I selected that command. If I directly try to save I get "The file could not be saved" error. I am running windows 7. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Thu Jan 6 15:50:10 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 6 Jan 2011 15:50:10 +0100 Subject: [scilab-Users] scinotes saving issue In-Reply-To: References: Message-ID: <006001cbadb1$046dea40$0d49bec0$@scilab.org> Hi, Can you report a bug report @ http://bugzilla.scilab.org/ And attach the result (in scilab) of [a,b] = getdebuginfo() Thanks you Allan De : phil lauffenburger [mailto:lauffenp at gmail.com] Envoy? : jeudi 6 janvier 2011 15:09 ? : users at lists.scilab.org Objet : [scilab-Users] scinotes saving issue Hello, I cannot save any scinotes file. Whenever I attempt to save and conduct another activity (i.e. save and execute, save and quit...) the program merely returns to its original state before I selected that command. If I directly try to save I get "The file could not be saved" error. I am running windows 7. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Thu Jan 6 18:17:58 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 06 Jan 2011 18:17:58 +0100 Subject: [scilab-Users] scinotes saving issue In-Reply-To: References: Message-ID: <1294334278.4908.8.camel@Calixte-Dell> Hi Phil, Please make a bug report at bugzilla.scilab.org... It's a weird bug, so please give us a lot of informations to help you. Calixte Le jeudi 06 janvier 2011 ? 07:08 -0700, phil lauffenburger a ?crit : > Hello, > > > I cannot save any scinotes file. Whenever I attempt to save and > conduct another activity (i.e. save and execute, save and quit...) the > program merely returns to its original state before I selected that > command. If I directly try to save I get "The file could not be > saved" error. I am running windows 7. > > > Thank you! From calixte at contrib.scilab.org Thu Jan 6 22:38:13 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 06 Jan 2011 22:38:13 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <540384.71401.qm@web112605.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> <542709.20945.qm@web112603.mail.gq1.yahoo.com> <1293546507.2584.239.camel@Calixte-Dell> <441293.11915.qm@web112606.mail.gq1.yahoo.com> <1293549311.2584.252.camel@Calixte-Dell> <540384.71401.qm@web112605.mail.gq1.yahoo.com> Message-ID: <1294349893.4908.156.camel@Calixte-Dell> Hi Harald, Could you make a bug report ? I'll look at asap... Calixte Le mardi 28 d?cembre 2010 ? 23:04 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Hi Calixte, > > I created the XML files with XMLmind XML Editor. This program generates XML code > automatically. I am not aware of any possibility to control where xml:id is put. > > Moreover, my XML files were processed without problems in all Scilab versions > before 5.3.0. > > Regards > Harald > > > > > ----- Urspr?ngliche Mail ---- > Von: Calixte Denizet > An: users at lists.scilab.org > Gesendet: Dienstag, den 28. Dezember 2010, 16:15:11 Uhr > Betreff: Re: AW: AW: [scilab-Users] Problems with xmltojar > > Le mardi 28 d?cembre 2010 ? 06:54 -0800, Harald Galda, Dr. Eng. (J) a > ?crit : > > Hi Calixte, > > > > Hi Harald, > > > the XML file contains the following line: > > > > > > > > So this xml:id="AnalyzeBlobs" should be copied into the refentry tag? It would > > > take a lot of time to revise each XML file of my toolbox though. > > > > For the moment there is a bug: xml:id outside the refentry tag is not > handled. > > I think xml:id can be used outside a refentry to identify a block and to > link it with a linkend; by the way, it is like an HTML anchor. So in my > mind, to identify the file itself, the good place is refentry, it is > like that in all Scilab help files... Where do you see it was possible > to put xml:id outside a refentry ? > > Regards, > > Calixte > > From Rachid.Atori at spacebel.be Thu Jan 6 23:11:51 2011 From: Rachid.Atori at spacebel.be (Rachid Atori) Date: Thu, 6 Jan 2011 23:11:51 +0100 Subject: How can we assign a name to blocks and inputs and outputs Message-ID: <78B00FA862FF2D49B7C3EF71AAED1D91010D34ED@spb-hlt-mx01.spb.spacebel.be> Hi It is probably a stupid question, but I did not find how I could provide a name to items such block, input, output, ... Can anyone help on this? In just want to have clear diagram with ad'hoc name for tha various involved elements. Best regards, Rachid Atori -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rachid.Atori at spacebel.be Thu Jan 6 22:02:45 2011 From: Rachid.Atori at spacebel.be (Rachid Atori) Date: Thu, 6 Jan 2011 22:02:45 +0100 Subject: How can we assign a name to blocks and inputs and outputs Message-ID: <78B00FA862FF2D49B7C3EF71AAED1D91010D34EB@spb-hlt-mx01.spb.spacebel.be> Hi It is probably a stupid question, but I did not find how I could provide a name to items such block, input, output, ... Can anyone help on this? In just want to have clear diagram with ad'hoc name for tha various involved elements. Best regards, Rachid Atori -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Jan 7 11:20:50 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 7 Jan 2011 11:20:50 +0100 Subject: General question regarding Simplex method Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B07F@exchsrv.AUXITROL1> Dear All, (I take this opportunity to wish all my best wishes for 2011) Using Bounded Nelder-Mead simplex solver, I meet the error herebellow ; nevertheless the number of bounds are correct ... I don't understand where I'm wrong => any idea ? Thanks in advance Paul Error : ################################################################ neldermead_startup: The number of variables 1 does not match the number of max bounds 9 from [20 20 20 20 20 20 20 20 20] at line 13 of function neldermead_startup called by : at line 8 of function neldermead_search called by : at line 5 of function nmplot_search called by : nm = nmplot_search(nm); // start at line 71 of exec file called by : ################################################################# Extracts of Input data : ################################################################ RAIDEUR_JEU1 = 1.6 ; RAIDEUR_JEU2 = 1.6 ; RAIDEUR_JEU3 = 1.6 ; RAIDEUR_JEU4 = 1.6 ; RAIDEUR_JEU5 = 1.6 ; RAIDEUR_JEU6 = 1.6 ; RAIDEUR_JEU7 = 1.6 ; RAIDEUR_JEU8 = 1.6 ; RAIDEUR_JEU9 = 1.6 ; initial_parameters = [RAIDEUR_JEU1 RAIDEUR_JEU2 RAIDEUR_JEU3 RAIDEUR_JEU4 RAIDEUR_JEU5 RAIDEUR_JEU6 RAIDEUR_JEU7 RAIDEUR_JEU8 RAIDEUR_JEU9]; ... lower_bounds = [0. 0. 0. 0. 0. 0. 0. 0. 0.] ; upper_bounds = [20. 20. 20. 20. 20. 20. 20. 20. 20.] ; data = list(lower_bounds,upper_bounds); nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",1); nm = nmplot_configure(nm,"-function",optimization_nm); nm = nmplot_configure(nm,"-costfargument",data) nm = nmplot_configure(nm,"-x0",initial_parameters'); // BE CAREFUL : initial_parameters' = transposed matrix nm = nmplot_configure(nm,"-method","box"); // box => brackets are taken into account nm = nmplot_configure(nm,"-boundsmin",lower_bounds); nm = nmplot_configure(nm,"-boundsmax",upper_bounds); nm = nmplot_configure(nm,"-simplex0method","randbounds"); [nm,SSE] = nmplot_function(nm,initial_parameters'); nm = nmplot_configure(nm,"-simplexfn","history.simplex.dat"); // optimization launch nm = nmplot_search(nm); // start nmplot_display(nm); // display results optimized_parameters = nmplot_get(nm,"-xopt"); // extract of the results nm = nmplot_destroy(nm); ... xmin = data(1)'; xmax = data(2)'; printf("xmin=%g & xmax=%g\n",xmin,xmax) if ( or(x < xmin) | or(x > xmax) ) then SSE = %inf else SSE = 0 ; SSE = ( norm(f0_mesurees(:,2) - f0_FEA(:,2)) / norm(f0_mesurees(:,2)) )^2; printf(" * SSE = %g\n\n",SSE); end ################################################################ -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Fri Jan 7 12:08:43 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 07 Jan 2011 12:08:43 +0100 Subject: [scilab-Users] General question regarding Simplex method In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B07F@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B07F@exchsrv.AUXITROL1> Message-ID: <4D26F43B.8080107@scilab.org> Hello, Happy new year to you! I think that the statement : nm = nmplot_configure(nm,"-numberofvariables",1); should be replaced with: nm = neldermead_configure(nm,"-numberofvariables",9); First, the nmplot component is only useful in 2D (i.e. with 2 variables). Second, there are 9 parameters in your optimization problem, isn'it ? Best regards, Micha?l Baudin Le 07/01/2011 11:20, Carrico, Paul a ?crit : > nm = nmplot_configure(nm,"-numberofvariables",1); -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Jan 7 12:30:45 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 7 Jan 2011 12:30:45 +0100 Subject: [scilab-Users] General question regarding Simplex method In-Reply-To: <4D26F43B.8080107@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B07F@exchsrv.AUXITROL1> <4D26F43B.8080107@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B084@exchsrv.AUXITROL1> Ahhhh .... that's right ...sorry Thanks Paul ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : vendredi 7 janvier 2011 12:09 ? : users at lists.scilab.org Cc : Carrico, Paul Objet : Re: [scilab-Users] General question regarding Simplex method Hello, Happy new year to you! I think that the statement : nm = nmplot_configure(nm,"-numberofvariables",1); should be replaced with: nm = neldermead_configure(nm,"-numberofvariables",9); First, the nmplot component is only useful in 2D (i.e. with 2 variables). Second, there are 9 parameters in your optimization problem, isn'it ? Best regards, Micha?l Baudin Le 07/01/2011 11:20, Carrico, Paul a ?crit : nm = nmplot_configure(nm,"-numberofvariables",1); -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollette.nospam at free.fr Fri Jan 7 13:01:20 2011 From: ycollette.nospam at free.fr (ycollette.nospam at free.fr) Date: Fri, 7 Jan 2011 13:01:20 +0100 (CET) Subject: Proposition de stage Message-ID: <1513834877.819071294401680296.JavaMail.root@zimbra40-e7.priv.proxad.net> Sujet: Stage d?veloppement interface DAKOTA / Scilab Le logiciel DAKOTA (http://dakota.sandia.gov/) est un outil permettant d'effectuer des optimisations de tous types sur des pi?ces industrielles. Cet outil permet d'appeler des codes de calculs ainsi que des ex?cutables permettant de lancer des calculs. Il peut aussi appeler des scripts Matlab via une interface d?di?e. Le but de ce stage sera de reprendre l'interface permettant de lancer des scripts Matlab et de la transformer afin de pouvoir lancer des scripts Scilab (http://www.scilab.org). Il faudra aussi d?velopper quelques exemples d'utilisation de cette interface. Comp?tences : Des connaissances en C / C++ sont indispensables. Une connaissance de Matlab et / ou Scilab pourra ?tre utile. La ma?trise du gestionnaire de version serait un plus. Savoir communiquer, savoir r?diger. Les d?veloppements s'effectueront dans un environnement Linux. Informations compl?mentaires : Le stage se d?roulera chez Hutchinson SA - Levallois-Perret - 92. La r?mun?ration sera de: ? 784 ? net pour un stagiaire de fin d'?cole d'ing?nieur ? 655 ? net pour tout autre candidat Contacts : Yann COLLETTE (yann dot collette at cdr dot hutchinson dot fr) - 01 40 89 55 15 Sophie BOUDAUD (sophie dot boudaud at cdr dot hutchinson dot fr) - 01 40 89 55 12 Bonne journ?e, Yann COLLETTE From michael.baudin at scilab.org Fri Jan 7 13:44:22 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 07 Jan 2011 13:44:22 +0100 Subject: News on the wiki Message-ID: <4D270AA6.1060107@scilab.org> Hi, There was recently several users asking for support of finite element tools in Scilab. As this question was asked regularly, we gathered the informations we have on the wiki : http://wiki.scilab.org/Finite_Elements_in_Scilab The goal of this page is to present the finite element tools which are available in the Scilab environment. It presents the Femtruss module and the connection between Scilab and the FreeFem, OpenFem and GetFem modules. -- We often provide support for users who provide packages on Atoms. There are simple practices which are sometimes forgotten. The main reason is that we often tend to develop a program only for ourselves, and forget that other users may have troubles with the tools we have created. The most common of these advices are gathered on the wiki page : http://wiki.scilab.org/Guidelines_To_Design_a_Module In this page, we briefly present the "Toolbox skeleton". We also presents methods which avoid function name conflicts, advices on the help pages, the content of these pages and the API of a module. -- There are several interesting resources on the web which compare the features and performances of Scilab versus other softwares, including Matlab, Octave, etc... We gathered these documents on the wiki, in the "Comparison of Scientific Technical Softwares" section of the Tutorials page: http://wiki.scilab.org/Tutorials They cover the years from 1999 to 2010. Most of them are very interesting. Still, we should be aware that some of the informations are not up-to-date, given that Scilab is constantly evolving. Best regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From jean.baptiste.bordellier at gmail.com Sun Jan 9 11:24:36 2011 From: jean.baptiste.bordellier at gmail.com (Jean-Baptiste Bordellier) Date: Sun, 9 Jan 2011 11:24:36 +0100 Subject: remove. Message-ID: Good morning/afternoon Sorry to use the ist for that but i need to remove myself from tis list. I receive it on another e mail. I cannot find how to do that. Any clues? Kind regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Mon Jan 10 09:51:27 2011 From: david.cheze at cea.fr (CHEZE David 227480) Date: Mon, 10 Jan 2011 09:51:27 +0100 Subject: dynamical simulations with scilab Message-ID: hi everybody, I would like to do dynamical simulations with scilab on hydraulic/thermal systems (many components hydraulically linked together: valves, pumps, water tanks, heat pump, boiler... ) controlling flowrates and temperature mainly . There are commercial simulation environments for this but they introduce too many constraints in later exploitation and distribution that's why I investigate the scilab way! I have many existing models (blocks) in C and fortran that I would bring to scilab (or link) environment : is there example of such use of scilab (other than scilab simulations demos which are not oriented), is there a place where I could ask and talk about this more specifcally ? thanks for your advice. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Mon Jan 10 10:09:14 2011 From: david.cheze at cea.fr (CHEZE David 227480) Date: Mon, 10 Jan 2011 10:09:14 +0100 Subject: independant executable based on scilab Message-ID: Hi everybody, I would like to make an independant executable of the program I maded with scilab, is it possible ? is there example or help material showing this ? Where can I find detailed informations about distribution rules of such an application? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.wozniczka at gazeta.pl Mon Jan 10 13:29:42 2011 From: marcin.wozniczka at gazeta.pl (marcin.wozniczka Gazeta.pl) Date: Mon, 10 Jan 2011 13:29:42 +0100 Subject: [scilab-Users] independant executable based on scilab In-Reply-To: References: Message-ID: Try use Scilab2C: http://atoms.scilab.org/toolboxes/scilab2c/ I don't know how to use it. If you figure out, please tell me. -- Marcin Wo?niczka -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Mon Jan 10 13:52:47 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Mon, 10 Jan 2011 13:52:47 +0100 Subject: [scilab-Users] dynamical simulations with scilab In-Reply-To: References: Message-ID: <4D2B011F.3080104@centre-cired.fr> Hi you may find some answers reading the example in ilib_for_link documentation type in scialb : help ilib_for_link be careful, you will need a C compiler installed in your coumputer. In linux, gcc will work with no problem, if you are using windows, i suggest you read carrefully this page, and more specifically the "description" section : http://atoms.scilab.org/toolboxes/mingw/ mingw is not the only supported C compiler, you can learn more by tiping : help supported which will get you to the list of supported compilers Le 10/01/2011 09:51, CHEZE David 227480 a ?crit : > > hi everybody, I would like to do dynamical simulations with scilab on > hydraulic/thermal systems (many components hydraulically linked > together: valves, pumps, water tanks, heat pump, boiler... ) > controlling flowrates and temperature mainly . There are commercial > simulation environments for this but they introduce too many > constraints in later exploitation and distribution that's why I > investigate the scilab way! I have many existing models (blocks) in C > and fortran that I would bring to scilab (or link) environment : is > there example of such use of scilab (other than scilab simulations > demos which are not oriented), is there a place where I could ask and > talk about this more specifcally ? thanks for your advice. > > David > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From singh.ashu at gmail.com Mon Jan 10 15:56:42 2011 From: singh.ashu at gmail.com (Ashutosh Singh) Date: Mon, 10 Jan 2011 09:56:42 -0500 Subject: statconn Server Basic Test and SCILAB Message-ID: Hi, I am *unable to successfully run the statconn Basic Server Test for SCILAB*. My ultimate goal is to be able to have Excel speak with SCILAB functions using a toolbox like Scilab_XLL. Here is what I did so far: - Installed SCILAB (scilab-5.3.0) - Installed statconn version 3.1.2.7. - Copied sciproxy from statconn directory to SCILAB's bin directory - Successfully ran Basic Server Test with R. *The output from StatConnector Test* Loading StatConnector Server... Done Initializing SciLab...Function call failed Code: -2147221485 Text: installation problem: unable to load connector Releasing StatConnector Server...Done And then a pop-up box with message: Method '~' of object '~' failed. The log of DebugView is attached. Thanks Ashu Ashutosh Singh, CFA (917) 952 3388 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- [5900] statconnDCOM Installation path is "C:\Program Files\statconn\DCOM" [5900] ::Init() [5900] CStatConnector::Init(connstr=SciLab): connector=SciLab, licensee=(null), parameters=(null) [5900] BDXImpl_init(licensee=(null), connector=SciLab, objptr=00384438, installpath=C:\Program Files\statconn\DCOM, licensepath=C:\Program Files\statconn\DCOM [5900] SCLIC: loading license for connector "default" from base path "C:\Program Files\statconn\DCOM" [5900] SCLIC: loading license file "C:\Program Files\statconn\DCOM\default.lic" [5900] SCLIC: could not read/parse license file "(null)" [5900] CStatConnector::initBDXForConnector() vtbl-object at 1006C000 [5900] Attaching to connector name [5900] Checking connector name [5900] connector: R [5900] DLL: rscproxy.dll [5900] environment: R_HOME [5900] registry key: Software\R-core\R [5900] registry value: InstallPath [5900] version key: [5900] version value: [5900] binary dir: bin/i386 [5900] connector: RPre2.12 [5900] DLL: rscproxy.dll [5900] environment: R_HOME [5900] registry key: Software\R-core\R [5900] registry value: InstallPath [5900] version key: [5900] version value: [5900] binary dir: bin [5900] connector: Rold [5900] DLL: rproxy.dll [5900] environment: R_HOME [5900] registry key: Software\R-core\R [5900] registry value: InstallPath [5900] version key: [5900] version value: [5900] binary dir: bin [5900] connector: SciLab [5900] DLL: sciproxy.dll [5900] environment: SCILAB_HOME [5900] registry key: Software\Scilab\%s [5900] registry value: SCIPATH [5900] version key: Software\Scilab [5900] version value: LASTINSTALL [5900] binary dir: bin [5900] sc_proxy_find_connector: 00382D90/SciLab (current R) [5900] sc_proxy_find_connector: 00385630/SciLab (current RPre2.12) [5900] sc_proxy_find_connector: 00385728/SciLab (current Rold) [5900] sc_proxy_find_connector: 00385808/SciLab (current SciLab) [5900] sc_proxy_find_connector: found "SciLab [5900] sc_proxy_find_connector: 00382D90/SciLab (current R) [5900] sc_proxy_find_connector: 00385630/SciLab (current RPre2.12) [5900] sc_proxy_find_connector: 00385728/SciLab (current Rold) [5900] sc_proxy_find_connector: 00385808/SciLab (current SciLab) [5900] sc_proxy_find_connector: found "SciLab [5900] looking up indirect registry value at "HKCU\Software\Scilab\LASTINSTALL" [5900] looking up indirect registry value at "HKLM\Software\Scilab\LASTINSTALL" [5900] looking up registry key at "HKCU\Software\Scilab\scilab-5.3.0\SCIPATH" [5900] looking up registry key at "HKLM\Software\Scilab\scilab-5.3.0\SCIPATH" [5900] counting binary directories for [5900] 1 start is [5900] adding to path [5900] SetEnvironmentVariable("SCILAB_HOME","C:\Program Files\scilab-5.3.0") [5900] SetEnvironmentVariable("PATH","C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ZANTAZ\EAS Client\;C:\Program Files\QuickTime\QTSystem\;C:\blp\API;C:\blp\API\dde;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\scilab-5.3.0\bin") [5900] %PATH% is "C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ZANTAZ\EAS Client\;C:\Program Files\QuickTime\QTSystem\;C:\blp\API;C:\blp\API\dde;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\scilab-5.3.0\bin" [5900] load proxy library from "C:\Program Files\scilab-5.3.0\bin\sciproxy.dll" [5900] _putenv_s returned 0 [5900] Registry information said to load "C:\Program Files\scilab-5.3.0\bin\sciproxy.dll", failed, rc=127! [5900] ::~CStatConnector() From allan.cornet at scilab.org Mon Jan 10 16:26:06 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 10 Jan 2011 16:26:06 +0100 Subject: [scilab-Users] statconn Server Basic Test and SCILAB In-Reply-To: References: Message-ID: <005b01cbb0da$b3598a60$1a0c9f20$@scilab.org> Hi, I do not understand what you want to do ? ? My ultimate goal is to be able to have Excel speak with SCILAB functions using a toolbox like Scilab_XLL. ? Why do you not use Scilab XLL in this case? Allan De : Ashutosh Singh [mailto:singh.ashu at gmail.com] Envoy? : lundi 10 janvier 2011 15:57 ? : users at lists.scilab.org; rcom-l at mailman.csd.univie.ac.at Objet : [scilab-Users] statconn Server Basic Test and SCILAB Hi, I am unable to successfully run the statconn Basic Server Test for SCILAB. My ultimate goal is to be able to have Excel speak with SCILAB functions using a toolbox like Scilab_XLL. Here is what I did so far: * Installed SCILAB (scilab-5.3.0) * Installed statconn version 3.1.2.7. * Copied sciproxy from statconn directory to SCILAB's bin directory * Successfully ran Basic Server Test with R. The output from StatConnector Test Loading StatConnector Server... Done Initializing SciLab...Function call failed Code: -2147221485 Text: installation problem: unable to load connector Releasing StatConnector Server...Done And then a pop-up box with message: Method '~' of object '~' failed. The log of DebugView is attached. Thanks Ashu Ashutosh Singh, CFA (917) 952 3388 -------------- next part -------------- An HTML attachment was scrubbed... URL: From R.MARIGO at arpalombardia.it Mon Jan 10 17:10:43 2011 From: R.MARIGO at arpalombardia.it (MARIGO RAFFAELLA) Date: Mon, 10 Jan 2011 16:10:43 +0000 Subject: information about bootstrap non parametric test Message-ID: Hi, I'm Raffaella Marigo from italy, I'd like to have some information about the bootstrap non parametric test with scilab I have a small number of experimental data so I need to increase them with the bootstrap technique, but I'm not able to develop a scilab tool Could you help me? Thanks a lot Raffaella Marigo -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Jan 11 16:47:14 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 16:47:14 +0100 Subject: C->Scilab: Now I'm lost and need some directions Message-ID: <4D2C7B82.8030400@laas.fr> Hi all, I am fighting to call some C code from within Scilab, or more precisely to add a primitive to Scilab using some C code I wrote. I have a working C code and I managed to link it to Scilab by using "ilib_for_link". It works, no problem. Now I would like to bullet-proof it, that is to get it to work like a real scilab primitive. For example, at the moment, if I try to open a file that do not exist (from within my C code), I just kill my Scilab session. This is due to the way the error is treated in my C code. I would prefer to get a normal Scilab error: "!--error 241, File does not exist". In the end, I would like to handle all the usual scilab error (wrong number of arguments, wrong type, ...) gracefully. What should I do? I found bits and pieces here and there about how to link, what the interface should be like, how to use call, ... but I can't put the pieces together to get a big picture of what I should do. I found "intersci" but it is obsolete. I found some articles but they are outdated ( http://www.saphir-control.fr/articles/lm15/article.html ). Does anyone know a proper tutorial or *complete* example ( c_source, interface_source, build and example of use) on the subject? Thank you in advance, Antoine From allan.cornet at scilab.org Tue Jan 11 16:55:05 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 11 Jan 2011 16:55:05 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2C7B82.8030400@laas.fr> References: <4D2C7B82.8030400@laas.fr> Message-ID: <007601cbb1a7$e9f7d860$bde78920$@scilab.org> Hi, See help about api_scilab to write a primitive You can also see example in toolbox_skeleton SCI/contrib/toolbox_skeleton Allan -----Message d'origine----- De?: Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] Envoy??: mardi 11 janvier 2011 16:47 ??: users at lists.scilab.org Objet?: [scilab-Users] C->Scilab: Now I'm lost and need some directions Hi all, I am fighting to call some C code from within Scilab, or more precisely to add a primitive to Scilab using some C code I wrote. I have a working C code and I managed to link it to Scilab by using "ilib_for_link". It works, no problem. Now I would like to bullet-proof it, that is to get it to work like a real scilab primitive. For example, at the moment, if I try to open a file that do not exist (from within my C code), I just kill my Scilab session. This is due to the way the error is treated in my C code. I would prefer to get a normal Scilab error: "!--error 241, File does not exist". In the end, I would like to handle all the usual scilab error (wrong number of arguments, wrong type, ...) gracefully. What should I do? I found bits and pieces here and there about how to link, what the interface should be like, how to use call, ... but I can't put the pieces together to get a big picture of what I should do. I found "intersci" but it is obsolete. I found some articles but they are outdated ( http://www.saphir-control.fr/articles/lm15/article.html ). Does anyone know a proper tutorial or *complete* example ( c_source, interface_source, build and example of use) on the subject? Thank you in advance, Antoine From antoine.monmayrant at laas.fr Tue Jan 11 17:10:19 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 17:10:19 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <007601cbb1a7$e9f7d860$bde78920$@scilab.org> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> Message-ID: <4D2C80EB.7020604@laas.fr> Le 11/01/2011 16:55, Allan CORNET a ?crit : > Hi, > > See help about api_scilab to write a primitive > > You can also see example in toolbox_skeleton SCI/contrib/toolbox_skeleton Well, I didn't mention it, but I downloaded this module and I opened all the files I found and I was lost. Basically I don't know where to start and which file does what and what I should modify to adapt to my c code. > Allan > > > > -----Message d'origine----- > De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] > Envoy? : mardi 11 janvier 2011 16:47 > ? : users at lists.scilab.org > Objet : [scilab-Users] C->Scilab: Now I'm lost and need some directions > > Hi all, > > I am fighting to call some C code from within Scilab, or more precisely to > add a primitive to Scilab using some C code I wrote. > I have a working C code and I managed to link it to Scilab by using > "ilib_for_link". > It works, no problem. > Now I would like to bullet-proof it, that is to get it to work like a real > scilab primitive. > For example, at the moment, if I try to open a file that do not exist (from > within my C code), I just kill my Scilab session. > This is due to the way the error is treated in my C code. > I would prefer to get a normal Scilab error: "!--error 241, File does not > exist". > In the end, I would like to handle all the usual scilab error (wrong number > of arguments, wrong type, ...) gracefully. > What should I do? > I found bits and pieces here and there about how to link, what the interface > should be like, how to use call, ... but I can't put the pieces together to > get a big picture of what I should do. > I found "intersci" but it is obsolete. I found some articles but they are > outdated ( http://www.saphir-control.fr/articles/lm15/article.html ). > Does anyone know a proper tutorial or *complete* example ( c_source, > interface_source, build and example of use) on the subject? > > Thank you in advance, > > Antoine > > > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From vogt at centre-cired.fr Tue Jan 11 17:31:06 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 11 Jan 2011 17:31:06 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2C80EB.7020604@laas.fr> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> Message-ID: <4D2C85CA.7040907@centre-cired.fr> I am experiencing the same thing: being lost in the toolbox skeleton. I also find that typing "help api_scilab" does not help me at all right now. And i just understood today (thanks to allan's mail) that toolboxes is the modern way of doing what i do with call. For now i am still using ilib_for_link and call, because of the very effective help of ilib_for_link, which does provide a complete example. If anyone happens to have some guidelines, it would be very helpfull to make a wiki i think. Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : > Le 11/01/2011 16:55, Allan CORNET a ?crit : >> Hi, >> >> See help about api_scilab to write a primitive >> >> You can also see example in toolbox_skeleton >> SCI/contrib/toolbox_skeleton > Well, I didn't mention it, but I downloaded this module and I opened > all the files I found and I was lost. > Basically I don't know where to start and which file does what and > what I should modify to adapt to my c code. >> Allan >> >> >> >> -----Message d'origine----- >> De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] >> Envoy? : mardi 11 janvier 2011 16:47 >> ? : users at lists.scilab.org >> Objet : [scilab-Users] C->Scilab: Now I'm lost and need some directions >> >> Hi all, >> >> I am fighting to call some C code from within Scilab, or more >> precisely to >> add a primitive to Scilab using some C code I wrote. >> I have a working C code and I managed to link it to Scilab by using >> "ilib_for_link". >> It works, no problem. >> Now I would like to bullet-proof it, that is to get it to work like a >> real >> scilab primitive. >> For example, at the moment, if I try to open a file that do not exist >> (from >> within my C code), I just kill my Scilab session. >> This is due to the way the error is treated in my C code. >> I would prefer to get a normal Scilab error: "!--error 241, File does >> not >> exist". >> In the end, I would like to handle all the usual scilab error (wrong >> number >> of arguments, wrong type, ...) gracefully. >> What should I do? >> I found bits and pieces here and there about how to link, what the >> interface >> should be like, how to use call, ... but I can't put the pieces >> together to >> get a big picture of what I should do. >> I found "intersci" but it is obsolete. I found some articles but they >> are >> outdated ( http://www.saphir-control.fr/articles/lm15/article.html ). >> Does anyone know a proper tutorial or *complete* example ( c_source, >> interface_source, build and example of use) on the subject? >> >> Thank you in advance, >> >> Antoine >> >> >> > > -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From vogt at centre-cired.fr Tue Jan 11 17:43:42 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 11 Jan 2011 17:43:42 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2C85CA.7040907@centre-cired.fr> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> Message-ID: <4D2C88BE.8080304@centre-cired.fr> Le 11/01/2011 17:31, Adrien Vogt-Schilb a ?crit : > > I also find that typing "help api_scilab" does not help me at all > right now. And i just understood today (thanks to allan's mail) that > toolboxes is the modern way of doing what i do with call. About that : i find extremely confusing the fact that there is, in scilab 5.3, documentation for both old and new scilab APIs, which i can still not distinghuish clearly. From my point of view, they are both called by a concatenation of "scilab" and "api", and i have the impression (which i also believe to be false, but anyway), that some pages from the new api are linked to old ones. E.g : when i type "help api_scilab" i get in a doc page which includes "Straight and named access (See the call_scilab API) to variables.". Then i go to call_scilab_API, where an example uses stack-c.h and claims this is the old way. At this point, i decided to wait scilab 6.0, hopping it will come with documentation about new api and no documentation about old API, to be sure to understand what to do and do it. i am not willing to complain (i really love scilab) i am just trying to provide feedback best regards, avs (and sorry about the spam, maybe this should be a whish in bugzilla) -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Jan 11 21:24:27 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 21:24:27 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2C85CA.7040907@centre-cired.fr> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> Message-ID: <4D2CBC7B.4040502@laas.fr> Le 11/01/11 17:31, Adrien Vogt-Schilb a ?crit : > I am experiencing the same thing: being lost in the toolbox skeleton. Good to know I am not the only one. I really started to feel dumb... I have been wandering with Scilab since 2.something and for the first time I am really lost. > > I also find that typing "help api_scilab" does not help me at all > right now. And i just understood today (thanks to allan's mail) that > toolboxes is the modern way of doing what i do with call. Yep, I just understood that yesterday. > > For now i am still using ilib_for_link and call, because of the very > effective help of ilib_for_link, which does provide a complete example. > > If anyone happens to have some guidelines, it would be very helpfull > to make a wiki i think. That's exactly what I was thinking about. Is there anyone from the consortium who can provide us with some guidelines on the what-to-do and what-not-to-do when trying to build a primitive? > > Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : >> Le 11/01/2011 16:55, Allan CORNET a ?crit : >>> Hi, >>> >>> See help about api_scilab to write a primitive >>> >>> You can also see example in toolbox_skeleton >>> SCI/contrib/toolbox_skeleton >> Well, I didn't mention it, but I downloaded this module and I opened >> all the files I found and I was lost. >> Basically I don't know where to start and which file does what and >> what I should modify to adapt to my c code. >>> Allan >>> >>> >>> >>> -----Message d'origine----- >>> De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] >>> Envoy? : mardi 11 janvier 2011 16:47 >>> ? : users at lists.scilab.org >>> Objet : [scilab-Users] C->Scilab: Now I'm lost and need some directions >>> >>> Hi all, >>> >>> I am fighting to call some C code from within Scilab, or more >>> precisely to >>> add a primitive to Scilab using some C code I wrote. >>> I have a working C code and I managed to link it to Scilab by using >>> "ilib_for_link". >>> It works, no problem. >>> Now I would like to bullet-proof it, that is to get it to work like >>> a real >>> scilab primitive. >>> For example, at the moment, if I try to open a file that do not >>> exist (from >>> within my C code), I just kill my Scilab session. >>> This is due to the way the error is treated in my C code. >>> I would prefer to get a normal Scilab error: "!--error 241, File >>> does not >>> exist". >>> In the end, I would like to handle all the usual scilab error (wrong >>> number >>> of arguments, wrong type, ...) gracefully. >>> What should I do? >>> I found bits and pieces here and there about how to link, what the >>> interface >>> should be like, how to use call, ... but I can't put the pieces >>> together to >>> get a big picture of what I should do. >>> I found "intersci" but it is obsolete. I found some articles but >>> they are >>> outdated ( http://www.saphir-control.fr/articles/lm15/article.html ). >>> Does anyone know a proper tutorial or *complete* example ( c_source, >>> interface_source, build and example of use) on the subject? >>> >>> Thank you in advance, >>> >>> Antoine >>> >>> >>> >> >> > > > -- > > *Adrien Vogt-Schilb* > > Research Fellow > > vogt at centre-cired.fr > > Tel: (+33) 1 43 94 73 72 > > Fax: (+33) 1 43 94 73 70 > > CIRED > > > > 45 bis, Av de la Belle Gabrielle > > F-94736 Nogent-sur-Marne > > http://www.centre-cired.fr/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 4092 bytes Desc: not available URL: From calixte at contrib.scilab.org Tue Jan 11 21:29:45 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 11 Jan 2011 21:29:45 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2CBC7B.4040502@laas.fr> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> <4D2CBC7B.4040502@laas.fr> Message-ID: <1294777785.15296.6.camel@Calixte-Dell> Hello Antoine, Maybe could you have a look at forge.scilab.org where you could find several projects. Calixte Le mardi 11 janvier 2011 ? 21:24 +0100, Antoine Monmayrant a ?crit : > Le 11/01/11 17:31, Adrien Vogt-Schilb a ?crit : > > I am experiencing the same thing: being lost in the toolbox > > skeleton. > Good to know I am not the only one. > I really started to feel dumb... I have been wandering with Scilab > since 2.something and for the first time I am really lost. > > > > I also find that typing "help api_scilab" does not help me at all > > right now. And i just understood today (thanks to allan's mail) that > > toolboxes is the modern way of doing what i do with call. > Yep, I just understood that yesterday. > > > > For now i am still using ilib_for_link and call, because of the very > > effective help of ilib_for_link, which does provide a complete > > example. > > > > If anyone happens to have some guidelines, it would be very helpfull > > to make a wiki i think. > That's exactly what I was thinking about. > Is there anyone from the consortium who can provide us with some > guidelines on the what-to-do and what-not-to-do when trying to build a > primitive? > > > > Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : > > > Le 11/01/2011 16:55, Allan CORNET a ?crit : > > > > Hi, > > > > > > > > See help about api_scilab to write a primitive > > > > > > > > You can also see example in toolbox_skeleton > > > > SCI/contrib/toolbox_skeleton > > > Well, I didn't mention it, but I downloaded this module and I > > > opened all the files I found and I was lost. > > > Basically I don't know where to start and which file does what and > > > what I should modify to adapt to my c code. > > > > Allan > > > > > > > > > > > > > > > > -----Message d'origine----- > > > > De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] > > > > Envoy? : mardi 11 janvier 2011 16:47 > > > > ? : users at lists.scilab.org > > > > Objet : [scilab-Users] C->Scilab: Now I'm lost and need some > > > > directions > > > > > > > > Hi all, > > > > > > > > I am fighting to call some C code from within Scilab, or more > > > > precisely to > > > > add a primitive to Scilab using some C code I wrote. > > > > I have a working C code and I managed to link it to Scilab by > > > > using > > > > "ilib_for_link". > > > > It works, no problem. > > > > Now I would like to bullet-proof it, that is to get it to work > > > > like a real > > > > scilab primitive. > > > > For example, at the moment, if I try to open a file that do not > > > > exist (from > > > > within my C code), I just kill my Scilab session. > > > > This is due to the way the error is treated in my C code. > > > > I would prefer to get a normal Scilab error: "!--error 241, File > > > > does not > > > > exist". > > > > In the end, I would like to handle all the usual scilab error > > > > (wrong number > > > > of arguments, wrong type, ...) gracefully. > > > > What should I do? > > > > I found bits and pieces here and there about how to link, what > > > > the interface > > > > should be like, how to use call, ... but I can't put the pieces > > > > together to > > > > get a big picture of what I should do. > > > > I found "intersci" but it is obsolete. I found some articles but > > > > they are > > > > outdated > > > > ( http://www.saphir-control.fr/articles/lm15/article.html ). > > > > Does anyone know a proper tutorial or *complete* example > > > > ( c_source, > > > > interface_source, build and example of use) on the subject? > > > > > > > > Thank you in advance, > > > > > > > > Antoine > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Adrien Vogt-Schilb > > > > Research Fellow > > > > vogt at centre-cired.fr > > > > Tel: (+33) 1 43 94 73 72 > > > > Fax: (+33) 1 43 94 73 70 > > > > CIRED > > > > > > 45 bis, Av de la Belle Gabrielle > > > > F-94736 Nogent-sur-Marne > > > > http://www.centre-cired.fr/ > > > > > > > > > > > > > From antoine.monmayrant at laas.fr Tue Jan 11 21:32:12 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 21:32:12 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <4D2C88BE.8080304@centre-cired.fr> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> <4D2C88BE.8080304@centre-cired.fr> Message-ID: <4D2CBE4C.2000704@laas.fr> Le 11/01/11 17:43, Adrien Vogt-Schilb a ?crit : > Le 11/01/2011 17:31, Adrien Vogt-Schilb a ?crit : >> >> I also find that typing "help api_scilab" does not help me at all >> right now. And i just understood today (thanks to allan's mail) that >> toolboxes is the modern way of doing what i do with call. > > About that : i find extremely confusing the fact that there is, in > scilab 5.3, documentation for both old and new scilab APIs, which i > can still not distinghuish clearly. From my point of view, they are > both called by a concatenation of "scilab" and "api", and i have the > impression (which i also believe to be false, but anyway), that some > pages from the new api are linked to old ones. I also had the feeling of turning in circles: I started from one bit of the new api (CheckLHS) and trying to find an example, after a few clics, I ended up on something that belong to the old api (call)... > > E.g : when i type "help api_scilab" i get in a doc page which includes > "Straight and named access (See the call_scilab API) to variables.". > Then i go to call_scilab_API, where an example uses stack-c.h and > claims this is the old way. > > At this point, i decided to wait scilab 6.0, hopping it will come with > documentation about new api and no documentation about old API, to be > sure to understand what to do and do it. Well, I cannot wait that long as I have some data waiting to be processed and I need to call some hand made C routine for that job... > > i am not willing to complain (i really love scilab) i am just trying > to provide feedback Yes, I hope all this does not sound too negative, this is not the purpose of the discussion. I am also really happy with Scilab and I always found the user list reactive and useful. But for the first time, I did not have any answer that really helped me going forward. Crossing fingers... Antoine > > best regards, avs (and sorry about the spam, maybe this should be a > whish in bugzilla) -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Jan 11 21:37:06 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 21:37:06 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <1294777785.15296.6.camel@Calixte-Dell> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> <4D2CBC7B.4040502@laas.fr> <1294777785.15296.6.camel@Calixte-Dell> Message-ID: <4D2CBF72.4050600@laas.fr> Le 11/01/11 21:29, Calixte Denizet a ?crit : > Hello Antoine, > > Maybe could you have a look at forge.scilab.org where you could find > several projects. Thanks for the hint, I had a look at it but was a bit set back by the complexity of most projects. I'll have another look to see whether I can find a small project where I can understand what to do. Do you think it'll be easier to grasp than the toolbox_skeleton? Because without tutorial- or beginner-oriented comments, I could not understand where to start and what to do to adapt it to my problem... Antoine > Calixte > > Le mardi 11 janvier 2011 ? 21:24 +0100, Antoine Monmayrant a ?crit : >> Le 11/01/11 17:31, Adrien Vogt-Schilb a ?crit : >>> I am experiencing the same thing: being lost in the toolbox >>> skeleton. >> Good to know I am not the only one. >> I really started to feel dumb... I have been wandering with Scilab >> since 2.something and for the first time I am really lost. >>> I also find that typing "help api_scilab" does not help me at all >>> right now. And i just understood today (thanks to allan's mail) that >>> toolboxes is the modern way of doing what i do with call. >> Yep, I just understood that yesterday. >>> For now i am still using ilib_for_link and call, because of the very >>> effective help of ilib_for_link, which does provide a complete >>> example. >>> >>> If anyone happens to have some guidelines, it would be very helpfull >>> to make a wiki i think. >> That's exactly what I was thinking about. >> Is there anyone from the consortium who can provide us with some >> guidelines on the what-to-do and what-not-to-do when trying to build a >> primitive? >>> Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : >>>> Le 11/01/2011 16:55, Allan CORNET a ?crit : >>>>> Hi, >>>>> >>>>> See help about api_scilab to write a primitive >>>>> >>>>> You can also see example in toolbox_skeleton >>>>> SCI/contrib/toolbox_skeleton >>>> Well, I didn't mention it, but I downloaded this module and I >>>> opened all the files I found and I was lost. >>>> Basically I don't know where to start and which file does what and >>>> what I should modify to adapt to my c code. >>>>> Allan >>>>> >>>>> >>>>> >>>>> -----Message d'origine----- >>>>> De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] >>>>> Envoy? : mardi 11 janvier 2011 16:47 >>>>> ? : users at lists.scilab.org >>>>> Objet : [scilab-Users] C->Scilab: Now I'm lost and need some >>>>> directions >>>>> >>>>> Hi all, >>>>> >>>>> I am fighting to call some C code from within Scilab, or more >>>>> precisely to >>>>> add a primitive to Scilab using some C code I wrote. >>>>> I have a working C code and I managed to link it to Scilab by >>>>> using >>>>> "ilib_for_link". >>>>> It works, no problem. >>>>> Now I would like to bullet-proof it, that is to get it to work >>>>> like a real >>>>> scilab primitive. >>>>> For example, at the moment, if I try to open a file that do not >>>>> exist (from >>>>> within my C code), I just kill my Scilab session. >>>>> This is due to the way the error is treated in my C code. >>>>> I would prefer to get a normal Scilab error: "!--error 241, File >>>>> does not >>>>> exist". >>>>> In the end, I would like to handle all the usual scilab error >>>>> (wrong number >>>>> of arguments, wrong type, ...) gracefully. >>>>> What should I do? >>>>> I found bits and pieces here and there about how to link, what >>>>> the interface >>>>> should be like, how to use call, ... but I can't put the pieces >>>>> together to >>>>> get a big picture of what I should do. >>>>> I found "intersci" but it is obsolete. I found some articles but >>>>> they are >>>>> outdated >>>>> ( http://www.saphir-control.fr/articles/lm15/article.html ). >>>>> Does anyone know a proper tutorial or *complete* example >>>>> ( c_source, >>>>> interface_source, build and example of use) on the subject? >>>>> >>>>> Thank you in advance, >>>>> >>>>> Antoine >>>>> >>>>> >>>>> >>>> >>> >>> -- >>> >>> >>> Adrien Vogt-Schilb >>> >>> Research Fellow >>> >>> vogt at centre-cired.fr >>> >>> Tel: (+33) 1 43 94 73 72 >>> >>> Fax: (+33) 1 43 94 73 70 >>> >>> CIRED >>> >>> >>> 45 bis, Av de la Belle Gabrielle >>> >>> F-94736 Nogent-sur-Marne >>> >>> http://www.centre-cired.fr/ >>> >>> >>> >>> >>> >>> > From calixte at contrib.scilab.org Tue Jan 11 21:38:09 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 11 Jan 2011 21:38:09 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <1294777785.15296.6.camel@Calixte-Dell> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> <4D2CBC7B.4040502@laas.fr> <1294777785.15296.6.camel@Calixte-Dell> Message-ID: <1294778289.15296.11.camel@Calixte-Dell> Le mardi 11 janvier 2011 ? 21:29 +0100, Calixte Denizet a ?crit : > Hello Antoine, > > Maybe could you have a look at forge.scilab.org where you could find > several projects. > Maybe this one: http://forge.scilab.org/index.php/p/scimysql/ and more precisely: http://forge.scilab.org/index.php/p/scimysql/source/tree/master/sci_gateway I didn't try to compile it but in reading the code available in this directory, I found it interesting... > Calixte > > Le mardi 11 janvier 2011 ? 21:24 +0100, Antoine Monmayrant a ?crit : > > Le 11/01/11 17:31, Adrien Vogt-Schilb a ?crit : > > > I am experiencing the same thing: being lost in the toolbox > > > skeleton. > > Good to know I am not the only one. > > I really started to feel dumb... I have been wandering with Scilab > > since 2.something and for the first time I am really lost. > > > > > > I also find that typing "help api_scilab" does not help me at all > > > right now. And i just understood today (thanks to allan's mail) that > > > toolboxes is the modern way of doing what i do with call. > > Yep, I just understood that yesterday. > > > > > > For now i am still using ilib_for_link and call, because of the very > > > effective help of ilib_for_link, which does provide a complete > > > example. > > > > > > If anyone happens to have some guidelines, it would be very helpfull > > > to make a wiki i think. > > That's exactly what I was thinking about. > > Is there anyone from the consortium who can provide us with some > > guidelines on the what-to-do and what-not-to-do when trying to build a > > primitive? > > > > > > Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : > > > > Le 11/01/2011 16:55, Allan CORNET a ?crit : > > > > > Hi, > > > > > > > > > > See help about api_scilab to write a primitive > > > > > > > > > > You can also see example in toolbox_skeleton > > > > > SCI/contrib/toolbox_skeleton > > > > Well, I didn't mention it, but I downloaded this module and I > > > > opened all the files I found and I was lost. > > > > Basically I don't know where to start and which file does what and > > > > what I should modify to adapt to my c code. > > > > > Allan > > > > > > > > > > > > > > > > > > > > -----Message d'origine----- > > > > > De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] > > > > > Envoy? : mardi 11 janvier 2011 16:47 > > > > > ? : users at lists.scilab.org > > > > > Objet : [scilab-Users] C->Scilab: Now I'm lost and need some > > > > > directions > > > > > > > > > > Hi all, > > > > > > > > > > I am fighting to call some C code from within Scilab, or more > > > > > precisely to > > > > > add a primitive to Scilab using some C code I wrote. > > > > > I have a working C code and I managed to link it to Scilab by > > > > > using > > > > > "ilib_for_link". > > > > > It works, no problem. > > > > > Now I would like to bullet-proof it, that is to get it to work > > > > > like a real > > > > > scilab primitive. > > > > > For example, at the moment, if I try to open a file that do not > > > > > exist (from > > > > > within my C code), I just kill my Scilab session. > > > > > This is due to the way the error is treated in my C code. > > > > > I would prefer to get a normal Scilab error: "!--error 241, File > > > > > does not > > > > > exist". > > > > > In the end, I would like to handle all the usual scilab error > > > > > (wrong number > > > > > of arguments, wrong type, ...) gracefully. > > > > > What should I do? > > > > > I found bits and pieces here and there about how to link, what > > > > > the interface > > > > > should be like, how to use call, ... but I can't put the pieces > > > > > together to > > > > > get a big picture of what I should do. > > > > > I found "intersci" but it is obsolete. I found some articles but > > > > > they are > > > > > outdated > > > > > ( http://www.saphir-control.fr/articles/lm15/article.html ). > > > > > Does anyone know a proper tutorial or *complete* example > > > > > ( c_source, > > > > > interface_source, build and example of use) on the subject? > > > > > > > > > > Thank you in advance, > > > > > > > > > > Antoine > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > Adrien Vogt-Schilb > > > > > > Research Fellow > > > > > > vogt at centre-cired.fr > > > > > > Tel: (+33) 1 43 94 73 72 > > > > > > Fax: (+33) 1 43 94 73 70 > > > > > > CIRED > > > > > > > > > 45 bis, Av de la Belle Gabrielle > > > > > > F-94736 Nogent-sur-Marne > > > > > > http://www.centre-cired.fr/ > > > > > > > > > > > > > > > > > > > > > > From antoine.monmayrant at laas.fr Tue Jan 11 21:43:38 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 11 Jan 2011 21:43:38 +0100 Subject: [scilab-Users] C->Scilab: Now I'm lost and need some directions In-Reply-To: <1294778289.15296.11.camel@Calixte-Dell> References: <4D2C7B82.8030400@laas.fr> <007601cbb1a7$e9f7d860$bde78920$@scilab.org> <4D2C80EB.7020604@laas.fr> <4D2C85CA.7040907@centre-cired.fr> <4D2CBC7B.4040502@laas.fr> <1294777785.15296.6.camel@Calixte-Dell> <1294778289.15296.11.camel@Calixte-Dell> Message-ID: <4D2CC0FA.6030704@laas.fr> Le 11/01/11 21:38, Calixte Denizet a ?crit : > Le mardi 11 janvier 2011 ? 21:29 +0100, Calixte Denizet a ?crit : >> Hello Antoine, >> >> Maybe could you have a look at forge.scilab.org where you could find >> several projects. >> > Maybe this one: http://forge.scilab.org/index.php/p/scimysql/ > and more precisely: > http://forge.scilab.org/index.php/p/scimysql/source/tree/master/sci_gateway Thanks, I'll check this tomorrow at work. I was also thinking about: http://forge.scilab.org/index.php/p/csv-readwrite/ as its purpose is close to the one of my C routine (read 16 bit tiff file). I can't browse the sources now, so I don't know whether the comments are adapted to my level (newbeeee) in this field... > I didn't try to compile it but in reading the code available in this > directory, I found it interesting... > >> Calixte >> >> Le mardi 11 janvier 2011 ? 21:24 +0100, Antoine Monmayrant a ?crit : >>> Le 11/01/11 17:31, Adrien Vogt-Schilb a ?crit : >>>> I am experiencing the same thing: being lost in the toolbox >>>> skeleton. >>> Good to know I am not the only one. >>> I really started to feel dumb... I have been wandering with Scilab >>> since 2.something and for the first time I am really lost. >>>> I also find that typing "help api_scilab" does not help me at all >>>> right now. And i just understood today (thanks to allan's mail) that >>>> toolboxes is the modern way of doing what i do with call. >>> Yep, I just understood that yesterday. >>>> For now i am still using ilib_for_link and call, because of the very >>>> effective help of ilib_for_link, which does provide a complete >>>> example. >>>> >>>> If anyone happens to have some guidelines, it would be very helpfull >>>> to make a wiki i think. >>> That's exactly what I was thinking about. >>> Is there anyone from the consortium who can provide us with some >>> guidelines on the what-to-do and what-not-to-do when trying to build a >>> primitive? >>>> Le 11/01/2011 17:10, Antoine Monmayrant a ?crit : >>>>> Le 11/01/2011 16:55, Allan CORNET a ?crit : >>>>>> Hi, >>>>>> >>>>>> See help about api_scilab to write a primitive >>>>>> >>>>>> You can also see example in toolbox_skeleton >>>>>> SCI/contrib/toolbox_skeleton >>>>> Well, I didn't mention it, but I downloaded this module and I >>>>> opened all the files I found and I was lost. >>>>> Basically I don't know where to start and which file does what and >>>>> what I should modify to adapt to my c code. >>>>>> Allan >>>>>> >>>>>> >>>>>> >>>>>> -----Message d'origine----- >>>>>> De : Antoine Monmayrant [mailto:antoine.monmayrant at laas.fr] >>>>>> Envoy? : mardi 11 janvier 2011 16:47 >>>>>> ? : users at lists.scilab.org >>>>>> Objet : [scilab-Users] C->Scilab: Now I'm lost and need some >>>>>> directions >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I am fighting to call some C code from within Scilab, or more >>>>>> precisely to >>>>>> add a primitive to Scilab using some C code I wrote. >>>>>> I have a working C code and I managed to link it to Scilab by >>>>>> using >>>>>> "ilib_for_link". >>>>>> It works, no problem. >>>>>> Now I would like to bullet-proof it, that is to get it to work >>>>>> like a real >>>>>> scilab primitive. >>>>>> For example, at the moment, if I try to open a file that do not >>>>>> exist (from >>>>>> within my C code), I just kill my Scilab session. >>>>>> This is due to the way the error is treated in my C code. >>>>>> I would prefer to get a normal Scilab error: "!--error 241, File >>>>>> does not >>>>>> exist". >>>>>> In the end, I would like to handle all the usual scilab error >>>>>> (wrong number >>>>>> of arguments, wrong type, ...) gracefully. >>>>>> What should I do? >>>>>> I found bits and pieces here and there about how to link, what >>>>>> the interface >>>>>> should be like, how to use call, ... but I can't put the pieces >>>>>> together to >>>>>> get a big picture of what I should do. >>>>>> I found "intersci" but it is obsolete. I found some articles but >>>>>> they are >>>>>> outdated >>>>>> ( http://www.saphir-control.fr/articles/lm15/article.html ). >>>>>> Does anyone know a proper tutorial or *complete* example >>>>>> ( c_source, >>>>>> interface_source, build and example of use) on the subject? >>>>>> >>>>>> Thank you in advance, >>>>>> >>>>>> Antoine >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> -- >>>> >>>> >>>> Adrien Vogt-Schilb >>>> >>>> Research Fellow >>>> >>>> vogt at centre-cired.fr >>>> >>>> Tel: (+33) 1 43 94 73 72 >>>> >>>> Fax: (+33) 1 43 94 73 70 >>>> >>>> CIRED >>>> >>>> >>>> 45 bis, Av de la Belle Gabrielle >>>> >>>> F-94736 Nogent-sur-Marne >>>> >>>> http://www.centre-cired.fr/ >>>> >>>> >>>> >>>> >>>> >>>> >> > From rouxph at sfr.fr Wed Jan 12 16:21:28 2011 From: rouxph at sfr.fr (philippe) Date: Wed, 12 Jan 2011 16:21:28 +0100 Subject: sivp problem Message-ID: Hi, I've recently upgraded from windows XP to windows 7 and encountered problems using sivp for RGB images with the script below: 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- cd(WSCI+'\contrib\sivp-0.5.2\images\');//OK exec('loader.sce',-1);//loading sivp OK im=imread('lena.png');//read image OK im0=rgb2gray(im);//convert im to grayscale OK imshow(im0)// display grayscale image OK imshow(im)// display color image -> error 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- the last command gives the following error : 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "sivp" function. Save your data and restart Scilab. !--error 144 Op?ration non d?finie pour les op?randes donn?es. v?rifier ou d?finir la fonction %c_a_hm pour la surcharge. at line 28 of function imshow called by : imshow(im) 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- hypermatrix works correctly, problems could comes from mat2utfimg? Reinstalling sivp as no effect on the problem and I can't reproduce the error on other windows PC!!!! But on my PC with the problem occurs both with -scilab 4.1.2 + sivp 0.5.0 -scilab 5.2.2 + sivp 0.5.2 does anyone can help me! Philippe. From allan.cornet at scilab.org Wed Jan 12 16:50:40 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 12 Jan 2011 16:50:40 +0100 Subject: [scilab-Users] sivp problem In-Reply-To: References: Message-ID: <000601cbb270$765c41b0$6314c510$@scilab.org> Hi, On Windows, i advice that you try Scilab 5.3.0 and SIVP for scilab 5.3.0 We fixed a memory leak which generated this error on Windows. Allan -----Message d'origine----- De?: philippe [mailto:rouxph at sfr.fr] Envoy??: mercredi 12 janvier 2011 16:21 ??: users at lists.scilab.org Objet?: [scilab-Users] sivp problem Hi, I've recently upgraded from windows XP to windows 7 and encountered problems using sivp for RGB images with the script below: 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- cd(WSCI+'\contrib\sivp-0.5.2\images\');//OK exec('loader.sce',-1);//loading sivp OK im=imread('lena.png');//read image OK im0=rgb2gray(im);//convert im to grayscale OK imshow(im0)// display grayscale image OK imshow(im)// display color image -> error 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- the last command gives the following error : 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "sivp" function. Save your data and restart Scilab. !--error 144 Op?ration non d?finie pour les op?randes donn?es. v?rifier ou d?finir la fonction %c_a_hm pour la surcharge. at line 28 of function imshow called by : imshow(im) 8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<-- hypermatrix works correctly, problems could comes from mat2utfimg? Reinstalling sivp as no effect on the problem and I can't reproduce the error on other windows PC!!!! But on my PC with the problem occurs both with -scilab 4.1.2 + sivp 0.5.0 -scilab 5.2.2 + sivp 0.5.2 does anyone can help me! Philippe. From Andreas.Stewering-Bone at gmx.de Wed Jan 12 22:00:25 2011 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Wed, 12 Jan 2011 22:00:25 +0100 Subject: [scilab-Users] XCos Event Handling In-Reply-To: References: Message-ID: <201101122200.26163.Andreas.Stewering-Bone@gmx.de> Hello, I have some questions about the Xcos or Scicos Event handling. Normal blocks implement a init calc end Functions I would like to implement fieldbus handling block So it would be ideal to have a init -> get configure information from every block postinit-> prepare complex data structures (based on the configuration), malloc some memory calc -> do IO end -> release memory functions. There a many different flags for numerical events during calculation. Are there any plans or possibilities for adding new scicos flags during initialisation? Another question: If I have different XCos IO blocks which use the same infrastructur (like one block creating a tcp server port, sereral blocks which present data on this port). Is there a possibillity to share informations betwwen blocks during configuration time (interface function) or initialisation time (calculation function) without using global strucures for example to get the amount of server blocks or data ports ? Greatings Andreas From rouxph at sfr.fr Wed Jan 12 22:06:22 2011 From: rouxph at sfr.fr (philippe) Date: Wed, 12 Jan 2011 22:06:22 +0100 Subject: sivp problem In-Reply-To: <000601cbb270$765c41b0$6314c510$@scilab.org> References: <000601cbb270$765c41b0$6314c510$@scilab.org> Message-ID: Le 12/01/2011 16:50, Allan CORNET a ?crit : > Hi, > > On Windows, i advice that you try Scilab 5.3.0 and SIVP for scilab 5.3.0 > We fixed a memory leak which generated this error on Windows. > > Allan > OK, thank you Allan. Philippe. From rouxph at sfr.fr Wed Jan 12 22:48:43 2011 From: rouxph at sfr.fr (philippe) Date: Wed, 12 Jan 2011 22:48:43 +0100 Subject: console and font color Message-ID: Hi, is there a way to change console background color and font color from the command line? I mean without selecting a color from the menu bar : "preference->color" ... Philippe. From michael.baudin at scilab.org Thu Jan 13 08:46:25 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 13 Jan 2011 08:46:25 +0100 Subject: [scilab-Users] information about bootstrap non parametric test In-Reply-To: References: Message-ID: <4D2EADD1.7040106@scilab.org> Hi, You might be interested by the Stixbox module : http://atoms.scilab.org/toolboxes/stixbox There are various functions related to bootstrap : * ciboot : Various bootstrap confidence intervals * covboot : Bootstrap estimate of the variance of a parameter estimate * stdboot : Bootstrap estimate of the parameter standard deviation * rboot : Simulate a bootstrap resample from a sample Does this fit your needs ? Best regards, Micha?l Baudin Le 10/01/2011 17:10, MARIGO RAFFAELLA a ?crit : > > Hi, > > I'm Raffaella Marigo from italy, I'd like to have some information > about the bootstrap non parametric test with scilab > > I haveasmallnumberofexperimental dataso I need to increase them with > thebootstraptechnique, but I'm not able to develop a scilab tool > > Could you help me? > > Thanks a lot > > Raffaella Marigo > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanlili2002 at foxmail.com Thu Jan 13 03:38:55 2011 From: tanlili2002 at foxmail.com (=?gbk?B?zLfBosGm?=) Date: Thu, 13 Jan 2011 10:38:55 +0800 Subject: I have some questions about int4sci and ALIAS Message-ID: I am a Chinese postgraduate student and interested to int4sci. I have some questions about int4sci 2.0. From the report ? int4sci : scilab interface for interval analysis, I know Int4Sci 2.0 will be released.When will it be released? Now, the system environment of ALIAS is linux. Can I use ALIAS by calling int4sci interface with ALIAS in Windows system after int4sci2.0 is released ? By then, can source code of ALIAS be modified and compiled in windows ? .If I want to modify and compile ALIAS in windows for my experiment tool, can you give some advices? It will be greatly appreciated if you can give me some suggestions and answer my question. Yours sincerely Lili Tan -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Thu Jan 13 09:34:31 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 13 Jan 2011 09:34:31 +0100 Subject: [scilab-Users] XCos Event Handling In-Reply-To: <201101122200.26163.Andreas.Stewering-Bone@gmx.de> References: <201101122200.26163.Andreas.Stewering-Bone@gmx.de> Message-ID: <1294907671.2883.6.camel@pinarellu.inria.fr> Hello, You can found more informations on simulation flags on the scicos_block4.h file. The following flags are used on during the simulation: DerivativeState OutputUpdate * StateUpdate OutputEventTiming Initialization * Ending * ReInitialization * You may implement the selected (with *) flags and use the work field to store any information (an allocated data structure for example). -- Cl?ment Le mercredi 12 janvier 2011 ? 22:00 +0100, Andreas Stewering-Bone a ?crit : > Hello, > > I have some questions about the Xcos or Scicos Event handling. > > > Normal blocks implement a > > init > calc > end > > Functions > > I would like to implement fieldbus handling block > > So it would be ideal to have a > > init -> get configure information from every block > postinit-> prepare complex data structures (based on the configuration), malloc > some memory > calc -> do IO > end -> release memory > > functions. > > There a many different flags for numerical events during calculation. Are there > any plans or possibilities for adding new scicos flags during initialisation? > > > Another question: > > If I have different XCos IO blocks which use the same infrastructur (like one > block creating a tcp server port, sereral blocks which present data on this > port). Is there a possibillity to share informations betwwen blocks during > > configuration time (interface function) > > or > > initialisation time (calculation function) without using global strucures > > for example to get the amount of server blocks or data ports ? > > > > Greatings > > > Andreas -- Cl?ment David From Andreas.Stewering-Bone at gmx.de Thu Jan 13 14:33:32 2011 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Thu, 13 Jan 2011 14:33:32 +0100 Subject: [scilab-Users] XCos Event Handling In-Reply-To: <1294907671.2883.6.camel@pinarellu.inria.fr> References: <201101122200.26163.Andreas.Stewering-Bone@gmx.de> <1294907671.2883.6.camel@pinarellu.inria.fr> Message-ID: <201101131433.32702.Andreas.Stewering-Bone@gmx.de> Hello David, I know this flags, it is more complex. It would be very nice to have a postinit Flag to work on configuration data (init the fieldbus based on the data), which is fetched during init, before going into cyclic mode for IO-calculation. My target is realtime code generation, so doing initialisation stuff during cyclic mode is not very nice. If you have a complex distributed IO Structure, the possible flags init, inout and end do not fit the needs. Greatings Andreas Am Donnerstag, 13. Januar 2011, 09:34:31 schrieb Cl?ment David: > Hello, > > You can found more informations on simulation flags on the > scicos_block4.h file. > > The following flags are used on during the simulation: > > DerivativeState > OutputUpdate * > StateUpdate > OutputEventTiming > Initialization * > Ending * > ReInitialization * > > You may implement the selected (with *) flags and use the work field to > store any information (an allocated data structure for example). > > -- > Cl?ment > > Le mercredi 12 janvier 2011 ? 22:00 +0100, Andreas Stewering-Bone a > > ?crit : > > Hello, > > > > I have some questions about the Xcos or Scicos Event handling. > > > > > > Normal blocks implement a > > > > init > > calc > > end > > > > Functions > > > > I would like to implement fieldbus handling block > > > > So it would be ideal to have a > > > > init -> get configure information from every block > > postinit-> prepare complex data structures (based on the configuration), > > malloc some memory > > calc -> do IO > > end -> release memory > > > > functions. > > > > There a many different flags for numerical events during calculation. Are > > there any plans or possibilities for adding new scicos flags during > > initialisation? > > > > > > Another question: > > > > If I have different XCos IO blocks which use the same infrastructur (like > > one block creating a tcp server port, sereral blocks which present data > > on this port). Is there a possibillity to share informations betwwen > > blocks during > > > > configuration time (interface function) > > > > or > > > > initialisation time (calculation function) without using global strucures > > > > for example to get the amount of server blocks or data ports ? > > > > > > > > Greatings > > > > > > Andreas From allan.cornet at scilab.org Thu Jan 13 15:19:36 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Thu, 13 Jan 2011 15:19:36 +0100 Subject: [scilab-Users] I have some questions about int4sci and ALIAS In-Reply-To: References: Message-ID: <005d01cbb32c$e8339a60$b89acf20$@scilab.org> Hi, Please contact authors : int4sci at list-sop.inria.fr http://www-sop.inria.fr/coprin/logiciels/Int4Sci/index.php Allan CORNET De : ??? [mailto:tanlili2002 at foxmail.com] Envoy? : jeudi 13 janvier 2011 03:39 ? : users Objet : [scilab-Users] I have some questions about int4sci and ALIAS I am a Chinese postgraduate student and interested to int4sci. I have some questions about int4sci 2.0. From the report ? int4sci : scilab interface for interval analysis, I know Int4Sci 2.0 will be released.When will it be released? Now, the system environment of ALIAS is linux. Can I use ALIAS by calling int4sci interface with ALIAS in Windows system after int4sci2.0 is released ? By then, can source code of ALIAS be modified and compiled in windows ? .If I want to modify and compile ALIAS in windows for my experiment tool, can you give some advices? It will be greatly appreciated if you can give me some suggestions and answer my question. Yours sincerely Lili Tan -------------- next part -------------- An HTML attachment was scrubbed... URL: From w_artichowicz at o2.pl Thu Jan 13 21:48:05 2011 From: w_artichowicz at o2.pl (Wojciech Artichowicz) Date: Thu, 13 Jan 2011 21:48:05 +0100 Subject: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? Message-ID: Hello there, Here You have a quite general Newton-Raphson function. Just fill function F(x) and use the code below. :] good luck and best regards. function y=F(x) y=your formula; endfunction function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) x1=x0; if h==[] then, h=1e-10; end; //step for numerical derivative computation while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the condition to finish iterations x0=x1; df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central scheme) x1=x0-f(x0)/df; end endfunction x0 = starting value, Epsf=0.0000000001; Epsx=0.00000001; h=0.0000000001; solution=NewtonRaphson(F,x0,Epsf,Epsx,h); -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.mike.hollis at verizon.net Fri Jan 14 01:14:17 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Thu, 13 Jan 2011 18:14:17 -0600 (CST) Subject: question ... Message-ID: <1967220884.444748.1294964057655.JavaMail.root@vznit170060> An HTML attachment was scrubbed... URL: From Dariusz.Horla at cie.put.poznan.pl Thu Jan 13 23:52:53 2011 From: Dariusz.Horla at cie.put.poznan.pl (Dariusz Horla) Date: Thu, 13 Jan 2011 23:52:53 +0100 (CET) Subject: A kind question - xcos Message-ID: A kind question, I am trying to make a function for my students enabling them to give control system parameters via GUI, and then by pressing SIMULATION button to launch a simulation of a control system from xcos, but in such a way that no model window is shown, just the plot of, say, a step response (in the model). THis is like something that can be done with SIM function of Matlab: - in a function I assign variables to the Simulink space of variables, - I launch the simulation with SIM - all the data is stored in ToWorkspace block - the figure is plotted without simulink model being shown. Is there any such function in Scilab? I have run some research on this topic, but no function works as expected, besides the function that OPENS the xcos model. Thank you very much for any clue or response, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dariusz Horla Poznan University of Technology Faculty of Electrical Engineering Institute of Control and Information Engineering Division of Control and Robotics ul. Piotrowo 3a 60-965 Poznan POLAND ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tel. +48 (61) 665-23-67 Fax. +48 (61) 665-25-63 e-m at il : dariusz.horla at put.poznan.pl www : d1.cie.put.poznan.pl/~dhorla ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From tybeede at gmail.com Fri Jan 14 07:07:03 2011 From: tybeede at gmail.com (Tyrel Beede) Date: Thu, 13 Jan 2011 22:07:03 -0800 Subject: [scilab-Users] question ... In-Reply-To: <1967220884.444748.1294964057655.JavaMail.root@vznit170060> References: <1967220884.444748.1294964057655.JavaMail.root@vznit170060> Message-ID: There are some known issues with this. It comes down to video drivers. I had the same problem and fixed it by downgrading my Nvidia driver two versions. I've seen reports where users with Intel cards are upgrading drivers to resolve the issue. This was with version of 5.2.2 but I doubt much has changed as it was an issue with the video driver. On Thu, Jan 13, 2011 at 4:14 PM, Jan M. Hollis wrote: > Hi, > > I downloaded scilab 5.3.0 for windows 7 64-bit and it works for > math operations in the console mode; also I can print; > but I tried to plot(x,y) where x and y were two vectors > of the same length and the program aborted and the > console window disappeared. Does the windows 7 64-bit > version work? I am familiar with MatLab. My computer > is an HP dm3-3012nr. > > I also tried to subscribe to scilab but your site didn't ask > for any input. > > Cheers, > Jan M. Hollis > > > No man knows how bad he is until > he has tried very hard to be good. > > -- C.S. Lewis in Mere Christianity -- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Jan 14 07:38:50 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 14 Jan 2011 07:38:50 +0100 Subject: [scilab-Users] question ... In-Reply-To: References: <1967220884.444748.1294964057655.JavaMail.root@vznit170060> Message-ID: <1294987130.2177.54.camel@zlarin> For information, we hope we will be able to tackle all these driver issues in Scilab 5.4. (we agree they are pretty boring) Sylvestre Le jeudi 13 janvier 2011 ? 22:07 -0800, Tyrel Beede a ?crit : > There are some known issues with this. It comes down to video > drivers. I had the same problem and fixed it by downgrading my Nvidia > driver two versions. I've seen reports where users with Intel cards > are upgrading drivers to resolve the issue. This was with version of > 5.2.2 but I doubt much has changed as it was an issue with the video > driver. > > On Thu, Jan 13, 2011 at 4:14 PM, Jan M. Hollis > wrote: > Hi, > > I downloaded scilab 5.3.0 for windows 7 64-bit and it works > for > math operations in the console mode; also I can print; > but I tried to plot(x,y) where x and y were two vectors > of the same length and the program aborted and the > console window disappeared. Does the windows 7 64-bit > version work? I am familiar with MatLab. My computer > is an HP dm3-3012nr. > > I also tried to subscribe to scilab but your site didn't ask > for any input. > > Cheers, > Jan M. Hollis > > > No man knows how bad he is until > he has tried very hard to be good. > > -- C.S. Lewis in Mere Christianity -- > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From jkantole at gmail.com Fri Jan 14 08:48:56 2011 From: jkantole at gmail.com (JOSE KANTOLE) Date: Fri, 14 Jan 2011 09:48:56 +0200 Subject: [scilab-Users] Re: Re: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: References: Message-ID: Thank you for your feedback! On 1/13/11, Wojciech Artichowicz wrote: > Hello there, > > > > Here You have a quite general Newton-Raphson function. > > Just fill function F(x) and use the code below. :] > > good luck and best regards. > > > > function y=F(x) > > y=your formula; > > endfunction > > > > function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) > > x1=x0; > > if h==[] then, h=1e-10; end; //step for numerical derivative computation > > while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the condition to > finish iterations > > x0=x1; > > df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central scheme) > > x1=x0-f(x0)/df; > > end > > endfunction > > > > > > > > x0 = starting value, > > Epsf=0.0000000001; > > Epsx=0.00000001; > > h=0.0000000001; > > solution=NewtonRaphson(F,x0,Epsf,Epsx,h); > > From guylaine.collewet at cemagref.fr Fri Jan 14 08:53:23 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 14 Jan 2011 08:53:23 +0100 Subject: conversion of a character array to a String References: Message-ID: Hello, How can I convert a character array to a String with scilab ? thank you Guylaine Collewet -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2372 bytes Desc: not available URL: From sylvain.challois at cemagref.fr Fri Jan 14 09:10:55 2011 From: sylvain.challois at cemagref.fr (Challois Sylvain) Date: Fri, 14 Jan 2011 09:10:55 +0100 Subject: conversion of a character array to a String In-Reply-To: Message-ID: Bonjour, C'est ce que tu veux faire ? -->a=['a' 'b' 'c'] a = !a b c ! -->strcat(a) ans = abc Sylvain -----Message d'origine----- De?: Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy??: vendredi 14 janvier 2011 08:53 ??: users at lists.scilab.org Objet?: conversion of a character array to a String Hello, How can I convert a character array to a String with scilab ? thank you Guylaine Collewet From rakhiwarriar at yahoo.co.in Fri Jan 14 10:22:42 2011 From: rakhiwarriar at yahoo.co.in (Rakhi Warrier) Date: Fri, 14 Jan 2011 14:52:42 +0530 (IST) Subject: [scilab-Users] conversion of a character array to a String In-Reply-To: Message-ID: <461941.6979.qm@web137413.mail.in.yahoo.com> Will this help? string() ascii() Regards Rakhi --- On Fri, 14/1/11, Collewet Guylaine wrote: From: Collewet Guylaine Subject: [scilab-Users] conversion of a character array to a String To: users at lists.scilab.org Date: Friday, 14 January, 2011, 1:23 PM Hello, How can I convert a character array to a String with scilab ? thank you Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkantole at gmail.com Fri Jan 14 11:08:34 2011 From: jkantole at gmail.com (JOSE KANTOLE) Date: Fri, 14 Jan 2011 12:08:34 +0200 Subject: [scilab-Users] Re: Re: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: References: Message-ID: Thank you for your feedback! On 1/13/11, Wojciech Artichowicz wrote: > Hello there, > > > > Here You have a quite general Newton-Raphson function. > > Just fill function F(x) and use the code below. :] > > good luck and best regards. > > > > function y=F(x) > > y=your formula; > > endfunction > > > > function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) > > x1=x0; > > if h==[] then, h=1e-10; end; //step for numerical derivative computation > > while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the condition to > finish iterations > > x0=x1; > > df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central scheme) > > x1=x0-f(x0)/df; > > end > > endfunction > > > > > > > > x0 = starting value, > > Epsf=0.0000000001; > > Epsx=0.00000001; > > h=0.0000000001; > > solution=NewtonRaphson(F,x0,Epsf,Epsx,h); > > From guylaine.collewet at cemagref.fr Fri Jan 14 11:25:14 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 14 Jan 2011 11:25:14 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_conversion_of_a_character_arra?= =?iso-8859-1?Q?y_to_a_String?= References: <461941.6979.qm@web137413.mail.in.yahoo.com> Message-ID: Thanks I succeeded in building a string, however I still have a problem : I have read a character array in a file using fd=mopen(nom,"rb"); tab=mget(fd,"c",number_of_characters); mclose(fd); in tab I get the ascii code of each character (eg : 99 for 'c') I would like to search a substring in tab substring="string to search" if I use tab_string=strcat(code2str(tab)) or tab_string=string(code2str(tab)) and then start=strindex(tab,substring); it does not work since code2str does not give the inverse of the ascii code for example : ascii('c')=99 code2str(99)= ! What is the difference between the ascii code and the "scilab" code ? Guylaine -------- Message d'origine-------- De: Rakhi Warrier [mailto:rakhiwarriar at yahoo.co.in] Date: ven. 14/01/2011 10:22 ?: users at lists.scilab.org Objet : Re: [scilab-Users] conversion of a character array to a String Will this help? string() ascii() Regards Rakhi --- On Fri, 14/1/11, Collewet Guylaine wrote: From: Collewet Guylaine Subject: [scilab-Users] conversion of a character array to a String To: users at lists.scilab.org Date: Friday, 14 January, 2011, 1:23 PM Hello, How can I convert a character array to a String with scilab ? thank you Guylaine Collewet -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3232 bytes Desc: not available URL: From stephane.mottelet at utc.fr Fri Jan 14 11:25:26 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 14 Jan 2011 11:25:26 +0100 Subject: [scilab-Users] Re: Re: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: References: Message-ID: <4D302496.5000706@utc.fr> Hi, Why not use the fsolve primitive of Scilab, which implements a more smarter method (Powell method) than regular Newton's, and which does approximate the derivative more precisely ? function y=F(x) y=your formula; endfunction x=fsolve(x0,F); S. Le 14/01/2011 11:08, JOSE KANTOLE a ?crit : > Thank you for your feedback! > > On 1/13/11, Wojciech Artichowicz wrote: >> Hello there, >> >> >> >> Here You have a quite general Newton-Raphson function. >> >> Just fill function F(x) and use the code below. :] >> >> good luck and best regards. >> >> >> >> function y=F(x) >> >> y=your formula; >> >> endfunction >> >> >> >> function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) >> >> x1=x0; >> >> if h==[] then, h=1e-10; end; //step for numerical derivative computation >> >> while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the condition to >> finish iterations >> >> x0=x1; >> >> df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central scheme) >> >> x1=x0-f(x0)/df; >> >> end >> >> endfunction >> >> >> >> >> >> >> >> x0 = starting value, >> >> Epsf=0.0000000001; >> >> Epsx=0.00000001; >> >> h=0.0000000001; >> >> solution=NewtonRaphson(F,x0,Epsf,Epsx,h); >> >> From w_artichowicz at o2.pl Fri Jan 14 11:35:28 2011 From: w_artichowicz at o2.pl (=?UTF-8?Q?w=5Fartichowicz?=) Date: Fri, 14 Jan 2011 11:35:28 +0100 Subject: =?UTF-8?Q?\_and_/_and_inv()_algorithm?= Message-ID: <2d7199f6.3d75bc61.4d3026f0.7ae4b@o2.pl> Hello, I would like to find out what algorithm is used to estimate the inverse matrix when using operators \ or / or function inv(). Thanks in advance. From guylaine.collewet at cemagref.fr Fri Jan 14 14:02:24 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 14 Jan 2011 14:02:24 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_conversion_of_a_character_arra?= =?iso-8859-1?Q?y_to_a_String?= References: <461941.6979.qm@web137413.mail.in.yahoo.com> Message-ID: Hi, I've found out that the function "ascii" converts in both "direction", that solves my problem ascii('c')=99 ascii(99)='c' regards Guylaine -------- Message d'origine-------- De: Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Date: ven. 14/01/2011 11:25 ?: users at lists.scilab.org Objet : RE?: [scilab-Users] conversion of a character array to a String Thanks I succeeded in building a string, however I still have a problem : I have read a character array in a file using fd=mopen(nom,"rb"); tab=mget(fd,"c",number_of_characters); mclose(fd); in tab I get the ascii code of each character (eg : 99 for 'c') I would like to search a substring in tab substring="string to search" if I use tab_string=strcat(code2str(tab)) or tab_string=string(code2str(tab)) and then start=strindex(tab,substring); it does not work since code2str does not give the inverse of the ascii code for example : ascii('c')=99 code2str(99)= ! What is the difference between the ascii code and the "scilab" code ? Guylaine -------- Message d'origine-------- De: Rakhi Warrier [mailto:rakhiwarriar at yahoo.co.in] Date: ven. 14/01/2011 10:22 ?: users at lists.scilab.org Objet : Re: [scilab-Users] conversion of a character array to a String Will this help? string() ascii() Regards Rakhi --- On Fri, 14/1/11, Collewet Guylaine wrote: From: Collewet Guylaine Subject: [scilab-Users] conversion of a character array to a String To: users at lists.scilab.org Date: Friday, 14 January, 2011, 1:23 PM Hello, How can I convert a character array to a String with scilab ? thank you Guylaine Collewet -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3476 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Fri Jan 14 15:48:02 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 14 Jan 2011 15:48:02 +0100 Subject: [scilab-Users] \ and / and inv() algorithm In-Reply-To: <2d7199f6.3d75bc61.4d3026f0.7ae4b@o2.pl> References: <2d7199f6.3d75bc61.4d3026f0.7ae4b@o2.pl> Message-ID: <4D306222.60701@univ-lemans.fr> ----- Message d'origine ----- De : w_artichowicz Date : 14/01/2011 11:35: > Hello, > > I would like to find out what algorithm is used to estimate the inverse matrix when using operators > > \ or / > > or function inv(). Hello, This is a question related to the LAPACK or ATLAS libraries, that are used by Scilab but external to it, for these operators and other linear algebra ones. You might search and ask to the dedicated websites. Regards Samuel Gougeon From michael.baudin at scilab.org Fri Jan 14 15:49:29 2011 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Fri, 14 Jan 2011 15:49:29 +0100 Subject: [scilab-Users] \ and / and inv() algorithm In-Reply-To: <2d7199f6.3d75bc61.4d3026f0.7ae4b@o2.pl> References: <2d7199f6.3d75bc61.4d3026f0.7ae4b@o2.pl> Message-ID: <4D306279.60005@scilab.org> Hi, In most cases, the backslash operator uses a Gaussian elimination with row pivoting. In some cases, it uses a least squares algorithm. See in "Programming in Scilab" : http://forge.scilab.org/index.php/p/docprogscilab/downloads/ section 5.6, "References and notes". "In the section 5.1.3, we presented a Gaussian elimination algorithm and stated 134 that this algorithm (but not the particular implementation that we presented) is used in Scilab, behind the backslash operator. The actual behavior of the backslash operator in Scilab is the following. First, we perform a call to the DGETRF LAPACK routine, which decomposes the matrix A into PA = LU, where P is a permutation matrix, L is a lower triangular matrix and U is an upper triangular matrix. The diagonal entries of L are unity. Then we call the DGECON LAPACK routine, which approximates the inverse of the 1-norm condition number of the matrix A. At this point, there are two cases. If the condition number of the matrix is not too large, then the system of linear equations is not ill-conditioned (this is not exact, because the condition is only approximated, but the algorithms makes the hypothesis that the estimation can be trusted). In this case, we call the DGETRS LAPACK routine, which solves the linear system of equations by using the PA = LU decomposition. More precisely, this step uses row permutations, and then the forward and backward substitutions in order to compute the solution x depending on the right-hand side b. In the other case, that is, if the matrix is ill-conditioned, we use a modi fied version of the DGELSY LAPACK routine, which solves the associated least-squares problem. This choice may reduce the accuracy for matrices of intermediate condition [9]." The inv function just solves the equation Ax=b with b=eye(A), so that it is just a particular call to essentially algorithms. Actually, the algorithm that you can find in : http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/linear_algebra/src/fortran/intdgetri.f;h=061fe92c5fbae006485493df93c77b8c26a59843;hb=HEAD uses another routine, DGETRI: http://www.netlib.org/lapack/double/dgetri.f Best regards, Micha?l Le 14/01/2011 11:35, w_artichowicz a ?crit : > Hello, > > I would like to find out what algorithm is used to estimate the inverse matrix when using operators > > \ or / > > or function inv(). > > > Thanks in advance. > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Fri Jan 14 15:51:51 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 14 Jan 2011 15:51:51 +0100 Subject: [scilab-Users] Re: Re: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: References: Message-ID: <4D306307.1040100@scilab.org> Hi, That is true. But why not using the fsolve function ? After all, the whole purpose of Scilab is to save time by providing these "basic" algorithms, isn'it ? Best regards, Micha?l Baudin Le 14/01/2011 08:48, JOSE KANTOLE a ?crit : > Thank you for your feedback! > > On 1/13/11, Wojciech Artichowicz wrote: >> Hello there, >> >> >> >> Here You have a quite general Newton-Raphson function. >> >> Just fill function F(x) and use the code below. :] >> >> good luck and best regards. >> >> >> >> function y=F(x) >> >> y=your formula; >> >> endfunction >> >> >> >> function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) >> >> x1=x0; >> >> if h==[] then, h=1e-10; end; //step for numerical derivative computation >> >> while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the condition to >> finish iterations >> >> x0=x1; >> >> df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central scheme) >> >> x1=x0-f(x0)/df; >> >> end >> >> endfunction >> >> >> >> >> >> >> >> x0 = starting value, >> >> Epsf=0.0000000001; >> >> Epsx=0.00000001; >> >> h=0.0000000001; >> >> solution=NewtonRaphson(F,x0,Epsf,Epsx,h); >> >> -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Fri Jan 14 15:53:01 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 14 Jan 2011 15:53:01 +0100 Subject: [scilab-Users] Re: Re: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? In-Reply-To: <4D306307.1040100@scilab.org> References: <4D306307.1040100@scilab.org> Message-ID: <4D30634D.8020508@scilab.org> Oups, did not see the message by St?phane Mottelet... Regards, Micha?l Le 14/01/2011 15:51, Micha?l Baudin a ?crit : > Hi, > > That is true. But why not using the fsolve function ? > > After all, the whole purpose of Scilab is to save time by providing > these "basic" algorithms, isn'it ? > > Best regards, > > Micha?l Baudin > > Le 14/01/2011 08:48, JOSE KANTOLE a ?crit : >> Thank you for your feedback! >> >> On 1/13/11, Wojciech Artichowicz wrote: >>> Hello there, >>> >>> >>> >>> Here You have a quite general Newton-Raphson function. >>> >>> Just fill function F(x) and use the code below. :] >>> >>> good luck and best regards. >>> >>> >>> >>> function y=F(x) >>> >>> y=your formula; >>> >>> endfunction >>> >>> >>> >>> function x1=NewtonRaphson(f,x0,Epsf,Epsx,h) >>> >>> x1=x0; >>> >>> if h==[] then, h=1e-10; end; //step for numerical derivative >>> computation >>> >>> while abs(f(x1))>Epsf | abs(x1-x0)>Epsx do //checking the >>> condition to >>> finish iterations >>> >>> x0=x1; >>> >>> df=(f(x0+h)-f(x0-h))/(2.0*h); //numerical derivative (central >>> scheme) >>> >>> x1=x0-f(x0)/df; >>> >>> end >>> >>> endfunction >>> >>> >>> >>> >>> >>> >>> >>> x0 = starting value, >>> >>> Epsf=0.0000000001; >>> >>> Epsx=0.00000001; >>> >>> h=0.0000000001; >>> >>> solution=NewtonRaphson(F,x0,Epsf,Epsx,h); >>> >>> > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From dean.parsons at att.net Fri Jan 14 20:24:59 2011 From: dean.parsons at att.net (Dean Parsons) Date: Fri, 14 Jan 2011 13:24:59 -0600 Subject: eqfir, remez, remezb Message-ID: Hello, I am using the "eqfir" and "remezb" functions to design FIR filters. The documentation on these functions in the Scilab help manual is very brief. Are there other sources of documentation where I can learn more about these functions? For example I would like to know what is the difference between these 3 functions - they each appear to do about the same thing. I would also like to know more about the algorithms they each use and how to map the coefficients they produce to the various FIR circuit structures such as the direct form FIR structure and then be able to compute how many adders and how many registers are required. Thank you, Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Louis.Auge at grenoble.cnrs.fr Fri Jan 14 23:26:50 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Fri, 14 Jan 2011 23:26:50 +0100 Subject: global variable - Graphic interface Message-ID: <4D30CDAA.90405@grenoble.cnrs.fr> Hi, I would like use the result from calculations made in a function called by a pressbutton. For that, I defined the result as a global variable so that all my program sees it. Unfortunately, the program does not see this global variable; as if it cannot exit from the function. Is somebody have an idea on that? Best regards. JL From calixte at contrib.scilab.org Fri Jan 14 23:34:07 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 14 Jan 2011 23:34:07 +0100 Subject: [scilab-Users] global variable - Graphic interface In-Reply-To: <4D30CDAA.90405@grenoble.cnrs.fr> References: <4D30CDAA.90405@grenoble.cnrs.fr> Message-ID: <1295044447.4046.34.camel@Calixte-Dell> Hello Jean-Louis, Maybe in using the command 'global' (help global) Calixte Le vendredi 14 janvier 2011 ? 23:26 +0100, Jean-Louis Auge a ?crit : > Hi, > > I would like use the result from calculations made in a function called > by a pressbutton. > For that, I defined the result as a global variable so that all my > program sees it. > Unfortunately, the program does not see this global variable; as if it > cannot exit from the function. > > Is somebody have an idea on that? > > > Best regards. > > JL > > From Jean-Louis.Auge at grenoble.cnrs.fr Sat Jan 15 14:46:23 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Sat, 15 Jan 2011 14:46:23 +0100 Subject: [scilab-Users] global variable - Graphic interface In-Reply-To: <1295044447.4046.34.camel@Calixte-Dell> References: <4D30CDAA.90405@grenoble.cnrs.fr> <1295044447.4046.34.camel@Calixte-Dell> Message-ID: <4D31A52F.5090404@grenoble.cnrs.fr> I used the command 'global' but I surprised by its use. Indeed, I have to define my variable as 'global' in the main program AND in the function where it has to be computed. Is it normal? From my point of view, I thought that to define the global variable in the main program was sufficient! Nota: The function is a callback function from a pushbutton. Regards, JL. Calixte Denizet a ?crit : > Hello Jean-Louis, > > Maybe in using the command 'global' (help global) > > Calixte > > Le vendredi 14 janvier 2011 ? 23:26 +0100, Jean-Louis Auge a ?crit : > >> Hi, >> >> I would like use the result from calculations made in a function called >> by a pressbutton. >> For that, I defined the result as a global variable so that all my >> program sees it. >> Unfortunately, the program does not see this global variable; as if it >> cannot exit from the function. >> >> Is somebody have an idea on that? >> >> >> Best regards. >> >> JL >> From stephane.mottelet at utc.fr Sat Jan 15 15:57:26 2011 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Sat, 15 Jan 2011 15:57:26 +0100 Subject: [scilab-Users] global variable - Graphic interface In-Reply-To: <4D31A52F.5090404@grenoble.cnrs.fr> References: <4D30CDAA.90405@grenoble.cnrs.fr> <1295044447.4046.34.camel@Calixte-Dell> <4D31A52F.5090404@grenoble.cnrs.fr> Message-ID: <20110115155726.2030660khxmsn6rk@webmail.utc.fr> Jean-Louis Auge a ?crit?: > I used the command 'global' but I surprised by its use. > Indeed, I have to define my variable as 'global' in the main program > AND in the function where it has to be computed. > Is it normal? > From my point of view, I thought that to define the global variable > in the main program was sufficient! In Scilab, all variables of the calling workspace are accessible but read-only. If such a variable is modified e.g. inside a function, this is in fact a local copy which is modified, not the variable of the calling workspace. This explains the way that global variable work in Scilab. If your variable is declared global in the calling workspace, but not inside the function, when you modify the variable in the function, you modify a local variable. S. > > Nota: The function is a callback function from a pushbutton. > > Regards, > > JL. > > > > Calixte Denizet a ?crit : >> Hello Jean-Louis, >> >> Maybe in using the command 'global' (help global) >> >> Calixte >> >> Le vendredi 14 janvier 2011 ? 23:26 +0100, Jean-Louis Auge a ?crit : >> >>> Hi, >>> >>> I would like use the result from calculations made in a function >>> called by a pressbutton. >>> For that, I defined the result as a global variable so that all my >>> program sees it. >>> Unfortunately, the program does not see this global variable; as >>> if it cannot exit from the function. >>> >>> Is somebody have an idea on that? >>> >>> >>> Best regards. >>> >>> JL >>> > From claude.dorbes at hotmail.fr Sat Jan 15 17:53:53 2011 From: claude.dorbes at hotmail.fr (claude dorbes) Date: Sat, 15 Jan 2011 17:53:53 +0100 Subject: Using ATOMS Modules Message-ID: On the SCILAB 5.3.0 console (French version), the command Applications ?> gestion de modulesATMOS , returns the error message : atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' Similary the instruction atomsInstall ( [?module_lyc?e?,?1.3?] ) returns : -->atomsInstall ( ['module_lyc?e','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lyc?e','1.3'] ) Could you correct that ? Thanks. C D -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiraduvidascefet at yahoo.com Sun Jan 16 15:54:06 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Sun, 16 Jan 2011 06:54:06 -0800 (PST) Subject: Was Stixbox module integrated in Scilab 5.3 ? Message-ID: <727098.95461.qm@web45514.mail.sp1.yahoo.com> Hi users, I see that Stixbox?module has a lot of statistical functions. I would like to know if those statistica functions were implemented in Scilab 5.3 or I need to download the Stixbox file and install it. Thank you. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnedelchev65 at yahoo.com Sun Jan 16 16:28:35 2011 From: dnedelchev65 at yahoo.com (dragomir nedeltchev) Date: Sun, 16 Jan 2011 07:28:35 -0800 (PST) Subject: Matlab ismember Message-ID: <425983.50854.qm@web130210.mail.mud.yahoo.com> Hi, Can you help me replicate MATLAB's ismember in SciLab? Thanks. Drago -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Sun Jan 16 17:21:29 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sun, 16 Jan 2011 17:21:29 +0100 Subject: [scilab-Users] Matlab ismember In-Reply-To: <425983.50854.qm@web130210.mail.mud.yahoo.com> References: <425983.50854.qm@web130210.mail.mud.yahoo.com> Message-ID: <20110116172129.11445owf5o3951c0@webmail2.univ-lemans.fr> Hello, dragomir nedeltchev a ?crit?: > Hi, Can you help me replicate MATLAB's ismember in SciLab? Thanks. Drago You may read the followinf thread: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc When you have well defined keywords as here, you should use them to search through the archives: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search Regards Samuel From dnedelchev65 at yahoo.com Sun Jan 16 19:56:25 2011 From: dnedelchev65 at yahoo.com (dragomir nedeltchev) Date: Sun, 16 Jan 2011 10:56:25 -0800 (PST) Subject: [scilab-Users] Matlab ismember In-Reply-To: <20110116172129.11445owf5o3951c0@webmail2.univ-lemans.fr> Message-ID: <728126.96813.qm@web130201.mail.mud.yahoo.com> thank you very much --- On Sun, 1/16/11, Samuel Gougeon wrote: From: Samuel Gougeon Subject: Re: [scilab-Users] Matlab ismember To: users at lists.scilab.org Date: Sunday, January 16, 2011, 6:21 PM Hello, dragomir nedeltchev a ?crit?: > Hi, Can you help me replicate MATLAB's ismember in SciLab? Thanks. Drago You may read the followinf thread: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc When you have well defined keywords as here, you should use them to search through the archives: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Jan 17 08:07:07 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 17 Jan 2011 08:07:07 +0100 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: References: Message-ID: <007201cbb615$26bf70c0$743e5240$@scilab.org> Hi, Try : atomsSystemUpdate() atomsInstall ( ['module_lycee','1.3'] ) ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->atomsInstall ( ['module_lycee','1.3'] ) ans = !module_lycee 1.3-2 user SCIHOME\atoms\module_lycee\1.3-2 I ! Allan De : claude dorbes [mailto:claude.dorbes at hotmail.fr] Envoy? : samedi 15 janvier 2011 17:54 ? : users at lists.scilab.org Objet : [scilab-Users] Using ATOMS Modules On the SCILAB 5.3.0 console (French version), the command Applications ?> gestion de modulesATMOS , returns the error message : atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' Similary the instruction atomsInstall ( [?module_lyc?e?,?1.3?] ) returns : -->atomsInstall ( ['module_lyc?e','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lyc?e','1.3'] ) Could you correct that ? Thanks. C D -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Jan 17 09:45:25 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 17 Jan 2011 09:45:25 +0100 Subject: [scilab-Users] eqfir, remez, remezb In-Reply-To: References: Message-ID: <4D3401A5.3080803@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Dean Parsons Date : 14/01/2011 20:24: > *Hello,* > ** > *I am using the "eqfir" and "remezb" functions to design FIR filters. The > documentation on these functions in the Scilab help manual is very brief. Are > there other sources of documentation where I can learn more about these > functions? > .../... > * Yes, likely here: http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf from there (english, 1998): http://wiki.scilab.org/Tutorials Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon Jan 17 10:25:06 2011 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 17 Jan 2011 09:25:06 +0000 (UTC) Subject: Was Stixbox module integrated in Scilab 5.3 ? References: <727098.95461.qm@web45514.mail.sp1.yahoo.com> Message-ID: Reinaldo Golmia Dante writes:? > ....Stixbox?module has a lot of statistical functions. > ? > I would like to know if those statistica functions > were implemented in Scilab 5.3 or > I need to download the Stixbox file and install it. atomsInstall(['stixbox','1.4']) from . Worked. Heinz From paul.carrico at esterline.com Mon Jan 17 11:18:20 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 17 Jan 2011 11:18:20 +0100 Subject: false results in Rosenbrock equation Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B09D@exchsrv.AUXITROL1> Dear all In the Rosenbrock equation it is well known the 2 minima are (1,1) and (-1,1) ; in the attached where I want to test several optimization macros (and basic &particular functions) I've a different result as descibed herebellow : is there a mistake in the input file or does something go wrong ? Please note the functions inputs are as general as possible to be used with the different macros (fminsearch, optim and so on) Paul #################################################################" - X1 optimized = 0.229978 - X2 optimized = 0.0240434 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: optimization_tests.sce Type: application/octet-stream Size: 8204 bytes Desc: optimization_tests.sce URL: From bernard.beziaud at edf.fr Mon Jan 17 11:19:05 2011 From: bernard.beziaud at edf.fr (Bernard BEZIAUD) Date: Mon, 17 Jan 2011 11:19:05 +0100 Subject: How to use multiple instances of a class in Modelica generic blocks ? Message-ID: I got the message "too many files, please put all programs in a single file" in Xcos. I don't how to do so. I would like to do so but it appears to me that Xcos/modelica makes a mistake by not considering a difference in a "class" and a "class instance". A class is the declaration. A class instance is a usage, an item of that class. In a modelica generic block, if I put a file name for example "test1.mo". File "test1.mo" contains a class let say called "test1" so it is a declaration. If I want to instanciate the class "test1" in multiple modelica blocks, Xcos will send me a error message saying that I declared multiple classes "test1". My multiple modelica blocks (of the same class) should be only Instances not Classes. How do you solve this inconsistency ? Bernard BEZIAUD Ing?nieur-chercheur EDF - R&D MIRE 1, Av du G?n?ral de Gaulle 92141 Clamart bernard.beziaud at edf.fr T?l. : 0147652889 Un geste simple pour l'environnement, n'imprimez ce message que si vous en avez l'utilit?. Ce message et toutes les pi?ces jointes (ci-apr?s le 'Message') sont ?tablis ? l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme ? sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'?tes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez re?u ce Message par erreur, merci de le supprimer de votre syst?me, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions ?galement d'en avertir imm?diatement l'exp?diteur par retour du message. Il est impossible de garantir que les communications par messagerie ?lectronique arrivent en temps utile, sont s?curis?es ou d?nu?es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 27859160.gif Type: image/gif Size: 1816 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 27030797.gif Type: image/gif Size: 1151 bytes Desc: not available URL: From dr.w.grabellus at t-online.de Mon Jan 17 14:57:22 2011 From: dr.w.grabellus at t-online.de (dr.w.grabellus at t-online.de) Date: Mon, 17 Jan 2011 14:57:22 +0100 Subject: Scilab 5.3.0 x 64 bit, English version. Message-ID: <1PepaF-0IhbF20@fwd07.aul.t-online.de> An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Jan 17 15:11:24 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 17 Jan 2011 15:11:24 +0100 Subject: [scilab-Users] Scilab 5.3.0 x 64 bit, English version. In-Reply-To: <1PepaF-0IhbF20@fwd07.aul.t-online.de> References: <1PepaF-0IhbF20@fwd07.aul.t-online.de> Message-ID: <1295273484.8374.21.camel@losinj.inria.fr> Which OS are you running ? Sylvestre On Mon, 2011-01-17 at 14:57 +0100, dr.w.grabellus at t-online.de wrote: > Hallo > > > I made several attempts to download a complete English version of > Scilab 5.3.0 x 64 bit. > > > > I always land up with a German version. > > > Where to find the English version? > > > Regards > > W. Grabellus > From haraldgalda at yahoo.com Mon Jan 17 15:26:43 2011 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Mon, 17 Jan 2011 06:26:43 -0800 (PST) Subject: AW: [scilab-Users] Scilab 5.3.0 x 64 bit, English version. In-Reply-To: <1PepaF-0IhbF20@fwd07.aul.t-online.de> References: <1PepaF-0IhbF20@fwd07.aul.t-online.de> Message-ID: <144080.80329.qm@web112608.mail.gq1.yahoo.com> Dear W. Grabellus, there is no such thing as a German or English version of Scilab. If you want to use Scilab in English during a session, type setlanguage('en_US') If you want to use Scilab in English permanently, type setdefaultlanguage('en_US') I hope this helps. Best regards Harald Galda ________________________________ Von: "dr.w.grabellus at t-online.de" An: users at lists.scilab.org Gesendet: Montag, den 17. Januar 2011, 14:57:22 Uhr Betreff: [scilab-Users] Scilab 5.3.0 x 64 bit, English version. Hallo I made several attempts to download a complete English version of Scilab 5.3.0 x 64 bit. I always land up with a German version. Where to find the English version? Regards W. Grabellus From michael.baudin at scilab.org Mon Jan 17 16:10:00 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 17 Jan 2011 16:10:00 +0100 Subject: [scilab-Users] Matlab ismember In-Reply-To: <728126.96813.qm@web130201.mail.mud.yahoo.com> References: <728126.96813.qm@web130201.mail.mud.yahoo.com> Message-ID: <4D345BC8.3090206@scilab.org> Hi, Ok, now I remember, it is there : http://forge.scilab.org/index.php/p/number/source/tree/HEAD/macros/number_ismember.sci Unfortunately, I have not released this function in the binary release yet. Here is a simplified version: function tf = number_ismember ( a , s ) // Array elements that are members of set. // // Calling Sequence // tf = number_ismember ( a , s ) // // Parameters // a : a ma-by-na matrix // s : a 1-by-ns matrix // tf : a ma-by-na matrix of booleans, tf(i,j) is %t if there is an entry in s matching a(i,j). // // Description // Search in a the entries which are in s. // // Uses vectorized statements, based on the Kronecker product. // The intermediate memory required is ma*na*ns. // // Examples // a = (1:5)' // s = [0 2 4 6 8 10 12 14 16 18 20] // tf = number_ismember ( a , s ) // expected = [%f %t %f %t %f]' // // // An example with a matrix // a = [ // 7 35 14 86 76 // 15 51 24 96 49 // 35 40 46 35 93 // 85 34 74 82 22 // ]; // s = [51 74 22 15 86] // tf = number_ismember(a, s) // // Authors // Copyright (C) 2010 - DIGITEO - Michael Baudin // // Check size // a can have any shape if ( s==[] ) then tf=(ones(a)==zeros(a)) return end // // Check content // Nothing to do. // // Proceed... if ( a==[] ) then tf=[] return end // // Convert a into a column vector ma = size(a,"r") na = size(a,"c") a=a(:) // ns = size(s,"c") sp = s .*. ones(na*ma,1) ap = a .*. ones(1,ns) tf = or(ap==sp,"c") // // Convert tf into the same shape as a tf=matrix(tf,ma,na) endfunction This is an example: --> a = [ --> 7 35 14 86 76 --> 15 51 24 96 49 --> 35 40 46 35 93 --> 85 34 74 82 22 --> ]; --> s = [51 74 22 15 86] s = 51. 74. 22. 15. 86. --> tf = number_ismember(a, s) tf = F F F T F T T F F F F F F F F F F T F T Best regards, Micha?l Le 16/01/2011 19:56, dragomir nedeltchev a ?crit : > thank you very much > > --- On *Sun, 1/16/11, Samuel Gougeon > //* wrote: > > > From: Samuel Gougeon > Subject: Re: [scilab-Users] Matlab ismember > To: users at lists.scilab.org > Date: Sunday, January 16, 2011, 6:21 PM > > > Hello, > > dragomir nedeltchev > a ?crit : > > > Hi, Can you help me replicate MATLAB's ismember in SciLab? > Thanks. Drago > > You may read the followinf thread: > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc > > > When you have well defined keywords as here, you should use them > to search > through the archives: > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search > > > Regards > Samuel > > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Jan 17 16:26:32 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 17 Jan 2011 16:26:32 +0100 Subject: [scilab-Users] Matlab ismember In-Reply-To: <4D345BC8.3090206@scilab.org> References: <728126.96813.qm@web130201.mail.mud.yahoo.com> <4D345BC8.3090206@scilab.org> Message-ID: <4D345FA8.3030209@scilab.org> See the discussion at : http://bugzilla.scilab.org/process_bug.cgi Best regards, Micha?l Baudin Le 17/01/2011 16:10, Micha?l Baudin a ?crit : > Hi, > > Ok, now I remember, it is there : > > http://forge.scilab.org/index.php/p/number/source/tree/HEAD/macros/number_ismember.sci > > Unfortunately, I have not released this function in the binary release > yet. > Here is a simplified version: > > function tf = number_ismember ( a , s ) > // Array elements that are members of set. > // > // Calling Sequence > // tf = number_ismember ( a , s ) > // > // Parameters > // a : a ma-by-na matrix > // s : a 1-by-ns matrix > // tf : a ma-by-na matrix of booleans, tf(i,j) is %t if there is > an entry in s matching a(i,j). > // > // Description > // Search in a the entries which are in s. > // > // Uses vectorized statements, based on the Kronecker product. > // The intermediate memory required is ma*na*ns. > // > // Examples > // a = (1:5)' > // s = [0 2 4 6 8 10 12 14 16 18 20] > // tf = number_ismember ( a , s ) > // expected = [%f %t %f %t %f]' > // > // // An example with a matrix > // a = [ > // 7 35 14 86 76 > // 15 51 24 96 49 > // 35 40 46 35 93 > // 85 34 74 82 22 > // ]; > // s = [51 74 22 15 86] > // tf = number_ismember(a, s) > // > // Authors > // Copyright (C) 2010 - DIGITEO - Michael Baudin > > // > // Check size > // a can have any shape > if ( s==[] ) then > tf=(ones(a)==zeros(a)) > return > end > // > // Check content > // Nothing to do. > // > // Proceed... > if ( a==[] ) then > tf=[] > return > end > // > // Convert a into a column vector > ma = size(a,"r") > na = size(a,"c") > a=a(:) > // > ns = size(s,"c") > sp = s .*. ones(na*ma,1) > ap = a .*. ones(1,ns) > tf = or(ap==sp,"c") > // > // Convert tf into the same shape as a > tf=matrix(tf,ma,na) > endfunction > > This is an example: > > --> a = [ > --> 7 35 14 86 76 > --> 15 51 24 96 49 > --> 35 40 46 35 93 > --> 85 34 74 82 22 > --> ]; > > --> s = [51 74 22 15 86] > s = > > 51. 74. 22. 15. 86. > > --> tf = number_ismember(a, s) > tf = > > F F F T F > T T F F F > F F F F F > F F T F T > > Best regards, > > Micha?l > > Le 16/01/2011 19:56, dragomir nedeltchev a ?crit : >> thank you very much >> >> --- On *Sun, 1/16/11, Samuel Gougeon >> //* wrote: >> >> >> From: Samuel Gougeon >> Subject: Re: [scilab-Users] Matlab ismember >> To: users at lists.scilab.org >> Date: Sunday, January 16, 2011, 6:21 PM >> >> >> Hello, >> >> dragomir nedeltchev > > a ?crit : >> >> > Hi, Can you help me replicate MATLAB's ismember in SciLab? >> Thanks. Drago >> >> You may read the followinf thread: >> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc >> >> >> When you have well defined keywords as here, you should use them >> to search >> through the archives: >> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search >> >> Regards >> Samuel >> >> >> > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Jan 17 16:30:35 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 17 Jan 2011 16:30:35 +0100 Subject: [scilab-Users] Matlab ismember In-Reply-To: <4D345FA8.3030209@scilab.org> References: <728126.96813.qm@web130201.mail.mud.yahoo.com> <4D345BC8.3090206@scilab.org> <4D345FA8.3030209@scilab.org> Message-ID: <4D34609B.1010303@scilab.org> Oups, this is the good one : http://bugzilla.scilab.org/show_bug.cgi?id=8792 Micha?l Le 17/01/2011 16:26, Micha?l Baudin a ?crit : > See the discussion at : > > http://bugzilla.scilab.org/process_bug.cgi > > Best regards, > > Micha?l Baudin > > Le 17/01/2011 16:10, Micha?l Baudin a ?crit : >> Hi, >> >> Ok, now I remember, it is there : >> >> http://forge.scilab.org/index.php/p/number/source/tree/HEAD/macros/number_ismember.sci >> >> Unfortunately, I have not released this function in the binary >> release yet. >> Here is a simplified version: >> >> function tf = number_ismember ( a , s ) >> // Array elements that are members of set. >> // >> // Calling Sequence >> // tf = number_ismember ( a , s ) >> // >> // Parameters >> // a : a ma-by-na matrix >> // s : a 1-by-ns matrix >> // tf : a ma-by-na matrix of booleans, tf(i,j) is %t if there is >> an entry in s matching a(i,j). >> // >> // Description >> // Search in a the entries which are in s. >> // >> // Uses vectorized statements, based on the Kronecker product. >> // The intermediate memory required is ma*na*ns. >> // >> // Examples >> // a = (1:5)' >> // s = [0 2 4 6 8 10 12 14 16 18 20] >> // tf = number_ismember ( a , s ) >> // expected = [%f %t %f %t %f]' >> // >> // // An example with a matrix >> // a = [ >> // 7 35 14 86 76 >> // 15 51 24 96 49 >> // 35 40 46 35 93 >> // 85 34 74 82 22 >> // ]; >> // s = [51 74 22 15 86] >> // tf = number_ismember(a, s) >> // >> // Authors >> // Copyright (C) 2010 - DIGITEO - Michael Baudin >> >> // >> // Check size >> // a can have any shape >> if ( s==[] ) then >> tf=(ones(a)==zeros(a)) >> return >> end >> // >> // Check content >> // Nothing to do. >> // >> // Proceed... >> if ( a==[] ) then >> tf=[] >> return >> end >> // >> // Convert a into a column vector >> ma = size(a,"r") >> na = size(a,"c") >> a=a(:) >> // >> ns = size(s,"c") >> sp = s .*. ones(na*ma,1) >> ap = a .*. ones(1,ns) >> tf = or(ap==sp,"c") >> // >> // Convert tf into the same shape as a >> tf=matrix(tf,ma,na) >> endfunction >> >> This is an example: >> >> --> a = [ >> --> 7 35 14 86 76 >> --> 15 51 24 96 49 >> --> 35 40 46 35 93 >> --> 85 34 74 82 22 >> --> ]; >> >> --> s = [51 74 22 15 86] >> s = >> >> 51. 74. 22. 15. 86. >> >> --> tf = number_ismember(a, s) >> tf = >> >> F F F T F >> T T F F F >> F F F F F >> F F T F T >> >> Best regards, >> >> Micha?l >> >> Le 16/01/2011 19:56, dragomir nedeltchev a ?crit : >>> thank you very much >>> >>> --- On *Sun, 1/16/11, Samuel Gougeon >>> //* wrote: >>> >>> >>> From: Samuel Gougeon >>> Subject: Re: [scilab-Users] Matlab ismember >>> To: users at lists.scilab.org >>> Date: Sunday, January 16, 2011, 6:21 PM >>> >>> >>> Hello, >>> >>> dragomir nedeltchev >> > a ?crit : >>> >>> > Hi, Can you help me replicate MATLAB's ismember in SciLab? >>> Thanks. Drago >>> >>> You may read the followinf thread: >>> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc >>> >>> >>> When you have well defined keywords as here, you should use them >>> to search >>> through the archives: >>> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search >>> >>> >>> Regards >>> Samuel >>> >>> >>> >> >> >> -- >> Micha?l Baudin >> Ing?nieur de d?veloppement >> michael.baudin at scilab.org >> ------------------------- >> Consortium Scilab - Digiteo >> Domaine de Voluceau - Rocquencourt >> B.P. 105 - 78153 Le Chesnay Cedex >> Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 >> > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnedelchev65 at yahoo.com Mon Jan 17 17:50:38 2011 From: dnedelchev65 at yahoo.com (dragomir nedeltchev) Date: Mon, 17 Jan 2011 08:50:38 -0800 (PST) Subject: [scilab-Users] Matlab ismember In-Reply-To: <4D34609B.1010303@scilab.org> Message-ID: <199857.76540.qm@web130202.mail.mud.yahoo.com> Thank you very much --- On Mon, 1/17/11, Micha?l Baudin wrote: From: Micha?l Baudin Subject: Re: [scilab-Users] Matlab ismember To: users at lists.scilab.org Cc: "dragomir nedeltchev" Date: Monday, January 17, 2011, 5:30 PM Oups, this is the good one : http://bugzilla.scilab.org/show_bug.cgi?id=8792 Micha?l Le 17/01/2011 16:26, Micha?l Baudin a ?crit?: See the discussion at : http://bugzilla.scilab.org/process_bug.cgi Best regards, Micha?l Baudin Le 17/01/2011 16:10, Micha?l Baudin a ?crit?: Hi, Ok, now I remember, it is there : http://forge.scilab.org/index.php/p/number/source/tree/HEAD/macros/number_ismember.sci Unfortunately, I have not released this function in the binary release yet. Here is a simplified version: function tf = number_ismember ( a , s ) ??? // Array elements that are members of set. ??? // ??? // Calling Sequence ??? // tf = number_ismember ( a , s ) ??? // ??? // Parameters ??? // a : a ma-by-na matrix ??? // s : a 1-by-ns matrix ??? // tf : a ma-by-na matrix of booleans, tf(i,j) is %t if there is an entry in s matching a(i,j). ??? // ??? // Description ??? // Search in a the entries which are in s. ??? // ??? // Uses vectorized statements, based on the Kronecker product. ??? // The intermediate memory required is ma*na*ns. ??? // ??? // Examples ??? // a = (1:5)' ??? // s = [0 2 4 6 8 10 12 14 16 18 20] ??? // tf = number_ismember ( a , s ) ??? // expected = [%f %t %f %t %f]' ??? // ??? // // An example with a matrix ??? // a = [ ??? // 7 35 14 86 76?? ??? // 15 51 24 96 49?? ??? // 35 40 46 35 93?? ??? // 85 34 74 82 22 ??? // ]; ??? // s = [51 74 22 15 86] ??? // tf = number_ismember(a, s) ??? // ??? // Authors ??? // Copyright (C) 2010 - DIGITEO - Michael Baudin ??? // ??? // Check size ??? // a can have any shape ??? if ( s==[] ) then ????? tf=(ones(a)==zeros(a)) ????? return ??? end ??? // ??? // Check content ??? // Nothing to do. ??? // ??? // Proceed... ??? if ( a==[] ) then ????? tf=[] ????? return ??? end ??? // ??? // Convert a into a column vector ??? ma = size(a,"r") ??? na = size(a,"c") ??? a=a(:) ??? // ??? ns = size(s,"c") ??? sp = s .*. ones(na*ma,1) ??? ap = a .*. ones(1,ns) ??? tf = or(ap==sp,"c") ??? // ??? // Convert tf into the same shape as a ??? tf=matrix(tf,ma,na) endfunction This is an example: -->???? a = [ -->???? 7 35 14 86 76?? -->???? 15 51 24 96 49?? -->???? 35 40 46 35 93?? -->???? 85 34 74 82 22 -->???? ]; ? -->???? s = [51 74 22 15 86] ?s? = ? ??? 51.??? 74.??? 22.??? 15.??? 86.? ? -->???? tf = number_ismember(a, s) ?tf? = ? ? F F F T F? ? T T F F F? ? F F F F F? ? F F T F T? Best regards, Micha?l Le 16/01/2011 19:56, dragomir nedeltchev a ?crit?: thank you very much --- On Sun, 1/16/11, Samuel Gougeon wrote: From: Samuel Gougeon Subject: Re: [scilab-Users] Matlab ismember To: users at lists.scilab.org Date: Sunday, January 16, 2011, 6:21 PM Hello, dragomir nedeltchev a ?crit?: > Hi, Can you help me replicate MATLAB's ismember in SciLab? Thanks. Drago You may read the followinf thread: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=threadindex&month=200911&threadid=epdldcdicfagcdofccbc When you have well defined keywords as here, you should use them to search through the archives: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=users&cmd=search Regards Samuel -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.parsons at att.net Mon Jan 17 18:41:00 2011 From: dean.parsons at att.net (Dean Parsons) Date: Mon, 17 Jan 2011 11:41:00 -0600 Subject: [scilab-Users] eqfir, remez, remezb References: <4D3401A5.3080803@univ-lemans.fr> Message-ID: <4F4B99B46A144D6C9340224C36BA695A@optiplex745> Samuel, Thank you! I looked at this document and it is exactly what I need! Unfortunately, from page 2 onward the text of the pdf file is not centered properly in the vertical direction. The margin at the bottom appears to be too large (about 2 inches) and there is no margin at the top --- there is text right at the top edge of the page. In other words, the text begins at the extreme top or the very top edge of the page. When I print the document the all the text in the top one inch of the page is truncated and is not printed. So there is missing text in the print out. Could someone please regenerate the pdf file so that there is a one inch margin at the top of the page and also a one inch margin at the bottom of the page so that it will print out correctly? Thank you. Dean Parsons ----- Original Message ----- From: Samuel GOUGEON To: users at lists.scilab.org Sent: Monday, January 17, 2011 2:45 AM Subject: Re: [scilab-Users] eqfir, remez, remezb Hello, ----- Message d'origine ----- De : Dean Parsons Date : 14/01/2011 20:24: Hello, I am using the "eqfir" and "remezb" functions to design FIR filters. The documentation on these functions in the Scilab help manual is very brief. Are there other sources of documentation where I can learn more about these functions? .../... Yes, likely here: http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf from there (english, 1998): http://wiki.scilab.org/Tutorials Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.parsons at att.net Mon Jan 17 18:54:23 2011 From: dean.parsons at att.net (Dean Parsons) Date: Mon, 17 Jan 2011 11:54:23 -0600 Subject: remez function broken? Message-ID: <673016EEE3AE460DBE4981A45C7E3E45@optiplex745> Is Scilab's remez function broken? When I try to use it it always returns an empty matrix [ ]. For example: -->nc = 21; -->ngrid=10240; -->fg = linspace(0,0.22,ngrid/2); -->fg = [fg linspace(0.25,0.5,ngrid/2)]; -->x = fg(1:ngrid/2)/128; -->ds(1:ngrid/2)=ones(1:ngrid/2); -->ds(ngrid/2+1:ngrid)=zeros(1:ngrid/2); -->wt=ones(fg); -->an=remez(nc,fg,ds,wt) an = [] Dean Parsons -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.mike.hollis at verizon.net Mon Jan 17 21:13:12 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Mon, 17 Jan 2011 14:13:12 -0600 (CST) Subject: Looking for Plotting Problem Work-Arounds for 64-bit 5.3.0 Scilab .... Message-ID: <1696218827.640734.1295295192913.JavaMail.root@vznit170074> An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Jan 18 08:29:46 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 18 Jan 2011 08:29:46 +0100 Subject: [scilab-Users] eqfir, remez, remezb In-Reply-To: <4F4B99B46A144D6C9340224C36BA695A@optiplex745> References: <4D3401A5.3080803@univ-lemans.fr> <4F4B99B46A144D6C9340224C36BA695A@optiplex745> Message-ID: <4D35416A.308@scilab.org> Hi, The sources are here : http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab_doc/signal;h=5e9504b00fd10621f32916c971e187639429f87c;hb=HEAD Best regards, Micha?l Baudin Le 17/01/2011 18:41, Dean Parsons a ?crit : > *Samuel,* > ** > *Thank you! I looked at this document and it is exactly what I need! > Unfortunately, from page 2 onward the text of the pdf file is not > centered properly in the vertical direction. The margin at the bottom > appears to be too large (about 2 inches) and there is no margin at the > top --- there is text right at the top edge of the page. In other > words, the text begins at the extreme top or the very top edge of the > page. When I print the document the all the text in the top one inch > of the page is truncated and is not printed. So there is missing text > in the print out.* > ** > *Could someone please regenerate the pdf file so that there is a one > inch margin at the top of the page and also a one inch margin at the > bottom of the page so that it will print out correctly?* > ** > *Thank you.* > ** > *Dean Parsons* > > ----- Original Message ----- > *From:* Samuel GOUGEON > *To:* users at lists.scilab.org > *Sent:* Monday, January 17, 2011 2:45 AM > *Subject:* Re: [scilab-Users] eqfir, remez, remezb > > Hello, > > ----- Message d'origine ----- > De : Dean Parsons > Date : 14/01/2011 20:24: >> *Hello,* >> ** >> *I am using the "eqfir" and "remezb" functions to design FIR >> filters. The documentation on these functions in the Scilab help >> manual is very brief. Are there other sources of documentation >> where I can learn more about these functions? >> .../... >> * > Yes, likely here: > http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf > from there (english, 1998): > http://wiki.scilab.org/Tutorials > > Regards > Samuel > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From julio.gonzalez at ymail.com Tue Jan 18 08:46:34 2011 From: julio.gonzalez at ymail.com (Julio Gonzalez-Saenz) Date: Tue, 18 Jan 2011 07:46:34 +0000 (GMT) Subject: [scilab-Users] eqfir, remez, remezb In-Reply-To: <4D35416A.308@scilab.org> References: <4D3401A5.3080803@univ-lemans.fr> <4F4B99B46A144D6C9340224C36BA695A@optiplex745> <4D35416A.308@scilab.org> Message-ID: <701367.60654.qm@web28301.mail.ukl.yahoo.com> Are you using AcroReader or FoxReader. I have sometimes problems with format. Acrobat Reader always works fine. Julio ________________________________ From: Micha?l Baudin To: users at lists.scilab.org Cc: Dean Parsons Sent: Tue, 18 January, 2011 9:29:46 Subject: Re: [scilab-Users] eqfir, remez, remezb Hi, The sources are here : http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab_doc/signal;h=5e9504b00fd10621f32916c971e187639429f87c;hb=HEAD Best regards, Micha?l Baudin Le 17/01/2011 18:41, Dean Parsons a ?crit : Samuel, > >Thank you! I looked at this document and it is exactly what I need! >Unfortunately, from page 2 onward the text of the pdf file is not >centered properly in the vertical direction. The margin at the >bottom appears to be too large (about 2 inches) and there is no >margin at the top --- there is text right at the top edge of the >page. In other words, the text begins at the extreme top or the very >top edge of the page. When I print the document the all the text in >the top one inch of the page is truncated and is not printed. So >there is missing text in the print out. > >Could someone please regenerate the pdf file so that there is a one >inch margin at the top of the page and also a one inch margin at the >bottom of the page so that it will print out correctly? > >Thank you. > >Dean Parsons >----- Original Message ----- >>From: Samuel GOUGEON >>To: users at lists.scilab.org >>Sent: Monday, January 17, 2011 2:45 AM >>Subject: Re: [scilab-Users] eqfir, remez, remezb >> >> Hello, >> >>----- Message d'origine ----- >>De : Dean Parsons >>Date : 14/01/2011 20:24: >> >>>Hello, >>> >>>I am using the "eqfir" and "remezb" functions to design FIR >>>filters. The documentation on these functions in the Scilab help >>>manual is very brief. Are there other sources of documentation >>>where I can learn more about these functions? >>> >>>.../... >>> Yes, likely here: >http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf >from there (english, 1998): >http://wiki.scilab.org/Tutorials > >Regards >Samuel > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnemann.michael at vdi.de Tue Jan 18 08:00:59 2011 From: arnemann.michael at vdi.de (Michael Arnemann) Date: Tue, 18 Jan 2011 08:00:59 +0100 Subject: error *export function Message-ID: <000001cbb6dd$77cc0c80$67642580$@vdi.de> Sirs, running the demos/grafics/2D and 3D demos and trying to export to pdf or eps or emf brings and error scilab needs to be stopped by task manager and started again Windows 7 32 bit Scilab 5.3 32 bit (I am not sure, but THAT did not occur with win 7 64 bit and scilab 64 Kind regards Michael Arnemann -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Jan 18 09:19:44 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 18 Jan 2011 09:19:44 +0100 Subject: [scilab-Users] false results in Rosenbrock equation In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B09D@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B09D@exchsrv.AUXITROL1> Message-ID: <4D354D20.6050208@scilab.org> Hi Paul, The status of the optimization is not good when the parameters are left to the default values : -->neldermead_get(nm,"-status") ans = maxfuneval This means that the maximum number of function evaluations where reached before the convergence was attained. All we need to do is to increase the maximum number of function evaluations. In order to get even closer to the optimum, we must also increase the number of iterations. nm = neldermead_configure(nm,"-maxfunevals",200); nm = neldermead_configure(nm,"-maxiter",200); Once done, I get : -->xopt = neldermead_get(nm,"-xopt") xopt = 1.0035954 1.0073491 This is quite a difficult case for Nelder-Mead's algorithm. The simplex has to go through a long curved valley before reaching the zone where the function begins to behave as a quadratic function. Rosenbrock's function has only one global minimum, at x=[1,1]. The point x=[-1,1] is not a minimum. This is easy to check with Scilab. First, let us define the function. function [f,G,H] = rosenbrock(x) f = 100*(x(2) - x(1)^2)^2 + (1 - x(1))^2; // Calculation of the gradient G vector G(1) = -400*x(1)*(x(2) - x(1)^2) - 2*(1 - x(1)); G(2) = 200*(x(2) - x(1)^2); // Calculation of the Hessian matrix H(1,1) = -400*x(2) + 1200*x(1)^2 + 2; H(1,2) = -400*x(1); H(2,1) = -400*x(1); H(2,2) = 200; endfunction We get at x= [1,1] : -->[f,G,H] = rosenbrock([1,1]) H = 802. - 400. - 400. 200. G = 0. 0. f = 0. This means that the gradient is zero, implying that the first order conditions for unconstrained optimality are satisfied. Moreover, the eigenvalues of the Hessian matrix are positive, as shown below : -->spec(H) ans = 0.3993608 1001.6006 This implies that the local curvature of the Rosenbrock function is positive : x* is indeed a minimum. Now, at x=[-1,1], we get : -->[f,G,H] = rosenbrock([-1,1]) H = 802. 400. 400. 200. G = - 4. 0. f = 4. The gradient is nonzero, which means that the first order optimality conditions are not satisfied at x=[-1,1]. Rosenbrock's function is a sum of squares. Best regards, Micha?l Le 17/01/2011 11:18, Carrico, Paul a ?crit : > Dear all > In the Rosenbrock equation it is well known the 2 minima are (1,1) and > (-1,1) ; in the attached where I want to test several optimization > macros (and basic &particular functions) I've a different result as > descibed herebellow : is there a mistake in the input file or does > something go wrong ? > Please note the functions inputs are as general as possible to be used > with the different macros (fminsearch, optim and so on) > Paul > #################################################################" > - X1 optimized = 0.229978 > - X2 optimized = 0.0240434 > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Tue Jan 18 09:21:48 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 18 Jan 2011 09:21:48 +0100 Subject: [scilab-Users] false results in Rosenbrock equation In-Reply-To: <4D354D20.6050208@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B09D@exchsrv.AUXITROL1> <4D354D20.6050208@scilab.org> Message-ID: <4D354D9C.5080600@scilab.org> Your test case allowed me to a bug with respect to the management of the output function in the case of Box's algorithm. I reported it at : http://bugzilla.scilab.org/show_bug.cgi?id=8805 Regards, Micha?l Le 18/01/2011 09:19, Micha?l Baudin a ?crit : > Hi Paul, > > The status of the optimization is not good when the parameters are > left to the default values : > > -->neldermead_get(nm,"-status") > ans = > maxfuneval > > This means that the maximum number of function evaluations where > reached before the convergence was attained. All we need to do is to > increase the maximum number of function evaluations. In order to get > even closer to the optimum, we must also increase the number of > iterations. > > nm = neldermead_configure(nm,"-maxfunevals",200); > nm = neldermead_configure(nm,"-maxiter",200); > > Once done, I get : > > -->xopt = neldermead_get(nm,"-xopt") > xopt = > 1.0035954 > 1.0073491 > > This is quite a difficult case for Nelder-Mead's algorithm. The > simplex has to go through a long curved valley before reaching the > zone where the function begins to behave as a quadratic function. > > Rosenbrock's function has only one global minimum, at x=[1,1]. The > point x=[-1,1] is not a minimum. > > This is easy to check with Scilab. First, let us define the function. > > function [f,G,H] = rosenbrock(x) > f = 100*(x(2) - x(1)^2)^2 + (1 - x(1))^2; > > // Calculation of the gradient G vector > G(1) = -400*x(1)*(x(2) - x(1)^2) - 2*(1 - x(1)); > G(2) = 200*(x(2) - x(1)^2); > > // Calculation of the Hessian matrix > H(1,1) = -400*x(2) + 1200*x(1)^2 + 2; > H(1,2) = -400*x(1); > H(2,1) = -400*x(1); > H(2,2) = 200; > endfunction > > We get at x= [1,1] : > > -->[f,G,H] = rosenbrock([1,1]) > H = > 802. - 400. > - 400. 200. > G = > 0. > 0. > f = > 0. > > This means that the gradient is zero, implying that the first order > conditions for unconstrained optimality are satisfied. Moreover, the > eigenvalues of the Hessian matrix are positive, as shown below : > > -->spec(H) > ans = > 0.3993608 > 1001.6006 > > This implies that the local curvature of the Rosenbrock function is > positive : x* is indeed a minimum. > > Now, at x=[-1,1], we get : > > -->[f,G,H] = rosenbrock([-1,1]) > H = > 802. 400. > 400. 200. > G = > - 4. > 0. > f = > 4. > > The gradient is nonzero, which means that the first order optimality > conditions are not satisfied at x=[-1,1]. Rosenbrock's function is a > sum of squares. > > Best regards, > > Micha?l > > > Le 17/01/2011 11:18, Carrico, Paul a ?crit : >> Dear all >> In the Rosenbrock equation it is well known the 2 minima are (1,1) >> and (-1,1) ; in the attached where I want to test several >> optimization macros (and basic &particular functions) I've a >> different result as descibed herebellow : is there a mistake in the >> input file or does something go wrong ? >> Please note the functions inputs are as general as possible to be >> used with the different macros (fminsearch, optim and so on) >> Paul >> #################################################################" >> - X1 optimized = 0.229978 >> - X2 optimized = 0.0240434 >> -------------------------------------------------------------------------------- >> >> >> Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. >> >> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. >> >> > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Jan 18 09:30:03 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 18 Jan 2011 09:30:03 +0100 Subject: [scilab-Users] false results in Rosenbrock equation In-Reply-To: <4D354D20.6050208@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B09D@exchsrv.AUXITROL1> <4D354D20.6050208@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0A2@exchsrv.AUXITROL1> Dear Micha?l, I understand now ... effectively the -maxfunevals number has to be increase to 1000 to find the good solution .. ... May I suggest to add a warning in the macro either if the -maxiter parameter or the -maxfunevals one is reach so that the user is conscious the solution is not necessary optimized. Thanks for your help Paul ################################################## - X1 optimized = 1 - X2 optimized = 1 - Number of iteration(s) = 362 - Number of function evaluation(s) = 609 - CPU = 0.90625 ################################################## ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : mardi 18 janvier 2011 09:20 ? : users at lists.scilab.org Cc : Carrico, Paul Objet : Re: [scilab-Users] false results in Rosenbrock equation Hi Paul, The status of the optimization is not good when the parameters are left to the default values : -->neldermead_get(nm,"-status") ans = maxfuneval This means that the maximum number of function evaluations where reached before the convergence was attained. All we need to do is to increase the maximum number of function evaluations. In order to get even closer to the optimum, we must also increase the number of iterations. nm = neldermead_configure(nm,"-maxfunevals",200); nm = neldermead_configure(nm,"-maxiter",200); Once done, I get : -->xopt = neldermead_get(nm,"-xopt") xopt = 1.0035954 1.0073491 This is quite a difficult case for Nelder-Mead's algorithm. The simplex has to go through a long curved valley before reaching the zone where the function begins to behave as a quadratic function. Rosenbrock's function has only one global minimum, at x=[1,1]. The point x=[-1,1] is not a minimum. This is easy to check with Scilab. First, let us define the function. function [f,G,H] = rosenbrock(x) f = 100*(x(2) - x(1)^2)^2 + (1 - x(1))^2; // Calculation of the gradient G vector G(1) = -400*x(1)*(x(2) - x(1)^2) - 2*(1 - x(1)); G(2) = 200*(x(2) - x(1)^2); // Calculation of the Hessian matrix H(1,1) = -400*x(2) + 1200*x(1)^2 + 2; H(1,2) = -400*x(1); H(2,1) = -400*x(1); H(2,2) = 200; endfunction We get at x= [1,1] : -->[f,G,H] = rosenbrock([1,1]) H = 802. - 400. - 400. 200. G = 0. 0. f = 0. This means that the gradient is zero, implying that the first order conditions for unconstrained optimality are satisfied. Moreover, the eigenvalues of the Hessian matrix are positive, as shown below : -->spec(H) ans = 0.3993608 1001.6006 This implies that the local curvature of the Rosenbrock function is positive : x* is indeed a minimum. Now, at x=[-1,1], we get : -->[f,G,H] = rosenbrock([-1,1]) H = 802. 400. 400. 200. G = - 4. 0. f = 4. The gradient is nonzero, which means that the first order optimality conditions are not satisfied at x=[-1,1]. Rosenbrock's function is a sum of squares. Best regards, Micha?l Le 17/01/2011 11:18, Carrico, Paul a ?crit : Dear all In the Rosenbrock equation it is well known the 2 minima are (1,1) and (-1,1) ; in the attached where I want to test several optimization macros (and basic &particular functions) I've a different result as descibed herebellow : is there a mistake in the input file or does something go wrong ? Please note the functions inputs are as general as possible to be used with the different macros (fminsearch, optim and so on) Paul #################################################################" - X1 optimized = 0.229978 - X2 optimized = 0.0240434 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.parsons at att.net Tue Jan 18 17:17:05 2011 From: dean.parsons at att.net (Dean Parsons) Date: Tue, 18 Jan 2011 10:17:05 -0600 Subject: [scilab-Users] eqfir, remez, remezb References: <4D3401A5.3080803@univ-lemans.fr> <4F4B99B46A144D6C9340224C36BA695A@optiplex745> <4D35416A.308@scilab.org> <701367.60654.qm@web28301.mail.ukl.yahoo.com> Message-ID: <2018DBDF361543D8BE40EF2291F70FBC@optiplex745> I am using acroreader. Dean ----- Original Message ----- From: Julio Gonzalez-Saenz To: users at lists.scilab.org Sent: Tuesday, January 18, 2011 1:46 AM Subject: Re: [scilab-Users] eqfir, remez, remezb Are you using AcroReader or FoxReader. I have sometimes problems with format. Acrobat Reader always works fine. Julio ------------------------------------------------------------------------------ From: Micha?l Baudin To: users at lists.scilab.org Cc: Dean Parsons Sent: Tue, 18 January, 2011 9:29:46 Subject: Re: [scilab-Users] eqfir, remez, remezb Hi, The sources are here : http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab_doc/signal;h=5e9504b00fd10621f32916c971e187639429f87c;hb=HEAD Best regards, Micha?l Baudin Le 17/01/2011 18:41, Dean Parsons a ?crit : Samuel, Thank you! I looked at this document and it is exactly what I need! Unfortunately, from page 2 onward the text of the pdf file is not centered properly in the vertical direction. The margin at the bottom appears to be too large (about 2 inches) and there is no margin at the top --- there is text right at the top edge of the page. In other words, the text begins at the extreme top or the very top edge of the page. When I print the document the all the text in the top one inch of the page is truncated and is not printed. So there is missing text in the print out. Could someone please regenerate the pdf file so that there is a one inch margin at the top of the page and also a one inch margin at the bottom of the page so that it will print out correctly? Thank you. Dean Parsons ----- Original Message ----- From: Samuel GOUGEON To: users at lists.scilab.org Sent: Monday, January 17, 2011 2:45 AM Subject: Re: [scilab-Users] eqfir, remez, remezb Hello, ----- Message d'origine ----- De : Dean Parsons Date : 14/01/2011 20:24: Hello, I am using the "eqfir" and "remezb" functions to design FIR filters. The documentation on these functions in the Scilab help manual is very brief. Are there other sources of documentation where I can learn more about these functions? .../... Yes, likely here: http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf from there (english, 1998): http://wiki.scilab.org/Tutorials Regards Samuel -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Louis.Auge at grenoble.cnrs.fr Tue Jan 18 22:23:52 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Tue, 18 Jan 2011 22:23:52 +0100 Subject: X_string Message-ID: <4D3604E8.7020405@grenoble.cnrs.fr> Dear users, I used the xstring function to print instructions in a plot where data have been selected. I am looking for a solution to modify the font size. Is somebody have a trick to modify it? Best regards, JLA. From calixte at contrib.scilab.org Tue Jan 18 22:33:09 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 18 Jan 2011 22:33:09 +0100 Subject: [scilab-Users] X_string In-Reply-To: <4D3604E8.7020405@grenoble.cnrs.fr> References: <4D3604E8.7020405@grenoble.cnrs.fr> Message-ID: <1295386389.27003.1.camel@Calixte-Dell> Le mardi 18 janvier 2011 ? 22:23 +0100, Jean-Louis Auge a ?crit : > Dear users, > Hi Jean-Louis, Just type 'help text_properties' in the console and you'll probably find what you need. Calixte > I used the xstring function to print instructions in a plot where data > have been selected. > I am looking for a solution to modify the font size. > Is somebody have a trick to modify it? > > Best regards, > > JLA. > From Jean-Louis.Auge at grenoble.cnrs.fr Tue Jan 18 23:16:18 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Tue, 18 Jan 2011 23:16:18 +0100 Subject: [scilab-Users] X_string In-Reply-To: <1295386389.27003.1.camel@Calixte-Dell> References: <4D3604E8.7020405@grenoble.cnrs.fr> <1295386389.27003.1.camel@Calixte-Dell> Message-ID: <4D361132.4070600@grenoble.cnrs.fr> Calixte, Thank for your trick! The examples answer at my question. Moreover, the method that consists to type the "name_properties" in the console allows to get other details concerning the figures, the legends... JL. Calixte Denizet a ?crit : > Le mardi 18 janvier 2011 ? 22:23 +0100, Jean-Louis Auge a ?crit : > >> Dear users, >> >> > > Hi Jean-Louis, > > Just type 'help text_properties' in the console and you'll probably find > what you need. > > Calixte > > >> I used the xstring function to print instructions in a plot where data >> have been selected. >> I am looking for a solution to modify the font size. >> Is somebody have a trick to modify it? >> >> Best regards, >> >> JLA. >> >> > > > > -- Jean-Louis Aug? ______________________________________________________ Grenoble Electrical Engineering Laboratory G2E Lab UMR 5269 CNRS-UJF-INPG 25, av.des Martyrs B.P. 166 Grenoble Cedex 9 38042 FRANCE Phone: 33 4 76 88 10 74 Fax: 33 4 76 88 79 45 ______________________________________________________ IUT B - 17 rue de France - 69627 VILLEURBANNE Cedex - FRANCE Phone : 33 4 72 65 54 92 / 54 01 Fax : 33 4 72 65 53 73 From vincent.couvert at scilab.org Wed Jan 19 09:27:55 2011 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Wed, 19 Jan 2011 09:27:55 +0100 Subject: [scilab-Users] remez function broken? In-Reply-To: <673016EEE3AE460DBE4981A45C7E3E45@optiplex745> References: <673016EEE3AE460DBE4981A45C7E3E45@optiplex745> Message-ID: <4D36A08B.80005@scilab.org> Hi, Which version of Scilab do you use? which OS? Do not hesitate to report a bug: http://bugzilla.scilab.org/ Regards, Vincent Le 17/01/11 18:54, Dean Parsons a ?crit : > *Is Scilab's remez function broken? When I try to use it it always > returns an empty matrix [ ].* > ** > *For example:* > ** > *-->nc = 21; > > -->ngrid=10240; > > -->fg = linspace(0,0.22,ngrid/2); > > -->fg = [fg linspace(0.25,0.5,ngrid/2)]; > > -->x = fg(1:ngrid/2)/128; > > -->ds(1:ngrid/2)=ones(1:ngrid/2); > > -->ds(ngrid/2+1:ngrid)=zeros(1:ngrid/2); > > -->wt=ones(fg); > > -->an=remez(nc,fg,ds,wt) > an = > > [] > * > *Dean Parsons* -------------- next part -------------- An HTML attachment was scrubbed... URL: From dr.w.grabellus at t-online.de Wed Jan 19 16:37:13 2011 From: dr.w.grabellus at t-online.de (dr.w.grabellus at t-online.de) Date: Wed, 19 Jan 2011 16:37:13 +0100 Subject: Scilab 5.3.0 x 64 bit, not visible results or error messages Message-ID: <1Pfa5x-1VHhfU0@fwd07.aul.t-online.de> An HTML attachment was scrubbed... URL: From injanji11 at wooster.edu Wed Jan 19 21:11:09 2011 From: injanji11 at wooster.edu (Itai Njanji) Date: Wed, 19 Jan 2011 15:11:09 -0500 Subject: Parallel Computing in Scilab Message-ID: Hi everyone, I am currently trying to convert my matlab code to Scilab that was using Matlab Parallel Computing Toolbox. Is it is possible to do distributed parallel computing in Scilab? If yes, how difficult is it to convert Matlab code that was using Distributed Parallel Computing Server to Scilab? Any comments are appreciated, even just suggestions or websites that can help are also appreciated. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Thu Jan 20 22:16:38 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 Jan 2011 22:16:38 +0100 Subject: [scilab-Users] Scilab 5.3.0 x 64 bit, not visible results or error messages In-Reply-To: <1Pfa5x-1VHhfU0@fwd07.aul.t-online.de> References: <1Pfa5x-1VHhfU0@fwd07.aul.t-online.de> Message-ID: <4D38A636.5070909@limsi.fr> Hello, If I understand your problem you have typed a script in scinotes and executed it, right? First, output is usually done in the scilab console (the window that is opened when you launch scilab). You can dock scinotes and the console in the same window. I think that, starting from scilab 5.3, your configuration is saved so if you dock them one time it will be restored on the next startup. Second you can set the execution verbosity level. See help("mode"). Generally, lines ending with a semi-colon (;) are not displayed. Hope that helps. Mathieu Le 19/01/2011 16:37, dr.w.grabellus at t-online.de a ?crit : > Good afternoon, > > > > before trying Scilab, I used Matlab occasionally. Trying to get started > with Scilab the following problem arose: > > > 1. Scilab was started without problems and displayed the Scilab Console. > > > 2. SciNotes were opened by pressing the SciNotes symbol, > > > 3. A tested, correct script was written on SciNotes. > > > 4. The script was correctly saved as cse file. > > > 5 The triangular shaped push button of the SciNotes top line was pressed > to execute the script. > > > 6. Nothing happended, neither the result nor error message were displayed. > > However, in case the script produced a Graph, the result was displayed > in it's own opened window. > > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > > > What happened: > > > 1. Different to the default split Matlab display, Scilab did not show > the script and it's result or error messages on a default split > > monitor. The script display on the SciNotes did completely cover the > existing result or error messages on the Scilab > > Console. > > > 2. I solved this problem by reducing the Scilab Console- and SciNotes > display, each half of the monitor size, and operate now > > both on one screen. > > > 3. I'm sure there will be a better solution, but this will do it for a > while. > > > > regards > > > W. Grabellus > > From mathieu.dubois at limsi.fr Thu Jan 20 22:24:30 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 20 Jan 2011 22:24:30 +0100 Subject: [scilab-Users] Parallel Computing in Scilab In-Reply-To: References: Message-ID: <4D38A80E.90609@limsi.fr> Hello, I don't know Matlab Parallel Computing Toolbox but I think that the closest solution in scilab is the PVM toolbox (help("PVM")). I have never used it but PVM is included in most clusters. I have no idea how hard it is to translate code. Scilab 5.3 introduced the parallel_run function for multicore computers (help("parallel_run")). I think that parallel computing is a main objective for scilab 6. HTH, Mathieu Le 19/01/2011 21:11, Itai Njanji a ?crit : > Hi everyone, > > I am currently trying to convert my matlab code to Scilab that was using > Matlab Parallel Computing Toolbox. Is it is possible to do distributed > parallel computing in Scilab? If yes, how difficult is it to convert > Matlab code that was using Distributed Parallel Computing Server to > Scilab? Any comments are appreciated, even just suggestions or websites > that can help are also appreciated. > > Thank you From Jean-Louis.Auge at grenoble.cnrs.fr Thu Jan 20 23:58:05 2011 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Thu, 20 Jan 2011 23:58:05 +0100 Subject: guibuilder_2.0-2.bin Message-ID: <4D38BDFD.6020002@grenoble.cnrs.fr> Dear users, I loaded guibuilder_2.0-2.bin.zip from ATOMS to design gui easier. Nevertheless, I a little problem. I cannot use the module. How can I ask at scilab to use this module? I use the version 5.1.1with the windows XP Pro OS. The functions atomsLoad and atomsInstall("guibuilder") did not work. Regards, JL. From sylvestre.ledru at scilab.org Fri Jan 21 00:17:26 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 21 Jan 2011 00:17:26 +0100 Subject: [scilab-Users] Parallel Computing in Scilab In-Reply-To: References: Message-ID: <1295565446.6513.1256.camel@losinj.inria.fr> On Wed, 2011-01-19 at 15:11 -0500, Itai Njanji wrote: > Hi everyone, > > I am currently trying to convert my matlab code to Scilab that was > using Matlab Parallel Computing Toolbox. Is it is possible to do > distributed parallel computing in Scilab? If yes, how difficult is it > to convert Matlab code that was using Distributed Parallel Computing > Server to Scilab? Any comments are appreciated, even just suggestions > or websites that can help are also appreciated. You could also have a look to ProActive: http://proactive.inria.fr/ which includes a Scilab connector. Sylvestre From allan.cornet at scilab.org Fri Jan 21 07:57:05 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 21 Jan 2011 07:57:05 +0100 Subject: [scilab-Users] guibuilder_2.0-2.bin In-Reply-To: <4D38BDFD.6020002@grenoble.cnrs.fr> References: <4D38BDFD.6020002@grenoble.cnrs.fr> Message-ID: <000601cbb938$69a41820$3cec4860$@scilab.org> Hi, ATOMS is available with Scilab 5.2 and more Please update your scilab and uses ATOMS Allan -----Message d'origine----- De?: Jean-Louis Auge [mailto:Jean-Louis.Auge at grenoble.cnrs.fr] Envoy??: jeudi 20 janvier 2011 23:58 ??: users at lists.scilab.org Objet?: [scilab-Users] guibuilder_2.0-2.bin Dear users, I loaded guibuilder_2.0-2.bin.zip from ATOMS to design gui easier. Nevertheless, I a little problem. I cannot use the module. How can I ask at scilab to use this module? I use the version 5.1.1with the windows XP Pro OS. The functions atomsLoad and atomsInstall("guibuilder") did not work. Regards, JL. From Samuel.Gougeon at univ-lemans.fr Fri Jan 21 12:03:05 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 21 Jan 2011 12:03:05 +0100 Subject: [scilab-Users] Parallel Computing in Scilab In-Reply-To: References: Message-ID: <4D3967E9.2060307@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Itai Njanji Date : 19/01/2011 21:11: > Hi everyone, > > I am currently trying to convert my matlab code to Scilab that was using > Matlab Parallel Computing Toolbox. Is it is possible to do distributed > parallel computing in Scilab? If yes, how difficult is it to convert Matlab > code that was using Distributed Parallel Computing Server to Scilab? Any > comments are appreciated, even just suggestions or websites that can help are > also appreciated. > > Thank you AFAIK, up to now, both PVM and parallel_run() cannot be used with Windows OS. Regards Samuel From antoine.monmayrant at laas.fr Fri Jan 21 12:58:21 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 21 Jan 2011 12:58:21 +0100 Subject: [scilab-Users] Parallel Computing in Scilab In-Reply-To: <4D3967E9.2060307@univ-lemans.fr> References: <4D3967E9.2060307@univ-lemans.fr> Message-ID: <4D3974DD.8020108@laas.fr> Le 21/01/2011 12:03, Samuel GOUGEON a ?crit : > Hello, > > ----- Message d'origine ----- > De : Itai Njanji > Date : 19/01/2011 21:11: >> Hi everyone, >> >> I am currently trying to convert my matlab code to Scilab that was >> using Matlab Parallel Computing Toolbox. Is it is possible to do >> distributed parallel computing in Scilab? If yes, how difficult is it >> to convert Matlab code that was using Distributed Parallel Computing >> Server to Scilab? Any comments are appreciated, even just >> suggestions or websites that can help are also appreciated. >> >> Thank you > > AFAIK, up to now, both PVM and parallel_run() cannot be used with > Windows OS. I don't know for PVM, but we use parallel_run() on Windows XP. It works well for embarrassingly parallel tasks (aka running N times the same function with different inputs). Antoine > > Regards > Samuel From ruben.bibas at centre-cired.fr Fri Jan 21 13:44:49 2011 From: ruben.bibas at centre-cired.fr (Ruben Bibas) Date: Fri, 21 Jan 2011 13:44:49 +0100 Subject: Equivalent of matlab area plot Message-ID: Hi everyone, I am currently trying to convert my matlab code to Scilab that was area plots. Is there an equivalent in Scilab? Any comments are appreciated, even just suggestions or websites that can help are also appreciated. Thank you From antoine.monmayrant at laas.fr Fri Jan 21 13:56:28 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 21 Jan 2011 13:56:28 +0100 Subject: [scilab-Users] Equivalent of matlab area plot In-Reply-To: References: Message-ID: <4D39827C.70404@laas.fr> Le 21/01/2011 13:44, Ruben Bibas a ?crit : > Hi everyone, > > I am currently trying to convert my matlab code to Scilab that was area plots. > Is there an equivalent in Scilab? > Any comments are appreciated, even just suggestions or websites that > can help are also appreciated. > > Thank you Hi, I was looking for the same a year ago and found nothing. So I quickly put together the function below to fill the area between two curves. It is not exactly what you are looking for, but maybe it can help you hack your own solution. Antoine // Plot area between two curves function [h,epoly,ey1,ey2]=BetweenCurves(x,y1,y2,varargin) // // Plots two curves and fill the area in between // // INPUTS: // x vector (1,n) of horizontal coordinates // y1 vector (1,n) value of 1st curve y1(x) // y2 vector (1,n) value of 2nd curve y2(x) // -- optional inputs: pairs "keyword","value" -- // "handle",h handle to the graphic window to use // "axis",a handle to the graphic axis to use // "foreground", colorid id of the color to use for painting the area // "background", colorid id of the color to use for curves stroke // // OUTPUTS: // h handle to the graphic window used // epoly handle to the polygon that fill the area in between // ey1 handle to first curve // ey2 handle to second curve //default values for optional argument hfig=-1; background=%nan; foreground=%nan; // scan varargin for optional parameter pairs (they can appear in any order) for i=1:2:length(varargin) keyword=varargin(i); value=varargin(i+1); select keyword case "handle" then hfig=value; scf(hfig); case "axis" then axis=value; sca(axis); hfig=axis.parent; case "background" then background=value; case "foreground" then background=value; end end // special treatment for handle (aka hack alert) if typeof(hfig) ~= "handle" then hfig=scf(); end h=hfig; scf(hfig); xfpoly([x,x($:-1:1)],[y1,y2($:-1:1)]); epoly=gce(); plot(x,y1); ey1=gce(); plot(x,y2); ey2=gce(); // background setting if (~isnan(background)) then // optional background specified epoly.background=background; else // default background epoly.background=color("gray87"); end // foreground setting (as for background) if (~isnan(foreground)) then epoly.foreground=foreground; ey1.children.foreground=foreground; ey2.children.foreground=foreground; else epoly.foreground=color("gray65"); ey1.children.foreground=color("gray65"); ey2.children.foreground=color("gray65"); end endfunction From Samuel.Gougeon at univ-lemans.fr Fri Jan 21 15:44:24 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Fri, 21 Jan 2011 15:44:24 +0100 Subject: [scilab-Users] Equivalent of matlab area plot In-Reply-To: References: Message-ID: <4D399BC8.7040507@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Ruben Bibas Date : 21/01/2011 13:44: > Hi everyone, > > I am currently trying to convert my matlab code to Scilab that was area plots. > Is there an equivalent in Scilab? > Any comments are appreciated, even just suggestions or websites that > can help are also appreciated. > > Thank you Herebelow is an example with any number of curves. Cheers Samuel -------------- // area() y = [1 5 3; // Data 3 2 7; 1 5 3; 2 6 1]; [nL, nC] = size(y); x=[ 1 1:nL nL]; base = min(y)-1; // Base level bottom = ones(1,nC)*base; // proper bottom closure clf, plot2d(x,[ bottom ; flipdim(cumsum(y,"c"),2) ; bottom]) e = gce(); areas = e.children; // iD of the set of curves areas(:).polyline_style=5; // switching to filled mode for i=1:nC, areas(i).foreground = color(255*i/nC,0,0); end // recoloring according to any wish From dwarnold45 at suddenlink.net Fri Jan 21 18:44:28 2011 From: dwarnold45 at suddenlink.net (David Arnold) Date: Fri, 21 Jan 2011 09:44:28 -0800 Subject: Rectangles Problem Message-ID: HI, I'm trying to draw some rectangles under a curve. I'm doing something wrong, but not sure what it is, as my rectangles don't show up. Any suggestions? David. a=0 b=2 n=10 h=(b-a)/n x=linspace(a,b); y=x^2; plot(x,y) xx=a:h:b; yy=xx^2; ww=h*ones(xx); hh=xx^2; rects=[xx;yy;ww;hh]; col=34*ones(xx); xrects(rects,col) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Fri Jan 21 19:45:14 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Fri, 21 Jan 2011 18:45:14 -0000 Subject: CallScilab under Windows Message-ID: Hi, Has anyone managed to get CallScilab to work under Windows? The information on the web page is mainly for Linux and is hard to convert. I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have built the example C source code (from http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express 2010. I got the include files from the directories: C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes C:\Program Files\Scilab-5.3.0\modules\core\includes and the lib files from: C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be located at run time. The example builds OK, but there are two warnings: 1. The example includes stack_c.h, which is deprecated. I changed it to api_scilab.h instead. 2. The third parameter of StartScilab is given as NULL, but the prototype has this as an int (although the documentation says int*). I changed it to 0 which shouldn't make any functional difference. That got an error-free and warning-free build. When I run the code, the call to StartScilab generates an error: "Impossible to read \etc\jvm_options.xml" Should there be a path or environment variable setting for this? I have an environment variable SCI set to C:\Program Files\Scilab-5.3.0. I copied the directory C:\Program Files\Scilab-5.3.0\etc to \etc so that I would have a default jvm_options file and the error changes to: "Scilab cannot create Scilab Java Main-Cass (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)." Any suggestions as to where I go from here. It looks like I am missing some step in the configuration. Thanks, Mike. From allan.cornet at scilab.org Fri Jan 21 19:49:39 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 21 Jan 2011 19:49:39 +0100 Subject: [scilab-Users] CallScilab under Windows In-Reply-To: References: Message-ID: <001701cbb99b$f54aa390$dfdfeab0$@scilab.org> Hi, See example in SCI/modules/call_scilab/examples/call_scilab/c/visual_studio Or http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/call_scilab/e xamples/call_scilab/c/visual_studio;h=1eeccb37d0fa951f44c6482728547514e6986c 54;hb=55d87ead63cf8017d4692f28e8f7a59b99607f09 Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 19:45 ??: users at lists.scilab.org Objet?: [scilab-Users] CallScilab under Windows Hi, Has anyone managed to get CallScilab to work under Windows? The information on the web page is mainly for Linux and is hard to convert. I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have built the example C source code (from http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express 2010. I got the include files from the directories: C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes C:\Program Files\Scilab-5.3.0\modules\core\includes and the lib files from: C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be located at run time. The example builds OK, but there are two warnings: 1. The example includes stack_c.h, which is deprecated. I changed it to api_scilab.h instead. 2. The third parameter of StartScilab is given as NULL, but the prototype has this as an int (although the documentation says int*). I changed it to 0 which shouldn't make any functional difference. That got an error-free and warning-free build. When I run the code, the call to StartScilab generates an error: "Impossible to read \etc\jvm_options.xml" Should there be a path or environment variable setting for this? I have an environment variable SCI set to C:\Program Files\Scilab-5.3.0. I copied the directory C:\Program Files\Scilab-5.3.0\etc to \etc so that I would have a default jvm_options file and the error changes to: "Scilab cannot create Scilab Java Main-Cass (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)." Any suggestions as to where I go from here. It looks like I am missing some step in the configuration. Thanks, Mike. From Mike at Page-One.Waitrose.com Fri Jan 21 20:21:32 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Fri, 21 Jan 2011 19:21:32 -0000 Subject: [scilab-Users] CallScilab under Windows In-Reply-To: <001701cbb99b$f54aa390$dfdfeab0$@scilab.org> Message-ID: Hi Allan, Thanks for the suggestion - I didn't see that example. I couldn't get it to build and run as supplied. I had to convert it from VC9 to VC10 and the conversion failed for some reason. So I made a new project with the same source file, guessing your project settings by reading the vcproj file. It looks like I'm missing a library, as I get 3 undefined symbols: _creadmat_ _cmatptr_ _cwritemat_ Where can I find those entry points? Thanks, Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 21 January 2011 18:50 To: users at lists.scilab.org Subject: RE: [scilab-Users] CallScilab under Windows Hi, See example in SCI/modules/call_scilab/examples/call_scilab/c/visual_studio Or http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/call_scilab/e xamples/call_scilab/c/visual_studio;h=1eeccb37d0fa951f44c6482728547514e6986c 54;hb=55d87ead63cf8017d4692f28e8f7a59b99607f09 Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 19:45 ??: users at lists.scilab.org Objet?: [scilab-Users] CallScilab under Windows Hi, Has anyone managed to get CallScilab to work under Windows? The information on the web page is mainly for Linux and is hard to convert. I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have built the example C source code (from http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express 2010. I got the include files from the directories: C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes C:\Program Files\Scilab-5.3.0\modules\core\includes and the lib files from: C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be located at run time. The example builds OK, but there are two warnings: 1. The example includes stack_c.h, which is deprecated. I changed it to api_scilab.h instead. 2. The third parameter of StartScilab is given as NULL, but the prototype has this as an int (although the documentation says int*). I changed it to 0 which shouldn't make any functional difference. That got an error-free and warning-free build. When I run the code, the call to StartScilab generates an error: "Impossible to read \etc\jvm_options.xml" Should there be a path or environment variable setting for this? I have an environment variable SCI set to C:\Program Files\Scilab-5.3.0. I copied the directory C:\Program Files\Scilab-5.3.0\etc to \etc so that I would have a default jvm_options file and the error changes to: "Scilab cannot create Scilab Java Main-Cass (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)." Any suggestions as to where I go from here. It looks like I am missing some step in the configuration. Thanks, Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3392 - Release Date: 01/20/11 19:34:00 From allan.cornet at scilab.org Fri Jan 21 20:24:22 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 21 Jan 2011 20:24:22 +0100 Subject: [scilab-Users] CallScilab under Windows In-Reply-To: References: <001701cbb99b$f54aa390$dfdfeab0$@scilab.org> Message-ID: <000001cbb9a0$ce957b80$6bc07280$@scilab.org> Please add in .c file #pragma comment(lib, "../../../../../../bin/libscilab.lib") Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 20:22 ??: users at lists.scilab.org Objet?: RE: [scilab-Users] CallScilab under Windows Hi Allan, Thanks for the suggestion - I didn't see that example. I couldn't get it to build and run as supplied. I had to convert it from VC9 to VC10 and the conversion failed for some reason. So I made a new project with the same source file, guessing your project settings by reading the vcproj file. It looks like I'm missing a library, as I get 3 undefined symbols: _creadmat_ _cmatptr_ _cwritemat_ Where can I find those entry points? Thanks, Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 21 January 2011 18:50 To: users at lists.scilab.org Subject: RE: [scilab-Users] CallScilab under Windows Hi, See example in SCI/modules/call_scilab/examples/call_scilab/c/visual_studio Or http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/call_scilab/e xamples/call_scilab/c/visual_studio;h=1eeccb37d0fa951f44c6482728547514e6986c 54;hb=55d87ead63cf8017d4692f28e8f7a59b99607f09 Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 19:45 ??: users at lists.scilab.org Objet?: [scilab-Users] CallScilab under Windows Hi, Has anyone managed to get CallScilab to work under Windows? The information on the web page is mainly for Linux and is hard to convert. I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have built the example C source code (from http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express 2010. I got the include files from the directories: C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes C:\Program Files\Scilab-5.3.0\modules\core\includes and the lib files from: C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be located at run time. The example builds OK, but there are two warnings: 1. The example includes stack_c.h, which is deprecated. I changed it to api_scilab.h instead. 2. The third parameter of StartScilab is given as NULL, but the prototype has this as an int (although the documentation says int*). I changed it to 0 which shouldn't make any functional difference. That got an error-free and warning-free build. When I run the code, the call to StartScilab generates an error: "Impossible to read \etc\jvm_options.xml" Should there be a path or environment variable setting for this? I have an environment variable SCI set to C:\Program Files\Scilab-5.3.0. I copied the directory C:\Program Files\Scilab-5.3.0\etc to \etc so that I would have a default jvm_options file and the error changes to: "Scilab cannot create Scilab Java Main-Cass (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)." Any suggestions as to where I go from here. It looks like I am missing some step in the configuration. Thanks, Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3392 - Release Date: 01/20/11 19:34:00 From Mike at Page-One.Waitrose.com Fri Jan 21 20:36:32 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Fri, 21 Jan 2011 19:36:32 -0000 Subject: [scilab-Users] CallScilab under Windows In-Reply-To: <000001cbb9a0$ce957b80$6bc07280$@scilab.org> Message-ID: Thanks Allan. That now builds and runs. I will now try with my own code - thanks again for your help - and the amazingly quick response :-) Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 21 January 2011 19:24 To: users at lists.scilab.org Subject: RE: [scilab-Users] CallScilab under Windows Please add in .c file #pragma comment(lib, "../../../../../../bin/libscilab.lib") Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 20:22 ??: users at lists.scilab.org Objet?: RE: [scilab-Users] CallScilab under Windows Hi Allan, Thanks for the suggestion - I didn't see that example. I couldn't get it to build and run as supplied. I had to convert it from VC9 to VC10 and the conversion failed for some reason. So I made a new project with the same source file, guessing your project settings by reading the vcproj file. It looks like I'm missing a library, as I get 3 undefined symbols: _creadmat_ _cmatptr_ _cwritemat_ Where can I find those entry points? Thanks, Mike. -----Original Message----- From: Allan CORNET [mailto:allan.cornet at scilab.org] Sent: 21 January 2011 18:50 To: users at lists.scilab.org Subject: RE: [scilab-Users] CallScilab under Windows Hi, See example in SCI/modules/call_scilab/examples/call_scilab/c/visual_studio Or http://gitweb.scilab.org/?p=scilab.git;a=tree;f=scilab/modules/call_scilab/e xamples/call_scilab/c/visual_studio;h=1eeccb37d0fa951f44c6482728547514e6986c 54;hb=55d87ead63cf8017d4692f28e8f7a59b99607f09 Allan -----Message d'origine----- De?: Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy??: vendredi 21 janvier 2011 19:45 ??: users at lists.scilab.org Objet?: [scilab-Users] CallScilab under Windows Hi, Has anyone managed to get CallScilab to work under Windows? The information on the web page is mainly for Linux and is hard to convert. I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have built the example C source code (from http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express 2010. I got the include files from the directories: C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes C:\Program Files\Scilab-5.3.0\modules\core\includes and the lib files from: C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be located at run time. The example builds OK, but there are two warnings: 1. The example includes stack_c.h, which is deprecated. I changed it to api_scilab.h instead. 2. The third parameter of StartScilab is given as NULL, but the prototype has this as an int (although the documentation says int*). I changed it to 0 which shouldn't make any functional difference. That got an error-free and warning-free build. When I run the code, the call to StartScilab generates an error: "Impossible to read \etc\jvm_options.xml" Should there be a path or environment variable setting for this? I have an environment variable SCI set to C:\Program Files\Scilab-5.3.0. I copied the directory C:\Program Files\Scilab-5.3.0\etc to \etc so that I would have a default jvm_options file and the error changes to: "Scilab cannot create Scilab Java Main-Cass (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)." Any suggestions as to where I go from here. It looks like I am missing some step in the configuration. Thanks, Mike. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3392 - Release Date: 01/20/11 19:34:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3392 - Release Date: 01/20/11 19:34:00 From dwarnold45 at suddenlink.net Fri Jan 21 20:43:42 2011 From: dwarnold45 at suddenlink.net (David Arnold) Date: Fri, 21 Jan 2011 11:43:42 -0800 Subject: Help documents Message-ID: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> Hi, When I type "help plot2d", I have a hard time reading because the font is too small for my old eyes. Also, in the examples, the background color and keywords colors also make it difficult for me to read. Is there a preference I can set to make the font larger and turn off the background color? David From calixte at contrib.scilab.org Fri Jan 21 21:03:57 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 21 Jan 2011 21:03:57 +0100 Subject: [scilab-Users] Help documents In-Reply-To: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> Message-ID: <1295640237.27003.153.camel@Calixte-Dell> Le vendredi 21 janvier 2011 ? 11:43 -0800, David Arnold a ?crit : > Hi, > Hi David, > When I type "help plot2d", I have a hard time reading because the font is too small for my old eyes. Also, in the examples, the background color and keywords colors also make it difficult for me to read. > > Is there a preference I can set to make the font larger and turn off the background color? > There is no way to do that for the moment... A workaround is to use the online doc with your web browser: http://www.scilab.org/product/man/ Calixte > David From hinow at uwm.edu Fri Jan 21 22:02:51 2011 From: hinow at uwm.edu (Peter Hinow) Date: Fri, 21 Jan 2011 15:02:51 -0600 (CST) Subject: problem with scilab or problem with graphic card? In-Reply-To: <602575472.1787064.1295643735022.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <529934840.1787103.1295643771690.JavaMail.root@mail02.pantherlink.uwm.edu> Dear scilab community, I continue to have a problem that I already brought forward to this list a while ago. It manifests itself in repeated crashes of scilab after plots of graphics. It leaves behind a log file that starts with # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00fa2416, pid=2016, tid=41278320 # # JRE version: 6.0_18-b07 # Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode linux-x86 ) # Problematic frame: # C [+0x416] __kernel_vsyscall+0x2 Previously I was told to upgrade my graphic card drivers. I did that, but the problem persists. I'm now starting to suspect that I have a hardware problem with a faulty graphics card. Is there a way to confirm this suspicion? Thank you and best regards, Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From tiraduvidascefet at yahoo.com Sat Jan 22 02:50:13 2011 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Fri, 21 Jan 2011 17:50:13 -0800 (PST) Subject: Changing Win7 to Ubuntu Linux -> toolboxes Message-ID: <778838.48136.qm@web45515.mail.sp1.yahoo.com> Hi, If I change my operational system Windows7 to Ubuntu Linux, may all my toolboxes that I downloaded *.bin.zip be used in Linux ? Or should I download the files *.src.zip ? Is the file *.bin.i686.linux.tar.gz for Linux 32bits or 64bits ? Thank you. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat Jan 22 10:00:36 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 22 Jan 2011 10:00:36 +0100 Subject: [scilab-Users] Changing Win7 to Ubuntu Linux -> toolboxes In-Reply-To: <778838.48136.qm@web45515.mail.sp1.yahoo.com> References: <778838.48136.qm@web45515.mail.sp1.yahoo.com> Message-ID: <1295686836.2923.15.camel@losinj.inria.fr> On Fri, 2011-01-21 at 17:50 -0800, Prof. Dr. Reinaldo Golmia Dante wrote: > > Hi, > > If I change my operational system Windows7 to Ubuntu Linux, may all my > toolboxes that I downloaded *.bin.zip > be used in Linux ? Or should I download the files *.src.zip ? If you are using ATOMS, it will get Linux modules for you. If you installed them yourself, it depends. If it is a module only with macros, it should work out of the box. If it contains C or Fortran code, you will have to rebuild it. > Is the file *.bin.i686.linux.tar.gz for Linux 32bits or 64bits ? 32 Sylvestre From cwarner7_11 at hotmail.com Sat Jan 22 10:16:43 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Sat, 22 Jan 2011 04:16:43 -0500 Subject: [scilab-Users] Changing Win7 to Ubuntu Linux -> toolboxes In-Reply-To: <778838.48136.qm@web45515.mail.sp1.yahoo.com> References: <778838.48136.qm@web45515.mail.sp1.yahoo.com> Message-ID: If you are moving to Ubuntu Linux, may I suggest that you have a look at the *.deb package from Ubuntu packages (http://packages.ubuntu.com/maverick/scilab). This is not the latest version (Version 5.2.2), but it will build automatically on your machine (64 or 32 bit) with all of the dependencies met. I am of the opinion that one should work with stable versions of any software package when one is trying to do real work. As noted by others, any code you may have written in c or fortran will have to be re-compiled, but Ubuntu comes with excellent c and fortran compilers... Charlie Date: Fri, 21 Jan 2011 17:50:13 -0800 From: tiraduvidascefet at yahoo.com To: users at lists.scilab.org Subject: [scilab-Users] Changing Win7 to Ubuntu Linux -> toolboxes Hi, If I change my operational system Windows7 to Ubuntu Linux, may all my toolboxes that I downloaded *.bin.zip be used in Linux ? Or should I download the files *.src.zip ? Is the file *.bin.i686.linux.tar.gz for Linux 32bits or 64bits ? Thank you. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Sat Jan 22 10:21:46 2011 From: allan.cornet at scilab.org (allan.cornet at scilab.org) Date: Sat, 22 Jan 2011 10:21:46 +0100 Subject: [scilab-Users] Changing Win7 to Ubuntu Linux -> toolboxes In-Reply-To: References: <778838.48136.qm@web45515.mail.sp1.yahoo.com> Message-ID: <14c7fe0b47b63c046fb799a920933171@scilab.org> Hi, if you have installed modules with ATOMS (scilab 5.2 and more) see help atomsGetInstalled and reinstall with atomsInstall help atomsInstall Allan On Sat, 22 Jan 2011 04:16:43 -0500, Charlie Warner wrote: > If you are moving to Ubuntu Linux, may I suggest that you have a > look at the *.deb package from Ubuntu packages > (http://packages.ubuntu.com/maverick/scilab [1]). This is not the > latest version (Version 5.2.2), but it will build automatically on > your machine (64 or 32 bit) with all of the dependencies met. I am of > the opinion that one should work with stable versions of any software > package when one is trying to do real work. As noted by others, any > code you may have written in c or fortran will have to be > re-compiled, > but Ubuntu comes with excellent c and fortran compilers... > > Charlie > > ------------------------- > Date: Fri, 21 Jan 2011 17:50:13 -0800 > From: tiraduvidascefet at yahoo.com > To: users at lists.scilab.org > Subject: [scilab-Users] Changing Win7 to Ubuntu Linux -> toolboxes > > Hi, > > If I change my operational system Windows7 to Ubuntu Linux, may all > my toolboxes that I downloaded *.bin.zip > be used in Linux ? Or should I download the files *.src.zip ? > > Is the file *.bin.i686.linux.tar.gz for Linux 32bits or 64bits ? > > Thank you. > > All best, > Reinaldo. > > > Links: > ------ > [1] http://packages.ubuntu.com/maverick/scilab From Samuel.Gougeon at univ-lemans.fr Sat Jan 22 10:58:26 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sat, 22 Jan 2011 10:58:26 +0100 Subject: [scilab-Users] Rectangles Problem In-Reply-To: References: Message-ID: <20110122105826.3339581w4u5ghf48@webmail1.univ-lemans.fr> Hello David Arnold a ?crit?: > HI, > > I'm trying to draw some rectangles under a curve. I'm doing > something wrong, but not sure what it is, as my rectangles don't > show up. It works, for me (scilab 5.3.0-b3 / winXP) Has the last instruction -- xrects(..) -- actually been performed (with a ending carriage return)? Otherwise, it may comes from a restriction of you graphic driver. Regards Samuel From Samuel.Gougeon at univ-lemans.fr Sat Jan 22 11:19:03 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Sat, 22 Jan 2011 11:19:03 +0100 Subject: [scilab-Users] Rectangles Problem In-Reply-To: References: Message-ID: <20110122111903.1494337tlgyjl06c@webmail1.univ-lemans.fr> David Arnold a ?crit?: > HI, > > I'm trying to draw some rectangles under a curve. I'm doing > something wrong, but not sure what it is, as my rectangles don't > show up. > > Any suggestions? OK, the only problem is the color index 34 you have chosen. By default, it is not defined: only 32 colors are defined in the default colormap of a figure. So, either you may choose a predefined color <= 32, or you may define your own one. Examples: xrects(rects,30*ones(xx)) xrects(rects,color(56, 10,40)*ones(xx)) It has worked for me because i defined and used other colors for some other work, before trying your example. Regards Samuel From dwarnold45 at suddenlink.net Sat Jan 22 17:36:56 2011 From: dwarnold45 at suddenlink.net (David Arnold) Date: Sat, 22 Jan 2011 08:36:56 -0800 Subject: [scilab-Users] Rectangles Problem In-Reply-To: <20110122111903.1494337tlgyjl06c@webmail1.univ-lemans.fr> References: <20110122111903.1494337tlgyjl06c@webmail1.univ-lemans.fr> Message-ID: <722CF3F8-D2B9-463E-95D4-E2F613C4F5E7@suddenlink.net> Samuel, Thanks, that worked. You can see how new I am to Scilab. D. On Jan 22, 2011, at 2:19 AM, Samuel Gougeon wrote: > > David Arnold a ?crit : > >> HI, >> >> I'm trying to draw some rectangles under a curve. I'm doing something wrong, but not sure what it is, as my rectangles don't show up. >> >> Any suggestions? > > OK, the only problem is the color index 34 you have chosen. > By default, it is not defined: only 32 colors are defined > in the default colormap of a figure. > So, either you may choose a predefined color <= 32, or you > may define your own one. Examples: > > xrects(rects,30*ones(xx)) > xrects(rects,color(56, 10,40)*ones(xx)) > > It has worked for me because i defined and used other colors > for some other work, before trying your example. > > Regards > Samuel > > From ruben.bibas at gmail.com Sun Jan 23 10:26:06 2011 From: ruben.bibas at gmail.com (Ruben Bibas) Date: Sun, 23 Jan 2011 10:26:06 +0100 Subject: [scilab-Users] Equivalent of matlab area plot In-Reply-To: <4D399BC8.7040507@univ-lemans.fr> References: <4D399BC8.7040507@univ-lemans.fr> Message-ID: Thank you very much for your helpful answers ! Cheers Ruben On Fri, Jan 21, 2011 at 3:44 PM, Samuel GOUGEON wrote: > ?Hello, > > ----- Message d'origine ----- > De : Ruben Bibas > Date : 21/01/2011 13:44: >> >> Hi everyone, >> >> I am currently trying to convert my matlab code to Scilab that was area >> plots. >> Is there an equivalent in Scilab? >> ?Any comments are appreciated, even just suggestions or websites that >> can help are also appreciated. >> >> Thank you > > Herebelow ?is an example with any number of curves. > Cheers > Samuel > -------------- > // area() > > y = [1 ?5 ?3; ?// Data > ? ? 3 ?2 ?7; > ? ? 1 ?5 ?3; > ? ? 2 ?6 ?1]; > > [nL, nC] = size(y); > x=[ 1 1:nL nL]; > base = min(y)-1; ? ? ? ? ? ? ?// Base level > bottom = ones(1,nC)*base; ? ? // proper bottom closure > clf, plot2d(x,[ bottom ; flipdim(cumsum(y,"c"),2) ; bottom]) > e = gce(); areas = e.children; ?// iD of the set of curves > areas(:).polyline_style=5; ? ? ?// switching to filled mode > > for i=1:nC, areas(i).foreground = color(255*i/nC,0,0); end // recoloring > according to any wish > > From PATELJ at tcc.fl.edu Sun Jan 23 21:09:42 2011 From: PATELJ at tcc.fl.edu (JIGAR PATEL) Date: Sun, 23 Jan 2011 15:09:42 -0500 Subject: SciLab Help Message-ID: <3F189DD943FE034099FE298A8EF85E5AA51C7C014E@EXMBC01.tcc.fl.edu> I am using SciLab 5.2.2 for one of my classes as instructed by my teacher and when I use the plot command it exits the programs, I have tried the Windows 7 32-bit as well as the 64-bit version of SciLab and both do the same, my laptop is running on Windows 7 Home Premium 64-bit. I know that I'm using the plot command correctly as the same command works on my desktop please let me know what steps can be taken to fix this. I'm attaching a video so show you what exactly happens when I try to plot a function. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab Error.wmv Type: video/x-ms-wmv Size: 2680221 bytes Desc: Scilab Error.wmv URL: From y.barois at free.fr Mon Jan 24 01:08:01 2011 From: y.barois at free.fr (Yves Barois) Date: Mon, 24 Jan 2011 01:08:01 +0100 Subject: Scilab 5.3.0 : starting problem on Mac OS X 10.6.6 Message-ID: 1) On iMac 20 po (beginning 2006), Mac OS X 10.6.6 Snow Leopard, Intel Core Duo, 32 bits, Java SE6 32 bits 1.6.0_22-b04-307 : Scilab 5.2.2 works well but Scilab 5.3.0 does not want to start, in that case the Console display : "19/01/11 00:59:20 [0x0-0x313313].org.scilab.modules.jvm.Scilab[7700] /Applications/scilab-5.3.0.app/Contents/MacOS/bin/scilab: line 535: /Applications/scilab-5.3.0.app/Contents/MacOS/bin/scilab-bin: Bad CPU type in executable". 2) On MacBook Pro 15 po (december 2010), Mac OS X 10.6.6 Snow Leopard, Intel Core i5 ou i7, 64 bits, Java SE6 32 bits 1.6.0_22-b04-307 : both Scilab 5.2.2 and 5.3.0 work very well. 3)On the two Mac after starting the functional versions, the Console display : "21/01/11 17:35:44 [0x0-0x3f93f9].org.scilab.modules.jvm.Scilab[10305] JavaVM: requested Java version (1.5) not available. Using Java at "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" instead." My question is : is Scilab 5.3.0 able to work on a 32 bits Mac, or on a 64 bits one only ? If so this point should be written in the "system requirements" for each Scilab OS X version. I tried to report this as a bug : too difficult, long, complicated? chinese torture ! Made for developers not for simple users... I'll never try again. From claude.dorbes at hotmail.fr Mon Jan 24 10:27:51 2011 From: claude.dorbes at hotmail.fr (claude dorbes) Date: Mon, 24 Jan 2011 10:27:51 +0100 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: <007201cbb615$26bf70c0$743e5240$@scilab.org> References: <007201cbb615$26bf70c0$743e5240$@scilab.org> Message-ID: From: Allan CORNET Sent: Monday, January 17, 2011 8:07 AM To: users at lists.scilab.org Subject: RE: [scilab-Users] Using ATOMS Modules Hi, Try : atomsSystemUpdate() atomsInstall ( ['module_lycee','1.3'] ) ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->atomsInstall ( ['module_lycee','1.3'] ) ans = !module_lycee 1.3-2 user SCIHOME\atoms\module_lycee\1.3-2 I ! Allan De : claude dorbes [mailto:claude.dorbes at hotmail.fr] Envoy? : samedi 15 janvier 2011 17:54 ? : users at lists.scilab.org Objet : [scilab-Users] Using ATOMS Modules On the SCILAB 5.3.0 console (French version), the command Applications ?> gestion de modulesATMOS , returns the error message : atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' Similary the instruction atomsInstall ( [?module_lyc?e?,?1.3?] ) returns : -->atomsInstall ( ['module_lyc?e','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lyc?e','1.3'] ) Could you correct that ? Thanks. C D Hi, When trying your suggestions, i obtained the following displays : ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->atomsSystemUpdate() atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_4764_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 11 of function atomsSystemUpdate called by : atomsSystemUpdate() -->atomsInstall ( ['module_lycee','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_4764_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lycee','1.3'] ) The system asked me to control my web connection ; but it is OK. Then, my problem is unsolved (no modules available). Note : i have desinstalled and reinstalled SCILAB (Window7 64 bits) without any change Regards. CD -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Jan 24 11:37:07 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 24 Jan 2011 11:37:07 +0100 Subject: [scilab-Users] Using ATOMS Modules In-Reply-To: References: <007201cbb615$26bf70c0$743e5240$@scilab.org> Message-ID: <000301cbbbb2$a6115e40$f2341ac0$@scilab.org> Please do a bug report @ http://bugzilla.scilab.org Allan De : claude dorbes [mailto:claude.dorbes at hotmail.fr] Envoy? : lundi 24 janvier 2011 10:28 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Using ATOMS Modules From: Allan CORNET Sent: Monday, January 17, 2011 8:07 AM To: users at lists.scilab.org Subject: RE: [scilab-Users] Using ATOMS Modules Hi, Try : atomsSystemUpdate() atomsInstall ( ['module_lycee','1.3'] ) ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->atomsInstall ( ['module_lycee','1.3'] ) ans = !module_lycee 1.3-2 user SCIHOME\atoms\module_lycee\1.3-2 I ! Allan De : claude dorbes [mailto:claude.dorbes at hotmail.fr] Envoy? : samedi 15 janvier 2011 17:54 ? : users at lists.scilab.org Objet : [scilab-Users] Using ATOMS Modules On the SCILAB 5.3.0 console (French version), the command Applications ?> gestion de modulesATMOS , returns the error message : atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' Similary the instruction atomsInstall ( [?module_lyc?e?,?1.3?] ) returns : -->atomsInstall ( ['module_lyc?e','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_1328_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lyc?e','1.3'] ) Could you correct that ? Thanks. C D Hi, When trying your suggestions, i obtained the following displays : ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Initialisation : Chargement de l'environnement de travail -->atomsSystemUpdate() atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_4764_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 11 of function atomsSystemUpdate called by : atomsSystemUpdate() -->atomsInstall ( ['module_lycee','1.3'] ) atomsDownload: The following file hasn't been downloaded: - URL : 'http://atoms.scilab.org/5.3/TOOLBOXES/32/windows.gz' - Local location : 'C:\Users\DORBES\AppData\Local\Temp\SCI_TMP_4764_\.atoms\1_TOOLBOXES.gz' !--error 10000 at line 200 of function atomsDownload called by : at line 77 of function atomsDESCRIPTIONget called by : at line 31 of function atomsIsPackage called by : at line 69 of function atomsInstallList called by : at line 227 of function atomsInstall called by : atomsInstall ( ['module_lycee','1.3'] ) The system asked me to control my web connection ; but it is OK. Then, my problem is unsolved (no modules available). Note : i have desinstalled and reinstalled SCILAB (Window7 64 bits) without any change Regards. CD -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gene.Sherrel at a-dec.com Tue Jan 25 02:34:38 2011 From: Gene.Sherrel at a-dec.com (Gene Sherrell) Date: Mon, 24 Jan 2011 17:34:38 -0800 Subject: Please Remove me from the mailing list Message-ID: <0B20D41B313432408F38C6CFB74A691F07D73B39@NBGEXCH.a-dec.com> Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gene.Sherrel at a-dec.com Tue Jan 25 02:36:20 2011 From: Gene.Sherrel at a-dec.com (Gene Sherrell) Date: Mon, 24 Jan 2011 17:36:20 -0800 Subject: Please remove me from the mailing list Message-ID: <0B20D41B313432408F38C6CFB74A691F07D73B3F@NBGEXCH.a-dec.com> Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-yves.baudais at insa-rennes.fr Tue Jan 25 09:39:22 2011 From: jean-yves.baudais at insa-rennes.fr (Jean-Yves Baudais) Date: Tue, 25 Jan 2011 09:39:22 +0100 Subject: [scilab-Users] Please remove me from the mailing list In-Reply-To: <0B20D41B313432408F38C6CFB74A691F07D73B3F@NBGEXCH.a-dec.com> References: <0B20D41B313432408F38C6CFB74A691F07D73B3F@NBGEXCH.a-dec.com> Message-ID: <4D3E8C3A.8020307@insa-rennes.fr> Hello, > Thanks Do it yourself and read the welcome message you received when you registered: Hi! This is the ezmlm program. I'm managing the users at lists.scilab.org mailing list. [...] --- Administrative commands for the users list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: For help and a description of available commands, send a message to: ... -- Jean-Yves From paul.carrico at esterline.com Tue Jan 25 12:38:49 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 25 Jan 2011 12:38:49 +0100 Subject: Academic question Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> Dear All, For some times I'm testing Scilab macros for optimization purposes ; "optimization" has to be intended here as an inverse method for fitting parameters (i.e. so that finite element analysis fit test measurements). I tested basic macros such as fminsearch for unbounded fitting as well as Nelder-Mead one for bracketed parameters fitting. Basically the "cost function" is the normalized Sum of the Square errors SSE from the FEA to the measurements. In my FEA's the variables can be material parameters, spring stiffness's, damping ratio and so on : the simplex method is well adapted since the former variables are not analytically described in the cost function and since it's not necessary to calculate the gradient vector nor the Hessian matrix ... If this method is robust nevertheless it remains rather slow ! Is there a way or another macro I can use to reduce the number of loops and the time consuming consequently ? Nota : I was thinking in OPTIM macro but from my understanding the cost function need to be twice differentiable at least (for the Gradient and the Hessian ) i.e. analytically link to the parameters ... isn't it ? Thanks in advance for any advice (for a better understanding) Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdcapdeville at gmail.com Tue Jan 25 15:32:11 2011 From: jdcapdeville at gmail.com (Jean-Damien Capdeville) Date: Tue, 25 Jan 2011 15:32:11 +0100 Subject: matrix values extraction In-Reply-To: <1295640237.27003.153.camel@Calixte-Dell> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> <1295640237.27003.153.camel@Calixte-Dell> Message-ID: <2F612822308C420C8DA52137F34152F3@ordijd1> Dear all, I'm looking to extract from a matrix "A" one value for each line. The column positions of the value to extract would be given by a vector "c". Here is an example: A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] c = [ 3 ; 1 ; 1 ; 2 ; 3 ] How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? I'm currently using a loop which is obviously a time expensive solution with large matrix. Any ideas to get it more efficiently? Thanks, Jean-Damien From martin.calmon at epfl.ch Tue Jan 25 15:47:57 2011 From: martin.calmon at epfl.ch (Calmon Martin) Date: Tue, 25 Jan 2011 14:47:57 +0000 Subject: [scilab-Users] matrix values extraction In-Reply-To: <2F612822308C420C8DA52137F34152F3@ordijd1> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> <1295640237.27003.153.camel@Calixte-Dell>,<2F612822308C420C8DA52137F34152F3@ordijd1> Message-ID: Dear JD, I will not take the time now to get into detail... But I think you should use Matlab/Reshape ie Scilab/Matrix, work with all your data in a row and subsequently transform your indices to keep. Bests, Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 ________________________________________ De : Jean-Damien Capdeville [jdcapdeville at gmail.com] Date d'envoi : mardi 25 janvier 2011 15:32 ? : users at lists.scilab.org Objet : [scilab-Users] matrix values extraction Dear all, I'm looking to extract from a matrix "A" one value for each line. The column positions of the value to extract would be given by a vector "c". Here is an example: A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] c = [ 3 ; 1 ; 1 ; 2 ; 3 ] How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? I'm currently using a loop which is obviously a time expensive solution with large matrix. Any ideas to get it more efficiently? Thanks, Jean-Damien From Samuel.Gougeon at univ-lemans.fr Tue Jan 25 15:49:35 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 25 Jan 2011 15:49:35 +0100 Subject: [scilab-Users] matrix values extraction In-Reply-To: <2F612822308C420C8DA52137F34152F3@ordijd1> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> <1295640237.27003.153.camel@Calixte-Dell> <2F612822308C420C8DA52137F34152F3@ordijd1> Message-ID: <4D3EE2FF.9040704@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Jean-Damien Capdeville Date : 25/01/2011 15:32: > Dear all, > > I'm looking to extract from a matrix "A" one value for each line. The column > positions of the value to extract would be given by a vector "c". > > Here is an example: > A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] > > c = [ 3 ; 1 ; 1 ; 2 ; 3 ] > > How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? [nL,nC] = size(A); B = A.'; B((0:nL-1)*nC+c.') // gives you the expected result > I'm currently using a loop which is obviously a time expensive solution with > large matrix. Indeed Regards Samuel From mabille at supagro.inra.fr Tue Jan 25 15:59:28 2011 From: mabille at supagro.inra.fr (=?iso-8859-1?Q?Fr=E9d=E9ric_Mabille?=) Date: Tue, 25 Jan 2011 15:59:28 +0100 Subject: [scilab-Users] matrix values extraction In-Reply-To: <2F612822308C420C8DA52137F34152F3@ordijd1> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> <1295640237.27003.153.camel@Calixte-Dell> <2F612822308C420C8DA52137F34152F3@ordijd1> Message-ID: <71C68AF3-0D94-4C96-A574-DB3DA2F6C3A6@supagro.inra.fr> and other idea is : diag( a ( : , c ( : ) ) ) fred Le 25 janv. 2011 ? 15:32, Jean-Damien Capdeville a ?crit : > Dear all, > > I'm looking to extract from a matrix "A" one value for each line. The column > positions of the value to extract would be given by a vector "c". > > Here is an example: > A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] > > c = [ 3 ; 1 ; 1 ; 2 ; 3 ] > > How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? > > I'm currently using a loop which is obviously a time expensive solution with > large matrix. > Any ideas to get it more efficiently? > > Thanks, > > > Jean-Damien > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue Jan 25 16:16:02 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 25 Jan 2011 15:16:02 -0000 Subject: [scilab-Users] matrix values extraction In-Reply-To: <2F612822308C420C8DA52137F34152F3@ordijd1> Message-ID: Hi, I guess there are lots of ways to do it - not sure what's most efficient. How about -->diag(A(1:length(c),c)) ans = 3. 4. 7. 11. 15. That's at least quite compact... Mike. -----Original Message----- From: Jean-Damien Capdeville [mailto:jdcapdeville at gmail.com] Sent: 25 January 2011 14:32 To: users at lists.scilab.org Subject: [scilab-Users] matrix values extraction Dear all, I'm looking to extract from a matrix "A" one value for each line. The column positions of the value to extract would be given by a vector "c". Here is an example: A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] c = [ 3 ; 1 ; 1 ; 2 ; 3 ] How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? I'm currently using a loop which is obviously a time expensive solution with large matrix. Any ideas to get it more efficiently? Thanks, Jean-Damien No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3400 - Release Date: 01/24/11 07:35:00 From cbk at lanl.gov Tue Jan 25 16:49:11 2011 From: cbk at lanl.gov (Charles Basenga Kiyanda) Date: Tue, 25 Jan 2011 08:49:11 -0700 Subject: [scilab-Users] Academic question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> Message-ID: <4D3EF0F7.103@lanl.gov> You could try a genetic-type algorithm, such as differential evolution. I don't think there's a scilab implementation (at the very least, I don't think there's one distributed with scilab). See information (and code for several ports) here: http://www.icsi.berkeley.edu/~storn/code.html Implementing the basic algorithm in scilab (in any language for that matter) is easy and quick. There are several references on that page. I recommend the first few chapters of "Differential Evolution - A Practical Approach to Global Optimization" by Ken Price, Rainer Storn, and Jouni Lampinen. Otherwise, search for algorithms such as 'simulated annealing'. I've heard good things although I've lately been helping colleagues, who relied on that algorithm for some minimization problems, migrate to DE as a potentially more robust and efficient algorithm. Good luck, Charles On 01/25/2011 04:38 AM, Carrico, Paul wrote: > Dear All, > > > > For some times I'm testing Scilab macros for optimization purposes ; > "optimization" has to be intended here as an inverse method for fitting > parameters (i.e. so that finite element analysis fit test measurements). > > > > I tested basic macros such as fminsearch for unbounded fitting as well > as Nelder-Mead one for bracketed parameters fitting. Basically the "cost > function" is the normalized Sum of the Square errors SSE from the FEA to > the measurements. > > > > In my FEA's the variables can be material parameters, spring > stiffness's, damping ratio and so on : the simplex method is well > adapted since the former variables are not analytically described in the > cost function and since it's not necessary to calculate the gradient > vector nor the Hessian matrix ... > > > > > > If this method is robust nevertheless it remains rather slow ! > > > > > > Is there a way or another macro I can use to reduce the number of loops > and the time consuming consequently ? > > > > Nota : I was thinking in OPTIM macro but from my understanding the cost > function need to be twice differentiable at least (for the Gradient and > the Hessian ) i.e. analytically link to the parameters ... isn't it ? > > > > Thanks in advance for any advice (for a better understanding) > > > > Paul > > > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > From sylvestre.ledru at scilab.org Tue Jan 25 16:53:44 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 25 Jan 2011 16:53:44 +0100 Subject: [scilab-Users] SciLab Help In-Reply-To: <3F189DD943FE034099FE298A8EF85E5AA51C7C014E@EXMBC01.tcc.fl.edu> References: <3F189DD943FE034099FE298A8EF85E5AA51C7C014E@EXMBC01.tcc.fl.edu> Message-ID: <1295970824.23711.1509.camel@losinj.inria.fr> Hello, On Sun, 2011-01-23 at 15:09 -0500, JIGAR PATEL wrote: > I am using SciLab 5.2.2 for one of my classes as instructed by my > teacher and when I use the plot command it exits the programs, I have > tried the Windows 7 32-bit as well as the 64-bit version of SciLab and > both do the same, my laptop is running on Windows 7 Home Premium > 64-bit. I know that I?m using the plot command correctly as the same > command works on my desktop please let me know what steps can be taken > to fix this. I?m attaching a video so show you what exactly happens > when I try to plot a function. Your problem is probably due to a problem with your graphic driver (especially if you run an Intel HD graphic card). We are aware of the issue and we are working on it. Sylvestre From zozonmr at gmail.com Tue Jan 25 17:20:04 2011 From: zozonmr at gmail.com (Zoltan Takacs) Date: Tue, 25 Jan 2011 17:20:04 +0100 Subject: scilab-5.3.0 fmincon and help issues Message-ID: Hi, i am trying to compile scilab on Ubuntu 10.04 (and also on on Ubuntu 10.10) and I manage to configure/make/make install which is good but when I want to start the help Scilab gives an error message !--error 10000 help: help file(.jar) is not installed. at line 42 of function help called by : help(); while executing callback So I go to my scilab folder and do make doc but I get the same error! What am I doing wrong? Problem with fmincon: It says the function fmincon_checkrhs not defined! I downloded it from ATOMS! Do I have to difen fmincon_checkrhs separately? Thanks Zolo -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Jan 25 17:22:05 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 25 Jan 2011 17:22:05 +0100 Subject: [scilab-Users] scilab-5.3.0 fmincon and help issues In-Reply-To: References: Message-ID: <1295972525.23711.1610.camel@losinj.inria.fr> On Tue, 2011-01-25 at 17:20 +0100, Zoltan Takacs wrote: > Hi, > > i am trying to compile scilab on Ubuntu 10.04 (and also on on Ubuntu > 10.10) and I manage to configure/make/make install which is good but > when I want to start the help Scilab gives an error message > > !--error 10000 > help: help file(.jar) is not installed. > at line 42 of function help called by : > help(); > while executing callback > > So I go to my scilab folder and do make doc but I get the same error! What is saying "make doc" ? Are you sure you have all dependencies ? (apt-get build-dep scilab if not) Sylvestre From jdcapdeville at gmail.com Tue Jan 25 18:30:27 2011 From: jdcapdeville at gmail.com (Jean-Damien Capdeville) Date: Tue, 25 Jan 2011 18:30:27 +0100 Subject: [scilab-Users] matrix values extraction In-Reply-To: <71C68AF3-0D94-4C96-A574-DB3DA2F6C3A6@supagro.inra.fr> References: <2EBFC922-AD4E-406C-BD59-405E9E32D091@suddenlink.net> <1295640237.27003.153.camel@Calixte-Dell> <2F612822308C420C8DA52137F34152F3@ordijd1> <71C68AF3-0D94-4C96-A574-DB3DA2F6C3A6@supagro.inra.fr> Message-ID: <01782814DC95412DA0AB739A8EDF08ED@ordijd1> Thanks for your answers. I like the diag(A(:,c)) solution (however it's slower than the first proposed solution). To continue this discussion, actually my initial wish was to do the same thing with a structure. Let's say I have the structure "st" with a field "f" such as: st(1).f = [1 ; 4 ; 7 ; 10 ; 13]; st(2).f = [2 ; 5 ; 8 ; 11 ; 14]; st(3).f = [3 ; 6 ; 9 ; 12 ; 15]; and the same vector than previously c = [ 3 ; 1 ; 1 ; 2 ; 3 ]; I want to extract the vector such as for the index i, extracted value = st(c(i)).f(i) and so get the same result than previously [ 3 ; 4 ; 7 ; 11; 15 ] Do you have any idea to do it without having to reconstruct a matrix (such as [st(1).f st(2).f st(3).f]) ? Thanks, JD ________________________________________ De?: Fr?d?ric Mabille [mailto:mabille at supagro.inra.fr] Envoy??: mardi 25 janvier 2011 15:59 ??: users at lists.scilab.org Objet?: Re: [scilab-Users] matrix values extraction and other idea is : diag( a ( : , c ( : ) ) )? fred Le 25 janv. 2011 ? 15:32, Jean-Damien Capdeville a ?crit : Dear all, I'm looking to extract from a matrix "A" one value for each line. The column positions of the value to extract would be given by a vector "c". Here is an example: A = [ 1 2 3 ; 4 5 6 ; 7 8 9 ; 10 11 12 ; 13 14 15 ] c = [ 3 ; 1 ; 1 ; 2 ; 3 ] How can I get the resulting vector [ 3 ; 4 ; 7 ; 11; 15 ] ? I'm currently using a loop which is obviously a time expensive solution with large matrix. Any ideas to get it more efficiently? Thanks, Jean-Damien From nicolas.fezans at gmail.com Tue Jan 25 20:26:44 2011 From: nicolas.fezans at gmail.com (Nicolas FEZANS) Date: Tue, 25 Jan 2011 20:26:44 +0100 Subject: [scilab-Users] Academic question In-Reply-To: <4D3EF0F7.103@lanl.gov> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3EF0F7.103@lanl.gov> Message-ID: Hi Paul! Before trying such approaches, if you cannot (or don't want to) compute gradients and hessian, you may let Scilab approximate them numerically thanks to the "NDcost" function. It generally works very well so I strongly recommend it before even thinking using some stochastic methods (which are not bad but should not be used when not necessary and I guess you don't need them in your case). Note that they are plenty of fully deterministic heuristics to optimize without gradients (not even numerically approximated), which are too often forgotten and often even not included in optimization packages. As for all methods they are always some problems, but it solved quite efficiently many optimization problem in the past and not all optimization problems are tough or are worth writing 30 pages of calculus to get an analytical expression for the gradient of the cost function... Anyway... have fun with NDcost! Regards Nicolas On Tue, Jan 25, 2011 at 4:49 PM, Charles Basenga Kiyanda wrote: > You could try a genetic-type algorithm, such as differential evolution. I > don't think there's a scilab implementation (at the very least, I don't > think there's one distributed with scilab). > > See information (and code for several ports) here: > http://www.icsi.berkeley.edu/~storn/code.html > > Implementing the basic algorithm in scilab (in any language for that matter) > is easy and quick. > > There are several references on that page. I recommend the first few > chapters of "Differential Evolution - A Practical Approach to Global > Optimization" by Ken Price, Rainer Storn, and Jouni Lampinen. > > Otherwise, search for algorithms such as 'simulated annealing'. I've heard > good things although I've lately been helping colleagues, who relied on that > algorithm for some minimization problems, migrate to DE as a potentially > more robust and efficient algorithm. > > Good luck, > > Charles > > > On 01/25/2011 04:38 AM, Carrico, Paul wrote: >> >> Dear All, >> >> >> >> For some times I'm testing Scilab macros for optimization purposes ; >> "optimization" has to be intended here as an inverse method for fitting >> parameters (i.e. so that finite element analysis fit test measurements). >> >> >> >> I tested basic macros such as fminsearch for unbounded fitting as well >> as Nelder-Mead one for bracketed parameters fitting. Basically the "cost >> function" is the normalized Sum of the Square errors SSE from the FEA to >> the measurements. >> >> >> >> In my FEA's the variables can be material parameters, spring >> stiffness's, damping ratio and so on : the simplex method is well >> adapted since the former variables are not analytically described in the >> cost function and since it's not necessary to calculate the gradient >> vector nor the Hessian matrix ... >> >> >> >> >> >> If this method is robust nevertheless it remains rather slow ! >> >> >> >> >> >> Is there a way or another macro I can use to reduce the number of loops >> and the time consuming consequently ? >> >> >> >> Nota : I was thinking in OPTIM macro but from my understanding the cost >> function need to be twice differentiable at least ?(for the Gradient and >> the Hessian ) i.e. analytically link to the parameters ... isn't it ? >> >> >> >> Thanks in advance for any advice (for a better understanding) >> >> >> >> Paul >> >> >> >> >> -------------------------------------------------------------------------------- >> >> >> Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la >> personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail >> par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le >> message de votre syst?me. Toute divulgation, copie ou distribution de cet >> e-mail est strictement interdite. >> >> This email and any files transmitted with it are confidential and intended >> solely for the use of the individual or entity to whom they are addressed. >> If you have received this email in error, please contact the sender and >> delete the email from your system. If you are not the named addressee you >> should not disseminate, distribute or copy this email. >> > > > From brawad68 at yahoo.com Tue Jan 25 21:00:56 2011 From: brawad68 at yahoo.com (Bassam Awad) Date: Tue, 25 Jan 2011 12:00:56 -0800 (PST) Subject: Please remove me from the mailing list In-Reply-To: <4D3E8C3A.8020307@insa-rennes.fr> Message-ID: <799206.44917.qm@web113112.mail.gq1.yahoo.com> Dr. Bassam Awad -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chuk.Igwe at agcocorp.com Tue Jan 25 21:03:55 2011 From: Chuk.Igwe at agcocorp.com (Igwe, Chuk) Date: Tue, 25 Jan 2011 15:03:55 -0500 Subject: [scilab-Users] Please remove me from the mailing list In-Reply-To: <799206.44917.qm@web113112.mail.gq1.yahoo.com> References: <4D3E8C3A.8020307@insa-rennes.fr> <799206.44917.qm@web113112.mail.gq1.yahoo.com> Message-ID: <2BF4B6BAD5877C45B1BC39F18ADD251EDCDE6517AE@AGATLEXGV1P.atlanta.agcocorp.com> Please remove my name also! ________________________________ From: Bassam Awad [mailto:brawad68 at yahoo.com] Sent: Tuesday, January 25, 2011 2:01 PM To: users-help at lists.scilab.org Cc: users at lists.scilab.org Subject: [scilab-Users] Please remove me from the mailing list Dr. Bassam Awad ________________________________ This email is intended solely for the use of the individual to whom it is addressed and may contain confidential and/or privileged material. Any views or opinions presented are solely those of the author and do not necessarily represent those of AGCO. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any responsibility for viruses and it is your responsibility to scan and virus check the e-mail and its attachment(s) (if any). -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Jan 25 21:06:34 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 25 Jan 2011 21:06:34 +0100 Subject: [scilab-Users] Please remove me from the mailing list In-Reply-To: <2BF4B6BAD5877C45B1BC39F18ADD251EDCDE6517AE@AGATLEXGV1P.atlanta.agcocorp.com> References: <4D3E8C3A.8020307@insa-rennes.fr> <799206.44917.qm@web113112.mail.gq1.yahoo.com> <2BF4B6BAD5877C45B1BC39F18ADD251EDCDE6517AE@AGATLEXGV1P.atlanta.agcocorp.com> Message-ID: <1295985994.23711.1905.camel@losinj.inria.fr> As said by someone today, when you subscribed, you received the instruction. Sending an email to: will tell you anything (digest, archive, unsub, etc) Sylvestre On Tue, 2011-01-25 at 15:03 -0500, Igwe, Chuk wrote: > Please remove my name also! > > > > > ______________________________________________________________________ > From: Bassam Awad [mailto:brawad68 at yahoo.com] > Sent: Tuesday, January 25, 2011 2:01 PM > To: users-help at lists.scilab.org > Cc: users at lists.scilab.org > Subject: [scilab-Users] Please remove me from the mailing list > > > > > > > Dr. Bassam Awad > > > > > > > > > ______________________________________________________________________ > This email is intended solely for the use of the individual to whom it > is addressed and may contain confidential and/or privileged material. > Any views or opinions presented are solely those of the author and do > not necessarily represent those of AGCO. If you are not the intended > recipient, be advised that you have received this email in error and > that any use, dissemination, forwarding, printing or copying of this > email is strictly prohibited. Neither AGCO nor the sender accepts any > responsibility for viruses and it is your responsibility to scan and > virus check the e-mail and its attachment(s) (if any). From michael.baudin at scilab.org Wed Jan 26 08:13:04 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 26 Jan 2011 08:13:04 +0100 Subject: [scilab-Users] Academic question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> Message-ID: <4D3FC980.2040509@scilab.org> Hi, Indeed, the Nelder-Mead algorithm is rather slow, as can be expected from an algorithm which does not rely on neither the gradient nor the Hessian (or any approximation to it). You can use the optim function to solve your problem. In the optim help page : http://www.scilab.org/product/man/optim.html search for "Example: Optimizing with numerical derivatives". The function does not have to be analytic : the only thing that is required is that the function can be evaluated. Of course, the function should be smooth for the function to work better. * If f and its gradient are continuous, optim with the quasi-Newton and the limited BFGS algorithms should work well (i.e. try the "qn" and "cg" options). * If f is discontinuous, only Nelder-Mead can work (but is likely to have some problems to converge). * If f is continous but its gradient is discontinous, you may try the "nd" option. It is a special algorithms for functions in this class (e.g. min max_i f_i). Lemar?chal is an expert on this topic. Try it and you will see ! Best regards, Micha?l Le 25/01/2011 12:38, Carrico, Paul a ?crit : > > Dear All, > > For some times I'm testing Scilab macros for optimization purposes ; > "optimization" has to be intended here as an inverse method for > fitting parameters (i.e. so that finite element analysis fit test > measurements). > > I tested basic macros such as fminsearch for unbounded fitting as well > as Nelder-Mead one for bracketed parameters fitting. Basically the > "cost function" is the normalized Sum of the Square errors SSE from > the FEA to the measurements. > > In my FEA's the variables can be material parameters, spring > stiffness's, damping ratio and so on : the simplex method is well > adapted since the former variables are not analytically described in > the cost function and since it's not necessary to calculate the > gradient vector nor the Hessian matrix ... > > If this method is robust nevertheless it remains rather slow ! > > Is there a way or another macro I can use to reduce the number of > loops and the time consuming consequently ? > > /_Nota_/: I was thinking in OPTIM macro but from my understanding the > cost function need to be twice differentiable at least (for the > Gradient and the Hessian ) i.e. analytically link to the parameters > ... isn't it ? > > Thanks in advance for any advice (for a better understanding) > > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Jan 26 08:13:42 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 26 Jan 2011 08:13:42 +0100 Subject: [scilab-Users] Academic question In-Reply-To: <4D3EF0F7.103@lanl.gov> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3EF0F7.103@lanl.gov> Message-ID: <4D3FC9A6.5080708@scilab.org> Le 25/01/2011 16:49, Charles Basenga Kiyanda a ?crit : > You could try a genetic-type algorithm, such as differential > evolution. I don't think there's a scilab implementation (at the very > least, I don't think there's one distributed with scilab). Hi, help optim_ga Best regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Wed Jan 26 08:16:25 2011 From: michael.baudin at scilab.org (=?UTF-8?B?TWljaGHDq2wgQmF1ZGlu?=) Date: Wed, 26 Jan 2011 08:16:25 +0100 Subject: [scilab-Users] Academic question In-Reply-To: References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3EF0F7.103@lanl.gov> Message-ID: <4D3FCA49.7030603@scilab.org> Hi, Le 25/01/2011 20:26, Nicolas FEZANS a ?crit : > you may let Scilab approximate them > numerically thanks to the "NDcost" function. I do not suggest to use NDcost, which should not have been integrated into Scilab anyway. Indeed, this macro has only 2 lines where the first one calls f, and the second one calls derivative. We can customize the cost function directly ourselves, which has the major advantage of being able to fully customize the options of the derivative function. Moreover, we can use the full potential of the printing options provided by the optim function, which is not possible with NDcost. Best regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From paul.carrico at esterline.com Wed Jan 26 11:12:42 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 26 Jan 2011 11:12:42 +0100 Subject: [scilab-Users] Academic question In-Reply-To: <4D3FC980.2040509@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3FC980.2040509@scilab.org> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0D1@exchsrv.AUXITROL1> Hi Micha?l, Let me saying first (if necessary) I've good results using simplex routines (either fminsearch macro or Nelder-Mead one). It is well known (and mentioned in the literature for example) that this algorithm is robust but slow ... but in some cases it's the last solution (for not saying the last chance) ! Basically the purpose is to increase the convergence (and the optimization total duration) ... especially when each FEA (= 1 loop) need more than one hour ! Commonly I noticed several decades (for not saying hundreds) of loop with Nelder-Mead Paul ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : mercredi 26 janvier 2011 08:13 ? : users at lists.scilab.org Cc : Carrico, Paul Objet : Re: [scilab-Users] Academic question Hi, Indeed, the Nelder-Mead algorithm is rather slow, as can be expected from an algorithm which does not rely on neither the gradient nor the Hessian (or any approximation to it). You can use the optim function to solve your problem. In the optim help page : http://www.scilab.org/product/man/optim.html search for "Example: Optimizing with numerical derivatives". The function does not have to be analytic : the only thing that is required is that the function can be evaluated. Of course, the function should be smooth for the function to work better. * If f and its gradient are continuous, optim with the quasi-Newton and the limited BFGS algorithms should work well (i.e. try the "qn" and "cg" options). * If f is discontinuous, only Nelder-Mead can work (but is likely to have some problems to converge). * If f is continous but its gradient is discontinous, you may try the "nd" option. It is a special algorithms for functions in this class (e.g. min max_i f_i). Lemar?chal is an expert on this topic. Try it and you will see ! Best regards, Micha?l Le 25/01/2011 12:38, Carrico, Paul a ?crit : Dear All, For some times I'm testing Scilab macros for optimization purposes ; "optimization" has to be intended here as an inverse method for fitting parameters (i.e. so that finite element analysis fit test measurements). I tested basic macros such as fminsearch for unbounded fitting as well as Nelder-Mead one for bracketed parameters fitting. Basically the "cost function" is the normalized Sum of the Square errors SSE from the FEA to the measurements. In my FEA's the variables can be material parameters, spring stiffness's, damping ratio and so on : the simplex method is well adapted since the former variables are not analytically described in the cost function and since it's not necessary to calculate the gradient vector nor the Hessian matrix ... If this method is robust nevertheless it remains rather slow ! Is there a way or another macro I can use to reduce the number of loops and the time consuming consequently ? Nota : I was thinking in OPTIM macro but from my understanding the cost function need to be twice differentiable at least (for the Gradient and the Hessian ) i.e. analytically link to the parameters ... isn't it ? Thanks in advance for any advice (for a better understanding) Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Wed Jan 26 12:26:12 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 26 Jan 2011 11:26:12 -0000 Subject: [scilab-Users] Question on using plot in call_scilab module In-Reply-To: <4C078029.1000906@m4s.be> Message-ID: Hi Norm, Sorry if this response is too late for you, but it may help somebody else... I came across your post while looking for help on another issue related to plotting with SendScilabJob. Here is some example code that runs the plotting in a separate thread under WinXp. It works for me and I think it would do what you wanted. Sorry it's a bit short on comments ;-) To build this, you need to also include the /include directories from: SCI/modules/call_scilab SCI/modules/api_scilab SCI/modules/core You also need to set the library path to include SCI/bin and include the libraries: api_scilab.lib call_scilab.lib MALLOC.lib LibScilab.lib When running, /SCI/bin needs to be in your path so Scilab can find the DLLs. HTH. Mike. /*-------------------------------------------------------------------------- */ #include #include #include #include "call_scilab.h" #include "api_scilab.h" HANDLE PlotCmd[2]; HANDLE Reply; double x[100]; double y[100]; /*-------------------------------------------------------------------------- */ static void SciPlot (void* Params) { DWORD Event; BOOL Exit = FALSE; if (StartScilab (NULL, NULL, 0) == FALSE) { printf ("Error : StartScilab\n"); } Reply = CreateEvent (NULL, FALSE, FALSE, NULL); while (!Exit) { Event = WaitForMultipleObjects (2, PlotCmd, FALSE, INFINITE); switch (Event) { case (WAIT_OBJECT_0 + 0): { createNamedMatrixOfDouble (pvApiCtx, "x", 1, 100, x); createNamedMatrixOfDouble (pvApiCtx, "y", 1, 100, y); SendScilabJob ("delete (e);"); SendScilabJob ("plot2d(x,y);"); SendScilabJob ("e = gce ();"); printf ("...Plot started\n"); SetEvent (Reply); break; } case (WAIT_OBJECT_0 + 1): { Exit = TRUE; break; } } } if (TerminateScilab (NULL) == FALSE) { printf ("Error : TerminateScilab\n"); } SetEvent (Reply); } /*-------------------------------------------------------------------------- */ int main(void) { int i, j; printf ("Starting\n"); PlotCmd[0] = CreateEvent (NULL, FALSE, FALSE, NULL); PlotCmd[1] = CreateEvent (NULL, FALSE, FALSE, NULL); _beginthread (SciPlot, 0, NULL); Sleep (1000); for (j=1; j<100; j++) { x[j] = j; } for (i=0; i<10; i++) { for (j=1; j<100; j++) { y[j] = (2.0 *(double)rand () / (double)RAND_MAX) - 1.0; } printf ("Update Plot\n"); SetEvent (PlotCmd[0]); WaitForSingleObject (Reply, INFINITE); Sleep (1000); } printf ("Terminate Plot\n"); SetEvent (PlotCmd[1]); WaitForSingleObject (Reply, INFINITE); CloseHandle (PlotCmd[0]); CloseHandle (PlotCmd[1]); return 0; } /*-------------------------------------------------------------------------- */ -----Original Message----- From: Norman Beamish [mailto:norman.beamish at m4s.be] Sent: 03 June 2010 11:13 To: users at lists.scilab.org Subject: [scilab-Users] Question on using plot in call_scilab module Hi, I'm using the call_scilab module to access scilab functions from within a C program. I'm using MS Visual C++ 2008 on MS Vista. Everything that just writes its output to the console works ok. However when I use the scilab plot command SendScilabJob("plot(x,y, style);") I find that the plot window freezes and the plot menu options are unavailable unless I run the following loop: - while( ScilabHaveAGraph() ) { ScilabDoOneEvent(); } Of course this loop stops my program from doing anything else. My question: I believe this problem arises because everything is operating in a single thread. Is there a way to make the plot command start out in a separate thread so that it can still monitor for user events such as mouse clicks while the rest of my program continues. thanks, Norm No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.829 / Virus Database: 271.1.1/2914 - Release Date: 06/02/10 19:25:00 From sylvestre.ledru at scilab.org Wed Jan 26 12:59:14 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 26 Jan 2011 12:59:14 +0100 Subject: [scilab-Users] Question on using plot in call_scilab module In-Reply-To: References: Message-ID: <1296043154.7063.13501.camel@korcula.inria.fr> Thanks for sharing this. Managing Scilab graphics and Scilab windows from call_scilab & Javasci v2 is something I would like to improve in the next releases but I am still unsure on the right way to implement this... If you have ideas, I would be happy to hear them. Sylvestre Le mercredi 26 janvier 2011 ? 11:26 +0000, Mike Page a ?crit : > Hi Norm, > > Sorry if this response is too late for you, but it may help somebody else... > > I came across your post while looking for help on another issue related to > plotting with SendScilabJob. Here is some example code that runs the > plotting in a separate thread under WinXp. It works for me and I think it > would do what you wanted. Sorry it's a bit short on comments ;-) > > To build this, you need to also include the /include directories from: > SCI/modules/call_scilab > SCI/modules/api_scilab > SCI/modules/core > > You also need to set the library path to include SCI/bin and include the > libraries: > api_scilab.lib > call_scilab.lib > MALLOC.lib > LibScilab.lib > > When running, /SCI/bin needs to be in your path so Scilab can find the DLLs. > > HTH. > Mike. > > /*-------------------------------------------------------------------------- > */ > #include > #include > #include > #include "call_scilab.h" > #include "api_scilab.h" > > > HANDLE PlotCmd[2]; > HANDLE Reply; > double x[100]; > double y[100]; > > > /*-------------------------------------------------------------------------- > */ > static void SciPlot (void* Params) > { > DWORD Event; > BOOL Exit = FALSE; > > if (StartScilab (NULL, NULL, 0) == FALSE) > { > printf ("Error : StartScilab\n"); > } > > Reply = CreateEvent (NULL, FALSE, FALSE, NULL); > > while (!Exit) > { > Event = WaitForMultipleObjects (2, PlotCmd, FALSE, INFINITE); > > switch (Event) > { > case (WAIT_OBJECT_0 + 0): > { > createNamedMatrixOfDouble (pvApiCtx, "x", 1, 100, x); > createNamedMatrixOfDouble (pvApiCtx, "y", 1, 100, y); > SendScilabJob ("delete (e);"); > SendScilabJob ("plot2d(x,y);"); > SendScilabJob ("e = gce ();"); > printf ("...Plot started\n"); > SetEvent (Reply); > break; > } > case (WAIT_OBJECT_0 + 1): > { > Exit = TRUE; > break; > } > } > } > > if (TerminateScilab (NULL) == FALSE) > { > printf ("Error : TerminateScilab\n"); > } > > SetEvent (Reply); > } > > /*-------------------------------------------------------------------------- > */ > int main(void) > { > int i, j; > > printf ("Starting\n"); > PlotCmd[0] = CreateEvent (NULL, FALSE, FALSE, NULL); > PlotCmd[1] = CreateEvent (NULL, FALSE, FALSE, NULL); > _beginthread (SciPlot, 0, NULL); > Sleep (1000); > > for (j=1; j<100; j++) > { > x[j] = j; > } > > for (i=0; i<10; i++) > { > for (j=1; j<100; j++) > { > y[j] = (2.0 *(double)rand () / (double)RAND_MAX) - 1.0; > } > printf ("Update Plot\n"); > SetEvent (PlotCmd[0]); > WaitForSingleObject (Reply, INFINITE); > Sleep (1000); > } > printf ("Terminate Plot\n"); > SetEvent (PlotCmd[1]); > WaitForSingleObject (Reply, INFINITE); > CloseHandle (PlotCmd[0]); > CloseHandle (PlotCmd[1]); > return 0; > } > /*-------------------------------------------------------------------------- > */ > > > > -----Original Message----- > From: Norman Beamish [mailto:norman.beamish at m4s.be] > Sent: 03 June 2010 11:13 > To: users at lists.scilab.org > Subject: [scilab-Users] Question on using plot in call_scilab module > > > Hi, > > I'm using the call_scilab module to access scilab functions from within > a C program. I'm using MS Visual C++ 2008 on MS Vista. > > Everything that just writes its output to the console works ok. However > when I use the scilab plot command > SendScilabJob("plot(x,y, style);") > I find that the plot window freezes and the plot menu options are > unavailable unless I run the following loop: - > while( ScilabHaveAGraph() ) > { > ScilabDoOneEvent(); > } > Of course this loop stops my program from doing anything else. > > My question: > I believe this problem arises because everything is operating in a > single thread. Is there a way to make the plot command start out in a > separate thread so that it can still monitor for user events such as > mouse clicks while the rest of my program continues. > > thanks, > Norm > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.829 / Virus Database: 271.1.1/2914 - Release Date: 06/02/10 > 19:25:00 > From paul.carrico at esterline.com Wed Jan 26 15:00:32 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 26 Jan 2011 15:00:32 +0100 Subject: Root finding Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0D2@exchsrv.AUXITROL1> Dear all, is it a stupid question in asking why the condition herebellow leads to an error ? Nota : - I just want to keep the integer values resulting from the root finding ... - (if + r_) leads to en error while the formula works T2_ = T0_ / (1 + 0.5*(gamma_ - 1)*r_(1)^2) ?? Another (stupid) question : - is it possible to perform a root finding with real exponents instead of integer ones ? if so how ? - the exponents typically look like [ 0.5*(gamma_ + 1) / (gamma_ - 1) ]: Thanks everybody for (previous and futur) advices Paul ######################################################################" x = poly(0,"x"); p = 1 + coef_1*x + coef_2*x^2 + coef_4*x^4 + coef_6*x^6 ; r_ = roots(p); if ( r_(1) < 1) then Mach2 = r_(1); Mach3 = r_(2); else Mach2 = r_(2); Mach3 = r_(1); end // Before the sonic col P2_ = P0_ / (1 + 0.2*r_(1)^2)^3.5; T2_ = T0_ / (1 + 0.5*(gamma_ - 1)*Mach2^2); // After the sonic col P3_ = P0_ / (1 + 0.2*r_(2)^2)^3.5; T3_ = T0_ / (1 + 0.5*(gamma_ - 1)*Mach3^2); -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fezans at gmail.com Wed Jan 26 15:19:00 2011 From: nicolas.fezans at gmail.com (Nicolas FEZANS) Date: Wed, 26 Jan 2011 15:19:00 +0100 Subject: [scilab-Users] Academic question In-Reply-To: <4D3FCA49.7030603@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3EF0F7.103@lanl.gov> <4D3FCA49.7030603@scilab.org> Message-ID: Hi! Well I agree that NDcost is not very optimal and we could do better... but I would not remove it from Scilab because it is just extremely simple for the user to call optim(NDcost(... )) and works quite good for easy optimization problems. Part of the philosophy behind software like scilab or matlab is to provide very simple tools for engineers, and to give them the possibility to go a lot further if required. So I would simply let the users choose whether they want to use NDcost or not and possibly give them enough information in the documentation in order them to make the right choice. Note that I am of course talking here about the functionality provided by NDcost, not about the way it is implemented presently. Nicolas On Wed, Jan 26, 2011 at 8:16 AM, Micha?l Baudin wrote: > Hi, > > Le 25/01/2011 20:26, Nicolas FEZANS a ?crit : >> >> you may let Scilab approximate them >> numerically thanks to the "NDcost" function. > > I do not suggest to use NDcost, which should not have been integrated into > Scilab anyway. > > Indeed, this macro has only 2 lines where the first one calls f, and the > second one calls derivative. We can customize the cost function directly > ourselves, which has the major advantage of being able to fully customize > the options of the derivative function. Moreover, we can use the full > potential of the printing options provided by the optim function, which is > not possible with NDcost. > > Best regards, > > Micha?l Baudin > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > > > From cbk at lanl.gov Wed Jan 26 16:30:46 2011 From: cbk at lanl.gov (Charles Basenga Kiyanda) Date: Wed, 26 Jan 2011 08:30:46 -0700 Subject: [scilab-Users] Academic question In-Reply-To: <4D3FC9A6.5080708@scilab.org> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0CC@exchsrv.AUXITROL1> <4D3EF0F7.103@lanl.gov> <4D3FC9A6.5080708@scilab.org> Message-ID: <4D403E26.3000307@lanl.gov> I should have been more precise. I didn't think there was an implementation of 'differential evolution' in scilab, though I knew at least one type of genetic algorithm was in there. Indeed, from a cursory look at the help of optim_ga, all the basic pieces are there except, as far as I can tell, for the mutation algorithm. It wouldn't be that hard to write up the mutation algorithm and get DE in there, though. Cheers, Charles On 01/26/2011 12:13 AM, Micha?l Baudin wrote: > Le 25/01/2011 16:49, Charles Basenga Kiyanda a ?crit : >> You could try a genetic-type algorithm, such as differential >> evolution. I don't think there's a scilab implementation (at the very >> least, I don't think there's one distributed with scilab). > > Hi, > > help optim_ga > > Best regards, > > Micha?l Baudin > From constellationathome at googlemail.com Thu Jan 27 00:55:22 2011 From: constellationathome at googlemail.com (Constellation Athome) Date: Thu, 27 Jan 2011 00:55:22 +0100 Subject: Like Matlab's solve and showing intermediate steps? Message-ID: Hi, I'm new to scilab and I would like to solve equations to certain variables, like matlab does it with solve('equation', variable). But I allways want to learn something and not only using the result. So is scilab able to present every intermediate step so that I could transpose it manually on my sheet of paper? And if so how do I do that? Best regards, Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.kegeles at gmx.de Thu Jan 27 01:05:40 2011 From: a.kegeles at gmx.de (Alexander Kegeles) Date: Thu, 27 Jan 2011 01:05:40 +0100 Subject: Scilab error Message-ID: Dear Sir or Madam, I've just downloaded the new Scilab 5.3.0 from you page, but it doesn't run. When I double click on the icon to start the program, a message occurs that the program was unexpectedly closed. The whole error description is attached below. I use the mac OX 10.5 with 2.1 GHz Intel Core 2 Dou and 2 GB DDR2 SDRAM. If you have any ideas how to solve this problem and get the program started I would be very glad. Best regards Alexander Kegeles Error description: Process: scilab-bin [350] Path: /Applications/scilab-5.3.0.app/Contents/MacOS/bin/ scilab-bin Identifier: scilab-bin Version: ??? (???) Code Type: X86-64 (Native) Parent Process: sh [328] Interval Since Last Report: 937009 sec Crashes Since Last Report: 24 Per-App Interval Since Last Report: 0 sec Per-App Crashes Since Last Report: 12 Date/Time: 2011-01-27 00:44:54.606 +0100 OS Version: Mac OS X 10.5.8 (9L31a) Report Version: 6 Anonymous UUID: DF66236C-CB03-432B-8C37-A9FCBE64188C Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 0 Dyld Error Message: unknown required load command 0x80000022 From michael.baudin at scilab.org Thu Jan 27 08:40:50 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 27 Jan 2011 08:40:50 +0100 Subject: [scilab-Users] scilab-5.3.0 fmincon and help issues In-Reply-To: References: Message-ID: <4D412182.70107@scilab.org> Hi, I checked the last fmincon package v0.3 in Scilab 5.3.0 and all the examples run fine. The unit tests also run: -->atomsTest("fmincon") TMPDIR = C:\Users\baudin\AppData\Local\Temp\SCI_TMP_7960_ 001/005 - [SCIHOME\atoms\fmincon\0.3-1] fmincon_basic...........passed 002/005 - [SCIHOME\atoms\fmincon\0.3-1] fmincon_bounds..........passed 003/005 - [SCIHOME\atoms\fmincon\0.3-1] fmincon_gradients.......passed 004/005 - [SCIHOME\atoms\fmincon\0.3-1] optimget................passed 005/005 - [SCIHOME\atoms\fmincon\0.3-1] optimset................passed Can you provide the example which fails ? In all cases, you can report your bug at http://forge.scilab.org/index.php/p/fmincont/issues/ Best regards, Micha?l Baudin Le 25/01/2011 17:20, Zoltan Takacs a ?crit : > Hi, > > i am trying to compile scilab on Ubuntu 10.04 (and also on on Ubuntu > 10.10) and I manage to configure/make/make install which is good but > when I want to start the help Scilab gives an error message > > !--error 10000 > help: help file(.jar) is not installed. > at line 42 of function help called by : > help(); > while executing callback > > So I go to my scilab folder and do make doc but I get the same error! > What am I doing wrong? > > Problem with fmincon: > > It says the function fmincon_checkrhs not defined! > > I downloded it from ATOMS! Do I have to difen fmincon_checkrhs separately? > > Thanks > Zolo -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From michael.baudin at scilab.org Thu Jan 27 09:16:07 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 27 Jan 2011 09:16:07 +0100 Subject: [scilab-Users] Like Matlab's solve and showing intermediate steps? In-Reply-To: References: Message-ID: <4D4129C7.2020705@scilab.org> Hi, In the current solve function, we cannot display intermediate steps. Notice that Matlab's solve can solve nonlinear equations, while Scilab's solve can only solve linear systems of equations. As this is a macro, we can edit this function with edit solve From there, it is easy to insert a couple of "disp([a b])" to display the intermediate steps. Best regards, Micha?l Le 27/01/2011 00:55, Constellation Athome a ?crit : > Hi, > > I'm new to scilab and I would like to solve equations to certain > variables, like matlab does it with solve('equation', variable). > But I allways want to learn something and not only using the result. > So is scilab able to present every intermediate step so that I could > transpose it manually on my sheet of paper? > > And if so how do I do that? > > Best regards, > > Andreas -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From communication at scilab.org Fri Jan 28 09:47:20 2011 From: communication at scilab.org (Scilab Communication) Date: Fri, 28 Jan 2011 09:47:20 +0100 Subject: New Scilab Online Help Message-ID: <4D428298.6080306@scilab.org> Dear all, We are pleased to announce that Scilab Online Help has been completly renewed with a nicer interface and new functionalities for the user. Looking for help within Scilab functions is now easier and more user-friendly. To know the new functionalities, please consult: http://www.scilab.org/en/news/events/20110128 We invite you to connect to: http://help.scilab.org Do not hesitate to make us comments or suggestions in return. Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From paul.carrico at esterline.com Mon Jan 31 10:58:56 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 31 Jan 2011 10:58:56 +0100 Subject: feedback on OPTIM macro Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0DE@exchsrv.AUXITROL1> Dear All, I 'm currently testing the optim macro in Scilab/FEA (external) solver FEA and I would like here to share some feedbacks ... First of all regarding the documentation, I noticed : A) 'gc' and bounds use 'qn' -> BFGS algorithm 'gc' -> conjugate gradient 'nd' -> ? >From the documentation "Note that the conjugate gradient solver does not accept bounds on x. " Whereas the example "Scilab function" uses bounds with 'gc' ... ???? // Upper and lower bounds on x and setting up the algorithm to 'gc' [f,xopt,gopt]=optim(cost,'b',[-1;0;2],[0.5;1;4],x0,'gc') B) bounds violated I tried several syntaxes for the bounds (with or without the dot coma i.e vector or its transposed) and all the time I noticed negative values of x ... [fopt,optimized_parameters] = optim(optimization_BFGS,'b',[0;0],[2;2],initial_parameters','ar',nap,iter,epsg,imp=-1); Is there something wrong ? B) derivative use I noticed the strong influence of the h parameters (for the step) as well as the order parameter (order 2 by default) : ? If h is too small ? a lot of evaluations ? If h is too high ? loops quickly stop far from the optimized values order is essentially used for the function evaluation ; I tried different values of "order" thinking in a better function evaluation (for a better gradient calculation) ... but the default value seems to be the best one. C) Other algorithms I tested on a basic Rosenbrock function other order 0 method such as Genetic Algorithm or Simulated annealing but many function evaluations are necessary (more than a thousand) .... but probably the parameters have to be optimized themselves (Population size / number of mutations and so on ) ... since one evaluation need one FE modelling (i.e. the longest calculation duration), I'm not sure they are the most efficient for my application ... finally the Nelder-Mead method is probably one of the best ! Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diary_OPTIM_H_0p1_bounded.dat Type: application/octet-stream Size: 49416 bytes Desc: diary_OPTIM_H_0p1_bounded.dat URL: From stephane.mottelet at utc.fr Mon Jan 31 15:21:29 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 31 Jan 2011 15:21:29 +0100 Subject: eps export unusable with psfrag Message-ID: <4D46C569.9000709@utc.fr> Hi all, it seems that the new eps (an also others) export transforms fonts glyphs to paths, so that it is impossible to psfrag to recover strings in the eps. Is there a workaround ? I know that latex rendering is now possible in scilab graphic text, but sometimes you have to scale a graph without scaling also the text. S. From sylvestre.ledru at scilab.org Mon Jan 31 22:02:00 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 31 Jan 2011 22:02:00 +0100 Subject: [scilab-Users] Scilab error In-Reply-To: References: Message-ID: <1296507720.3131.83.camel@losinj.inria.fr> On Thu, 2011-01-27 at 01:05 +0100, Alexander Kegeles wrote: > Dear Sir or Madam, > > I've just downloaded the new Scilab 5.3.0 from you page, but it > doesn't run. When I double click on the icon to start the program, a > message occurs that the program was unexpectedly closed. > The whole error description is attached below. > > I use the mac OX 10.5 with 2.1 GHz Intel Core 2 Dou and 2 GB DDR2 SDRAM. For now, Scilab 5.3.0 is not available under Mac OS X 10.5. It is "normal". Apple pushed an important update in their Java packaging system. Anyway, during this update, under Mac OS x 10.5, they broke a feature Scilab is built on (used also under GNU/Linux and Windows) We are in touch with Apple on this subject but we cannot predict when it is going to be fixed or when we will be able to use a workaround. Sylvestre