From illusionteam at gmail.com Sat Sep 1 04:18:51 2012 From: illusionteam at gmail.com (=?windows-1252?Q?C=E1ssio_Pazinatto?=) Date: Fri, 31 Aug 2012 23:18:51 -0300 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <50411278.4040102@scilab-enterprises.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> Message-ID: <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> Sylvestre, Using ilib_verbose(2), the output was the same? In my TMPDIR folder there was only an unix.err file with the following: libtool: unrecognized option '-c' Try 'libtool --help' for more information. make: *** [matriz1.lo] Error 1 The output from ilib_for_link: -->ilib_verbose(2) -->ilib_for_link('matriz1','matriz1.f90',[],"f") Gerar um arquivo de carga !// This file is released under the 3-clause BSD license. See COPYING-BSD. ! ! ! !// Generated by builder.sce : Please, do not edit this file ! ! ! !// ------------------------------------------------------------------------! ! ---- ! ! ! !// ! ! ! !matriz1_path = get_absolute_file_path('loader.sce'); ! ! ! !// ! ! ! !// ulink previous function with same name ! ! ! ![bOK, ilib] = c_link('matriz1'); ! ! ! !if bOK then ! ! ! ! ulink(ilib); ! ! ! !end ! ! ! !// ! ! ! !link(matriz1_path + 'libmatriz1' + getdynlibext(), ['matriz1'],'f'); ! ! ! !// remove temp. variables on stack ! ! ! !clear matriz1_path; ! ! ! !clear bOK; ! ! ! !clear ilib; ! ! ! !// ------------------------------------------------------------------------! ! ---- ! Gerar um Makefile ilib_gen_Make: Copia os arquivos de compila??o (Makefile*, libtool...) para TMPDIR ilib_gen_Make: Copia matriz1.f90 para TMPDIR ilib_gen_Make: Usar a detec??o anterior do compilador. ilib_gen_Make: Modifica??o do Makefile em TMPDIR. ilib_gen_Make: substituir a refer?ncia pelo arquivo atual. Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/scicompile.sh matriz1 matriz1.f90 sa?da de erro padr?o: Executando o Makefile ilib_compile: construir comando: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " Sa?da: sa?da de erro padr?o: libtool: unrecognized option `-c' sa?da de erro padr?o: Try `libtool --help' for more information. sa?da de erro padr?o: make: *** [matriz1.lo] Error 1 !--error 10000 ilib_compile: Ocorreu um erro durante a compila??o: libtool: unrecognized option `-c' Try `libtool --help' for more information. make: *** [matriz1.lo] Error 1 ilib_compile: O comando foi: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : ilib_for_link('matriz1','matriz1.f90',[],"f") Thanks, C?ssio Em 31/08/2012, ?s 16:37, Sylvestre Ledru escreveu: > On 31/08/2012 20:29, C?ssio Pazinatto wrote: >> >> Hello, >> >> I'm using Scilab 5.40 beta 3 under Mac OS X 10.8 (Mountain Lion) and I'm getting an error when I try to use Dynamic Link to call Fortran Code (using gfortran compiler). Follow my test, note that it was OK on a computer running Linux and Scilab 5.33. > [...] >> ilib_compile: Ocorreu um erro durante a compila??o: >> libtool: unrecognized option `-c' >> Try `libtool --help' for more information. >> make: *** [matriz1.lo] Error 1 > [...] >> Does anyone have an idea? >> > Usually, this error message occurs when you don't have a fortran compiler (or i cannot be found). > > Could you try with ilib_verbose(2) ? > This portion of the code did not change much with regard to 5.3.3. > > (and if it doesn't help, send us the config.log which will be generated in the TMPDIR directory) > > Thanks > Sylvestre > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sylvestre.ledru at scilab-enterprises.com Sat Sep 1 13:24:44 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 01 Sep 2012 13:24:44 +0200 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> Message-ID: <5041F07C.1020006@scilab-enterprises.com> Could you try to remove /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/Makefile.orig ? and also send us the config.log ? S Le 01/09/2012 04:18, C?ssio Pazinatto a ?crit : > Sylvestre, > > Using ilib_verbose(2), the output was the same? > In my TMPDIR folder there was only an unix.err file with the following: > > libtool: unrecognized option '-c' > Try 'libtool --help' for more information. > make: *** [matriz1.lo] Error 1 > > The output from ilib_for_link: > > -->ilib_verbose(2) > > -->ilib_for_link('matriz1','matriz1.f90',[],"f") > Gerar um arquivo de carga > > !// This file is released under the 3-clause BSD license. See COPYING-BSD. ! > ! ! > !// Generated by builder.sce : Please, do not edit this file ! > ! ! > !// ------------------------------------------------------------------------! > ! ---- ! > ! ! > !// ! > ! ! > !matriz1_path = get_absolute_file_path('loader.sce'); ! > ! ! > !// ! > ! ! > !// ulink previous function with same name ! > ! ! > ![bOK, ilib] = c_link('matriz1'); ! > ! ! > !if bOK then ! > ! ! > ! ulink(ilib); ! > ! ! > !end ! > ! ! > !// ! > ! ! > !link(matriz1_path + 'libmatriz1' + getdynlibext(), ['matriz1'],'f'); ! > ! ! > !// remove temp. variables on stack ! > ! ! > !clear matriz1_path; ! > ! ! > !clear bOK; ! > ! ! > !clear ilib; ! > ! ! > !// ------------------------------------------------------------------------! > ! ---- ! > Gerar um Makefile > ilib_gen_Make: Copia os arquivos de compila??o (Makefile*, libtool...) para TMPDIR > ilib_gen_Make: Copia matriz1.f90 para TMPDIR > ilib_gen_Make: Usar a detec??o anterior do compilador. > ilib_gen_Make: Modifica??o do Makefile em TMPDIR. > ilib_gen_Make: substituir a refer?ncia pelo arquivo atual. > Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/scicompile.sh matriz1 matriz1.f90 > sa?da de erro padr?o: > Executando o Makefile > ilib_compile: construir comando: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " > Sa?da: > sa?da de erro padr?o: libtool: unrecognized option `-c' > sa?da de erro padr?o: Try `libtool --help' for more information. > sa?da de erro padr?o: make: *** [matriz1.lo] Error 1 > !--error 10000 > ilib_compile: Ocorreu um erro durante a compila??o: > libtool: unrecognized option `-c' > Try `libtool --help' for more information. > make: *** [matriz1.lo] Error 1 > ilib_compile: O comando foi: > make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " > at line 129 of function ilib_compile called by : > at line 94 of function ilib_for_link called by : > ilib_for_link('matriz1','matriz1.f90',[],"f") > > Thanks, > C?ssio > > Em 31/08/2012, ?s 16:37, Sylvestre Ledru escreveu: > >> On 31/08/2012 20:29, C?ssio Pazinatto wrote: >>> Hello, >>> >>> I'm using Scilab 5.40 beta 3 under Mac OS X 10.8 (Mountain Lion) and I'm getting an error when I try to use Dynamic Link to call Fortran Code (using gfortran compiler). Follow my test, note that it was OK on a computer running Linux and Scilab 5.33. >> [...] >>> ilib_compile: Ocorreu um erro durante a compila??o: >>> libtool: unrecognized option `-c' >>> Try `libtool --help' for more information. >>> make: *** [matriz1.lo] Error 1 >> [...] >>> Does anyone have an idea? >>> >> Usually, this error message occurs when you don't have a fortran compiler (or i cannot be found). >> >> Could you try with ilib_verbose(2) ? >> This portion of the code did not change much with regard to 5.3.3. >> >> (and if it doesn't help, send us the config.log which will be generated in the TMPDIR directory) >> >> Thanks >> Sylvestre >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Sylvestre Ledru Operations Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From kopac.jakub at gmail.com Sat Sep 1 14:18:25 2012 From: kopac.jakub at gmail.com (kjubo) Date: Sat, 1 Sep 2012 05:18:25 -0700 (PDT) Subject: [Scilab-users] perfomnace decease (scilab 5.4.0-beta3) Message-ID: <1346501905946-4024765.post@n3.nabble.com> hello, im testing performance of scilab with my own file (heat transfer computation), which consist of for cycles and if conditions. i found that scilab 5.4(beta3) runs 60% slower than other scilab version. have you any explanation to this behavior? (im testing on the same hardware every time, windows OS) here are my results, attached exec file. thanks Jakub Kop?? results: //SCILAB BENCHMARK // heat transfer 2D //scilab 4.1.2 272sek //scilab 5.2.2 320sek //scilab 5.3.0-beta1 295sec //scilab 5.3.0-beta2 293sec //scilab 5.3.0-beta3 296sec //scilab 5.3.0-SSE3 286sec //scilab 5.3.1 302sec //scilab 5.3.2-64bit 265sec //scilab 5.4.0-beta3 483sec http://mailinglists.scilab.org/file/n4024765/bench_prestup_tepla.sce bench_prestup_tepla.sce -- View this message in context: http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sdr at durietz.se Sat Sep 1 15:52:27 2012 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 01 Sep 2012 15:52:27 +0200 Subject: [Scilab-users] [ANN]: Scipad-8.71 In-Reply-To: <50410F11.3070304@free.fr> References: <50410F11.3070304@free.fr> Message-ID: <5042131B.4020808@durietz.se> Hello, after updating (Xubuntu 12.04) I still get 8.70 when starting from Menu "Editor" in ScicosLab 4.4.1. /usr/lib/scicoslab-gtk-4.4.1/tcl/scipadsources/changelog.txt yet has the first 3 lines: Francois VOGEL, 31/08/12 * Automatic conversion to the ScicosLab environment * version --> 8.71-Scicoslab Regards Stefan On 2012-08-31 21:22, Fran?ois Vogel wrote: -------------------- > ANNOUNCE: Scipad version 8.71 > ============================= > > A new version of the Scipad text editor for Scilab and Scicoslab is > available. > > > CHANGES SINCE PREVIOUS VERSION > ============================== > > NEW: > > * Multiline replace: replacing by a string containing special > (escaped) characters, such as \n or \t, is now possible > > * Sashes positions are now saved and restored across Scipad sessions, > recreating the layout of the tiles (Mondrian picture) with their > specific sizes when reopening Scipad > > * Scipad now distributes tkdnd for both Windows and Linux, each in > both 32 and 64 bits versions (thanks to Georgios Petasis for > providing the tkdnd binaries) > > > FIXED BUGS: > > * Worked around possible crash when saving files on Windows (Tk bugs > 3071836 and 3146418) > > * Fixed multiline (regexp) search and replace: the text could be > replaced at a wrong position when searching in regexp mode for a > search pattern matching one or more \n in the found string > > * After Replace all, the buffer could still contain matches that > should have been replaced > > * The progress bar is updated even if scrolling of the text widget is > needed during replace all > > * The limits of the selection is correctly maintained when replacing > at selection boundaries > > * Fixed Tcl error when clicking the "Open all files" button in the > find in files results window during the building of the list of > files to search in (this button is now greyed during this step) > > * Fixed error at startup under certain Linux OSs providing http 1.0 > only > > * Scipad can no longer open off-screen (requires a Tk version that > includes the fix for Tk bug 533519) > > * Trying to input text in the "Changelog", "Bugs & Wishlist", or > "Adding translations" window no longer triggers a Tcl error > > * Fixed Tcl error when starting a block selection in environments > running Tk 8.4 > > > WHAT IS SCIPAD ? > ================ > > Scipad is a powerful editor and graphical debugger for programs > written in Scilab language. It is a mature and highly configurable > programmer's editor, including features like syntax colorization, > regexp search/replace, parentheses matching, logical/physical line > numbering, peer windows, line and block text editing, and much more. > Scipad can be used along with Scicoslab or Scilab, but even as a > standalone text editor. Used as internal Sci(cos)lab editor, it > interacts tightly with the interpreter, allowing: > > - Scilab code execution control > - conditional breakpointing > - variable retrieval and tooltip display > - Scilab help lookup > - access to source code of Scilab library function > - control of Scilab facilities for Matlab code and creation of > help documents > - and much more > > Scipad also includes basic Modelica and XML syntax colorization; it is > currently localized in 13 languages and further localizations can > easily be added. Scipad is entirely written in Tcl/Tk and Scilab > language. It has been tested and developed under various versions of > Windows and Linux. > > > WHERE CAN SCIPAD BE FOUND? > ========================== > > Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ > > Direct download: > - for Scilab: > http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scilab5.zip/download > > - for Scicoslab: > http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scicoslab.zip/download > > > Installation instructions: > http://sourceforge.net/p/scipad/wiki/Installation/ > > Details regarding the tested platforms: > http://sourceforge.net/p/scipad/wiki/Tested%20on/ > > > LICENSE > ======= > > Scipad is a free software distributed under the terms of the GPL (V2) > license. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Sat Sep 1 16:10:01 2012 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 01 Sep 2012 16:10:01 +0200 Subject: [Scilab-users] [ANN]: Scipad-8.71 In-Reply-To: <5042131B.4020808@durietz.se> References: <50410F11.3070304@free.fr> <5042131B.4020808@durietz.se> Message-ID: <50421739.7010601@durietz.se> Sorry, I forgot to run genlib("utillib")! Please forget this mail. /Stefan On 2012-09-01 15:52, Stefan Du Rietz wrote: -------------------- > Hello, > after updating (Xubuntu 12.04) I still get 8.70 when starting from > Menu "Editor" in ScicosLab 4.4.1. > > /usr/lib/scicoslab-gtk-4.4.1/tcl/scipadsources/changelog.txt > yet has the first 3 lines: > > Francois VOGEL, 31/08/12 > * Automatic conversion to the ScicosLab environment > * version --> 8.71-Scicoslab > > Regards > Stefan > > > On 2012-08-31 21:22, Fran?ois Vogel wrote: > -------------------- >> ANNOUNCE: Scipad version 8.71 >> ============================= >> >> A new version of the Scipad text editor for Scilab and Scicoslab is >> available. >> >> >> CHANGES SINCE PREVIOUS VERSION >> ============================== >> >> NEW: >> >> * Multiline replace: replacing by a string containing special >> (escaped) characters, such as \n or \t, is now possible >> >> * Sashes positions are now saved and restored across Scipad sessions, >> recreating the layout of the tiles (Mondrian picture) with their >> specific sizes when reopening Scipad >> >> * Scipad now distributes tkdnd for both Windows and Linux, each in >> both 32 and 64 bits versions (thanks to Georgios Petasis for >> providing the tkdnd binaries) >> >> >> FIXED BUGS: >> >> * Worked around possible crash when saving files on Windows (Tk bugs >> 3071836 and 3146418) >> >> * Fixed multiline (regexp) search and replace: the text could be >> replaced at a wrong position when searching in regexp mode for a >> search pattern matching one or more \n in the found string >> >> * After Replace all, the buffer could still contain matches that >> should have been replaced >> >> * The progress bar is updated even if scrolling of the text widget is >> needed during replace all >> >> * The limits of the selection is correctly maintained when replacing >> at selection boundaries >> >> * Fixed Tcl error when clicking the "Open all files" button in the >> find in files results window during the building of the list of >> files to search in (this button is now greyed during this step) >> >> * Fixed error at startup under certain Linux OSs providing http 1.0 >> only >> >> * Scipad can no longer open off-screen (requires a Tk version that >> includes the fix for Tk bug 533519) >> >> * Trying to input text in the "Changelog", "Bugs & Wishlist", or >> "Adding translations" window no longer triggers a Tcl error >> >> * Fixed Tcl error when starting a block selection in environments >> running Tk 8.4 >> >> >> WHAT IS SCIPAD ? >> ================ >> >> Scipad is a powerful editor and graphical debugger for programs >> written in Scilab language. It is a mature and highly configurable >> programmer's editor, including features like syntax colorization, >> regexp search/replace, parentheses matching, logical/physical line >> numbering, peer windows, line and block text editing, and much more. >> Scipad can be used along with Scicoslab or Scilab, but even as a >> standalone text editor. Used as internal Sci(cos)lab editor, it >> interacts tightly with the interpreter, allowing: >> >> - Scilab code execution control >> - conditional breakpointing >> - variable retrieval and tooltip display >> - Scilab help lookup >> - access to source code of Scilab library function >> - control of Scilab facilities for Matlab code and creation of >> help documents >> - and much more >> >> Scipad also includes basic Modelica and XML syntax colorization; it is >> currently localized in 13 languages and further localizations can >> easily be added. Scipad is entirely written in Tcl/Tk and Scilab >> language. It has been tested and developed under various versions of >> Windows and Linux. >> >> >> WHERE CAN SCIPAD BE FOUND? >> ========================== >> >> Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ >> >> Direct download: >> - for Scilab: >> http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scilab5.zip/download >> >> >> - for Scicoslab: >> http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scicoslab.zip/download >> >> >> >> Installation instructions: >> http://sourceforge.net/p/scipad/wiki/Installation/ >> >> Details regarding the tested platforms: >> http://sourceforge.net/p/scipad/wiki/Tested%20on/ >> >> >> LICENSE >> ======= >> >> Scipad is a free software distributed under the terms of the GPL (V2) >> license. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From fvogelnew1 at free.fr Sat Sep 1 16:15:35 2012 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sat, 01 Sep 2012 16:15:35 +0200 Subject: [Scilab-users] [ANN]: Scipad-8.71 In-Reply-To: <50421739.7010601@durietz.se> References: <50410F11.3070304@free.fr> <5042131B.4020808@durietz.se> <50421739.7010601@durietz.se> Message-ID: <50421887.5020200@free.fr> I was about to give you just that same advice. Installation instructions are in the readme file that comes with the Scipad distribution, and can also be found in the Scipad website: http://sourceforge.net/p/scipad/wiki/Installation/ F. Stefan Du Rietz said on 01/09/2012 16:10: > Sorry, I forgot to run genlib("utillib")! > > Please forget this mail. > > /Stefan > > On 2012-09-01 15:52, Stefan Du Rietz wrote: > -------------------- >> Hello, >> after updating (Xubuntu 12.04) I still get 8.70 when starting from >> Menu "Editor" in ScicosLab 4.4.1. >> >> /usr/lib/scicoslab-gtk-4.4.1/tcl/scipadsources/changelog.txt >> yet has the first 3 lines: >> >> Francois VOGEL, 31/08/12 >> * Automatic conversion to the ScicosLab environment >> * version --> 8.71-Scicoslab >> >> Regards >> Stefan >> >> >> On 2012-08-31 21:22, Fran?ois Vogel wrote: >> -------------------- >>> ANNOUNCE: Scipad version 8.71 >>> ============================= >>> >>> A new version of the Scipad text editor for Scilab and Scicoslab is >>> available. >>> >>> >>> CHANGES SINCE PREVIOUS VERSION >>> ============================== >>> >>> NEW: >>> >>> * Multiline replace: replacing by a string containing special >>> (escaped) characters, such as \n or \t, is now possible >>> >>> * Sashes positions are now saved and restored across Scipad >>> sessions, >>> recreating the layout of the tiles (Mondrian picture) with their >>> specific sizes when reopening Scipad >>> >>> * Scipad now distributes tkdnd for both Windows and Linux, each in >>> both 32 and 64 bits versions (thanks to Georgios Petasis for >>> providing the tkdnd binaries) >>> >>> >>> FIXED BUGS: >>> >>> * Worked around possible crash when saving files on Windows (Tk bugs >>> 3071836 and 3146418) >>> >>> * Fixed multiline (regexp) search and replace: the text could be >>> replaced at a wrong position when searching in regexp mode for a >>> search pattern matching one or more \n in the found string >>> >>> * After Replace all, the buffer could still contain matches that >>> should have been replaced >>> >>> * The progress bar is updated even if scrolling of the text >>> widget is >>> needed during replace all >>> >>> * The limits of the selection is correctly maintained when replacing >>> at selection boundaries >>> >>> * Fixed Tcl error when clicking the "Open all files" button in the >>> find in files results window during the building of the list of >>> files to search in (this button is now greyed during this step) >>> >>> * Fixed error at startup under certain Linux OSs providing http 1.0 >>> only >>> >>> * Scipad can no longer open off-screen (requires a Tk version that >>> includes the fix for Tk bug 533519) >>> >>> * Trying to input text in the "Changelog", "Bugs & Wishlist", or >>> "Adding translations" window no longer triggers a Tcl error >>> >>> * Fixed Tcl error when starting a block selection in environments >>> running Tk 8.4 >>> >>> >>> WHAT IS SCIPAD ? >>> ================ >>> >>> Scipad is a powerful editor and graphical debugger for programs >>> written in Scilab language. It is a mature and highly configurable >>> programmer's editor, including features like syntax colorization, >>> regexp search/replace, parentheses matching, logical/physical line >>> numbering, peer windows, line and block text editing, and much more. >>> Scipad can be used along with Scicoslab or Scilab, but even as a >>> standalone text editor. Used as internal Sci(cos)lab editor, it >>> interacts tightly with the interpreter, allowing: >>> >>> - Scilab code execution control >>> - conditional breakpointing >>> - variable retrieval and tooltip display >>> - Scilab help lookup >>> - access to source code of Scilab library function >>> - control of Scilab facilities for Matlab code and creation of >>> help documents >>> - and much more >>> >>> Scipad also includes basic Modelica and XML syntax colorization; it is >>> currently localized in 13 languages and further localizations can >>> easily be added. Scipad is entirely written in Tcl/Tk and Scilab >>> language. It has been tested and developed under various versions of >>> Windows and Linux. >>> >>> >>> WHERE CAN SCIPAD BE FOUND? >>> ========================== >>> >>> Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ >>> >>> Direct download: >>> - for Scilab: >>> http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scilab5.zip/download >>> >>> >>> >>> - for Scicoslab: >>> http://sourceforge.net/projects/scipad/files/scipad-8.71/scipad-8.71-Scicoslab.zip/download >>> >>> >>> >>> >>> Installation instructions: >>> http://sourceforge.net/p/scipad/wiki/Installation/ >>> >>> Details regarding the tested platforms: >>> http://sourceforge.net/p/scipad/wiki/Tested%20on/ >>> >>> >>> LICENSE >>> ======= >>> >>> Scipad is a free software distributed under the terms of the GPL (V2) >>> license. >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From illusionteam at gmail.com Sat Sep 1 15:24:20 2012 From: illusionteam at gmail.com (=?iso-8859-1?Q?C=E1ssio_Pazinatto?=) Date: Sat, 1 Sep 2012 10:24:20 -0300 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <5041F07C.1020006@scilab-enterprises.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> <5041F07C.1020006@scilab-enterprises.com> Message-ID: <202E691A-51BD-4F93-A27D-2DD36702FA28@gmail.com> Sylvestre, I deleted the makefile.orig. Its like it can't find de compiler. The config.log file is attached. Thanks, C?ssio -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 31732 bytes Desc: not available URL: -------------- next part -------------- OUTPUT: ilib_gen_Make: Configurar: Gerar Makefile. ilib_gen_Make: Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh Sa?da: Detection of C/C++/Fortran Compilers Sa?da: checking for a BSD-compatible install... /usr/bin/install -c Sa?da: checking whether build environment is sane... yes Sa?da: checking for a thread-safe mkdir -p... ./install-sh -c -d Sa?da: checking for gawk... no Sa?da: checking for mawk... no Sa?da: checking for nawk... no Sa?da: checking for awk... awk Sa?da: checking whether make sets $(MAKE)... yes Sa?da: checking whether to enable maintainer-specific portions of Makefiles... no Sa?da: checking for gcc... gcc Sa?da: checking whether the C compiler works... yes Sa?da: checking for C compiler default output file name... a.out Sa?da: checking for suffix of executables... Sa?da: checking whether we are cross compiling... no Sa?da: checking for suffix of object files... o Sa?da: checking whether we are using the GNU C compiler... yes Sa?da: checking whether gcc accepts -g... yes Sa?da: checking for gcc option to accept ISO C89... none needed Sa?da: checking for style of include used by make... GNU Sa?da: checking dependency style of gcc... none Sa?da: checking for g++... g++ Sa?da: checking whether we are using the GNU C++ compiler... yes Sa?da: checking whether g++ accepts -g... yes Sa?da: checking dependency style of g++... none Sa?da: checking for gfortran... no Sa?da: checking for g95... no Sa?da: checking for xlf95... no Sa?da: checking for f95... no Sa?da: checking for fort... no Sa?da: checking for ifort... no Sa?da: checking for ifc... no Sa?da: checking for efc... no Sa?da: checking for pgfortran... no Sa?da: checking for pgf95... no Sa?da: checking for lf95... no Sa?da: checking for ftn... no Sa?da: checking for xlf90... no Sa?da: checking for f90... no Sa?da: checking for pgf90... no Sa?da: checking for pghpf... no Sa?da: checking for epcf90... no Sa?da: checking for g77... no Sa?da: checking for xlf... no Sa?da: checking for f77... no Sa?da: checking for frt... no Sa?da: checking for pgf77... no Sa?da: checking for cf77... no Sa?da: checking for fort77... no Sa?da: checking for fl32... no Sa?da: checking for af77... no Sa?da: checking whether we are using the GNU Fortran compiler... no Sa?da: checking whether accepts -g... no Sa?da: checking build system type... i386-apple-darwin12.1.0 Sa?da: checking host system type... i386-apple-darwin12.1.0 Sa?da: checking for a sed that does not truncate output... /usr/bin/sed Sa?da: checking for grep that handles long lines and -e... /usr/bin/grep Sa?da: checking for egrep... /usr/bin/grep -E Sa?da: checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no Sa?da: checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r Sa?da: checking for BSD-compatible nm... /usr/bin/nm Sa?da: checking whether ln -s works... yes Sa?da: checking how to recognize dependent libraries... pass_all Sa?da: checking how to run the C preprocessor... gcc -E Sa?da: checking for ANSI C header files... yes Sa?da: checking for sys/types.h... yes Sa?da: checking for sys/stat.h... yes Sa?da: checking for stdlib.h... yes Sa?da: checking for string.h... yes Sa?da: checking for memory.h... yes Sa?da: checking for strings.h... yes Sa?da: checking for inttypes.h... yes Sa?da: checking for stdint.h... yes Sa?da: checking for unistd.h... yes Sa?da: checking dlfcn.h usability... yes Sa?da: checking dlfcn.h presence... yes Sa?da: checking for dlfcn.h... yes Sa?da: checking how to run the C++ preprocessor... g++ -E Sa?da: checking for g77... no Sa?da: checking for xlf... no Sa?da: checking for f77... no Sa?da: checking for frt... no Sa?da: checking for pgf77... no Sa?da: checking for cf77... no Sa?da: checking for fort77... no Sa?da: checking for fl32... no Sa?da: checking for af77... no Sa?da: checking for xlf90... no Sa?da: checking for f90... no Sa?da: checking for pgf90... no Sa?da: checking for pghpf... no Sa?da: checking for epcf90... no Sa?da: checking for gfortran... no Sa?da: checking for g95... no Sa?da: checking for xlf95... no Sa?da: checking for f95... no Sa?da: checking for fort... no Sa?da: checking for ifort... no Sa?da: checking for ifc... no Sa?da: checking for efc... no Sa?da: checking for pgfortran... no Sa?da: checking for pgf95... no Sa?da: checking for lf95... no Sa?da: checking for ftn... no Sa?da: checking whether we are using the GNU Fortran 77 compiler... no Sa?da: checking whether accepts -g... no Sa?da: checking the maximum length of command line arguments... 196608 Sa?da: checking command to parse /usr/bin/nm output from gcc object... ok Sa?da: checking for objdir... .libs Sa?da: checking for ar... ar Sa?da: checking for ranlib... ranlib Sa?da: checking for strip... strip Sa?da: checking for dsymutil... dsymutil Sa?da: checking for nmedit... nmedit Sa?da: checking for -single_module linker flag... yes Sa?da: checking for -exported_symbols_list linker flag... yes Sa?da: checking if gcc supports -fno-rtti -fno-exceptions... no Sa?da: checking for gcc option to produce PIC... -fno-common Sa?da: checking if gcc PIC flag -fno-common works... yes Sa?da: checking if gcc static flag -static works... no Sa?da: checking if gcc supports -c -o file.o... yes Sa?da: checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld Sa?da: checking how to hardcode library paths into programs... immediate Sa?da: checking whether stripping libraries is possible... yes Sa?da: checking if libtool supports shared libraries... yes Sa?da: checking whether to build shared libraries... yes Sa?da: checking whether to build static libraries... no Sa?da: configure: creating libtool Sa?da: appending configuration tag "CXX" to libtool Sa?da: checking for ld used by g++... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes Sa?da: checking for g++ option to produce PIC... -fno-common Sa?da: checking if g++ PIC flag -fno-common works... yes Sa?da: checking if g++ static flag -static works... no Sa?da: checking if g++ supports -c -o file.o... yes Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld Sa?da: (cached) (cached) checking how to hardcode library paths into programs... immediate Sa?da: appending configuration tag "F77" to libtool Sa?da: configure: creating ./config.status Sa?da: config.status: creating Makefile Sa?da: config.status: executing depfiles commands Sa?da: Sa?da: Options used to compile and link: Sa?da: CC = gcc -arch x86_64 Sa?da: CFLAGS = -g -O2 -I/sw/include Sa?da: CPP = gcc -E Sa?da: CPPFLAGS = -I/sw/include Sa?da: PCFLAGS = Sa?da: DEFS = -DPACKAGE_NAME=\"scilab\" -DPACKAGE_TARNAME=\"scilab\" -DPACKAGE_VERSION=\"0\" -DPACKAGE_STRING=\"scilab\ 0\" -DPACKAGE_BUGREPORT=\"http://bugzilla.scilab.org/\" -DPACKAGE_URL=\"\" -DPACKAGE=\"scilab\" -DVERSION=\"0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 Sa?da: LD = /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld Sa?da: LDFLAGS = -L/sw/lib/ Sa?da: LIBS = Sa?da: CXX = g++ -arch x86_64 Sa?da: CXXFLAGS = -g -O2 Sa?da: F77 = Sa?da: FFLAGS = Sa?da: F77_LDFLAGS = Sa?da: stderr: From sylvestre.ledru at scilab-enterprises.com Sun Sep 2 10:24:05 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 02 Sep 2012 10:24:05 +0200 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <202E691A-51BD-4F93-A27D-2DD36702FA28@gmail.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> <5041F07C.1020006@scilab-enterprises.com> <202E691A-51BD-4F93-A27D-2DD36702FA28@gmail.com> Message-ID: <504317A5.9080800@scilab-enterprises.com> Well, looks like you don't have gfortran on your system or it is not in a standard path ... S Le 01/09/2012 15:24, C?ssio Pazinatto a ?crit : > Sylvestre, > > I deleted the makefile.orig. Its like it can't find de compiler. The config.log file is attached. > > Thanks, > C?ssio > > > > > OUTPUT: > ilib_gen_Make: Configurar: Gerar Makefile. > ilib_gen_Make: Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh > Sa?da: Detection of C/C++/Fortran Compilers > Sa?da: checking for a BSD-compatible install... /usr/bin/install -c > Sa?da: checking whether build environment is sane... yes > Sa?da: checking for a thread-safe mkdir -p... ./install-sh -c -d > Sa?da: checking for gawk... no > Sa?da: checking for mawk... no > Sa?da: checking for nawk... no > Sa?da: checking for awk... awk > Sa?da: checking whether make sets $(MAKE)... yes > Sa?da: checking whether to enable maintainer-specific portions of Makefiles... no > Sa?da: checking for gcc... gcc > Sa?da: checking whether the C compiler works... yes > Sa?da: checking for C compiler default output file name... a.out > Sa?da: checking for suffix of executables... > Sa?da: checking whether we are cross compiling... no > Sa?da: checking for suffix of object files... o > Sa?da: checking whether we are using the GNU C compiler... yes > Sa?da: checking whether gcc accepts -g... yes > Sa?da: checking for gcc option to accept ISO C89... none needed > Sa?da: checking for style of include used by make... GNU > Sa?da: checking dependency style of gcc... none > Sa?da: checking for g++... g++ > Sa?da: checking whether we are using the GNU C++ compiler... yes > Sa?da: checking whether g++ accepts -g... yes > Sa?da: checking dependency style of g++... none > Sa?da: checking for gfortran... no > Sa?da: checking for g95... no > Sa?da: checking for xlf95... no > Sa?da: checking for f95... no > Sa?da: checking for fort... no > Sa?da: checking for ifort... no > Sa?da: checking for ifc... no > Sa?da: checking for efc... no > Sa?da: checking for pgfortran... no > Sa?da: checking for pgf95... no > Sa?da: checking for lf95... no > Sa?da: checking for ftn... no > Sa?da: checking for xlf90... no > Sa?da: checking for f90... no > Sa?da: checking for pgf90... no > Sa?da: checking for pghpf... no > Sa?da: checking for epcf90... no > Sa?da: checking for g77... no > Sa?da: checking for xlf... no > Sa?da: checking for f77... no > Sa?da: checking for frt... no > Sa?da: checking for pgf77... no > Sa?da: checking for cf77... no > Sa?da: checking for fort77... no > Sa?da: checking for fl32... no > Sa?da: checking for af77... no > Sa?da: checking whether we are using the GNU Fortran compiler... no > Sa?da: checking whether accepts -g... no > Sa?da: checking build system type... i386-apple-darwin12.1.0 > Sa?da: checking host system type... i386-apple-darwin12.1.0 > Sa?da: checking for a sed that does not truncate output... /usr/bin/sed > Sa?da: checking for grep that handles long lines and -e... /usr/bin/grep > Sa?da: checking for egrep... /usr/bin/grep -E > Sa?da: checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld > Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no > Sa?da: checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r > Sa?da: checking for BSD-compatible nm... /usr/bin/nm > Sa?da: checking whether ln -s works... yes > Sa?da: checking how to recognize dependent libraries... pass_all > Sa?da: checking how to run the C preprocessor... gcc -E > Sa?da: checking for ANSI C header files... yes > Sa?da: checking for sys/types.h... yes > Sa?da: checking for sys/stat.h... yes > Sa?da: checking for stdlib.h... yes > Sa?da: checking for string.h... yes > Sa?da: checking for memory.h... yes > Sa?da: checking for strings.h... yes > Sa?da: checking for inttypes.h... yes > Sa?da: checking for stdint.h... yes > Sa?da: checking for unistd.h... yes > Sa?da: checking dlfcn.h usability... yes > Sa?da: checking dlfcn.h presence... yes > Sa?da: checking for dlfcn.h... yes > Sa?da: checking how to run the C++ preprocessor... g++ -E > Sa?da: checking for g77... no > Sa?da: checking for xlf... no > Sa?da: checking for f77... no > Sa?da: checking for frt... no > Sa?da: checking for pgf77... no > Sa?da: checking for cf77... no > Sa?da: checking for fort77... no > Sa?da: checking for fl32... no > Sa?da: checking for af77... no > Sa?da: checking for xlf90... no > Sa?da: checking for f90... no > Sa?da: checking for pgf90... no > Sa?da: checking for pghpf... no > Sa?da: checking for epcf90... no > Sa?da: checking for gfortran... no > Sa?da: checking for g95... no > Sa?da: checking for xlf95... no > Sa?da: checking for f95... no > Sa?da: checking for fort... no > Sa?da: checking for ifort... no > Sa?da: checking for ifc... no > Sa?da: checking for efc... no > Sa?da: checking for pgfortran... no > Sa?da: checking for pgf95... no > Sa?da: checking for lf95... no > Sa?da: checking for ftn... no > Sa?da: checking whether we are using the GNU Fortran 77 compiler... no > Sa?da: checking whether accepts -g... no > Sa?da: checking the maximum length of command line arguments... 196608 > Sa?da: checking command to parse /usr/bin/nm output from gcc object... ok > Sa?da: checking for objdir... .libs > Sa?da: checking for ar... ar > Sa?da: checking for ranlib... ranlib > Sa?da: checking for strip... strip > Sa?da: checking for dsymutil... dsymutil > Sa?da: checking for nmedit... nmedit > Sa?da: checking for -single_module linker flag... yes > Sa?da: checking for -exported_symbols_list linker flag... yes > Sa?da: checking if gcc supports -fno-rtti -fno-exceptions... no > Sa?da: checking for gcc option to produce PIC... -fno-common > Sa?da: checking if gcc PIC flag -fno-common works... yes > Sa?da: checking if gcc static flag -static works... no > Sa?da: checking if gcc supports -c -o file.o... yes > Sa?da: checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes > Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld > Sa?da: checking how to hardcode library paths into programs... immediate > Sa?da: checking whether stripping libraries is possible... yes > Sa?da: checking if libtool supports shared libraries... yes > Sa?da: checking whether to build shared libraries... yes > Sa?da: checking whether to build static libraries... no > Sa?da: configure: creating libtool > Sa?da: appending configuration tag "CXX" to libtool > Sa?da: checking for ld used by g++... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld > Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no > Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes > Sa?da: checking for g++ option to produce PIC... -fno-common > Sa?da: checking if g++ PIC flag -fno-common works... yes > Sa?da: checking if g++ static flag -static works... no > Sa?da: checking if g++ supports -c -o file.o... yes > Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes > Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld > Sa?da: (cached) (cached) checking how to hardcode library paths into programs... immediate > Sa?da: appending configuration tag "F77" to libtool > Sa?da: configure: creating ./config.status > Sa?da: config.status: creating Makefile > Sa?da: config.status: executing depfiles commands > Sa?da: > Sa?da: Options used to compile and link: > Sa?da: CC = gcc -arch x86_64 > Sa?da: CFLAGS = -g -O2 -I/sw/include > Sa?da: CPP = gcc -E > Sa?da: CPPFLAGS = -I/sw/include > Sa?da: PCFLAGS = > Sa?da: DEFS = -DPACKAGE_NAME=\"scilab\" -DPACKAGE_TARNAME=\"scilab\" -DPACKAGE_VERSION=\"0\" -DPACKAGE_STRING=\"scilab\ 0\" -DPACKAGE_BUGREPORT=\"http://bugzilla.scilab.org/\" -DPACKAGE_URL=\"\" -DPACKAGE=\"scilab\" -DVERSION=\"0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > Sa?da: LD = /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld > Sa?da: LDFLAGS = -L/sw/lib/ > Sa?da: LIBS = > Sa?da: CXX = g++ -arch x86_64 > Sa?da: CXXFLAGS = -g -O2 > Sa?da: F77 = > Sa?da: FFLAGS = > Sa?da: F77_LDFLAGS = > Sa?da: > stderr: > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Sylvestre Ledru Operations Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From illusionteam at gmail.com Sun Sep 2 15:57:46 2012 From: illusionteam at gmail.com (=?utf-8?Q?C=C3=A1ssio_Pazinatto?=) Date: Sun, 2 Sep 2012 10:57:46 -0300 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <504317A5.9080800@scilab-enterprises.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> <5041F07C.1020006@scilab-enterprises.com> <202E691A-51BD-4F93-A27D-2DD36702FA28@gmail.com> <504317A5.9080800@scilab-enterprises.com> Message-ID: <6C4CF04F-F603-477D-9CF2-27B9F8F4421F@gmail.com> Well, I do have gfortran installed... And it works ok on the terminal, was a standard instalation (Xcode + command line tools + gcc from HPC). Is there a way to chance the location where scilab is looking? Thanks, C?ssio Em 02/09/2012, ?s 05:24, Sylvestre Ledru escreveu: > Well, looks like you don't have gfortran on your system or it is not in a standard path ... > > S > > Le 01/09/2012 15:24, C?ssio Pazinatto a ?crit : >> >> Sylvestre, >> >> I deleted the makefile.orig. Its like it can't find de compiler. The config.log file is attached. >> >> Thanks, >> C?ssio >> >> >> >> >> OUTPUT: >> ilib_gen_Make: Configurar: Gerar Makefile. >> ilib_gen_Make: Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/compilerDetection.sh >> Sa?da: Detection of C/C++/Fortran Compilers >> Sa?da: checking for a BSD-compatible install... /usr/bin/install -c >> Sa?da: checking whether build environment is sane... yes >> Sa?da: checking for a thread-safe mkdir -p... ./install-sh -c -d >> Sa?da: checking for gawk... no >> Sa?da: checking for mawk... no >> Sa?da: checking for nawk... no >> Sa?da: checking for awk... awk >> Sa?da: checking whether make sets $(MAKE)... yes >> Sa?da: checking whether to enable maintainer-specific portions of Makefiles... no >> Sa?da: checking for gcc... gcc >> Sa?da: checking whether the C compiler works... yes >> Sa?da: checking for C compiler default output file name... a.out >> Sa?da: checking for suffix of executables... >> Sa?da: checking whether we are cross compiling... no >> Sa?da: checking for suffix of object files... o >> Sa?da: checking whether we are using the GNU C compiler... yes >> Sa?da: checking whether gcc accepts -g... yes >> Sa?da: checking for gcc option to accept ISO C89... none needed >> Sa?da: checking for style of include used by make... GNU >> Sa?da: checking dependency style of gcc... none >> Sa?da: checking for g++... g++ >> Sa?da: checking whether we are using the GNU C++ compiler... yes >> Sa?da: checking whether g++ accepts -g... yes >> Sa?da: checking dependency style of g++... none >> Sa?da: checking for gfortran... no >> Sa?da: checking for g95... no >> Sa?da: checking for xlf95... no >> Sa?da: checking for f95... no >> Sa?da: checking for fort... no >> Sa?da: checking for ifort... no >> Sa?da: checking for ifc... no >> Sa?da: checking for efc... no >> Sa?da: checking for pgfortran... no >> Sa?da: checking for pgf95... no >> Sa?da: checking for lf95... no >> Sa?da: checking for ftn... no >> Sa?da: checking for xlf90... no >> Sa?da: checking for f90... no >> Sa?da: checking for pgf90... no >> Sa?da: checking for pghpf... no >> Sa?da: checking for epcf90... no >> Sa?da: checking for g77... no >> Sa?da: checking for xlf... no >> Sa?da: checking for f77... no >> Sa?da: checking for frt... no >> Sa?da: checking for pgf77... no >> Sa?da: checking for cf77... no >> Sa?da: checking for fort77... no >> Sa?da: checking for fl32... no >> Sa?da: checking for af77... no >> Sa?da: checking whether we are using the GNU Fortran compiler... no >> Sa?da: checking whether accepts -g... no >> Sa?da: checking build system type... i386-apple-darwin12.1.0 >> Sa?da: checking host system type... i386-apple-darwin12.1.0 >> Sa?da: checking for a sed that does not truncate output... /usr/bin/sed >> Sa?da: checking for grep that handles long lines and -e... /usr/bin/grep >> Sa?da: checking for egrep... /usr/bin/grep -E >> Sa?da: checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld >> Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no >> Sa?da: checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r >> Sa?da: checking for BSD-compatible nm... /usr/bin/nm >> Sa?da: checking whether ln -s works... yes >> Sa?da: checking how to recognize dependent libraries... pass_all >> Sa?da: checking how to run the C preprocessor... gcc -E >> Sa?da: checking for ANSI C header files... yes >> Sa?da: checking for sys/types.h... yes >> Sa?da: checking for sys/stat.h... yes >> Sa?da: checking for stdlib.h... yes >> Sa?da: checking for string.h... yes >> Sa?da: checking for memory.h... yes >> Sa?da: checking for strings.h... yes >> Sa?da: checking for inttypes.h... yes >> Sa?da: checking for stdint.h... yes >> Sa?da: checking for unistd.h... yes >> Sa?da: checking dlfcn.h usability... yes >> Sa?da: checking dlfcn.h presence... yes >> Sa?da: checking for dlfcn.h... yes >> Sa?da: checking how to run the C++ preprocessor... g++ -E >> Sa?da: checking for g77... no >> Sa?da: checking for xlf... no >> Sa?da: checking for f77... no >> Sa?da: checking for frt... no >> Sa?da: checking for pgf77... no >> Sa?da: checking for cf77... no >> Sa?da: checking for fort77... no >> Sa?da: checking for fl32... no >> Sa?da: checking for af77... no >> Sa?da: checking for xlf90... no >> Sa?da: checking for f90... no >> Sa?da: checking for pgf90... no >> Sa?da: checking for pghpf... no >> Sa?da: checking for epcf90... no >> Sa?da: checking for gfortran... no >> Sa?da: checking for g95... no >> Sa?da: checking for xlf95... no >> Sa?da: checking for f95... no >> Sa?da: checking for fort... no >> Sa?da: checking for ifort... no >> Sa?da: checking for ifc... no >> Sa?da: checking for efc... no >> Sa?da: checking for pgfortran... no >> Sa?da: checking for pgf95... no >> Sa?da: checking for lf95... no >> Sa?da: checking for ftn... no >> Sa?da: checking whether we are using the GNU Fortran 77 compiler... no >> Sa?da: checking whether accepts -g... no >> Sa?da: checking the maximum length of command line arguments... 196608 >> Sa?da: checking command to parse /usr/bin/nm output from gcc object... ok >> Sa?da: checking for objdir... .libs >> Sa?da: checking for ar... ar >> Sa?da: checking for ranlib... ranlib >> Sa?da: checking for strip... strip >> Sa?da: checking for dsymutil... dsymutil >> Sa?da: checking for nmedit... nmedit >> Sa?da: checking for -single_module linker flag... yes >> Sa?da: checking for -exported_symbols_list linker flag... yes >> Sa?da: checking if gcc supports -fno-rtti -fno-exceptions... no >> Sa?da: checking for gcc option to produce PIC... -fno-common >> Sa?da: checking if gcc PIC flag -fno-common works... yes >> Sa?da: checking if gcc static flag -static works... no >> Sa?da: checking if gcc supports -c -o file.o... yes >> Sa?da: checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes >> Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld >> Sa?da: checking how to hardcode library paths into programs... immediate >> Sa?da: checking whether stripping libraries is possible... yes >> Sa?da: checking if libtool supports shared libraries... yes >> Sa?da: checking whether to build shared libraries... yes >> Sa?da: checking whether to build static libraries... no >> Sa?da: configure: creating libtool >> Sa?da: appending configuration tag "CXX" to libtool >> Sa?da: checking for ld used by g++... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld >> Sa?da: checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no >> Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes >> Sa?da: checking for g++ option to produce PIC... -fno-common >> Sa?da: checking if g++ PIC flag -fno-common works... yes >> Sa?da: checking if g++ static flag -static works... no >> Sa?da: checking if g++ supports -c -o file.o... yes >> Sa?da: checking whether the g++ linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes >> Sa?da: checking dynamic linker characteristics... darwin12.1.0 dyld >> Sa?da: (cached) (cached) checking how to hardcode library paths into programs... immediate >> Sa?da: appending configuration tag "F77" to libtool >> Sa?da: configure: creating ./config.status >> Sa?da: config.status: creating Makefile >> Sa?da: config.status: executing depfiles commands >> Sa?da: >> Sa?da: Options used to compile and link: >> Sa?da: CC = gcc -arch x86_64 >> Sa?da: CFLAGS = -g -O2 -I/sw/include >> Sa?da: CPP = gcc -E >> Sa?da: CPPFLAGS = -I/sw/include >> Sa?da: PCFLAGS = >> Sa?da: DEFS = -DPACKAGE_NAME=\"scilab\" -DPACKAGE_TARNAME=\"scilab\" -DPACKAGE_VERSION=\"0\" -DPACKAGE_STRING=\"scilab\ 0\" -DPACKAGE_BUGREPORT=\"http://bugzilla.scilab.org/\" -DPACKAGE_URL=\"\" -DPACKAGE=\"scilab\" -DVERSION=\"0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 >> Sa?da: LD = /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld >> Sa?da: LDFLAGS = -L/sw/lib/ >> Sa?da: LIBS = >> Sa?da: CXX = g++ -arch x86_64 >> Sa?da: CXXFLAGS = -g -O2 >> Sa?da: F77 = >> Sa?da: FFLAGS = >> Sa?da: F77_LDFLAGS = >> Sa?da: >> stderr: >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > -- > Sylvestre Ledru > Operations Manager / Community Manager > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > http://www.scilab-enterprises.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From kichun1 at gmail.com Sun Sep 2 18:50:43 2012 From: kichun1 at gmail.com (kichun) Date: Sun, 2 Sep 2012 09:50:43 -0700 (PDT) Subject: [Scilab-users] Creating shared objects, using slepc, to work with scilab Message-ID: <1346604643446-4024773.post@n3.nabble.com> Dear all, I am using scilab on ubuntu, and now I'm strugling to make use of SLEPc (http://www.grycap.upv.es/slepc/) in scilab. I did manage to compile some simple codec in c into shared objects and then succesfully link them to scilab, but in this case it is more complicated. To compile ***.c files, which refer to SLEPc library I have to (accordingly to official SLEPc website) make a simple makefile, like this: hello: hello.o chkopts -${CLINKER} -o hello hello.o ${SLEPC_LIB} ${RM} hello.o include ${SLEPC_DIR}/conf/slepc_common where hello.c is: static char help[] = "Simple Hello World example program in SLEPc\n"; #include "slepceps.h" #undef __FUNCT__ #define __FUNCT__ "main" int main( int argc, char **argv ) { int ierr; SlepcInitialize(&argc,&argv,(char*)0,help); ierr = PetscPrintf(PETSC_COMM_WORLD,"Hello world\n");CHKERRQ(ierr); ierr = SlepcFinalize();CHKERRQ(ierr); return 0; } and this basically works. I also tried more complex codes, and they compile and execute as well. Now I would like to write a function using SLEPc, that could be called from Scilab. At first, the simpliest possible is enough, so i changed the hello.c and the makefile: hello: hello.o chkopts gcc -shared -fPIC -o hello.so ${SLEPC_LIB} include ${SLEPC_DIR}/conf/slepc_common hello.c: static char help[] = "Simple Hello World example program in SLEPc\n"; #include "slepceps.h" void hello( int n) { int ierr; int i; int **argc; char **argv; char dupa; i=0; argc=i; dupa=' '; argv=dupa; SlepcInitialize(&argc,&argv,(char*)0,help); for(i=0;i References: <1346501905946-4024765.post@n3.nabble.com> Message-ID: <50439E0E.8050406@limsi.fr> Hello, Maybe this is related to the option used to compile the beta version (like enabling debugging, less optimization, etc.). You could try to compile it yourself from the source... HTH, Mathieu Le 01/09/2012 14:18, kjubo a ?crit : > hello, > > im testing performance of scilab with my own file (heat transfer > computation), > which consist of for cycles and if conditions. i found that scilab > 5.4(beta3) runs 60% slower than other scilab version. have you any > explanation to this behavior? > (im testing on the same hardware every time, windows OS) > here are my results, attached exec file. > > thanks > > Jakub Kop?? > > > > results: > //SCILAB BENCHMARK > // heat transfer 2D > //scilab 4.1.2 272sek > //scilab 5.2.2 320sek > //scilab 5.3.0-beta1 295sec > //scilab 5.3.0-beta2 293sec > //scilab 5.3.0-beta3 296sec > //scilab 5.3.0-SSE3 286sec > //scilab 5.3.1 302sec > //scilab 5.3.2-64bit 265sec > //scilab 5.4.0-beta3 483sec > > http://mailinglists.scilab.org/file/n4024765/bench_prestup_tepla.sce > bench_prestup_tepla.sce > > > > -- > View this message in context: http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From michael.baudin at contrib.scilab.org Sun Sep 2 20:10:30 2012 From: michael.baudin at contrib.scilab.org (michael.baudin at contrib.scilab.org) Date: Sun, 02 Sep 2012 20:10:30 +0200 Subject: [Scilab-users] perfomnace decease (scilab 5.4.0-beta3) In-Reply-To: <1346501905946-4024765.post@n3.nabble.com> References: <1346501905946-4024765.post@n3.nabble.com> Message-ID: Hi, My message does not explain the performance differences between Scilab versions, but may solve your actual performance problem. It seems that your script has 3 nested loops to perform the computation. So, whatever the performance of Scilab, your script will be slow. And, indeed, 272 sec is quite slow... What you may consider is to vectorize your code. As an example of a fast 2D implementation for the solution of a PDE, you may try the scibench module from ATOMS: http://atoms.scilab.org/toolboxes/scibench Look at the scibench_poisson function, which solves the Poisson equation. You may find the code in the Source tab of : http://forge.scilab.org/index.php/p/scibench/ The main trick here is to compute all the matrix in just one statement, based on the Kronecker product: http://forge.scilab.org/index.php/p/scibench/source/tree/HEAD/macros/scibench_poissonA.sci For iterative methods, we just need the A*u product, and this is done here : http://forge.scilab.org/index.php/p/scibench/source/tree/HEAD/macros/scibench_poissonAu.sci The performance difference is huge, as shown here : http://wiki.scilab.org/Solving%20Poisson%20PDE%20with%20Sparse%20Matrices Best regards, Micha?l Le 2012-09-01 14:18, kjubo a ?crit?: > hello, > > im testing performance of scilab with my own file (heat transfer > computation), > which consist of for cycles and if conditions. i found that scilab > 5.4(beta3) runs 60% slower than other scilab version. have you any > explanation to this behavior? > (im testing on the same hardware every time, windows OS) > here are my results, attached exec file. > > thanks > > Jakub Kop?? > > > > results: > //SCILAB BENCHMARK > // heat transfer 2D > //scilab 4.1.2 272sek > //scilab 5.2.2 320sek > //scilab 5.3.0-beta1 295sec > //scilab 5.3.0-beta2 293sec > //scilab 5.3.0-beta3 296sec > //scilab 5.3.0-SSE3 286sec > //scilab 5.3.1 302sec > //scilab 5.3.2-64bit 265sec > //scilab 5.4.0-beta3 483sec > > http://mailinglists.scilab.org/file/n4024765/bench_prestup_tepla.sce > bench_prestup_tepla.sce > > > > -- > View this message in context: > > http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sylvestre.ledru at scilab-enterprises.com Sun Sep 2 22:43:16 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 02 Sep 2012 22:43:16 +0200 Subject: [Scilab-users] perfomnace decease (scilab 5.4.0-beta3) In-Reply-To: <50439E0E.8050406@limsi.fr> References: <1346501905946-4024765.post@n3.nabble.com> <50439E0E.8050406@limsi.fr> Message-ID: <5043C4E4.2090103@scilab-enterprises.com> No, it is probably not the source of the issue. You should report a bug about your problem. Sylvestre Le 02/09/2012 19:57, Mathieu Dubois a ?crit : > Hello, > > Maybe this is related to the option used to compile the beta version > (like enabling debugging, less optimization, etc.). > > You could try to compile it yourself from the source... > > HTH, > Mathieu > > Le 01/09/2012 14:18, kjubo a ?crit : >> hello, >> >> im testing performance of scilab with my own file (heat transfer >> computation), >> which consist of for cycles and if conditions. i found that scilab >> 5.4(beta3) runs 60% slower than other scilab version. have you any >> explanation to this behavior? >> (im testing on the same hardware every time, windows OS) >> here are my results, attached exec file. >> >> thanks >> >> Jakub Kop?? >> >> >> >> results: >> //SCILAB BENCHMARK >> // heat transfer 2D >> //scilab 4.1.2 272sek >> //scilab 5.2.2 320sek >> //scilab 5.3.0-beta1 295sec >> //scilab 5.3.0-beta2 293sec >> //scilab 5.3.0-beta3 296sec >> //scilab 5.3.0-SSE3 286sec >> //scilab 5.3.1 302sec >> //scilab 5.3.2-64bit 265sec >> //scilab 5.4.0-beta3 483sec >> >> http://mailinglists.scilab.org/file/n4024765/bench_prestup_tepla.sce >> bench_prestup_tepla.sce >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765.html >> Sent from the Scilab users - Mailing Lists Archives mailing list >> archive at Nabble.com. >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Sylvestre Ledru Operations Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From kopac.jakub at gmail.com Mon Sep 3 19:15:35 2012 From: kopac.jakub at gmail.com (kjubo) Date: Mon, 3 Sep 2012 10:15:35 -0700 (PDT) Subject: [Scilab-users] perfomnace decease (scilab 5.4.0-beta3) In-Reply-To: References: <1346501905946-4024765.post@n3.nabble.com> Message-ID: <1346692535226-4024783.post@n3.nabble.com> This file is just for performance change measurement between different Scilab releases. Is my simple benchmark, it not used to "serious" computations. BTW: There are some algorithms, where you can not avoid using many for loops, for example: http://en.wikipedia.org/wiki/Non-Random_Two_Liquid_model , state General equations. But thanks for your reply. -- View this message in context: http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765p4024783.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From kopac.jakub at gmail.com Mon Sep 3 19:25:17 2012 From: kopac.jakub at gmail.com (kjubo) Date: Mon, 3 Sep 2012 10:25:17 -0700 (PDT) Subject: [Scilab-users] perfomnace decease (scilab 5.4.0-beta3) In-Reply-To: <5043C4E4.2090103@scilab-enterprises.com> References: <1346501905946-4024765.post@n3.nabble.com> <50439E0E.8050406@limsi.fr> <5043C4E4.2090103@scilab-enterprises.com> Message-ID: <1346693117282-4024784.post@n3.nabble.com> it is done. -- View this message in context: http://mailinglists.scilab.org/perfomnace-decease-scilab-5-4-0-beta3-tp4024765p4024784.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From illusionteam at gmail.com Tue Sep 4 00:26:15 2012 From: illusionteam at gmail.com (=?windows-1252?Q?C=E1ssio_Pazinatto?=) Date: Mon, 3 Sep 2012 19:26:15 -0300 Subject: [Scilab-users] ilib_for_link Mac OS X 10.8 In-Reply-To: <87B3481C-BC7D-4FA2-8673-B54E0B5EF15E@gmail.com> References: <77EEE5D3-82A5-4EF6-A407-DAF5416C22E5@gmail.com> <50411278.4040102@scilab-enterprises.com> <19256A23-A432-492A-A803-AF3B059CF138@gmail.com> <5041F07C.1020006@scilab-enterprises.com> <87B3481C-BC7D-4FA2-8673-B54E0B5EF15E@gmail.com> Message-ID: <3CE579A9-6ABA-4AA3-A9D9-FB066004D6A0@gmail.com> Problem solved. Apple changed the way that environment variables works on Mountain Lion? Fix: http://overwatering.org/blog/2012/08/setting-path-osx-mountain-lion/. Thanks, C?ssio From vogt at centre-cired.fr Tue Sep 4 11:03:18 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 04 Sep 2012 11:03:18 +0200 Subject: [Scilab-users] One dimension solver Message-ID: <5045C3D6.2010203@centre-cired.fr> Hi Does anyone have a 1D-solver coded? Compared to fsolve, a 1D solver could store every try x and every y=f(x), and then just use interpln to guess a zero (would work only for monotonous functions, but this is what i need) Thx -- Adrien Vogt-Schilb (Cired) Tel: (+33) 1 43 94 *73 77* -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonge at aia.es Tue Sep 4 12:52:37 2012 From: leonge at aia.es (=?ISO-8859-1?Q?Gladys_Eliana_Le=F3n_Sur=F3s?=) Date: Tue, 4 Sep 2012 12:52:37 +0200 Subject: [Scilab-users] Fwd: Question about user's defined Blocks Scilab/Xcos In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Gladys Eliana Le?n Sur?s Date: 2012/8/28 Subject: Question about user's defined Blocks Scilab/Xcos To: users at lists.scilab.org Dear Mrs, I have a question concerning Modelica Blocks created in Scilab/Xcos and added to the palette in XCos. I create a few blocks and added to the XCos palette using the following script: This is the example for the a Block named "Line" *************************** loadXcosLibs(); getd("Path to directory"); %MODELICA_USER_LIBS = " Path to directory "; modelica_libs = getModelicaPath(); pal = xcosPal("Name of Palette"); scs_m = Line("define"); export_to_hdf5(" Path to directory\H5\Line.h5 ","scs_m"); clear scs_m; pal = xcosPalAddBlock(pal," Path to directory\H5\Line.h5"," Path to directory\ICONS\Line.png"," Path to directory \ICONS\Line.svg"); xcosPalAdd(pal); clear pal; ************************** Everything works well, but when I build a diagram using my Blocks in Xcos and save it, the images of the Blocks dissapear and I just see square boxes with pins (see the figure below). Could you help with this issue? Thank you. Best regards, Gladys L. [image: Im?genes integradas 1] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 82549 bytes Desc: not available URL: From sahallacy at hotmail.com Tue Sep 4 17:55:09 2012 From: sahallacy at hotmail.com (steven hallacy) Date: Tue, 4 Sep 2012 10:55:09 -0500 Subject: [Scilab-users] link: can not load a x64 dll in a x86 environment Message-ID: Hello, I am using the 32 bit version of scilab-5.4.0-beta-3 on a 64 bit OS. Is there any quick fix for Bug #11525? I believe the bug is also in beta 1 and 2. When I try to create a CBLOCK in xcos, the following link error displays in the Scilab console: loading initial environment Generate a loader file Generate a Makefile Running the Makefile Compilation of toto.c Building shared library (be patient) Generate a cleaner file link: can not load a x64 dll in a x86 environment. Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Tue Sep 4 21:45:59 2012 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 04 Sep 2012 21:45:59 +0200 Subject: [Scilab-users] pfprintf, msscanf errors In-Reply-To: <001401cd8622$019144c0$04b3ce40$@com> References: <001401cd8622$019144c0$04b3ce40$@com> Message-ID: <50465A77.9050405@limsi.fr> Hello, I don't know if you still need help but I have some advice... Le 29/08/2012 22:08, Steve Curtin a ?crit : > Hello All, > > > I have a question about formatted input and output which seems to fail > almost capriciously. > > For instance I have the following line in a program: > > mfprintf(outf,'%f\t%f\n',var_a,var_b); > > and I sometimes (not not always) get the following error: > > !--error 998 > > printf: Not enough arguments. > What is the content of var_a and var_b in case where it doesn't work? Are they scalars? Vectors? Matrices? > Likewise I?ve tested the following line in a small program, the > following line works fine and reads all the variables > > [numargs, var1, var2, var3, var4, var5, > var6, var7, var8, var9, var10, var11, var12, var13, var14, var15, var16]... > > = msscanf(inline,'%s %s > %s %d %d %d %f %f %f %f %d %f'); > > but when I paste it into a bigger one I get the following: > > f(inline,'%s %s %s %d %d %d %f %f %f %f %d %f') > > !--error 207 > > sscanf: Wrong type for argument 1: Matrix of strings expected. > This means that your "inline" variable is not a string matrix (type typeof(inline) to check). Also in which variables do you store the result? > I?m more used to straight compiled C, is there another approach that > works better for SciLab? > I usually use mfprinf and mfscanf for formatted I/O (because I use tools written in different langauges and text files are easy to read in any of them). From my humble experience it often takes a long time to debug I/O. Scilab has binary I/O (see save and load) which may be convenient too. I think they are portable from one platform to another. HTH, Mathieu > This is on the Windows platform, I?m using 5.3.3. and the 5.4.0 beta2. > > Thanks, Steve > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Andreas.Stewering-Bone at gmx.de Wed Sep 5 08:10:08 2012 From: Andreas.Stewering-Bone at gmx.de (Andreas Stewering-Bone) Date: Wed, 05 Sep 2012 08:10:08 +0200 Subject: [Scilab-users] XCos Message-ID: <20120905061008.240470@gmx.net> Hello, I have some general question about creating xcos blocks: Firstly I use scilab 5.4 beta 3 on 32-Bit Debian Squeeze, binary version 1. Debug output: I have a type 4 computational function writen in c. I try to print some debug output to the scilab console. printf fails, it prints to stdout, that is my xterm. I tried to use Coserror but without any result in the scilab or xterm terminal. scicos.h and scicos_block4.h do not provide any other possibility, so what possibility do i have? 2. Grafical Update: If I change a block parameter which create a new block output, the output is shown, but the output label for the new port is not shown. But if i reopen the parameter dialog and set the parameter again the Label is shown. 3. Input/output datatype: If I create new block outputs I create them via set_io, everything is ok, the block detail dialog shows the correct settings. But if I try to connect the port does not have the correct datatypes. I appended the detail dialog and the model. If you look at the configuration, port 1,2 have correct datatype (uint8), 3 +4 should be real, but if I connect a block it shows me that it has a invalid datatype 8 => uint8. Is there an model update missing? Besr regards Andreas -------------- next part -------------- A non-text attachment was scrubbed... Name: block_details.png Type: image/png Size: 24013 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: model_can.png Type: image/png Size: 37615 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Wed Sep 5 09:13:44 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 05 Sep 2012 09:13:44 +0200 Subject: [Scilab-users] XCos In-Reply-To: <20120905061008.240470@gmx.net> References: <20120905061008.240470@gmx.net> Message-ID: <1346829224.1938.6.camel@work> Hello, > 1. Debug output: I have a type 4 computational function writen in c. I try to print some debug output to the scilab console. printf fails, it prints to stdout, that is my xterm. I tried to use Coserror but without any result in the scilab or xterm terminal. scicos.h and scicos_block4.h do not provide any other possibility, so what possibility do i have? Did you try sciprint from sciprint.h - output_stream.dll ? > 2. Grafical Update: If I change a block parameter which create a new block output, the output is shown, but the output label for the new port is not shown. But if i reopen the parameter dialog and set the parameter again the Label is shown. I guess this is a bug, can you report it to bugzilla.scilab.org with a reduced test_case please ? > 3. Input/output datatype: If I create new block outputs I create them via set_io, everything is ok, the block detail dialog shows the correct settings. But if I try to connect the port does not have the correct datatypes. I appended the detail dialog and the model. > If you look at the configuration, port 1,2 have correct datatype (uint8), 3 +4 should be real, but if I connect a block it shows me that it has a invalid datatype 8 => uint8. Is there an model update missing? Maybe also a bug, are you able to reproduce with GAINBLK (from the standard palette) ? -- Cl?ment DAVID Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Mobile: +33.6.26.26.51.90 Phone: +33.2.90.22.78.96 http://www.scilab-enterprises.com From jrafaelbguerra at hotmail.com Mon Sep 10 04:44:47 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 9 Sep 2012 19:44:47 -0700 (PDT) Subject: [Scilab-users] Scilab function with variable input and output arguments Message-ID: <1347245087805-4024796.post@n3.nabble.com> Hello all, I have a Scilab function defined with variable input and output arguments: function [varargout] = myfunction(dz,varargin); ... this function receives as input N matrices and outputs other N matrices (N is variable). I managed to handle the variable inputs by defining a list (of matrices): backuplist = list(); and by putting in this backuplist the N matrices to be processed by myfynction: [matrix1 matrix2 .. matrixN] = myfunction(dz,backuplist(1:N)); The coding problem lies with the left-hand side of the function call above: one needs to specify all the output variables but their number is variable during the execution of the program. It seems that in Scilab we cannot use the same trick as for the input, i.e., to define a list of N matrices: matrixlist = list(); and call myfunction as: matrixlist(1:N)= myfunction(dz,backuplist(1:N)); How can this general Scilab programming problem be handled? Thanks in advance for your advice, Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-function-with-variable-input-and-output-arguments-tp4024796.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Mon Sep 10 08:43:42 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 10 Sep 2012 08:43:42 +0200 Subject: [Scilab-users] Scilab function with variable input and output arguments In-Reply-To: <1347245087805-4024796.post@n3.nabble.com> References: <1347245087805-4024796.post@n3.nabble.com> Message-ID: <504D8C1E.2050501@inria.fr> May be you can simply define your function as function output_matrix_list = myfunction(dz,input_matrix_list); and call it as follow: out = myfunction(dz,backuplist) for i=1:N process the matrix out(i) end Serge Steer Le 10/09/2012 04:44, Rafael Guerra a ?crit : > Hello all, > > I have a Scilab function defined with variable input and output arguments: > function [varargout] = myfunction(dz,varargin); > ... > this function receives as input N matrices and outputs other N matrices (N > is variable). > > I managed to handle the variable inputs by defining a list (of matrices): > backuplist = list(); > and by putting in this backuplist the N matrices to be processed by > myfynction: > [matrix1 matrix2 .. matrixN] = myfunction(dz,backuplist(1:N)); > > The coding problem lies with the left-hand side of the function call above: > one needs to specify all the output variables but their number is variable > during the execution of the program. > > It seems that in Scilab we cannot use the same trick as for the input, i.e., > to define a list of N matrices: > matrixlist = list(); > and call myfunction as: > matrixlist(1:N)= myfunction(dz,backuplist(1:N)); > > How can this general Scilab programming problem be handled? > > Thanks in advance for your advice, > Rafael > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-function-with-variable-input-and-output-arguments-tp4024796.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From huangbinapple at hotmail.com Mon Sep 10 15:22:53 2012 From: huangbinapple at hotmail.com (=?gb2312?B?u8ax8w==?=) Date: Mon, 10 Sep 2012 21:22:53 +0800 Subject: [Scilab-users] How to let scilab do what matlab can do? Message-ID: Hi I am learning matlab, but I can?t afford it, so I am using scilab as a substitute of matlab. But I have found some function that can be used in matlab can?t be used in scilab, like ?rectpulse()? ,?factor()?. Could you help me finding a solution? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Sep 10 18:33:35 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Mon, 10 Sep 2012 18:33:35 +0200 (CEST) Subject: [Scilab-users] How to let scilab do what matlab can do? In-Reply-To: Message-ID: <1105102902.191324685.1347294815843.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, >.../... >But I have found some function that can be used in matlab can?t be used in scilab, like ?rectpulse()? recpulse(x,n) // can be done with x.*.ones(n,1) // Example: -->x=grand(3,2,'uin',0,20) x = 2. 15. 18. 3. 20. 7. -->x.*.ones(4,1) ans = 2. 15. 2. 15. 2. 15. 2. 15. 18. 3. 18. 3. 18. 3. 18. 3. 20. 7. 20. 7. 20. 7. 20. 7. >?factor()?. ? Same with Scilab: help.scilab.org/docs/current/en_US/factor.html Regards Samuel From mathieu.dubois at limsi.fr Mon Sep 10 19:12:17 2012 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 10 Sep 2012 19:12:17 +0200 Subject: [Scilab-users] =?utf-8?q?How_to_let_scilab_do_what_matlab_can_do?= =?utf-8?q?=3F?= In-Reply-To: References: Message-ID: <8eaa851420ef5026cd3b7a2f80e38fb9@limsi.fr> Hello, On 2012-09-10 15:22, ?? wrote: > Hi > > I am learning matlab, but I can?t afford it, so I am using scilab as > a substitute of matlab. But I have found some function that can be > used in matlab can?t be used in scilab, like ?rectpulse()? > ,?factor()?. Could you help me finding a solution? > Scilab is not a clone of matlab (you can find a famous clone of matlab very easily on the internet). If you want to stay with scilab (which in my opinion is better for some stuff than matlab most notably string processing) there is an help topic for that. You can find equivalent function on this page: http://help.scilab.org/docs/5.3.3/en_US/section_36184e52ee88ad558380be4e92d3de21.html Otherwise try to search in the help. > Thanks! From Aaron81194 at aol.com Mon Sep 10 20:13:15 2012 From: Aaron81194 at aol.com (hi) Date: Tue, 11 Sep 2012 02:13:15 +0800 Subject: [Scilab-users] gift Message-ID: <270FBB9D56C6550C635594EAE063B923@jd> An HTML attachment was scrubbed... URL: From ralph at kaliberimaging.com Mon Sep 10 18:09:48 2012 From: ralph at kaliberimaging.com (Ralph Reinhold) Date: Mon, 10 Sep 2012 11:09:48 -0500 Subject: [Scilab-users] Time out on Scilab 5.4.0 Beta 2 Message-ID: <504E10CC.4090606@kaliberimaging.com> Hi Scilab times out, if I'm not using it, after a few minutes. Is this a bug? If not, how do I change the time it takes. I need much more time. Ralph -- Ralph Reinhold, DSc Director of Science and Innovation Kaliber Imaging, Inc. www.kaliberimaging.com 773-420-8217 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Mon Sep 10 22:01:20 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 10 Sep 2012 22:01:20 +0200 Subject: [Scilab-users] Time out on Scilab 5.4.0 Beta 2 In-Reply-To: <504E10CC.4090606@kaliberimaging.com> References: <504E10CC.4090606@kaliberimaging.com> Message-ID: <504E4710.8050504@scilab-enterprises.com> Hello, Le 10/09/2012 18:09, Ralph Reinhold a ?crit : > Hi > Scilab times out, if I'm not using it, after a few minutes. Is this a > bug? If not, how do I change the time it takes. I need much more time. You are probably hit by the bug: http://bugzilla.scilab.org/show_bug.cgi?id=11846 We are working on it and it should be fixed in the next few days. Sylvestre -- Sylvestre Ledru Operations Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Tue Sep 11 05:12:24 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 11 Sep 2012 00:12:24 -0300 Subject: [Scilab-users] Scilab function with variable input and output arguments In-Reply-To: <504D8C1E.2050501@inria.fr> References: <1347245087805-4024796.post@n3.nabble.com> <504D8C1E.2050501@inria.fr> Message-ID: Serge, Thank you very much for your reply, your suggested solution worked like a charm. Best regards Rafael -----Original Message----- From: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer Sent: Monday, September 10, 2012 3:44 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Scilab function with variable input and output arguments May be you can simply define your function as function output_matrix_list = myfunction(dz,input_matrix_list); and call it as follow: out = myfunction(dz,backuplist) for i=1:N process the matrix out(i) end Serge Steer Le 10/09/2012 04:44, Rafael Guerra a ?crit : > Hello all, > > I have a Scilab function defined with variable input and output arguments: > function [varargout] = myfunction(dz,varargin); > ... > this function receives as input N matrices and outputs other N > matrices (N is variable). > > I managed to handle the variable inputs by defining a list (of matrices): > backuplist = list(); > and by putting in this backuplist the N matrices to be processed by > myfynction: > [matrix1 matrix2 .. matrixN] = myfunction(dz,backuplist(1:N)); > > The coding problem lies with the left-hand side of the function call above: > one needs to specify all the output variables but their number is > variable during the execution of the program. > > It seems that in Scilab we cannot use the same trick as for the input, > i.e., to define a list of N matrices: > matrixlist = list(); > and call myfunction as: > matrixlist(1:N)= myfunction(dz,backuplist(1:N)); > > How can this general Scilab programming problem be handled? > > Thanks in advance for your advice, > Rafael > > > > -- > View this message in context: > http://mailinglists.scilab.org/Scilab-function-with-variable-input-and > -output-arguments-tp4024796.html Sent from the Scilab users - Mailing > Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From w.schulz at ove.at Tue Sep 11 10:07:19 2012 From: w.schulz at ove.at (W.Schulz) Date: Tue, 11 Sep 2012 01:07:19 -0700 (PDT) Subject: [Scilab-users] Displaying an image in a subplot Message-ID: <1347350839108-4024805.post@n3.nabble.com> Hello, I'm using SCILAB 5.3.3 (64 bit) but (also tried it with SCILAB 5.4 beta 3 - 64 bit) on Win64 and want to display an image in a subplot. For this purpose I'm using the "Image Processing Design Toolbox" v8.3.1. I do not understand the reason but I cannot display an image in a subplot. Any idea why? Any idea what I can use to display it in a subplot? The code is quite simple: im=ReadImage('100612_151001_000003_130.bmp'); subplot (1,2,2) ShowImage(im, 'Result'); subplot(1,2,1) plot2d(t,z_E) Thanks for your help Wolfgang -- View this message in context: http://mailinglists.scilab.org/Displaying-an-image-in-a-subplot-tp4024805.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Sep 11 15:41:55 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 11 Sep 2012 15:41:55 +0200 Subject: [Scilab-users] Displaying an image in a subplot In-Reply-To: <1347350839108-4024805.post@n3.nabble.com> References: <1347350839108-4024805.post@n3.nabble.com> Message-ID: <504F3FA3.8000604@free.fr> Hello, Le 11/09/2012 10:07, W.Schulz a ?crit : > Hello, > I'm using SCILAB 5.3.3 (64 bit) but (also tried it with SCILAB 5.4 beta 3 - > 64 bit) on Win64 and want to display an image in a subplot. > For this purpose I'm using the "Image Processing Design Toolbox" v8.3.1. > I do not understand the reason but I cannot display an image in a subplot. > Any idea why? > Any idea what I can use to display it in a subplot? > This problem and a solution have been dealt with in the following page: http://forge.scilab.org/index.php/p/IPD/issues/354/ Regards Samuel From dkajah at gmail.com Tue Sep 11 15:48:36 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Tue, 11 Sep 2012 10:48:36 -0300 Subject: [Scilab-users] Walk between SciNotes tabs Message-ID: This can sound very stupid, but i cant find the hotkey way to walk along my macros in SciNotes, one can be very tired of clicking things in windows style XS. Do you guys have any idea ? thank you ! -- *Democracia Digital Direta Informe-se: * http://pontosdecultura.org.br/noticias/carta-democracia-direta-em-circulacao/ *AfroAmbiental eh sociedade em Axe e Diversidade* http://afroambiental.org Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal(workflows): http://www.nightsc.com.br/aa/interface_v0.1.php *look for SUoU9 user, or do ctrl+f and SUoU9* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Tue Sep 11 15:50:30 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 11 Sep 2012 15:50:30 +0200 Subject: [Scilab-users] Walk between SciNotes tabs In-Reply-To: References: Message-ID: On 2012-09-11 15:48, Daniel Penalva wrote: > This can sound very stupid, but i cant find the hotkey way to walk > along my macros in SciNotes, one can be very tired of clicking things > in windows style XS. > Do you guys have any idea ? CTRL+page up / CTRL+page down (like in web browsers) will probably do the job. Sylvestre From adrianomeis03 at gmail.com Tue Sep 11 15:53:38 2012 From: adrianomeis03 at gmail.com (adriano meis) Date: Tue, 11 Sep 2012 06:53:38 -0700 (PDT) Subject: [Scilab-users] problems with tools for accurate computation Message-ID: <1347371618567-4024810.post@n3.nabble.com> Hi, I have Scilab 5.3.3. I need to execute very accurate computations with Scilab. Looking for some tools in the web, I found two possible instruments: QUPAT and XNUM. ////////////// QUPAT PACKAGE I have downloaded mupat package (both slow generic, and windows fast versions): http://www.mi.kagu.tus.ac.jp/qupat.html http://www.mi.kagu.tus.ac.jp/qupat/mupat_ver02.zip http://www.mi.kagu.tus.ac.jp/qupat/mupat_win_ver02.zip In folder "C:\mupat_ver02\MuPAT\macros" I Have only *.sci files, as dd.sci and qd.sci. Following istallation instructions in guide "users_guide.pdf" inserted in this zip file, I obtain: " Creazione delle macro... Building macros in C:\mupat_ver02\MuPAT\macros\ Creazione del file di aiuto... // translated: creation of help file Creazione del documento principale in corso: // translated: creation of main file C:\mupat_ver02\MuPAT\help\en_US\ Building the manual file [javaHelp] in C:\mupat_ver02\MuPAT\help\en_US\. Total files without example: 1 Total generated html files: 33 Creazione di loader.sce ... // translated: creation of loader.sce file Esecuzione effettuata. // // translated: done " As a result, in folder "C:\mupat_ver02\MuPAT\macros" I find many new files: a .bin file for each .sci file, with the same name. Moreover loader.sce file now really exists. Here you are its very short inner code: " // This file is released under the 3-clause BSD license. See COPYING-BSD. // Generated by builder.sce: Please, do not edit this file try getversion("scilab"); catch error("Scilab 5.0 or more is required."); end; exec(get_absolute_file_path("loader.sce")+"etc\"+"MuPAT.start"); " Now the guide states that instruction dd(1) should give as a result : " ans = ans(1) !dd hi lo ! ans(2) 1. ans(3) 0. " Differently, I obtain this unpleasent result: " dd(1) !--error 4 C'? una variabile non definita: dd // translated: undefined variable: dd " This problem exists with both downloaded versions (slow generic, and windows fast versions), of files. Do you obtain my same problem with it? How can I solve this problem? //////////////// XNUM PACKAGE I have downloaded xnum package: http://digilander.libero.it/foxes/xnum_pack.zip Following istallation instructions in guide "users_guide.pdf" inserted in this zip file, I obtain: " Startup execution: loading initial environment L'archivio condiviso ? stato caricato. // translated: shared archive has been created Il collegamento ? stato effettuato. // translated: linking has been done getf('xnum.sci'); !--error 4 C'? una variabile non definita: getf // translated: undefined variable: getf at line 18 of exec file called by : if ~(%fileToExec == "") then exec(%fileToExec); disp(msprintf(gettext("Execution done.\n"))); end clear("%fi while executing a callback " Do you obtain my same problem with it? How can I solve this problem? ////////////////////////////// Do you Know other different packages to download (with the same goal), that don't create these problems? Thanks, adriano meis -- View this message in context: http://mailinglists.scilab.org/problems-with-tools-for-accurate-computation-tp4024810.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dkajah at gmail.com Tue Sep 11 16:11:32 2012 From: dkajah at gmail.com (Daniel Penalva) Date: Tue, 11 Sep 2012 11:11:32 -0300 Subject: [Scilab-users] Walk between SciNotes tabs In-Reply-To: References: Message-ID: oh i didnt tried it, will be VERY helpful thank you :-) On Tue, Sep 11, 2012 at 10:50 AM, Sylvestre Ledru < sylvestre.ledru at scilab-enterprises.com> wrote: > On 2012-09-11 15:48, Daniel Penalva wrote: > >> This can sound very stupid, but i cant find the hotkey way to walk >> along my macros in SciNotes, one can be very tired of clicking things >> in windows style XS. >> Do you guys have any idea ? >> > CTRL+page up / CTRL+page down (like in web browsers) will probably do the > job. > > Sylvestre > > ______________________________**_________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/**mailman/listinfo/users > -- *Democracia Digital Direta Informe-se: * http://pontosdecultura.org.br/noticias/carta-democracia-direta-em-circulacao/ *AfroAmbiental eh sociedade em Axe e Diversidade* http://afroambiental.org Daniel Penalva State related activity, currently: Phd - Physics in Institute for Theoretical Physics - http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php Transparency portal(workflows): http://www.nightsc.com.br/aa/interface_v0.1.php *look for SUoU9 user, or do ctrl+f and SUoU9* FLOSS and related ideas enthusiastic -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkpsusmitaa at gmail.com Wed Sep 12 10:37:32 2012 From: bkpsusmitaa at gmail.com (Rajib & Susmita Bandopadhyay) Date: Wed, 12 Sep 2012 14:07:32 +0530 Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals Message-ID: <1347439052.7176.4.camel@Squeeze> Dear friends, Could you please inform me how could I generate multiply-armed equiangular (or Logarithmic) spirals in Linux? Since I use Debian Squeeze, I used openofficemath software to generate the formula printed below. The form should be as follows (with summation convention, this is a series): with the open office Math format as r_n = a.e^(b*%theta).e^(2 *%pi/n), with graph for every r, i,e, r1, r2, r3,..., rn, plotted separately. Eagerly awaiting your response. Regards, bkpsusmitaa -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: unknown-L8FCKW Type: image/png Size: 7924 bytes Desc: not available URL: From marcelladrummond at gmail.com Wed Sep 12 14:43:18 2012 From: marcelladrummond at gmail.com (Marcella Drummond) Date: Wed, 12 Sep 2012 14:43:18 +0200 Subject: [Scilab-users] Scilab on Mac OS X version 10.7.3 Message-ID: <222E5B8A-8FEB-421C-8D61-138E20C23B8F@gmail.com> Hello, I'm having problems with opening scliab 5.3.3 on my Mac OS X version 10.7.3. It doesn't work. It doesn't even open. I'd like to confirm if it has already been reported and also to know if you already have a solution for that. bst rgds, MD. From sylvestre.ledru at scilab-enterprises.com Wed Sep 12 14:46:26 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Wed, 12 Sep 2012 14:46:26 +0200 Subject: [Scilab-users] Scilab on Mac OS X version 10.7.3 In-Reply-To: <222E5B8A-8FEB-421C-8D61-138E20C23B8F@gmail.com> References: <222E5B8A-8FEB-421C-8D61-138E20C23B8F@gmail.com> Message-ID: <50508422.70103@scilab-enterprises.com> On 12/09/2012 14:43, Marcella Drummond wrote: > Hello, > > I'm having problems with opening scliab 5.3.3 on my Mac OS X version 10.7.3. It doesn't work. It doesn't even open. > > I'd like to confirm if it has already been reported and also to know if you already have a solution for that. Scilab 5.4.0 beta 3 should work on your version of Mac OS X. Sylvestre -- ----------------------------- Sylvestre Ledru Operations manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From w.schulz at ove.at Wed Sep 12 16:46:11 2012 From: w.schulz at ove.at (W.Schulz) Date: Wed, 12 Sep 2012 07:46:11 -0700 (PDT) Subject: [Scilab-users] Displaying an image in a subplot In-Reply-To: <504F3FA3.8000604@free.fr> References: <1347350839108-4024805.post@n3.nabble.com> <504F3FA3.8000604@free.fr> Message-ID: <1347461171526-4024816.post@n3.nabble.com> Thanks a lot for this hint. With this function it works. Did you report the bug to the scilab bugzilla? Wolfgang -- View this message in context: http://mailinglists.scilab.org/Displaying-an-image-in-a-subplot-tp4024805p4024816.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Wed Sep 12 21:57:19 2012 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 12 Sep 2012 21:57:19 +0200 (CEST) Subject: [Scilab-users] Displaying an image in a subplot In-Reply-To: <1347461171526-4024816.post@n3.nabble.com> Message-ID: <1936911185.199992232.1347479839295.JavaMail.root@zimbra75-e12.priv.proxad.net> >Thanks a lot for this hint. With this function it works. >Did you report the bug to the scilab bugzilla? The forge where it is reported is the only relevant place, since IPD is an external module. From d.a_n.ii at hotmail.com Fri Sep 14 20:07:36 2012 From: d.a_n.ii at hotmail.com (=?utf-8?B?zrXRl9C3IERhbmllbGEgzrXRl9C3IC4uLi4=?=) Date: Fri, 14 Sep 2012 13:07:36 -0500 Subject: [Scilab-users] Problem with the graphics in scilab Message-ID: Good Afternoon, I'm engineering student, I use scilab 3 years ago but one moment to another I have problems when I run programs / codes to graph functions, when it will open the window to close the program graph. I searched a lot of help but nobody has found the solutionlike to know whether you can help me to fix this problem. Thank you in advance because Scilab is a program I need daily. Attached the specifications of my computer. Daniela Pe?a A.Bucaramanga, Colombia. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: especificaciones.png Type: image/png Size: 190887 bytes Desc: not available URL: From jrafaelbguerra at hotmail.com Sat Sep 15 17:06:46 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 15 Sep 2012 08:06:46 -0700 (PDT) Subject: [Scilab-users] Input data via drop-down lists in Scilab? Message-ID: <1347721606262-4024821.post@n3.nabble.com> Can data be input (/selected) via drop-down lists in Scilab? In particular, is it possible to create in the same GUI window several drop-down lists linked to different output variables? The command 'x_choose' seems to be an option for single selection and output but it does not seem to handle multiple drop-down lists and outputs. Thanks and regards Rafael -- View this message in context: http://mailinglists.scilab.org/Input-data-via-drop-down-lists-in-Scilab-tp4024821.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Sat Sep 15 20:23:13 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sat, 15 Sep 2012 20:23:13 +0200 Subject: [Scilab-users] Problem with the graphics in scilab In-Reply-To: References: Message-ID: <5054C791.2030106@laas.fr> Le 14/09/12 20:07, ??? Daniela ??? .... a ?crit : > Good Afternoon, > I'm engineering student, I use scilab 3 years ago but one moment to another I have problems when I run programs / codes to graph functions, when it will open the window to close the program graph. > I searched a lot of help but nobody has found the solutionlike to know whether you can help me to fix this problem. > Thank you in advance because Scilab is a program I need daily. > Attached the specifications of my computer. > > Daniela Pe?a A.Bucaramanga, Colombia. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi Daniela, I did not understans what your problem is exactly: what kind of problem do you get when calling a plotting function? Is Scilab crashing? Also, which version of scilab are you using: 5.3.x, 5.4beta? Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkpsusmitaa at gmail.com Sun Sep 16 17:29:37 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Sun, 16 Sep 2012 08:29:37 -0700 (PDT) Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347439052.7176.4.camel@Squeeze> References: <1347439052.7176.4.camel@Squeeze> Message-ID: <1347809377861-4024823.post@n3.nabble.com> Actually, I want to generate a multiarmed spiral such as this: http://mailinglists.scilab.org/file/n4024823/Multiarmed.Spiral.png Can someone help? Regards -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024823.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Sep 16 18:58:18 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 16 Sep 2012 18:58:18 +0200 Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347809377861-4024823.post@n3.nabble.com> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> Message-ID: <5056052A.5040208@free.fr> Le 16/09/2012 17:29, bkpsusmitaa a ?crit : > Actually, I want to generate a multiarmed spiral such as this: > http://mailinglists.scilab.org/file/n4024823/Multiarmed.Spiral.png > Can someone help? > Regards > OK, thank you for the illustration. For instance, you may use something like this: a = (0:11)/12*360; // starting angles r = (0:30)' // range of radii R = r*ones(a) // matrix of radii for all branches A = r*ones(a)+ones(r)*a // matrix of angles for all branches. You can change the f(A,R) relationship X = R.*cosd(A) // polar to cartesian transform Y = R.*sind(A) // .. plot(X,Y) a = gca(); a.isoview = "on"; Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-3.png Type: image/png Size: 6700 bytes Desc: not available URL: From arctica1963 at gmail.com Sun Sep 16 23:09:09 2012 From: arctica1963 at gmail.com (arctica1963) Date: Sun, 16 Sep 2012 14:09:09 -0700 (PDT) Subject: [Scilab-users] Matlab to Scilab conversion issues Message-ID: <1347829749711-4024825.post@n3.nabble.com> Hello, I have tried to run the mfile2sci conversion on the Matlab file with a few compatibility issues that I isolated from the converted file. tukeywin - a tapered cosine window which was a function in a Matlab toolbox [ cannot see an obvious Scilab function(s) ] ifft2 - 2D inverse discrete fourier transform [ is this the same as Scilab ifft ? ] figure - creates a graphics object window [ a Scilab equivalent to open a new graphics window? ] The original filename began with a number so had to change that to get the conversion to run. I have added the converted file below: ------------------------------------------------------------------------------------------------ // Display mode mode(0); // Display warning for floating point exception ieee(1); //3DINVER.M: A MATLAB program to invert the gravity anomaly over a 3-D horizontal density interface by Parker-Oldenburg''s algorithm //David Gomez Ortiz and Bhrigu N P Agarwal // //Iterative process of Oldenburg(1974) //using the Parker''s (1973) equation //Given a gravity map as input (bouin)in mGal //as well as density contrast (contrast) in gr/cm3 //and the mean source depth (z0) in Km //the program computes the topography of the interface (topoout) in Km // //density contrast is positive (e. g. mantle-crust) //mean depth reference is positive downwards(z0) //It is also necessary to include map length in Km (longx and longy) //considering a square area, the number of rows or columns (numrows and numcolumns) //and the convergence criterion (criterio) in Km // //The maximum number of iterations is 10 // //The program computes also the gravity map (bouinv) due to the computed relief(forward modelling) //The cut-off frequencies (SH and WH) for the filter in order to achieve //convergence have to be also previously defined (as 1/wavelength in Km) // bouin = "c:\gravityinput.dat"; //path and name of the input gravity file, e.g. c:\gravityinput.dat topoout = "c:\topooutput.dat"; //path and name of the output topography file, e.g. c:\topooutput.dat bouinverted = "c:\bouinv.dat"; //path and name of the output gravity file, e.g. c:\bouinv.dat numrows = 112; //e. g. 112 data in Y direction numcolumns = 112; // e. g. 112 data in X direction longx = 666; //e.g. 666 Km data length in X direction longy = 666; //e.g. 666 Km data length in Y direction contrast = 0.4; //density contrast value in g/cm3, e. g. 0.4 criterio = 0.02; //convergence criterion in Km, e. g. 0.02 z0 = 30; //mean reference depth in Km, e. g. 30 Km WH = 0.01; //smaller cut-off frequency (1/wavelength in Km) e. g. 0.01, i.e. 1/100 Km SH = 0.012; //greater cut-off frequency (1/wavelength in Km) e. g. 0.012, i.e. 1/83.3 Km truncation = 0.1; //truncation window data length in % per one, i.e, 10% fid = mtlb_fopen(bouin); // L.40: No simple equivalent, so mtlb_fscanf() is called. bou = mtlb_fscanf(fid,"%f",[numcolumns,numrows]); //open the input gravity file, read it and stores it in variable ''bou'' mclose(fid) // Calculate mean value of the gravity map fftbou = fft2(bou); //fft2 computes the 2-D FFT of a 2-D matrix (bou, in this case) meangravity = fftbou(1,1)/(numrows*numcolumns); //the first term of the 2-D fft array divided by the product of the number of rows and columns provides the mean gravity value of the map // Demean data disp("Data sets demeaned"); //displays the text ''Data sets demeaned'' on the screen bou = bou-meangravity; //input gravity map is demeaned //A cosine Tukey window with a truncation of 10% default is applied // !! L.52: Matlab toolbox(es) function tukeywin not converted, original calling sequence used wrows = tukeywin(numrows,truncation); //this computes a 1-D cosine Tukey window of the same length as the original matrix input rows and with the truncation defined by the variable ''truncation'' // !! L.53: Matlab toolbox(es) function tukeywin not converted, original calling sequence used wcolumns = tukeywin(numcolumns,truncation); //this computes a 1-D cosine Tukey window of the same length as the original matrix input columns and with the truncation defined by the variable ''truncation'' w2 = mtlb_double(mtlb_e(wrows,":"))*mtlb_double(mtlb_0(mtlb_e(wcolumns,":"))); //this generates a 2-D cosine Tukey window multipliying the 1-D windows bou = bou .*w2'; //the original gravity input matrix, previously demeaned, is multiplied by the cosine window mapabou = bou'; //the original gravity input matrix after demeaning is transposed surf(mapabou); //then it is drawn only for visualization title("Observed gravity anomaly map (mGal)"); //this is the title of the graph fftbou = fft2(mapabou); //the 2-D FFT of the gravity input matrix is computed after demeaning spectrum = abs(fftbou(1:numrows/2,1:numcolumns/2)); //this computes the amplitude spectrum // !! L.64: Matlab function figure not yet converted. // !! L.64: Matlab function figure not yet converted, original calling sequence used. figure surf(spectrum); //and the spectrum is drawn only for visualization title("Amplitude spectrum of the Observed gravity map"); //this is the title of the new graph //the matrix with the frequencies of every harmonic is computed for f = 1:abs(numrows/2+1) for g = 1:abs(numcolumns/2+1) frequency(f,g) = sqrt(((f-1)/longx)^2+((g-1)/longy)^2); end; end; //the matrix of the negative frequencies is also computed frequency2 = frequency(:,$:-1:1); frequency3 = frequency($:-1:1,:); %v0 = frequency($:-1:1,:); frequency4 = %v0(:,$:-1:1); entero = round(numcolumns/2); if (numcolumns/2-entero)==0 then frequency2(:,1) = []; frequency3(1,:) = []; frequency4(:,1) = []; frequency4(1,:) = []; frequencytotal = [frequency,frequency2;frequency3,frequency4]; else frequencytotal = [frequency,frequency2;frequency3,frequency4]; end; frequencytotal($,:) = []; frequencytotal(:,$) = []; frequencytotal = frequencytotal .*(2*%pi); //the frequency (1/wavelength) matrix is transformed to wavenumber (2*pi/wavelength) matrix //The iterative process starts here //The first term of the series, that is constant, is computed and stored in variable ''constant'' up = -fftbou .*exp((z0*100000)*(frequencytotal .*(1/100000))); down = ((2*%pi)*6.67)*contrast; constant = up ./down; //The high-cut filter is constructed filter = frequencytotal .*0; //the filter matrix is set to zero frequencytotal = frequencytotal ./(2*%pi); for f = 1:numrows for g = 1:numcolumns if frequencytotal(f,g)=",criterio) then //it determines if the rms error is greater than the convergence criterion topo3 = mtlb_a(((frequencytotal .^1) ./prod(1:2)) .*fft2(finaltopoinverse .^2),((frequencytotal .^2) ./prod(1:3)) .*fft2(finaltopoinverse .^3)); //the third term of the series is computed using the new topography approach topo3 = topo3 .*filter; //the filter is applied to the third term of the series topo3 = mtlb_s(constant,topo3); //the new topography approach is computed // !! L.140: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse3 = real(mtlb_double(ifft2(topo3))); //and transformed to space domain diference3 = mtlb_s(topoinverse3,topoinverse2); //the diference between the last two topography approaches is computed diference3 = diference3 .^2; rms3 = sqrt(mtlb_sum(mtlb_sum(diference3))/(2*(numrows*numcolumns))); //the new rms error is computed rms = rms3; finaltopoinverse = topoinverse3; //the new topography approach is stored in variable finaltopoinverse iter = 3; //it indicates the iteration step reached if mtlb_logic(rms3,">=",criterio) then //it determines if the convergence criterion has been reached or not topo4 = mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse3 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse3 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse3 .^4)); //the fourth term of the series is computed, and so on... topo4 = topo4 .*filter; topo4 = mtlb_s(constant,topo4); // !! L.153: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse4 = real(mtlb_double(ifft2(topo4))); diference4 = mtlb_s(topoinverse4,topoinverse3); diference4 = diference4 .^2; rms4 = sqrt(mtlb_sum(mtlb_sum(diference4))/(2*(numrows*numcolumns))); rms = rms4; finaltopoinverse = topoinverse4; iter = 4; if mtlb_logic(rms4,">=",criterio) then topo5 = mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse4 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse4 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse4 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse4 .^5)); topo5 = topo5 .*filter; topo5 = mtlb_s(constant,topo5); // !! L.166: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse5 = real(mtlb_double(ifft2(topo5))); diference5 = mtlb_s(topoinverse5,topoinverse4); diference5 = diference5 .^2; rms5 = sqrt(mtlb_sum(mtlb_sum(diference5))/(2*(numrows*numcolumns))); rms = rms5; finaltopoinverse = topoinverse5; iter = 5; if mtlb_logic(rms5,">=",criterio) then topo6 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse5 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse5 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse5 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse5 .^5)),((frequencytotal .^5)/prod(1:6)) .*fft2(topoinverse5 .^6)); topo6 = topo6 .*filter; topo6 = mtlb_s(constant,topo6); // !! L.179: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse6 = real(mtlb_double(ifft2(topo6))); diference6 = mtlb_s(topoinverse6,topoinverse5); diference6 = diference6 .^2; rms6 = sqrt(mtlb_sum(mtlb_sum(diference6))/(2*(numrows*numcolumns))); rms = rms6; finaltopoinverse = topoinverse6; iter = 6; if mtlb_logic(rms6,">=",criterio) then topo7 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse6 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse6 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse6 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse6 .^5)),((frequencytotal .^5)/prod(1:6)) .*fft2(topoinverse6 .^6)),((frequencytotal .^6)/prod(1:7)) .*fft2(topoinverse6 .^7)); topo7 = topo7 .*filter; topo7 = mtlb_s(constant,topo7); // !! L.192: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse7 = real(mtlb_double(ifft2(topo7))); diference7 = mtlb_s(topoinverse7,topoinverse6); diference7 = diference7 .^2; rms7 = sqrt(mtlb_sum(mtlb_sum(diference7))/(2*(numrows*numcolumns))); rms = rms7; finaltopoinverse = topoinverse7; iter = 7; if mtlb_logic(rms7,">=",criterio) then topo8 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse7 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse7 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse7 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse7 .^5)),((frequencytotal .^5)/prod(1:6)) .*fft2(topoinverse7 .^6)),((frequencytotal .^6)/prod(1:7)) .*fft2(topoinverse7 .^7)),((frequencytotal .^7)/prod(1:8)) .*fft2(topoinverse7 .^8)); topo8 = topo8 .*filter; topo8 = mtlb_s(constant,topo8); // !! L.204: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse8 = real(mtlb_double(ifft2(topo8))); diference8 = mtlb_s(topoinverse8,topoinverse7); diference8 = diference8 .^2; rms8 = sqrt(mtlb_sum(mtlb_sum(diference8))/(2*(numrows*numcolumns))); rms = rms8; finaltopoinverse = topoinverse8; iter = 8; if mtlb_logic(rms8,">=",criterio) then topo9 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse8 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse8 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse8 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse8 .^5)),((frequencytotal .^5)/prod(1:6)) .*fft2(topoinverse8 .^6)),((frequencytotal .^6)/prod(1:7)) .*fft2(topoinverse8 .^7)),((frequencytotal .^7)/prod(1:8)) .*fft2(topoinverse8 .^8)),((frequencytotal .^8)/prod(1:9)) .*fft2(topoinverse8 .^9)); topo9 = topo9 .*filter; topo9 = mtlb_s(constant,topo9); // !! L.216: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse9 = real(mtlb_double(ifft2(topo9))); diference9 = mtlb_s(topoinverse9,topoinverse8); diference9 = diference9 .^2; rms9 = sqrt(mtlb_sum(mtlb_sum(diference9))/(2*(numrows*numcolumns))); rms = rms9; finaltopoinverse = topoinverse9; iter = 9; if mtlb_logic(rms9,">=",criterio) then topo10 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) .*fft2(topoinverse9 .^2),((frequencytotal .^2)/prod(1:3)) .*fft2(topoinverse9 .^3)),((frequencytotal .^3)/prod(1:4)) .*fft2(topoinverse9 .^4)),((frequencytotal .^4)/prod(1:5)) .*fft2(topoinverse9 .^5)),((frequencytotal .^5)/prod(1:6)) .*fft2(topoinverse9 .^6)),((frequencytotal .^6)/prod(1:7)) .*fft2(topoinverse9 .^7)),((frequencytotal .^7)/prod(1:8)) .*fft2(topoinverse9 .^8)),((frequencytotal .^8)/prod(1:9)) .*fft2(topoinverse9 .^9)),((frequencytotal .^9)/prod(1:10)) .*fft2(topoinverse9 .^10)); topo10 = topo10 .*filter; topo10 = mtlb_s(constant,topo10); // !! L.228: Matlab function ifft2 not yet converted, original calling sequence used. topoinverse10 = real(mtlb_double(ifft2(topo10))); diference10 = mtlb_s(topoinverse10,topoinverse9); diference10 = diference10 .^2; rms10 = sqrt(mtlb_sum(mtlb_sum(diference10))/(2*(numrows*numcolumns))); rms = rms10; finaltopoinverse = topoinverse10; iter = 10; end; end; end; end; end; end; end; end; iter; //it displays the iteration number at which the process has stopped rms; //it displays the rms error at the end of the iterative process // !! L.246: Matlab function figure not yet converted. // !! L.246: Matlab function figure not yet converted, original calling sequence used. figure; //it opens a new figure surf(mtlb_a(finaltopoinverse,z0)); //it draws the final topography relief map obtained adding the mean reference depth title("Topography of the inverted interface obtained from the Bouguer gravity map (Km)"); //this is the title of the new graph //the matrix is transposed to their output to a surfer file trans = mtlb_a(finaltopoinverse,z0)'; fid = mtlb_fopen(topoout,"w"); // L.252: No simple equivalent, so mtlb_fprintf() is called. mtlb_fprintf(fid,"%6.2f\n",trans); //this opens and writes the output matrix in a ASCII file with a single data column with depths mclose(fid); //At this point, the forward modelling starts. The final topography obtained before is used in the Parker''s formula in order to compute the gravity anomaly due to that interface. The number of terms of the series is the same that the number of iterations reached in the inverse modelling. sumas = 1; //initialize variables. The maximum number of sums is 10, because the maximum number of iterations in the inverse modelling is 10. sumtotal = []; sum2 = []; sum3 = []; sum4 = []; sum5 = []; sum6 = []; sum7 = []; sum8 = []; sum9 = []; sum10 = []; constantbouinv = -(((2*%pi)*6.67)*contrast)*exp(-(z0*100000) .*(frequencytotal .*(1/100000))); //the constant term of the series is computed //The sum of fourier transforms starts here. At each step, a new term of the series is computed and added to the previous one. Then, if the number of sums is lower than the number of iterations, the process continues. sumtotal = ((frequencytotal .^0)/prod(1:1,firstnonsingleton(1:1))) .*fft2(finaltopoinverse .^1); sums = 2; if sums<=iter then sum2 = ((frequencytotal .^1)/prod(1:2)) .*fft2(finaltopoinverse .^2); sums = 3; sumtotal = mtlb_a(sumtotal,sum2); if sumas<=iter then sum3 = ((frequencytotal .^2)/prod(1:3)) .*fft2(finaltopoinverse .^3); sums = 4; sumtotal = mtlb_a(sumtotal,sum3); if sums<=iter then sum4 = ((frequencytotal .^3)/prod(1:4)) .*fft2(finaltopoinverse .^4); sums = 5; sumtotal = mtlb_a(sumtotal,sum4); if sums<=iter then sum5 = ((frequencytotal .^4)/prod(1:5)) .*fft2(finaltopoinverse .^5); sums = 6; sumtotal = mtlb_a(sumtotal,sum5); if sums<=iter then sum6 = ((frequencytotal .^5)/prod(1:6)) .*fft2(finaltopoinverse .^6); sums = 7; sumtotal = mtlb_a(sumtotal,sum6); if sums<=iter then sum7 = ((frequencytotal .^6)/prod(1:7)) .*fft2(finaltopoinverse .^7); sums = 8; sumtotal = mtlb_a(sumtotal,sum7); if sums<=iter then sum8 = ((frequencytotal .^7)/prod(1:8)) .*fft2(finaltopoinverse .^8); sums = 9; sumtotal = mtlb_a(sumtotal,sum8); if sums<=iter then sum9 = ((frequencytotal .^8)/prod(1:9)) .*fft2(finaltopoinverse .^9); sums = 10; sumtotal = mtlb_a(sumtotal,sum9); if sums<=iter then sum10 = ((frequencytotal .^9)/prod(1:10)) .*fft2(finaltopoinverse .^10); sumtotal = mtlb_a(sumtotal,sum10); end; end; end; end; end; end; end; end; end; sumtotal = sumtotal .*constantbouinv; //after the summatory, the final map in frequency domain is computed multipliying the constant term sumtotal(1,1) = 0; // !! L.321: Matlab function ifft2 not yet converted, original calling sequence used. bouinv = real(mtlb_double(ifft2(sumtotal))); //the inverse 2-D FFT provides the gravity map in space domain // !! L.323: Matlab function figure not yet converted. // !! L.323: Matlab function figure not yet converted, original calling sequence used. figure; //opens a new figure surf(bouinv); //it displays the gravity map obtained only for visualization title("Gravity map due to the interface calculated (mGal)"); //this is the title of the new figure // !! L.326: Matlab function figure not yet converted. // !! L.326: Matlab function figure not yet converted, original calling sequence used. figure; //opens a new figure surf(mtlb_s(bouinv,mapabou)); //it displays the map with the diference between the gravity map input and the gravity map of the forward modelling title("Diference between the input gravity map and the one due to the calculated interface (mGal)"); //this is the title of the new figure bouinvtras = bouinv'; //the matrix is transposed to their output to a surfer file fid = mtlb_fopen(bouinverted,"w"); // L.332: No simple equivalent, so mtlb_fprintf() is called. mtlb_fprintf(fid,"%6.2f\n",mtlb_a(bouinvtras,meangravity)); //this opens and writes the output matrix (adding the mean gravity value substracted prior to the FFT) in a ASCII file with a single data column with gravity anomaly mclose(fid); -------------------------------------------------------------------------------- If anyone can provide pointers on the equivalent conversion for Scilab or other guidance, that would be much appreciated. I have not used Matlab myself, so not sure of the way to proceed. Cheers Lester -- View this message in context: http://mailinglists.scilab.org/Matlab-to-Scilab-conversion-issues-tp4024825.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From haasejos at web.de Sat Sep 15 14:23:51 2012 From: haasejos at web.de (haasejos) Date: Sat, 15 Sep 2012 05:23:51 -0700 (PDT) Subject: [Scilab-users] fonttype in messagebox Message-ID: <1347711831498-4024820.post@n3.nabble.com> Hello, I wonder if there is a possibility to change fonttype or/and fontsize in a <>-window. My idea is, to use <> for checking an uploaded textfile and to decide if it is correct or not. To improve readability, it would be nice if the fonttype were Courier New (monospaced). Is there another suggestion, for checking an uploaded testfile? Thanks Josef -- View this message in context: http://mailinglists.scilab.org/fonttype-in-messagebox-tp4024820.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at esterline.com Mon Sep 17 09:53:58 2012 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 17 Sep 2012 09:53:58 +0200 Subject: [Scilab-users] LInear interpolation between 2 curves Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC08B77487@exchsrv.AUXITROL1> Dear all, Is it possible to make a linear interpolation between 2 curves ? note the abscissa are not necessary exactly the same ... In particular terms, I've a curve one at temperature X and another one at temp?rature Y and I would like to have (and to plot) temperature at temperature Z in-between X-Y ... (see attachment) I had a look in interp, interp1 and interpln but nothing sound useful for me ... Am I wrong ? Thanks for any advice 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: interpolation.JPG Type: image/jpeg Size: 83279 bytes Desc: interpolation.JPG URL: From antoine.monmayrant at laas.fr Mon Sep 17 11:06:48 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 17 Sep 2012 11:06:48 +0200 Subject: [Scilab-users] LInear interpolation between 2 curves In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC08B77487@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC08B77487@exchsrv.AUXITROL1> Message-ID: <5056E828.5070703@laas.fr> On 17/09/2012 09:53, Carrico, Paul wrote: > Dear all, > Is it possible to make a linear interpolation between 2 curves ? note > the abscissa are not necessary exactly the same ... > In particular terms, I've a curve one at temperature X and another one > at temp?rature Y and I would like to have (and to plot) temperature at > temperature Z in-between X-Y ... (see attachment) > I had a look in interp, interp1 and interpln but nothing sound useful > for me ... Am I wrong ? > Thanks for any advice > 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. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > You should have a look at ndgrid and cshep2d. Here is a bit a script we use to interpolate scattered data on a grid: [xy,k]=unique([x,y],1); x=x(k); y=y(k); z=z(k); //Interpolation bicubique tl_coef = cshep2d([x y z]); // evaluation on a grid m = 50; X = linspace(min(x),max(x),m); Y = linspace(min(y),max(y),m); [xx,yy] = ndgrid(X,Y); // interpolation bicubique pour intuiter les valeurs Z = eval_cshep2d(xx,yy, tl_coef); Cheers, 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Mon Sep 17 11:14:39 2012 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Mon, 17 Sep 2012 10:14:39 +0100 Subject: [Scilab-users] LInear interpolation between 2 curves In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC08B77487@exchsrv.AUXITROL1> Message-ID: Hi Paul, Assuming the relationship between x, y and T is approximately linear, then you can just match the points on the curves pairwise and interpolate between the pairs using interpln. If your target temperature T is such that T = aT1 + (1-a)T2, then it will produce a point at abscissa x = ax1 + (1-a)x2 and ordinate y = ay1 + (1-a)y2, where (x1,y1) and (x2,y2) are one of the pairs of points. You can build up the two x and y vectors and plot using plot2d. This is usually only useful between your two temperatures (interpolation) and is of limited accuracy outside (extrapolation), but that depends... If you need to get the result on a defined abscissa grid, then you can interpolate in the x and y directions separately, noting that sometimes it makes a difference which order you do this in. Depending on the spacing of your x points, a linear interpolation in the x direction may not be accurate enough. In that case, I would use for example a Lagrange interpolation. HTH, Mike. -----Original Message----- From: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org]On Behalf Of Carrico, Paul Sent: 17 September 2012 08:54 To: users at lists.scilab.org Subject: [Scilab-users] LInear interpolation between 2 curves Dear all, Is it possible to make a linear interpolation between 2 curves ? note the abscissa are not necessary exactly the same ... In particular terms, I've a curve one at temperature X and another one at temp?rature Y and I would like to have (and to plot) temperature at temperature Z in-between X-Y ... (see attachment) I had a look in interp, interp1 and interpln but nothing sound useful for me ... Am I wrong ? Thanks for any advice 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 antoine.monmayrant at laas.fr Mon Sep 17 14:50:26 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 17 Sep 2012 14:50:26 +0200 Subject: [Scilab-users] Matlab to Scilab conversion issues In-Reply-To: <1347829749711-4024825.post@n3.nabble.com> References: <1347829749711-4024825.post@n3.nabble.com> Message-ID: <50571C92.4080002@laas.fr> On 16/09/2012 23:09, arctica1963 wrote: > Hello, > > I have tried to run the mfile2sci conversion on the Matlab file with a few > compatibility issues that I isolated from the converted file. > > tukeywin - a tapered cosine window which was a function in a Matlab toolbox > [ cannot see an obvious Scilab function(s) ] no idea what this is. You can try to write your own replacement function. > ifft2 - 2D inverse discrete fourier transform [ is this the same as Scilab > ifft ? ] I would say yes. > figure - creates a graphics object window [ a Scilab equivalent to open a > new graphics window? ] 'scf()' or 'figure()' should create a new graphics window. I think the issue is that 'figure()' on Matlab is quite a beast that can do a lot of things and accept a lot of input arguments ("make_me_a_coffee" might be one of them). So far, the conversion utility mfile2sci does not know how to translate a call to 'figure()' because for some input arguments there might not be an equivalent in scilab. In your code however, figure is called without argument and it can safely be replaced by 'scf()' or 'figure()'. > > > The original filename began with a number so had to change that to get the > conversion to run. I have added the converted file below: > ------------------------------------------------------------------------------------------------ > > // Display mode > mode(0); > > // Display warning for floating point exception > ieee(1); > > //3DINVER.M: A MATLAB program to invert the gravity anomaly over a 3-D > horizontal density interface by Parker-Oldenburg''s algorithm > //David Gomez Ortiz and Bhrigu N P Agarwal > // > //Iterative process of Oldenburg(1974) > //using the Parker''s (1973) equation > //Given a gravity map as input (bouin)in mGal > //as well as density contrast (contrast) in gr/cm3 > //and the mean source depth (z0) in Km > //the program computes the topography of the interface (topoout) in Km > // > //density contrast is positive (e. g. mantle-crust) > //mean depth reference is positive downwards(z0) > //It is also necessary to include map length in Km (longx and longy) > //considering a square area, the number of rows or columns (numrows and > numcolumns) > //and the convergence criterion (criterio) in Km > // > //The maximum number of iterations is 10 > // > //The program computes also the gravity map (bouinv) due to the computed > relief(forward modelling) > //The cut-off frequencies (SH and WH) for the filter in order to achieve > //convergence have to be also previously defined (as 1/wavelength in Km) > // > > bouin = "c:\gravityinput.dat"; > //path and name of the input gravity file, e.g. c:\gravityinput.dat > topoout = "c:\topooutput.dat"; > //path and name of the output topography file, e.g. c:\topooutput.dat > bouinverted = "c:\bouinv.dat"; > //path and name of the output gravity file, e.g. c:\bouinv.dat > numrows = 112; > //e. g. 112 data in Y direction > numcolumns = 112; > // e. g. 112 data in X direction > longx = 666; > //e.g. 666 Km data length in X direction > longy = 666; > //e.g. 666 Km data length in Y direction > contrast = 0.4; > //density contrast value in g/cm3, e. g. 0.4 > criterio = 0.02; > //convergence criterion in Km, e. g. 0.02 > z0 = 30; > //mean reference depth in Km, e. g. 30 Km > WH = 0.01; > //smaller cut-off frequency (1/wavelength in Km) e. g. 0.01, i.e. 1/100 Km > SH = 0.012; > //greater cut-off frequency (1/wavelength in Km) e. g. 0.012, i.e. 1/83.3 Km > > truncation = 0.1; > //truncation window data length in % per one, i.e, 10% > > fid = mtlb_fopen(bouin); > // L.40: No simple equivalent, so mtlb_fscanf() is called. > bou = mtlb_fscanf(fid,"%f",[numcolumns,numrows]); > //open the input gravity file, read it and stores it in variable ''bou'' > mclose(fid) > > // Calculate mean value of the gravity map > fftbou = fft2(bou); > //fft2 computes the 2-D FFT of a 2-D matrix (bou, in this case) > meangravity = fftbou(1,1)/(numrows*numcolumns); > //the first term of the 2-D fft array divided by the product of the number > of rows and columns provides the mean gravity value of the map > > // Demean data > disp("Data sets demeaned"); > //displays the text ''Data sets demeaned'' on the screen > bou = bou-meangravity; > //input gravity map is demeaned > > //A cosine Tukey window with a truncation of 10% default is applied > // !! L.52: Matlab toolbox(es) function tukeywin not converted, original > calling sequence used > wrows = tukeywin(numrows,truncation); > //this computes a 1-D cosine Tukey window of the same length as the original > matrix input rows and with the truncation defined by the variable > ''truncation'' > // !! L.53: Matlab toolbox(es) function tukeywin not converted, original > calling sequence used > wcolumns = tukeywin(numcolumns,truncation); > //this computes a 1-D cosine Tukey window of the same length as the original > matrix input columns and with the truncation defined by the variable > ''truncation'' > > w2 = > mtlb_double(mtlb_e(wrows,":"))*mtlb_double(mtlb_0(mtlb_e(wcolumns,":"))); > //this generates a 2-D cosine Tukey window multipliying the 1-D windows > bou = bou .*w2'; > //the original gravity input matrix, previously demeaned, is multiplied by > the cosine window > > mapabou = bou'; > //the original gravity input matrix after demeaning is transposed > surf(mapabou); > //then it is drawn only for visualization > title("Observed gravity anomaly map (mGal)"); > //this is the title of the graph > > fftbou = fft2(mapabou); > //the 2-D FFT of the gravity input matrix is computed after demeaning > spectrum = abs(fftbou(1:numrows/2,1:numcolumns/2)); > //this computes the amplitude spectrum > // !! L.64: Matlab function figure not yet converted. > // !! L.64: Matlab function figure not yet converted, original calling > sequence used. > figure > surf(spectrum); > //and the spectrum is drawn only for visualization > title("Amplitude spectrum of the Observed gravity map"); > //this is the title of the new graph > > //the matrix with the frequencies of every harmonic is computed > for f = 1:abs(numrows/2+1) > for g = 1:abs(numcolumns/2+1) > frequency(f,g) = sqrt(((f-1)/longx)^2+((g-1)/longy)^2); > end; > end; > //the matrix of the negative frequencies is also computed > frequency2 = frequency(:,$:-1:1); > frequency3 = frequency($:-1:1,:); > %v0 = frequency($:-1:1,:); > frequency4 = %v0(:,$:-1:1); > entero = round(numcolumns/2); > if (numcolumns/2-entero)==0 then > frequency2(:,1) = []; > frequency3(1,:) = []; > frequency4(:,1) = []; > frequency4(1,:) = []; > frequencytotal = [frequency,frequency2;frequency3,frequency4]; > else > frequencytotal = [frequency,frequency2;frequency3,frequency4]; > end; > frequencytotal($,:) = []; > frequencytotal(:,$) = []; > > frequencytotal = frequencytotal .*(2*%pi); > //the frequency (1/wavelength) matrix is transformed to wavenumber > (2*pi/wavelength) matrix > > //The iterative process starts here > //The first term of the series, that is constant, is computed and stored in > variable ''constant'' > up = -fftbou .*exp((z0*100000)*(frequencytotal .*(1/100000))); > down = ((2*%pi)*6.67)*contrast; > constant = up ./down; > //The high-cut filter is constructed > filter = frequencytotal .*0; > //the filter matrix is set to zero > frequencytotal = frequencytotal ./(2*%pi); > for f = 1:numrows > for g = 1:numcolumns > if frequencytotal(f,g) filter(f,g) = 1; > elseif frequencytotal(f,g)<SH then > filter(f,g) = 0.5 > .*(1+cos(((2*%pi)*frequencytotal(f,g)-(2*%pi)*WH)/(2*(SH-WH)))); > else > filter(f,g) = 0; > end; > end; > end; > constant = constant .*filter; > //the filter is applied to the first term of the series > > // !! L.114: Matlab function ifft2 not yet converted, original calling > sequence used. > topoinverse = real(mtlb_double(ifft2(constant))); > //the real part of the inverse 2-D FFT of the first term provides the first > topography approach stored in the variable ''topoinverse'' > frequencytotal = frequencytotal .*(2*%pi); > > //It starts the computation of the second term of the series with a maximum > of 10 iterations > > topo2 = ((frequencytotal .^1) ./prod(1:2)) .*fft2(topoinverse .^2); > //the function ''prod'' computes the factorial of the number inside the > brackets > > topo2 = topo2 .*filter; > //the filter is applied to the second term of the series > > topo2 = mtlb_s(constant,topo2); > //the new topography approach is computed substracting the first term to the > second one > > // !! L.125: Matlab function ifft2 not yet converted, original calling > sequence used. > topoinverse2 = real(mtlb_double(ifft2(topo2))); > // the real part of the 2-D inverse FFT provides the new topography approach > in space domain > > diference2 = mtlb_s(topoinverse2,topoinverse); > // this compute the diference between the two conscutive topography > approaches > diference2 = diference2 .^2; > rms2 = sqrt(mtlb_sum(mtlb_sum(diference2))/(2*(numrows*numcolumns))); > //it computes the rms error between the last two iterations > iter = 2; > //the number of the iteration reached is stored in variable ''iter'' > rms = rms2; > finaltopoinverse = topoinverse2; > //the new topography approach is stored in the variable ''finaltpoinverse'' > if mtlb_logic(rms2,">=",criterio) then > //it determines if the rms error is greater than the convergence criterion > topo3 = mtlb_a(((frequencytotal .^1) ./prod(1:2)) .*fft2(finaltopoinverse > .^2),((frequencytotal .^2) ./prod(1:3)) .*fft2(finaltopoinverse .^3)); > //the third term of the series is computed using the new topography > approach > > > topo3 = topo3 .*filter; > //the filter is applied to the third term of the series > > topo3 = mtlb_s(constant,topo3); > //the new topography approach is computed > // !! L.140: Matlab function ifft2 not yet converted, original calling > sequence used. > topoinverse3 = real(mtlb_double(ifft2(topo3))); > //and transformed to space domain > diference3 = mtlb_s(topoinverse3,topoinverse2); > //the diference between the last two topography approaches is computed > diference3 = diference3 .^2; > rms3 = sqrt(mtlb_sum(mtlb_sum(diference3))/(2*(numrows*numcolumns))); > //the new rms error is computed > rms = rms3; > finaltopoinverse = topoinverse3; > //the new topography approach is stored in variable finaltopoinverse > iter = 3; > //it indicates the iteration step reached > if mtlb_logic(rms3,">=",criterio) then //it determines if the convergence > criterion has been reached or not > topo4 = mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) > .*fft2(topoinverse3 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse3 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse3 .^4)); //the fourth term of the series is computed, and > so on... > > topo4 = topo4 .*filter; > > topo4 = mtlb_s(constant,topo4); > // !! L.153: Matlab function ifft2 not yet converted, original calling > sequence used. > topoinverse4 = real(mtlb_double(ifft2(topo4))); > diference4 = mtlb_s(topoinverse4,topoinverse3); > diference4 = diference4 .^2; > rms4 = sqrt(mtlb_sum(mtlb_sum(diference4))/(2*(numrows*numcolumns))); > rms = rms4; > finaltopoinverse = topoinverse4; > iter = 4; > if mtlb_logic(rms4,">=",criterio) then > topo5 = mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) > .*fft2(topoinverse4 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse4 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse4 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse4 .^5)); > > topo5 = topo5 .*filter; > > topo5 = mtlb_s(constant,topo5); > // !! L.166: Matlab function ifft2 not yet converted, original calling > sequence used. > topoinverse5 = real(mtlb_double(ifft2(topo5))); > diference5 = mtlb_s(topoinverse5,topoinverse4); > diference5 = diference5 .^2; > rms5 = sqrt(mtlb_sum(mtlb_sum(diference5))/(2*(numrows*numcolumns))); > rms = rms5; > finaltopoinverse = topoinverse5; > iter = 5; > if mtlb_logic(rms5,">=",criterio) then > topo6 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) > .*fft2(topoinverse5 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse5 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse5 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse5 .^5)),((frequencytotal .^5)/prod(1:6)) > .*fft2(topoinverse5 .^6)); > > topo6 = topo6 .*filter; > > topo6 = mtlb_s(constant,topo6); > // !! L.179: Matlab function ifft2 not yet converted, original > calling sequence used. > topoinverse6 = real(mtlb_double(ifft2(topo6))); > diference6 = mtlb_s(topoinverse6,topoinverse5); > diference6 = diference6 .^2; > rms6 = sqrt(mtlb_sum(mtlb_sum(diference6))/(2*(numrows*numcolumns))); > rms = rms6; > finaltopoinverse = topoinverse6; > iter = 6; > if mtlb_logic(rms6,">=",criterio) then > topo7 = mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal > .^1)/prod(1:2)) .*fft2(topoinverse6 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse6 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse6 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse6 .^5)),((frequencytotal .^5)/prod(1:6)) > .*fft2(topoinverse6 .^6)),((frequencytotal .^6)/prod(1:7)) > .*fft2(topoinverse6 .^7)); > > topo7 = topo7 .*filter; > > topo7 = mtlb_s(constant,topo7); > // !! L.192: Matlab function ifft2 not yet converted, original > calling sequence used. > topoinverse7 = real(mtlb_double(ifft2(topo7))); > diference7 = mtlb_s(topoinverse7,topoinverse6); > diference7 = diference7 .^2; > rms7 = > sqrt(mtlb_sum(mtlb_sum(diference7))/(2*(numrows*numcolumns))); > rms = rms7; > finaltopoinverse = topoinverse7; > iter = 7; > if mtlb_logic(rms7,">=",criterio) then > topo8 = > mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal .^1)/prod(1:2)) > .*fft2(topoinverse7 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse7 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse7 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse7 .^5)),((frequencytotal .^5)/prod(1:6)) > .*fft2(topoinverse7 .^6)),((frequencytotal .^6)/prod(1:7)) > .*fft2(topoinverse7 .^7)),((frequencytotal .^7)/prod(1:8)) > .*fft2(topoinverse7 .^8)); > > topo8 = topo8 .*filter; > topo8 = mtlb_s(constant,topo8); > // !! L.204: Matlab function ifft2 not yet converted, original > calling sequence used. > topoinverse8 = real(mtlb_double(ifft2(topo8))); > diference8 = mtlb_s(topoinverse8,topoinverse7); > diference8 = diference8 .^2; > rms8 = > sqrt(mtlb_sum(mtlb_sum(diference8))/(2*(numrows*numcolumns))); > rms = rms8; > finaltopoinverse = topoinverse8; > iter = 8; > if mtlb_logic(rms8,">=",criterio) then > topo9 = > mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal > .^1)/prod(1:2)) .*fft2(topoinverse8 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse8 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse8 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse8 .^5)),((frequencytotal .^5)/prod(1:6)) > .*fft2(topoinverse8 .^6)),((frequencytotal .^6)/prod(1:7)) > .*fft2(topoinverse8 .^7)),((frequencytotal .^7)/prod(1:8)) > .*fft2(topoinverse8 .^8)),((frequencytotal .^8)/prod(1:9)) > .*fft2(topoinverse8 .^9)); > > topo9 = topo9 .*filter; > topo9 = mtlb_s(constant,topo9); > // !! L.216: Matlab function ifft2 not yet converted, original > calling sequence used. > topoinverse9 = real(mtlb_double(ifft2(topo9))); > diference9 = mtlb_s(topoinverse9,topoinverse8); > diference9 = diference9 .^2; > rms9 = > sqrt(mtlb_sum(mtlb_sum(diference9))/(2*(numrows*numcolumns))); > rms = rms9; > finaltopoinverse = topoinverse9; > iter = 9; > if mtlb_logic(rms9,">=",criterio) then > topo10 = > mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(mtlb_a(((frequencytotal > .^1)/prod(1:2)) .*fft2(topoinverse9 .^2),((frequencytotal .^2)/prod(1:3)) > .*fft2(topoinverse9 .^3)),((frequencytotal .^3)/prod(1:4)) > .*fft2(topoinverse9 .^4)),((frequencytotal .^4)/prod(1:5)) > .*fft2(topoinverse9 .^5)),((frequencytotal .^5)/prod(1:6)) > .*fft2(topoinverse9 .^6)),((frequencytotal .^6)/prod(1:7)) > .*fft2(topoinverse9 .^7)),((frequencytotal .^7)/prod(1:8)) > .*fft2(topoinverse9 .^8)),((frequencytotal .^8)/prod(1:9)) > .*fft2(topoinverse9 .^9)),((frequencytotal .^9)/prod(1:10)) > .*fft2(topoinverse9 .^10)); > > topo10 = topo10 .*filter; > topo10 = mtlb_s(constant,topo10); > // !! L.228: Matlab function ifft2 not yet converted, > original calling sequence used. > topoinverse10 = real(mtlb_double(ifft2(topo10))); > diference10 = mtlb_s(topoinverse10,topoinverse9); > diference10 = diference10 .^2; > rms10 = > sqrt(mtlb_sum(mtlb_sum(diference10))/(2*(numrows*numcolumns))); > rms = rms10; > finaltopoinverse = topoinverse10; > iter = 10; > end; > end; > end; > end; > end; > end; > end; > end; > > iter; > //it displays the iteration number at which the process has stopped > rms; > //it displays the rms error at the end of the iterative process > // !! L.246: Matlab function figure not yet converted. > // !! L.246: Matlab function figure not yet converted, original calling > sequence used. > figure; > //it opens a new figure > surf(mtlb_a(finaltopoinverse,z0)); > //it draws the final topography relief map obtained adding the mean > reference depth > title("Topography of the inverted interface obtained from the Bouguer > gravity map (Km)"); > //this is the title of the new graph > //the matrix is transposed to their output to a surfer file > trans = mtlb_a(finaltopoinverse,z0)'; > fid = mtlb_fopen(topoout,"w"); > // L.252: No simple equivalent, so mtlb_fprintf() is called. > mtlb_fprintf(fid,"%6.2f\n",trans); > //this opens and writes the output matrix in a ASCII file with a single data > column with depths > mclose(fid); > > //At this point, the forward modelling starts. The final topography obtained > before is used in the Parker''s formula in order to compute the gravity > anomaly due to that interface. The number of terms of the series is the same > that the number of iterations reached in the inverse modelling. > > sumas = 1; > //initialize variables. The maximum number of sums is 10, because the > maximum number of iterations in the inverse modelling is 10. > sumtotal = []; > sum2 = []; > sum3 = []; > sum4 = []; > sum5 = []; > sum6 = []; > sum7 = []; > sum8 = []; > sum9 = []; > sum10 = []; > constantbouinv = -(((2*%pi)*6.67)*contrast)*exp(-(z0*100000) > .*(frequencytotal .*(1/100000))); > //the constant term of the series is computed > //The sum of fourier transforms starts here. At each step, a new term of the > series is computed and added to the previous one. Then, if the number of > sums is lower than the number of iterations, the process continues. > > sumtotal = ((frequencytotal .^0)/prod(1:1,firstnonsingleton(1:1))) > .*fft2(finaltopoinverse .^1); > sums = 2; > if sums<=iter then > sum2 = ((frequencytotal .^1)/prod(1:2)) .*fft2(finaltopoinverse .^2); > sums = 3; > sumtotal = mtlb_a(sumtotal,sum2); > if sumas<=iter then > sum3 = ((frequencytotal .^2)/prod(1:3)) .*fft2(finaltopoinverse .^3); > sums = 4; > sumtotal = mtlb_a(sumtotal,sum3); > if sums<=iter then > sum4 = ((frequencytotal .^3)/prod(1:4)) .*fft2(finaltopoinverse .^4); > sums = 5; > sumtotal = mtlb_a(sumtotal,sum4); > if sums<=iter then > sum5 = ((frequencytotal .^4)/prod(1:5)) .*fft2(finaltopoinverse > .^5); > sums = 6; > sumtotal = mtlb_a(sumtotal,sum5); > if sums<=iter then > sum6 = ((frequencytotal .^5)/prod(1:6)) .*fft2(finaltopoinverse > .^6); > sums = 7; > sumtotal = mtlb_a(sumtotal,sum6); > if sums<=iter then > sum7 = ((frequencytotal .^6)/prod(1:7)) .*fft2(finaltopoinverse > .^7); > sums = 8; > sumtotal = mtlb_a(sumtotal,sum7); > if sums<=iter then > sum8 = ((frequencytotal .^7)/prod(1:8)) > .*fft2(finaltopoinverse .^8); > sums = 9; > sumtotal = mtlb_a(sumtotal,sum8); > if sums<=iter then > sum9 = ((frequencytotal .^8)/prod(1:9)) > .*fft2(finaltopoinverse .^9); > sums = 10; > sumtotal = mtlb_a(sumtotal,sum9); > if sums<=iter then > sum10 = ((frequencytotal .^9)/prod(1:10)) > .*fft2(finaltopoinverse .^10); > sumtotal = mtlb_a(sumtotal,sum10); > end; > end; > end; > end; > end; > end; > end; > end; > end; > > > sumtotal = sumtotal .*constantbouinv; > //after the summatory, the final map in frequency domain is computed > multipliying the constant term > sumtotal(1,1) = 0; > // !! L.321: Matlab function ifft2 not yet converted, original calling > sequence used. > bouinv = real(mtlb_double(ifft2(sumtotal))); > //the inverse 2-D FFT provides the gravity map in space domain > > // !! L.323: Matlab function figure not yet converted. > // !! L.323: Matlab function figure not yet converted, original calling > sequence used. > figure; > //opens a new figure > surf(bouinv); > //it displays the gravity map obtained only for visualization > title("Gravity map due to the interface calculated (mGal)"); > //this is the title of the new figure > // !! L.326: Matlab function figure not yet converted. > // !! L.326: Matlab function figure not yet converted, original calling > sequence used. > figure; > //opens a new figure > surf(mtlb_s(bouinv,mapabou)); > //it displays the map with the diference between the gravity map input and > the gravity map of the forward modelling > title("Diference between the input gravity map and the one due to the > calculated interface (mGal)"); > //this is the title of the new figure > > bouinvtras = bouinv'; > //the matrix is transposed to their output to a surfer file > fid = mtlb_fopen(bouinverted,"w"); > // L.332: No simple equivalent, so mtlb_fprintf() is called. > mtlb_fprintf(fid,"%6.2f\n",mtlb_a(bouinvtras,meangravity)); > //this opens and writes the output matrix (adding the mean gravity value > substracted prior to the FFT) in a ASCII file with a single data column with > gravity anomaly > mclose(fid); > > -------------------------------------------------------------------------------- > > If anyone can provide pointers on the equivalent conversion for Scilab or > other guidance, that would be much appreciated. > > I have not used Matlab myself, so not sure of the way to proceed. > > Cheers > > Lester > > > > -- > View this message in context: http://mailinglists.scilab.org/Matlab-to-Scilab-conversion-issues-tp4024825.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 bkpsusmitaa at gmail.com Mon Sep 17 17:56:47 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Mon, 17 Sep 2012 08:56:47 -0700 (PDT) Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <5056052A.5040208@free.fr> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> Message-ID: <1347897407633-4024830.post@n3.nabble.com> You are a genius, Dr.GOUGEON! I posted the problem to Maxima, Scilab and QtOctave fora, and I have been groping with one formula. People kept giving me advice, and you did it beautifully! Will you please explain the steps, supposing that you are telling a ten year old child about the nitty gritty? Awe and regards from one of the mere mortals to a better mind, Rajib Bandopadhyay -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024830.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bkpsusmitaa at gmail.com Tue Sep 18 03:32:32 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Mon, 17 Sep 2012 18:32:32 -0700 (PDT) Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347897407633-4024830.post@n3.nabble.com> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> <1347897407633-4024830.post@n3.nabble.com> Message-ID: <1347931952841-4024831.post@n3.nabble.com> bkpsusmitaa wrote > > ...Will you please explain the steps, supposing that you are telling a ten > year old child about the nitty gritty?... > Well, not all the steps, but particularly the logic behind: R = r*ones(a) // matrix of radii for all branches A = r*ones(a)+ones(r)*a And I am just a newbie to scilab, so I could not understand the syntaxes of the following: a = (0:11)/12*360; // starting angles r = (0:30)' // range of radii Okay, (0:11) is the range for a and (0:30) for r, but why did you use ' after (0:30) and /12*360 after (0:11)? Thanks and regards -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024831.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Sep 18 07:14:15 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 18 Sep 2012 07:14:15 +0200 Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347931952841-4024831.post@n3.nabble.com> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> <1347897407633-4024830.post@n3.nabble.com> <1347931952841-4024831.post@n3.nabble.com> Message-ID: <50580327.7040409@laas.fr> Le 18/09/12 03:32, bkpsusmitaa a ?crit : > bkpsusmitaa wrote >> ...Will you please explain the steps, supposing that you are telling a ten >> year old child about the nitty gritty?... >> > Well, not all the steps, but particularly the logic behind: > R = r*ones(a) // matrix of radii for all branches > A = r*ones(a)+ones(r)*a > > And I am just a newbie to scilab, so I could not understand the syntaxes of > the following: > a = (0:11)/12*360; // starting angles > r = (0:30)' // range of radii > > Okay, (0:11) is the range for a and (0:30) for r, but why did you use ' > after (0:30) ' is for transposition: [1:3] is a line vector: [1:3]=[1 2 3] whereas [1:3]' is a column vector: [1:3]'= [1 2 3] > and /12*360 after (0:11)? [0:11] is [0 1 2 3 4 5 6 7 8 9 10 11] and [0:11]/12*360 is [0/12*360 1/12*360 2/12*360 3/12*360 4/12*360 5/12*360 6/12*360 7/12*360 8/12*360 9/12*360 10/12*360 11/12*360] ie a vector from 0 to 360*11/12 by increment of 360/12=30 > Thanks and regards > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024831.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From bkpsusmitaa at gmail.com Tue Sep 18 07:15:27 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Mon, 17 Sep 2012 22:15:27 -0700 (PDT) Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347897407633-4024830.post@n3.nabble.com> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> <1347897407633-4024830.post@n3.nabble.com> Message-ID: <1347945327225-4024833.post@n3.nabble.com> bkpsusmitaa wrote > Will you please explain the steps, supposing that you are telling a ten > year old child about the nitty gritty? Needn't explain. You just have given me a jump start to Scilab. I am a visual kind of person, and do not like reading too much. You have just helped me immensely! Matrices operations! Just wonderful! My regards -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024833.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bkpsusmitaa at gmail.com Tue Sep 18 07:22:13 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Mon, 17 Sep 2012 22:22:13 -0700 (PDT) Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <50580327.7040409@laas.fr> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> <1347897407633-4024830.post@n3.nabble.com> <50580327.7040409@laas.fr> Message-ID: <1347945733624-4024834.post@n3.nabble.com> Antoine Monmayrant wrote I'm extremely sorry, I took help of the codes to take my first tentative steps into Scilab, figured out the matter fairly, and then deleted the post while you were writing. It would've been rude of me not to have acknowledged the trouble you took to explain my earlier queries despite your hectic schedule. Regards and thanks -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Regarding-multiply-armed-equiangular-or-Logarithmic-spirals-tp4024812p4024834.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Tue Sep 18 17:27:36 2012 From: communication at scilab-enterprises.com (Communication) Date: Tue, 18 Sep 2012 17:27:36 +0200 Subject: [Scilab-users] Scilab 5.4.0 beta Versions Message-ID: <505892E8.6040506@scilab-enterprises.com> Dear Scilab Users, Under Windows, a bug can prevent those versions to work properly Due to a severe bug (http://bugzilla.scilab.org/show_bug.cgi?id=11846), Scilab 5.4.0-beta versions can quit unexpectedly after a few minutes without any error message under Windows platforms. This bug has been fixed. In the meantime Scilab 5.4.0 final version is released, you can still use Scilab 5.3.3 (http://www.scilab.org/products/scilab/download) or the nightly build versions which have been generated since 09/11/2012 (http://www.scilab.org/communities/developer_zone/scilab_versions/development_version/nightly_builds/branch_master). Best Regards -- Communications and Public Relations Department --------------------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From henri.pages at banque-france.fr Wed Sep 19 08:55:43 2012 From: henri.pages at banque-france.fr (henri.pages at banque-france.fr) Date: Wed, 19 Sep 2012 08:55:43 +0200 Subject: [Scilab-users] classmarkov Message-ID: Calling the classmarkov macro in linear algebra generates an error code 4, where the variable ?mat_2_graph? is declared undefined. Henri Pages, Banque de France ************************************************************** Ce courrier ?lectronique, y compris les pi?ces jointes, est ? l'attention exclusive des destinataires d?sign?s et rev?t un caract?re confidentiel. Si vous recevez ce courrier ?lectronique par erreur, merci d'en informer sans d?lai l'exp?diteur et de supprimer son contenu et ses pi?ces jointes. Le contenu de ce courrier ?lectronique ne pourrait engager la responsabilit? de la Banque de France que s'il a ?t? ?mis par une personne d?ment habilit?e agissant dans le strict cadre des fonctions auxquelles elle est employ?e et ? des fins non ?trang?res ? ses attributions. L'exp?diteur de ce courrier ?lectronique ne peut pas garantir la s?curit? de l'acheminement par voie ?lectronique et ne saurait d?s lors encourir une quelconque responsabilit? en cas d'alt?ration de son contenu. ************************************************************** This e-mail, attachments included, is intended solely for the addressees and should be considered as confidential. Should you receive this message by error, please notify the sender immediately and destroy this e-mail and its attachments. Banque de France cannot be considered as liable for the content of this message unless the sender has been duly authorized and has acted strictly in the course of his/her tasks as an employee. The sender of this e-mail cannot ensure the security of its electronic transmission and consequently will not be liable should its content be altered. ************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at contrib.scilab.org Wed Sep 19 13:10:54 2012 From: michael.baudin at contrib.scilab.org (michael.baudin at contrib.scilab.org) Date: Wed, 19 Sep 2012 13:10:54 +0200 Subject: [Scilab-users] classmarkov In-Reply-To: References: Message-ID: Hi, This bug has been reported on bugzilla in 2010 : http://bugzilla.scilab.org/show_bug.cgi?id=7814 Did you try to install the Metanet toolbox with ATOMS to see if this solves the bug ? Best regards, Micha?l Le 2012-09-19 08:55, henri.pages at banque-france.fr a ?crit?: > Calling the classmarkov macro in linear algebra generates an error > code 4, where the variable ?mat_2_graph? is declared undefined. > > Henri Pages, Banque de France > > ************************************************************** > Ce courrier ?lectronique, y compris les pi?ces jointes, est ? > l'attention exclusive des destinataires d?sign?s et rev?t un > caract?re > confidentiel. > Si vous recevez ce courrier ?lectronique par erreur, merci d'en > informer sans d?lai l'exp?diteur et de supprimer son contenu et ses > pi?ces jointes. > > Le contenu de ce courrier ?lectronique ne pourrait engager la > responsabilit? de la Banque de France que s'il a ?t? ?mis par une > personne d?ment habilit?e agissant dans le strict cadre des fonctions > auxquelles elle est employ?e et ? des fins non ?trang?res ? ses > attributions. > > L'exp?diteur de ce courrier ?lectronique ne peut pas garantir la > s?curit? de l'acheminement par voie ?lectronique et ne saurait d?s > lors encourir une quelconque responsabilit? en cas d'alt?ration de > son > contenu. > > ************************************************************** > > This e-mail, attachments included, is intended solely for the > addressees and should be considered as confidential. > Should you receive this message by error, please notify the sender > immediately and destroy this e-mail and its attachments. > > Banque de France cannot be considered as liable for the content of > this message unless the sender has been duly authorized and has acted > strictly in the course of his/her tasks as an employee. > > The sender of this e-mail cannot ensure the security of its > electronic transmission and consequently will not be liable should > its > content be altered. > ************************************************************** > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rkoberle1 at gmail.com Wed Sep 19 16:48:16 2012 From: rkoberle1 at gmail.com (RolandKoberle) Date: Wed, 19 Sep 2012 11:48:16 -0300 Subject: [Scilab-users] datafit.sci with W Message-ID: <5059DB30.700@gmail.com> There is no demo for datafit.sci with a nontrivial W matrix: [p,err]=datafit([imp,] G [,DG],Z [,W],[contr],p0,[algo],[df0,[mem]], [work],[stop],['in']) The help page says: W: weighting matrix of size ne x ne (optional; defaut no ponderation) But if W weighs the data-points ( their number is nz ) , then W should be a vector of length nz? If you try to run datafit with W = eye(ne,ne) or W=ones(nz,1) etc., you get an error message ????? Thanx/Roland From sgougeon at free.fr Wed Sep 19 22:03:35 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 19 Sep 2012 22:03:35 +0200 Subject: [Scilab-users] datafit.sci with W In-Reply-To: <5059DB30.700@gmail.com> References: <5059DB30.700@gmail.com> Message-ID: <505A2517.8050702@free.fr> Hello, Le 19/09/2012 16:48, RolandKoberle a ?crit : > .../... > The help page says: > W: weighting matrix of size ne x ne (optional; defaut no ponderation) > > But if W weighs the data-points ( their number is nz ) , then W should > be a vector of length nz? > > If you try to run datafit with W = eye(ne,ne) or W=ones(nz,1) etc., > you get an error message ????? W does not weight data but criteria. It has been discussed in this thread: http://mailinglists.scilab.org/Weighting-data-in-datafit-tt3633921.html#a3636450 Regards Samuel From sgougeon at free.fr Wed Sep 19 22:50:18 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 19 Sep 2012 22:50:18 +0200 Subject: [Scilab-users] Regarding multiply-armed equiangular (or Logarithmic) spirals In-Reply-To: <1347897407633-4024830.post@n3.nabble.com> References: <1347439052.7176.4.camel@Squeeze> <1347809377861-4024823.post@n3.nabble.com> <5056052A.5040208@free.fr> <1347897407633-4024830.post@n3.nabble.com> Message-ID: <505A300A.5050301@free.fr> Le 17/09/2012 17:56, bkpsusmitaa a ?crit : > .../... > Will you please explain the steps, > .../... > Each branch must be generated apart. When with plot(X,Y) X and Y are matrices of the same sizes, each column of X and respectively Y is considered as an individual curve. So if X and Y have N columns, N curves will be plotted by the single plot(X,Y) instruction As a first step, it is easier to generate branches in polar coordinates. So we must generate a matrix A of angles and a matrix R of radii. Radii are chosen to drive the angles. The set of radii is the same for all branches. With a = (0:11)/12*360; // starting angles r = (0:30)' // range of radii R = r*ones(a) // matrix of radii for all branches all columns of R are the same, and there are as many columns as angle steps in a. Then, we must generate angles. Each branch (column) has a specific starting angle (from the center). It is respectively replicated with A = ones(r)*a for all radii (rows). Then we must add to A a angular drift describing the spiral. This the r*ones(a) contribution, leading to A = ones(r)*a + r*ones(a) If you want to twist more branches, you can amplify the angular drift, chosing for instance A = ones(r)*a + 3*r*ones(a) Then, the polar to cartesian transform of coordinates must be applided, because plot() works with cartesian coordinates. This is the part X = R.*cosd(A) // polar to cartesian transform Y = R.*sind(A) // .. And finally we plot the result, and tune the axes to isometric scales: plot(X,Y) ax = gca(); ax.isoview = "on"; With the amplified twist (still proportional to radii, but here x3) , this gives: Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-4.png Type: image/png Size: 5914 bytes Desc: not available URL: From arctica1963 at gmail.com Thu Sep 20 00:05:42 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Wed, 19 Sep 2012 23:05:42 +0100 Subject: [Scilab-users] Trying to work a tukeywin function Message-ID: Hello, I have found the Matlab code for a tukeywin function but am unsure of the conversion: // Copyright (C) 2007 Laurent Mazet // // This program is free software; you can redistribute it and/or modify it under// the terms of the GNU General Public License as published by the Free Software// Foundation; either version 3 of the License, or (at your option) any later// version.// // This program is distributed in the hope that it will be useful, but WITHOUT// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more// details.// // You should have received a copy of the GNU General Public License along with// this program; if not, see . // -*- texinfo -*-// @deftypefn {Function File} {@var{w} =} tukeywin (@var{L}, @var{r})// Return the filter coefficients of a Tukey window (also known as the// cosine-tapered window) of length @var{L}. @var{r} defines the ratio// between the constant section and and the cosine section. It has to be// between 0 and 1. The function returns a Hanning window for @var{r}// egals 0 and a full box for @var{r} egals 1. By default @var{r} is set// to 1/2.// // For a definition of the Tukey window, see e.g. Fredric J. Harris,// "On the Use of Windows for Harmonic Analysis with the Discrete Fourier// Transform, Proceedings of the IEEE", Vol. 66, No. 1, January 1978,// Page 67, Equation 38.// @end deftypefn function w=tukeywin(L, r= 1/2) if (nargin < 1 || nargin > 2) ------ Not sure how to replace this bit (variable not defined) print_usage; elseif (nargin == 2) // check that 0 < r < 1 if r > 1 r = 1; elseif r < 0 r = 0; endif endif // generate window switch r --------- think this should be select ? case 0, // full box w = ones (L, 1); case 1, // Hanning window w = hanning (L); otherwise ------------- else // cosine-tapered window t = linspace(0,1,L)(1:end/2)'; w = (1 + cos(pi*(2*t/r-1)))/2; w(floor(r*(L-1)/2)+2:end) = 1; w = [w; ones(mod(L,2)); flipud(w)]; endswitch ------------------------------------ end ? endfunction // demo// L = 100;// r = 1/3;// w = tukeywin (L, r);// title(sprintf("%d-point Tukey window, R = %d/%d", L, [p, q] = rat(r), q));// plot(w); I tried the mfile2sci conversion but this was not helpful. Found this source in the Octave package. Still learning scilab, so some pointers would be helpful. Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Sep 20 00:31:11 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 20 Sep 2012 00:31:11 +0200 Subject: [Scilab-users] Trying to work a tukeywin function In-Reply-To: References: Message-ID: <505A47AF.7040109@free.fr> Hello, Le 20/09/2012 00:05, Lester Anderson a ?crit : > > function w=tukeywin(L,r= 1/2) > > if (nargin < 1 || nargin > 2) ------ Not sure how to replace this bit (variable not defined) > nargin => argn(2) > .../... > > // generate window > switch r --------- think this should be select ? > Right > .../... > case 1, > // Hanning window > w = hanning (L); > window('hn',L) > otherwise ------------- else > Yes > // cosine-tapered window > t = linspace(0,1,L)(1:end/2)'; > replace end with $ : (1:$/2)'; > w = (1 + cos(pi*(2*t/r-1)))/2; > pi => %pi > w(floor(r*(L-1)/2)+2:end) = 1; > w = [w; ones(mod(L,2)); flipud(w)]; > mod => modulo flipud(w) => flipdim(w,1) > endswitch ------------------------------------ end ? > Yes -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Thu Sep 20 08:20:37 2012 From: arctica1963 at gmail.com (Lester Anderson) Date: Thu, 20 Sep 2012 07:20:37 +0100 Subject: [Scilab-users] Trying to work a tukeywin function In-Reply-To: <505A47AF.7040109@free.fr> References: <505A47AF.7040109@free.fr> Message-ID: Hi Samuel, Thanks for the pointers. It still fails with lots of errors even with changing the sections you noted). I have copied the errors here, it is like a few errors can have a compound effect on the rest: -->exec('C:\Users\Lester\Documents\3DInver\convert\tukeywin.sce', -1) function w = tukeywin (L, r = 1/2) !--error 37 Incorrect function at line 31. at line 31 of exec file called by : exec('C:\Users\Lester\Documents\3DInver\convert\tukeywin.sce', -1) -->function w = tukeywin (L, r = 1/2) !--error 37 Incorrect function. --> //nargin=>argn(2) --> // if (nargin < 1 || nargin > 2) --> if (argn(2) < 1 || argn(2) > 2) !--error 2 Invalid factor. --> print_usage; !--error 4 Undefined variable: print_usage --> elseif (nargin == 2) !--error 34 Incorrect control instruction syntax. --> // check that 0 < r < 1 --> if r > 1 !--error 4 Undefined variable: r --> r = 1; --> elseif r < 0 !--error 34 Incorrect control instruction syntax. --> r = 0; --> end !--error 34 Incorrect control instruction syntax. --> end !--error 34 Incorrect control instruction syntax. --> // generate window --> select r --> case 0, --> // full box --> w = ones (L, 1); !--error 4 Undefined variable: L --> case 1, !--error 34 Incorrect control instruction syntax. --> // Hanning window --> // = hanning (L); --> window('hanning',L) !--error 4 Undefined variable: L --> else !--error 34 Incorrect control instruction syntax. --> // cosine-tapered window --> t = linspace(0,1,L)(1:$:(1:$/2)'; !--error 4 Undefined variable: L --> w = (1 + cos(%pi*(2*t/r-1)))/2; !--error 4 Undefined variable: t --> w(floor(r*(L-1)/2)+2:end) = 1; !--error 4 Undefined variable: L --> w = [w; ones(modulo(L,2)); flipdim(w,1)]; !--error 4 Undefined variable: w --> end !--error 34 Incorrect control instruction syntax. -->endfunction !--error 16 Incorrect command! Thanks for any help Lester // Copyright (C) 2007 Laurent Mazet // // This program is free software; you can redistribute it and/or modify it under// the terms of the GNU General Public License as published by the Free Software// Foundation; either version 3 of the License, or (at your option) any later// version.// // This program is distributed in the hope that it will be useful, but WITHOUT// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more// details.// // You should have received a copy of the GNU General Public License along with// this program; if not, see . // -*- texinfo -*-// @deftypefn {Function File} {@var{w} =} tukeywin (@var{L}, @var{r})// Return the filter coefficients of a Tukey window (also known as the// cosine-tapered window) of length @var{L}. @var{r} defines the ratio// between the constant section and and the cosine section. It has to be// between 0 and 1. The function returns a Hanning window for @var{r}// egals 0 and a full box for @var{r} egals 1. By default @var{r} is set// to 1/2.// // For a definition of the Tukey window, see e.g. Fredric J. Harris,// "On the Use of Windows for Harmonic Analysis with the Discrete Fourier// Transform, Proceedings of the IEEE", Vol. 66, No. 1, January 1978,// Page 67, Equation 38.// @end deftypefn function w=tukeywin(L, r= 1/2) //nargin=>argn(2) // if (nargin < 1 || nargin > 2) if (argn(2) < 1 || argn(2) > 2) print_usage; elseif (nargin == 2) // check that 0 < r < 1 if r > 1 r = 1; elseif r < 0 r = 0; end end // generate window select r case 0, // full box w = ones (L, 1); case 1, // Hanning window // w = hanning (L); window('hanning',L) else // cosine-tapered window t = linspace(0,1,L)(1:$:(1:$/2)'; w = (1 + cos(%pi*(2*t/r-1)))/2; w(floor(r*(L-1)/2)+2:end) = 1; w = [w; ones(modulo(L,2)); flipdim(w,1)]; end endfunction // demo// L = 100;// r = 1/3;// w = tukeywin (L, r);// title(sprintf("%d-point Tukey window, R = %d/%d", L, [p, q] = rat(r), q));// plot(w); On 19 September 2012 23:31, Samuel Gougeon wrote: > ** > Hello, > > Le 20/09/2012 00:05, Lester Anderson a ?crit : > > > function w=tukeywin(L, r= 1/2) > > if (nargin < 1 || nargin > 2) ------ Not sure how to replace this bit (variable not defined) > > > nargin => argn(2) > > .../... > > // generate window > > switch r --------- think this should be select ? > > > Right > > .../... > case 1, > > // Hanning window > w = hanning (L); > > window('hn',L) > > otherwise ------------- else > > > Yes > > // cosine-tapered window > t = linspace(0,1,L)(1:end/2)'; > > replace end with $ : (1:$/2)'; > > > w = (1 + cos(pi*(2*t/r-1)))/2; > > pi => %pi > > > w(floor(r*(L-1)/2)+2:end) = 1; > w = [w; ones(mod(L,2)); flipud(w)]; > > mod => modulo > flipud(w) => flipdim(w,1) > > endswitch ------------------------------------ end ? > > > Yes > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Thu Sep 20 08:41:59 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Thu, 20 Sep 2012 08:41:59 +0200 Subject: [Scilab-users] Trying to work a tukeywin function In-Reply-To: References: <505A47AF.7040109@free.fr> Message-ID: Hi, Can you send us the file as it is now, and I'll take a look. Cheers, A 20 sep 2012 kl. 08:20 skrev Lester Anderson : > Hi Samuel, > Thanks for the pointers. It still fails with lots of errors even with changing the sections you noted). I have copied the errors here, it is like a few errors can have a compound effect on the rest: > > -->exec('C:\Users\Lester\Documents\3DInver\convert\tukeywin.sce', -1) > function w = tukeywin (L, r = 1/2) > !--error 37 > Incorrect function at line 31. > > at line 31 of exec file called by : > exec('C:\Users\Lester\Documents\3DInver\convert\tukeywin.sce', -1) > > -->function w = tukeywin (L, r = 1/2) > !--error 37 > Incorrect function. > > --> //nargin=>argn(2) > --> // if (nargin < 1 || nargin > 2) > --> if (argn(2) < 1 || argn(2) > 2) > !--error 2 > Invalid factor. > > --> print_usage; > !--error 4 > Undefined variable: print_usage > > --> elseif (nargin == 2) > !--error 34 > Incorrect control instruction syntax. > > --> // check that 0 < r < 1 > --> if r > 1 > !--error 4 > Undefined variable: r > > --> r = 1; > --> elseif r < 0 > !--error 34 > Incorrect control instruction syntax. > > --> r = 0; > --> end > !--error 34 > Incorrect control instruction syntax. > > --> end > !--error 34 > Incorrect control instruction syntax. > > --> // generate window > --> select r > --> case 0, > --> // full box > --> w = ones (L, 1); > !--error 4 > Undefined variable: L > > --> case 1, > !--error 34 > Incorrect control instruction syntax. > > --> // Hanning window > --> // = hanning (L); > --> window('hanning',L) > !--error 4 > Undefined variable: L > > --> else > !--error 34 > Incorrect control instruction syntax. > > --> // cosine-tapered window > --> t = linspace(0,1,L)(1:$:(1:$/2)'; > !--error 4 > Undefined variable: L > > --> w = (1 + cos(%pi*(2*t/r-1)))/2; > !--error 4 > Undefined variable: t > > --> w(floor(r*(L-1)/2)+2:end) = 1; > !--error 4 > Undefined variable: L > > --> w = [w; ones(modulo(L,2)); flipdim(w,1)]; > !--error 4 > Undefined variable: w > > --> end > !--error 34 > Incorrect control instruction syntax. > > -->endfunction > !--error 16 > Incorrect command! > > Thanks for any help > > Lester > > // Copyright (C) 2007 Laurent Mazet > // > // This program is free software; you can redistribute it and/or modify it under > // the terms of the GNU General Public License as published by the Free Software > // Foundation; either version 3 of the License, or (at your option) any later > // version. > // > // This program is distributed in the hope that it will be useful, but WITHOUT > // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or > // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more > // details. > // > // You should have received a copy of the GNU General Public License along with > // this program; if not, see . > > // -*- texinfo -*- > // @deftypefn {Function File} {@var{w} =} tukeywin (@var{L}, @var{r}) > // Return the filter coefficients of a Tukey window (also known as the > // cosine-tapered window) of length @var{L}. @var{r} defines the ratio > // between the constant section and and the cosine section. It has to be > // between 0 and 1. The function returns a Hanning window for @var{r} > // egals 0 and a full box for @var{r} egals 1. By default @var{r} is set > // to 1/2. > // > // For a definition of the Tukey window, see e.g. Fredric J. Harris, > // "On the Use of Windows for Harmonic Analysis with the Discrete Fourier > // Transform, Proceedings of the IEEE", Vol. 66, No. 1, January 1978, > // Page 67, Equation 38. > // @end deftypefn > > function w=tukeywin(L, r= 1/2) > > //nargin=>argn(2) > // if (nargin < 1 || nargin > 2) > if (argn(2) < 1 || argn(2) > 2) > print_usage; > elseif (nargin == 2) > // check that 0 < r < 1 > if r > 1 > r = 1; > elseif r < 0 > r = 0; > end > end > > // generate window > select r > case 0, > // full box > w = ones (L, 1); > case 1, > // Hanning window > // w = hanning (L); > window('hanning',L) > else > // cosine-tapered window > t = linspace(0,1,L)(1:$:(1:$/2)'; > w = (1 + cos(%pi*(2*t/r-1)))/2; > w(floor(r*(L-1)/2)+2:end) = 1; > w = [w; ones(modulo(L,2)); flipdim(w,1)]; > end > > endfunction > > // demo > // L = 100; > // r = 1/3; > // w = tukeywin (L, r); > // title(sprintf("%d-point Tukey window, R = %d/%d", L, [p, q] = rat(r), q)); > // plot(w); > > > On 19 September 2012 23:31, Samuel Gougeon wrote: > Hello, > > Le 20/09/2012 00:05, Lester Anderson a ?crit : >> >> function w=tukeywin(L, r= 1/2) >> >> if (nargin < 1 || nargin > 2) ------ Not sure how to replace this bit (variable not defined) >> > nargin => argn(2) > >> .../... >> >> // generate window >> >> switch r --------- think this should be select ? >> > Right >> .../... >> case 1, >> >> // Hanning window >> w = hanning (L); >> > window('hn',L) >> otherwise ------------- else >> > Yes > >> // cosine-tapered window >> t = linspace(0,1,L)(1:end/2)'; >> > replace end with $ : (1:$/2)'; > > >> w = (1 + cos(pi*(2*t/r-1)))/2; >> > pi => %pi > > >> w(floor(r*(L-1)/2)+2:end) = 1; >> w = [w; ones(mod(L,2)); flipud(w)]; >> > mod => modulo > flipud(w) => flipdim(w,1) > >> endswitch ------------------------------------ end ? >> > Yes > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Arvid Ros?n Softube AB S:t Larsgatan 10c SE-582 24 Link?ping Sweden Mobile: (+46) 73 25 123 47 Office: (+46) 13 21 16 23 Fax: (+46) 13 10 00 23 Mail: arvid at softube.com URL: www.softube.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkpsusmitaa at gmail.com Fri Sep 21 06:21:16 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Thu, 20 Sep 2012 21:21:16 -0700 (PDT) Subject: [Scilab-users] How do I write a summation notation in scilab? Message-ID: <1348201276383-4024860.post@n3.nabble.com> Dear friends, How do I write the following function in scilab: I searched the help files in scilab but did not come across such equations or functions inolving sigma. Regards. -- View this message in context: http://mailinglists.scilab.org/How-do-I-write-a-summation-notation-in-scilab-tp4024860.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From denis.crete at thalesgroup.com Fri Sep 21 08:06:15 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Fri, 21 Sep 2012 08:06:15 +0200 Subject: [Scilab-users] How do I write a summation notation in scilab? In-Reply-To: <1348201276383-4024860.post@n3.nabble.com> References: <1348201276383-4024860.post@n3.nabble.com> Message-ID: <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> Hello, n=-10:10; // n is a row vector sum(cos(x+0.09*n*x)) // if x is a scalar; sum(cos(ones(n')*x+0.09*n'*x),'r') // x is a row vector (or scalar) sum(cos(ones(n')*x'+0.09*n'*x'),'r')' // or equivalently sum(cos(x*ones(n)+0.09*x*n),'c') // if x is a column vector (or scalar) s=[]; for n=-10:10, s=s+cos(x+0.09*n*x); end; // in all cases including hypermatrices HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de bkpsusmitaa Envoy??: vendredi 21 septembre 2012 06:21 ??: users at lists.scilab.org Objet?: [Scilab-users] How do I write a summation notation in scilab? Dear friends, How do I write the following function in scilab: I searched the help files in scilab but did not come across such equations or functions inolving sigma. Regards. -- View this message in context: http://mailinglists.scilab.org/How-do-I-write-a-summation-notation-in-scilab-tp4024860.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From denis.crete at thalesgroup.com Fri Sep 21 08:22:47 2012 From: denis.crete at thalesgroup.com (CRETE Denis) Date: Fri, 21 Sep 2012 08:22:47 +0200 Subject: [Scilab-users] How do I write a summation notation in scilab? In-Reply-To: <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> References: <1348201276383-4024860.post@n3.nabble.com> <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> Message-ID: <20900_1348208566_505C07B6_20900_3922_1_908CBC9017354841B2F32BBEC70A05A101C381A64476@THSONEA01CMS01P.one.grp> You probably also to look at "fft", which will be faster. Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de CRETE Denis Envoy??: vendredi 21 septembre 2012 08:06 ??: International users mailing list for Scilab. Objet?: Re: [Scilab-users] How do I write a summation notation in scilab? Hello, n=-10:10; // n is a row vector sum(cos(x+0.09*n*x)) // if x is a scalar; sum(cos(ones(n')*x+0.09*n'*x),'r') // x is a row vector (or scalar) sum(cos(ones(n')*x'+0.09*n'*x'),'r')' // or equivalently sum(cos(x*ones(n)+0.09*x*n),'c') // if x is a column vector (or scalar) s=[]; for n=-10:10, s=s+cos(x+0.09*n*x); end; // in all cases including hypermatrices HTH Denis -----Message d'origine----- De?: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de bkpsusmitaa Envoy??: vendredi 21 septembre 2012 06:21 ??: users at lists.scilab.org Objet?: [Scilab-users] How do I write a summation notation in scilab? Dear friends, How do I write the following function in scilab: I searched the help files in scilab but did not come across such equations or functions inolving sigma. Regards. -- View this message in context: http://mailinglists.scilab.org/How-do-I-write-a-summation-notation-in-scilab-tp4024860.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From bkpsusmitaa at gmail.com Fri Sep 21 08:36:05 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Thu, 20 Sep 2012 23:36:05 -0700 (PDT) Subject: [Scilab-users] How do I write a summation notation in scilab? In-Reply-To: <20900_1348208566_505C07B6_20900_3922_1_908CBC9017354841B2F32BBEC70A05A101C381A64476@THSONEA01CMS01P.one.grp> References: <1348201276383-4024860.post@n3.nabble.com> <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> <20900_1348208566_505C07B6_20900_3922_1_908CBC9017354841B2F32BBEC70A05A101C381A64476@THSONEA01CMS01P.one.grp> Message-ID: <1348209365528-4024863.post@n3.nabble.com> Dear Dr.Cr?t?, Well, is everything in scilab computed via matrices? What is the role of r in sum(cos(ones(n')*x+0.09*n'*x),'r')... and the role of c in sum(cos(x*ones(n)+0.09*x*n),'c')? Do not answer immediately. Take time, I would probably find out by myself. Regards -- View this message in context: http://mailinglists.scilab.org/How-do-I-write-a-summation-notation-in-scilab-tp4024860p4024863.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bkpsusmitaa at gmail.com Fri Sep 21 11:15:43 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Fri, 21 Sep 2012 02:15:43 -0700 (PDT) Subject: [Scilab-users] How do I write a summation notation in scilab? In-Reply-To: <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> References: <1348201276383-4024860.post@n3.nabble.com> <20900_1348207575_505C03D7_20900_3263_1_908CBC9017354841B2F32BBEC70A05A101C381A64425@THSONEA01CMS01P.one.grp> Message-ID: <1348218943155-4024865.post@n3.nabble.com> Dear Dr. Cr?t?, Please post the complete code which when copied-pasted in the text editor and executed gives a graphical plot. The code will help me learn. I have learnt that r and c mean row and column respectively. Eagerly awaiting your codes. Regards -- View this message in context: http://mailinglists.scilab.org/How-do-I-write-a-summation-notation-in-scilab-tp4024860p4024865.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From roch.smets at gmail.com Sun Sep 23 12:46:34 2012 From: roch.smets at gmail.com (roch) Date: Sun, 23 Sep 2012 12:46:34 +0200 Subject: [Scilab-users] how to use 2 colormap in the same figure Message-ID: <20120923104633.GA4268@zorglub> hi, my question is quite simple : how to use 2 different colormap in the same figure. as colormap is a leaf from gcf(), change its value affect the whole figure... thanks, From sgougeon at free.fr Sun Sep 23 16:22:19 2012 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 23 Sep 2012 16:22:19 +0200 Subject: [Scilab-users] how to use 2 colormap in the same figure In-Reply-To: <20120923104633.GA4268@zorglub> References: <20120923104633.GA4268@zorglub> Message-ID: <505F1B1B.3040707@free.fr> Le 23/09/2012 12:46, roch a ?crit : > hi, > > my question is quite simple : how to use 2 different colormap > in the same figure. as colormap is a leaf from gcf(), change its value affect > the whole figure... > By stacking them on each others, or by interlacing them. An example using interlacement has been used to implement ShowImage() for multiple images, provided here: http://forge.scilab.org/index.php/p/IPD/issues/354/ Regards Samuel From paul.carrico at esterline.com Mon Sep 24 08:42:39 2012 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 24 Sep 2012 08:42:39 +0200 Subject: [Scilab-users] Vectorization in Scilab Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774A8@exchsrv.AUXITROL1> Dear All I'm currently reading the document from Micha?l Baudin (Programming in Scilab - V0.9) in order to understand what is vectorization in scilab ; although it is an interesting document, it remains rather "general" ... ... does it exist a specific document that explains how to use vectorization (when, how, etc. ...) ? All the loops can not be replaced by a vectorization ... 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: From jrafaelbguerra at hotmail.com Sat Sep 22 16:29:44 2012 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 22 Sep 2012 07:29:44 -0700 (PDT) Subject: [Scilab-users] Scilab figure operations and console program flow Message-ID: <1348324184434-4024871.post@n3.nabble.com> Scilab's figure operations are difficult to synchronize with Scilab program flows. See the simple code sample below, which uses datatips. This type of issue also applies to other figure operations such as zooming, etc. Is there a workaround to overcome this behavior in Scilab programs? (this seems to be caused by the input function which halts everything on the graphic windows) Thanks and regards Rafael // FIGURE OPERATIONS AND SCILAB PROGRAM FLOW isdatatip=%T; t=0:0.002:1; s=sin(2*%pi*10*t); isdisplay=%T; clf(); while isdisplay plot(t,s); str=input("(Enter 0) to exit or (1) to toggle data tips ON/OFF: ", "string"); if str=="1" then if isdatatip then datatipManagerMode("off"); isdatatip=%F; else datatipManagerMode("on"); isdatatip=%T; end elseif str=="0" then isdisplay=%F; end end // -- View this message in context: http://mailinglists.scilab.org/Scilab-figure-operations-and-console-program-flow-tp4024871.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From roch.smets at gmail.com Mon Sep 24 10:47:12 2012 From: roch.smets at gmail.com (roch) Date: Mon, 24 Sep 2012 10:47:12 +0200 Subject: [Scilab-users] how to use 2 colormap in the same figure In-Reply-To: <505F1B1B.3040707@free.fr> References: <20120923104633.GA4268@zorglub> <505F1B1B.3040707@free.fr> Message-ID: <20120924084710.GA6284@xombul> i'm going to check this... thank you. regards, on Sun, Sep 23, 2012 at 04:22:19PM +0200, Samuel Gougeon wrote : Le 23/09/2012 12:46, roch a ?crit : >hi, > >my question is quite simple : how to use 2 different colormap >in the same figure. as colormap is a leaf from gcf(), change its value affect >the whole figure... By stacking them on each others, or by interlacing them. An example using interlacement has been used to implement ShowImage() for multiple images, provided here: http://forge.scilab.org/index.php/p/IPD/issues/354/ Regards Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- roch smets From stephane.becu at maya-technologies.com Mon Sep 24 11:09:14 2012 From: stephane.becu at maya-technologies.com (=?iso-8859-1?Q?St=E9phane_B=E9cu?=) Date: Mon, 24 Sep 2012 11:09:14 +0200 Subject: [Scilab-users] NaN_Toolbox Message-ID: Hello, I'm currently using SCILAB 5.4.0 beta version but I can not find the NaN_Toolbox available in the 5.3.3 version. To get the NaN_toolbox I downloaded the right ATOMS package and run the attached "builder.sce" file but I got the following error messages: Cr?ation des macros... -- Cr?ation de [nanlib] (Macros) -- Le fichier biblioth?que Z:\MY_SCILAB_LIB\NaN\macros\lib a ?t? mis ? jour, mais ne peut pas ?tre charg? dans Scilab car nanlib est une variable prot?g?e. !--error 10000 tbx_builder_gateway : Ce module requiert un compilateur C mais celui-ci n''a pu ?tre trouv?. at line 27 of function tbx_builder_gateway called by : at line 33 of function builder_main called by : builder_main(); Can anybody give me some explanations? Secondly is it possible to know which ATOMS modules are implemented by default from one scilab version to another? Thanks in advance, St?phane -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Mon Sep 24 14:02:50 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 24 Sep 2012 14:02:50 +0200 Subject: [Scilab-users] Scilab figure operations and console program flow In-Reply-To: <1348324184434-4024871.post@n3.nabble.com> References: <1348324184434-4024871.post@n3.nabble.com> Message-ID: <50604BEA.90904@inria.fr> You are right, the input function is blocks Scilab waiting for the response, a workaround is to use a menu instead of input. Note that the datatip toggle menu still exists in the graphic window menu bar as well as in the toolbar Serge Steer Le 22/09/2012 16:29, Rafael Guerra a ?crit : > Scilab's figure operations are difficult to synchronize with Scilab program > flows. > See the simple code sample below, which uses datatips. > This type of issue also applies to other figure operations such as zooming, > etc. > Is there a workaround to overcome this behavior in Scilab programs? > (this seems to be caused by the input function which halts everything on the > graphic windows) > > Thanks and regards > Rafael > > // FIGURE OPERATIONS AND SCILAB PROGRAM FLOW > isdatatip=%T; > t=0:0.002:1; s=sin(2*%pi*10*t); > isdisplay=%T; > clf(); > while isdisplay > plot(t,s); > str=input("(Enter 0) to exit or (1) to toggle data tips ON/OFF: ", > "string"); > if str=="1" then > if isdatatip then > datatipManagerMode("off"); isdatatip=%F; > else > datatipManagerMode("on"); isdatatip=%T; > end > elseif str=="0" then > isdisplay=%F; > end > end > // > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-figure-operations-and-console-program-flow-tp4024871.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From nomiya at galaxy.dti.ne.jp Mon Sep 24 14:13:08 2012 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Mon, 24 Sep 2012 21:13:08 +0900 Subject: [Scilab-users] scilab 5.4.0.beta3 don't start Message-ID: <87lifzippn.wl%nomiya@galaxy.dti.ne.jp> Hello, Today I got the very latest git of scilab, and compiled. But scilab doesn't start with the message; $ scilab java.lang.reflect.InvocationTargetException What does this message mean? Any help? Thanks in advacs. --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From sylvestre.ledru at scilab-enterprises.com Mon Sep 24 14:27:18 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 24 Sep 2012 14:27:18 +0200 Subject: [Scilab-users] scilab 5.4.0.beta3 don't start In-Reply-To: <87lifzippn.wl%nomiya@galaxy.dti.ne.jp> References: <87lifzippn.wl%nomiya@galaxy.dti.ne.jp> Message-ID: <506051A6.7050407@scilab-enterprises.com> Le 24/09/2012 14:13, Masaru Nomiya a ?crit : > Hello, > > Today I got the very latest git of scilab, and compiled. > But scilab doesn't start with the message; > > $ scilab > java.lang.reflect.InvocationTargetException > > What does this message mean? > Delete the content of ~/.Scilab/scilab-branch-master/ It should work. Sylvestre -- Sylvestre Ledru Operations Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From nomiya at galaxy.dti.ne.jp Mon Sep 24 14:58:04 2012 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Mon, 24 Sep 2012 21:58:04 +0900 Subject: [Scilab-users] scilab 5.4.0.beta3 don't start In-Reply-To: <506051A6.7050407@scilab-enterprises.com> References: <87lifzippn.wl%nomiya@galaxy.dti.ne.jp> <506051A6.7050407@scilab-enterprises.com> Message-ID: <87k3vjinmr.wl%nomiya@galaxy.dti.ne.jp> Hello, In the Message; Subject : Re: [Scilab-users] scilab 5.4.0.beta3 don't start Message-ID : <506051A6.7050407 at scilab-enterprises.com> Date & Time: Mon, 24 Sep 2012 14:27:18 +0200 [Sylvestre] == Sylvestre Ledru has written: Me>> $ scilab Me>> java.lang.reflect.InvocationTargetException Me>> What does this message mean? Sylvestre> Delete the content of ~/.Scilab/scilab-branch-master/ Sylvestre> It should work. That's it! Thanks a lot. Regards. --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From antoine.monmayrant at laas.fr Mon Sep 24 20:52:34 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 24 Sep 2012 20:52:34 +0200 Subject: [Scilab-users] NaN_Toolbox In-Reply-To: References: Message-ID: <5060ABF2.6050303@laas.fr> Le 24/09/12 11:09, St?phane B?cu a ?crit : > Hello, > > I'm currently using SCILAB 5.4.0 beta version but I can not find the NaN_Toolbox available in the 5.3.3 version. > To get the NaN_toolbox I downloaded the right ATOMS package and run the attached "builder.sce" file but I got the following error messages: > > Cr?ation des macros... > -- Cr?ation de [nanlib] (Macros) -- > Le fichier biblioth?que Z:\MY_SCILAB_LIB\NaN\macros\lib a ?t? mis ? jour, > mais ne peut pas ?tre charg? dans Scilab car nanlib est une variable prot?g?e. > !--error 10000 > tbx_builder_gateway : Ce module requiert un compilateur C mais celui-ci n''a pu ?tre trouv?. > at line 27 of function tbx_builder_gateway called by : > at line 33 of function builder_main called by : > builder_main(); > > Can anybody give me some explanations? From what I can understand, you need a compiler to build this module. Do you have compatible compiler installed? http://help.scilab.org/docs/5.4.0-beta-3/en_US/supported_compilers.html > > Secondly is it possible to know which ATOMS modules are implemented by default from one scilab version to another? > > Thanks in advance, > > St?phane > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Mon Sep 24 22:46:53 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Mon, 24 Sep 2012 22:46:53 +0200 Subject: [Scilab-users] advices in optimizing matrix calculations Message-ID: <004001cd9a95$bbbb95d0$3332c170$@carrico@free.fr> Dear all, May I ask some advice in matrix calculation issue, in order to optimize the code ? The matrix hereafter is the first trial in treating a (m x 6) matrix where : - The first line is the upper part of a symmetrical 6x6 tensor (the 3 first components are the diagonal terms) - m may correspond to millions of lines - (each line is independent from the other) I had a look in some function (such as schur, spec, bdiag and so on) in order to see if I can use this symmetrical specificity but I don?t see anything ? Am I wrong ? Several calculations will be done: Eigen values calculation for each submatrix, summation, multiplication and so on Vectorization can be useful to improve speedup ? Any advices ? Thanks in advance Paul PS : M is made from a text file its structure can be change in order to be as efficient as possible Mat = [ 9.315 9.315 28.41 - 0.0000999 - 3.169 - 3.169 ; 2.945 2.945 28.45 0.04826 - 3.175 - 3.175 ; 8.486 9.341 25.73 0.0101 - 3.179 - 3.189 ; 2.043 2.939 25.73 0.038 - 3.185 - 3.182 ; 9.341 8.486 25.73 0.0101 - 3.189 - 3.179 ; 2.939 2.043 25.73 0.038 - 3.182 - 3.185 ; 8.492 8.492 23. 0.02036 - 3.179 - 3.179 ; 2.018 2.018 22.97 0.02779 - 3.172 - 3.172 ; 9.108 8.179 25.01 0.01326 - 3.197 - 1.608 ; 4.695 2.302 25.04 0.0905 - 3.199 - 1.61 ; 8.271 8.186 22.27 0.02824 - 3.212 - 1.601 ; 3.842 2.302 22.29 0.07548 - 3.214 - 1.599 ; 9.134 8.128 24.91 0.01554 - 3.278 - 1.61 ; 4.675 2.145 24.9 0.08819 - 3.276 - 1.612 ; 8.291 8.129 22.16 0.03055 - 3.263 - 1.598 ] ; sub11 sub22 sub33 sub12 sub23 sub13 where sub is a submatrix == 1 line -------------- next part -------------- An HTML attachment was scrubbed... URL: From Patrick.Blee at invista.com Tue Sep 25 09:32:31 2012 From: Patrick.Blee at invista.com (Blee, Patrick) Date: Tue, 25 Sep 2012 02:32:31 -0500 Subject: [Scilab-users] Scilab 5.4 Release Message-ID: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> Hi, Firstly, congrats on the development - certainly a mammoth task but the continual improvement of Scilab/xcos environment is clearly evident ! Whilst I start on a positive note, I'm afraid to report my journey to Scilab/Xcos, through Scicos, has been fraught with difficulties. The main one has always been stability. Firstly, the improvement in the user environment going from 5.3.x to 5.4.x has been immense. However, none of the versions I have downloaded have been stable - scilab has always bombed out when I was modifying an xcos file or indeed an xcos subsystem has corrupted the simulation and, again, crashed scilab. I briefly tried the most up-to-date 5.4 version yesterday (nightly build) - but it had no help files - while 5.4 beta 3 suffered the 5-10 minute drop-out. This is frustrating as there is so much potential in the package - particularly in how it links in so many user-contributed toolboxes. Whilst the above may sound negative, believe me, it is not intended to be - I think this package is going to take Simulation tools to an interesting place ! I have 2 questions today: i) Have you an idea as to when v5.4 will reach the end of the present development phase and be bug-free? ii) Is the long-term plan to hand over/sell Scilab to a Corporate player, introducing a pricing strategy? (This would be a concern from my perspective as the Open-Architecture and Freeware nature of the package to date is a real attraction to the Student/Hobby fraternity - possibly encouraging people to enter the field of Engineering down the line). Best of luck with the on-going development and I hope to hear from you soon, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue Sep 25 10:10:57 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 25 Sep 2012 10:10:57 +0200 Subject: [Scilab-users] advices in optimizing matrix calculations In-Reply-To: <004001cd9a95$bbbb95d0$3332c170$@carrico@free.fr> References: <004001cd9a95$bbbb95d0$3332c170$@carrico@free.fr> Message-ID: <50616711.5050300@inria.fr> Le 24/09/2012 22:46, Paul Carrico a ?crit : > > Dear all, > > May I ask some advice in matrix calculation issue, in order to > optimize the code ? > > The matrix hereafter is the first trial in treating a (m x 6) matrix > where : > > -The first line is the upper part of a symmetrical 6x6 tensor (the 3 > first components are the diagonal terms) > > -m may correspond to millions of lines > > -(each line is independent from the other) > > I had a look in some function (such as schur, spec, bdiag and so on) > in order to see if I can use this symmetrical specificity ... but I > don't see anything ?Am I wrong ? > The schur, spec, bdiag function internally check if the matrix is symmetric and if yes apply specific algorithm. But the matrix must be passed in its full form. > Several calculations will be done: Eigen values calculation for each > submatrix, summation, multiplication and so on ... > > Vectorization can be useful to improve speedup ? > I did not see any possible vectorization (there is no way to compute several schur decompositions with only one call to a primitive function) If you have a multicore processor you can try the parallel_run function. Serge Steer INRIA > > Any advices ? > > Thanks in advance > > Paul > > PS : M is made from a text file ... its structure can be change in > order to be as efficient as possible ... > > Mat = [ > > 9.315 9.315 28.41 - 0.0000999 - 3.169 - > 3.169 ; > 2.945 2.945 28.45 0.04826 - 3.175 - > 3.175 ; > 8.486 9.341 25.73 0.0101 - 3.179 - > 3.189 ; > 2.043 2.939 25.73 0.038 - 3.185 - > 3.182 ; > 9.341 8.486 25.73 0.0101 - 3.189 - > 3.179 ; > 2.939 2.043 25.73 0.038 - 3.182 - > 3.185 ; > 8.492 8.492 23. 0.02036 - 3.179 - > 3.179 ; > 2.018 2.018 22.97 0.02779 - 3.172 - > 3.172 ; > 9.108 8.179 25.01 0.01326 - 3.197 - > 1.608 ; > 4.695 2.302 25.04 0.0905 - 3.199 - > 1.61 ; > 8.271 8.186 22.27 0.02824 - 3.212 - > 1.601 ; > 3.842 2.302 22.29 0.07548 - 3.214 - > 1.599 ; > 9.134 8.128 24.91 0.01554 - 3.278 - > 1.61 ; > 4.675 2.145 24.9 0.08819 - 3.276 - > 1.612 ; > > ... > > ... > 8.291 8.129 22.16 0.03055 - 3.263 - > 1.598 ] ; > > sub11 sub22 sub33 sub12 sub23 sub13 ... > where sub is a submatrix == 1 line > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Sep 25 10:20:53 2012 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 25 Sep 2012 10:20:53 +0200 Subject: [Scilab-users] advices in optimizing matrix calculations In-Reply-To: <50616711.5050300@inria.fr> References: <004001cd9a95$bbbb95d0$3332c170$@carrico@free.fr> <50616711.5050300@inria.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774B8@exchsrv.AUXITROL1> Dear Serge, thanks for this first answer ... ... thus I've understood : - it'll be necessary to build first the full form of each 6x6 matrix in order to compute eigen values and so on (need to optimize chronology in order to make it only ounce) - it might be relevant to have a look in parallel postprocessing (I've up to 8 cores in my working station), - concerning vectorization, I need to have a deeper look on it in order to understand what is it, when it's relevant to use it and when we can not Regards Paul ________________________________ De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Serge Steer Envoy? : mardi 25 septembre 2012 10:11 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] advices in optimizing matrix calculations Le 24/09/2012 22:46, Paul Carrico a ?crit : Dear all, May I ask some advice in matrix calculation issue, in order to optimize the code ? The matrix hereafter is the first trial in treating a (m x 6) matrix where : - The first line is the upper part of a symmetrical 6x6 tensor (the 3 first components are the diagonal terms) - m may correspond to millions of lines - each line is independent from the other) I had a look in some function (such as schur, spec, bdiag and so on) in order to see if I can use this symmetrical specificity ... but I don't see anything ? Am I wrong ? The schur, spec, bdiag function internally check if the matrix is symmetric and if yes apply specific algorithm. But the matrix must be passed in its full form. Several calculations will be done: Eigen values calculation for each submatrix, summation, multiplication and so on ... Vectorization can be useful to improve speedup ? I did not see any possible vectorization (there is no way to compute several schur decompositions with only one call to a primitive function) If you have a multicore processor you can try the parallel_run function. Serge Steer INRIA Any advices ? Thanks in advance Paul PS : M is made from a text file ... its structure can be change in order to be as efficient as possible ... Mat = [ 9.315 9.315 28.41 - 0.0000999 - 3.169 - 3.169 ; 2.945 2.945 28.45 0.04826 - 3.175 - 3.175 ; 8.486 9.341 25.73 0.0101 - 3.179 - 3.189 ; 2.043 2.939 25.73 0.038 - 3.185 - 3.182 ; 9.341 8.486 25.73 0.0101 - 3.189 - 3.179 ; 2.939 2.043 25.73 0.038 - 3.182 - 3.185 ; 8.492 8.492 23. 0.02036 - 3.179 - 3.179 ; 2.018 2.018 22.97 0.02779 - 3.172 - 3.172 ; 9.108 8.179 25.01 0.01326 - 3.197 - 1.608 ; 4.695 2.302 25.04 0.0905 - 3.199 - 1.61 ; 8.271 8.186 22.27 0.02824 - 3.212 - 1.601 ; 3.842 2.302 22.29 0.07548 - 3.214 - 1.599 ; 9.134 8.128 24.91 0.01554 - 3.278 - 1.61 ; 4.675 2.145 24.9 0.08819 - 3.276 - 1.612 ; ... ... 8.291 8.129 22.16 0.03055 - 3.263 - 1.598 ] ; sub11 sub22 sub33 sub12 sub23 sub13 ... where sub is a submatrix == 1 line _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- 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 vincent.couvert at scilab-enterprises.com Tue Sep 25 10:56:09 2012 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Tue, 25 Sep 2012 10:56:09 +0200 Subject: [Scilab-users] Scilab 5.4 Release In-Reply-To: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> References: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> Message-ID: <506171A9.80307@scilab-enterprises.com> Dear Patrick, Thanks for your email, feedbacks and encouragements. We are currently working on Scilab 5.4.0 future version in order to release it next week. Indeed, nightly builds and beta versions are development versions and can be buggy. 5-10 minutes drop-out bug is known and have already been fixed as you have probably noticed in the nightly build. Dealing with the help pages issue, we have had an issue with the Japanese documentation which has impacted the rest, but be reassured, it will be corrected for the final version release. Do you confirm that you tried to use the Japanese version or could it be another problem? Concerning our market positioning and future offer, we indeed plan to have a Long Term Support version of Scilab for subscriptors, and that will include support and maintenance. We have officially announced it during our last ScilabTEC. LTS versions will likely be available next year. Regards, Vincent COUVERT Le 25/09/12 09:32, Blee, Patrick a ?crit : > Hi, > Firstly, congrats on the development -- certainly a mammoth task but > the continual improvement of Scilab/xcos environment is clearly evident ! > Whilst I start on a positive note, I'm afraid to report my journey to > Scilab/Xcos, through Scicos, has been fraught with difficulties. > The main one has always been _stability_. > Firstly, the improvement in the user environment going from 5.3.x to > 5.4.x has been immense. > However, none of the versions I have downloaded have been stable -- > scilab has always bombed out when I was modifying an xcos file or > indeed an xcos subsystem has corrupted the simulation and, again, > crashed scilab. > I briefly tried the most up-to-date 5.4 version yesterday (nightly > build) - but it had no help files -- while 5.4 beta 3 suffered the > 5-10 minute drop-out. > This is frustrating as there is so much potential in the package -- > particularly in how it links in so many user-contributed toolboxes. > Whilst the above may sound negative, believe me, it is not intended to > be -- I think this package is going to take Simulation tools to an > interesting place ! > I have 2 questions today: > > 1. Have you an idea as to when v5.4 will reach the end of the present > development phase and be bug-free? > 2. Is the long-term plan to hand over/sell Scilab to a Corporate > player, introducing a pricing strategy? > (This would be a concern from my perspective as the > Open-Architecture and Freeware nature of the package to date is a > real attraction to the Student/Hobby fraternity -- possibly > encouraging people to enter the field of Engineering down the line). > > Best of luck with the on-going development and I hope to hear from you > soon, > Patrick > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Sep 25 11:05:35 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 25 Sep 2012 11:05:35 +0200 Subject: [Scilab-users] Scilab 5.4 Release In-Reply-To: <506171A9.80307@scilab-enterprises.com> References: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> <506171A9.80307@scilab-enterprises.com> Message-ID: <506173DF.5060409@laas.fr> On 25/09/2012 10:56, Vincent COUVERT wrote: > Dear Patrick, > > Thanks for your email, feedbacks and encouragements. > > We are currently working on Scilab 5.4.0 future version in order to > release it next week. > > Indeed, nightly builds and beta versions are development versions and > can be buggy. 5-10 minutes drop-out bug is known and have already been > fixed as you have probably noticed in the nightly build. Sorry to hijack the conversation but is bug #11257 (memory leak in graphics) solved in the recent nightly? Last time I checked a nightly, the issue was there. Even with the workaround proposed in http://bugzilla.scilab.org/show_bug.cgi?id=11257#c6 graphics were unusable for me and my colleagues. That's a show stopper for us if 5.4 ships with such a bug .... :-( Antoine > > Dealing with the help pages issue, we have had an issue with the > Japanese documentation which has impacted the rest, but be reassured, > it will be corrected for the final version release. Do you confirm > that you tried to use the Japanese version or could it be another problem? > > Concerning our market positioning and future offer, we indeed plan to > have a Long Term Support version of Scilab for subscriptors, and that > will include support and maintenance. We have officially announced it > during our last ScilabTEC. LTS versions will likely be available next > year. > > Regards, > Vincent COUVERT > > Le 25/09/12 09:32, Blee, Patrick a ?crit : >> Hi, >> Firstly, congrats on the development -- certainly a mammoth task but >> the continual improvement of Scilab/xcos environment is clearly evident ! >> Whilst I start on a positive note, I'm afraid to report my journey to >> Scilab/Xcos, through Scicos, has been fraught with difficulties. >> The main one has always been _stability_. >> Firstly, the improvement in the user environment going from 5.3.x to >> 5.4.x has been immense. >> However, none of the versions I have downloaded have been stable -- >> scilab has always bombed out when I was modifying an xcos file or >> indeed an xcos subsystem has corrupted the simulation and, again, >> crashed scilab. >> I briefly tried the most up-to-date 5.4 version yesterday (nightly >> build) - but it had no help files -- while 5.4 beta 3 suffered the >> 5-10 minute drop-out. >> This is frustrating as there is so much potential in the package -- >> particularly in how it links in so many user-contributed toolboxes. >> Whilst the above may sound negative, believe me, it is not intended >> to be -- I think this package is going to take Simulation tools to an >> interesting place ! >> I have 2 questions today: >> >> 1. Have you an idea as to when v5.4 will reach the end of the >> present development phase and be bug-free? >> 2. Is the long-term plan to hand over/sell Scilab to a Corporate >> player, introducing a pricing strategy? >> (This would be a concern from my perspective as the >> Open-Architecture and Freeware nature of the package to date is a >> real attraction to the Student/Hobby fraternity -- possibly >> encouraging people to enter the field of Engineering down the line). >> >> Best of luck with the on-going development and I hope to hear from >> you soon, >> Patrick >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Sep 25 12:12:35 2012 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 25 Sep 2012 12:12:35 +0200 Subject: [Scilab-users] mgetl alternative Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774BB@exchsrv.AUXITROL1> Dear all Is there any efficient alternative to mgetl function ? My need is the following : - I've a big result file in text format, with a mix of text and data (block of data) - after mopen, I need to "record" all the line in order to record data only (by block through csv_textscan) - the mgetl keyword is used but it leads to error message herebellow .. - (stacksize('max') has been used) ... nevertheless the text_file is rather huge with more than 13 millions of lines csv_read function seems to be inapropriate .... Paul ############################################################# Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "mgetl" function. Save your data and restart Scilab. -------------------------------------------------------------------------------- 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 simon.gareste at scilab-enterprises.com Tue Sep 25 14:14:30 2012 From: simon.gareste at scilab-enterprises.com (Simon GARESTE) Date: Tue, 25 Sep 2012 14:14:30 +0200 Subject: [Scilab-users] NaN_Toolbox In-Reply-To: <5060ABF2.6050303@laas.fr> References: <5060ABF2.6050303@laas.fr> Message-ID: <5061A026.4060308@scilab-enterprises.com> Hi, The NaN module wasn't available on 5.4 because one of its dependencies (distfun) wasn't either. I fixed the problem preventing distfun to compile, built it, made it available on 5.4, and then did the same for NaN. Both are now available on 5.4. Simon On 09/24/2012 08:52 PM, Antoine Monmayrant wrote: > Le 24/09/12 11:09, St?phane B?cu a ?crit : >> Hello, >> >> I'm currently using SCILAB 5.4.0 beta version but I can not find the NaN_Toolbox available in the 5.3.3 version. >> To get the NaN_toolbox I downloaded the right ATOMS package and run the attached "builder.sce" file but I got the following error messages: >> >> Cr?ation des macros... >> -- Cr?ation de [nanlib] (Macros) -- >> Le fichier biblioth?que Z:\MY_SCILAB_LIB\NaN\macros\lib a ?t? mis ? jour, >> mais ne peut pas ?tre charg? dans Scilab car nanlib est une variable prot?g?e. >> !--error 10000 >> tbx_builder_gateway : Ce module requiert un compilateur C mais celui-ci n''a pu ?tre trouv?. >> at line 27 of function tbx_builder_gateway called by : >> at line 33 of function builder_main called by : >> builder_main(); >> >> Can anybody give me some explanations? > From what I can understand, you need a compiler to build this module. > Do you have compatible compiler installed? > http://help.scilab.org/docs/5.4.0-beta-3/en_US/supported_compilers.html > >> >> Secondly is it possible to know which ATOMS modules are implemented by default from one scilab version to another? >> >> Thanks in advance, >> >> St?phane >> >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Simon Gareste Support & Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.70 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Sep 25 14:13:22 2012 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 25 Sep 2012 14:13:22 +0200 Subject: [Scilab-users] troubles with csv_scantext Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774BD@exchsrv.AUXITROL1> again, The same code works fine under Windows with scilab5.3.3, but failed under Linux withj scilab5.4.0-beta3 when using csv_textscan (message telling the text can not be read) ... Note previously I did a "dos2unix" If necessary I can share the file in private 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 sylvestre.ledru at scilab-enterprises.com Tue Sep 25 14:19:12 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Tue, 25 Sep 2012 14:19:12 +0200 Subject: [Scilab-users] troubles with csv_scantext In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774BD@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC08B774BD@exchsrv.AUXITROL1> Message-ID: <5061A140.1070701@scilab-enterprises.com> On 25/09/2012 14:13, Carrico, Paul wrote: > again, > > The same code works fine under Windows with scilab5.3.3, but failed > under Linux withj scilab5.4.0-beta3 when using csv_textscan (message > telling the text can not be read) ... Could you try with the nightly ? We did some major improvements in this field. Thanks, Sylvestre PS: Next time, a small test case would help a lot ;) -- ----------------------------- Sylvestre Ledru Operations manager Community manager ----------------------------- Scilab Enterprises http://www.scilab-enterprises.com/ http://www.scilab.org/ ----------------------------- From vincent.couvert at scilab-enterprises.com Tue Sep 25 14:49:29 2012 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Tue, 25 Sep 2012 14:49:29 +0200 Subject: [Scilab-users] Scilab 5.4 Release In-Reply-To: <506173DF.5060409@laas.fr> References: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> <506171A9.80307@scilab-enterprises.com> <506173DF.5060409@laas.fr> Message-ID: <5061A859.7070104@scilab-enterprises.com> Hi Antoine, A fix for this bug is currently under review. These memory leaks will be fixed in tomorrow nightly-builds. Regards, Vincent COUVERT Le 25/09/12 11:05, Antoine Monmayrant a ?crit : > On 25/09/2012 10:56, Vincent COUVERT wrote: >> Dear Patrick, >> >> Thanks for your email, feedbacks and encouragements. >> >> We are currently working on Scilab 5.4.0 future version in order to >> release it next week. >> >> Indeed, nightly builds and beta versions are development versions and >> can be buggy. 5-10 minutes drop-out bug is known and have already >> been fixed as you have probably noticed in the nightly build. > Sorry to hijack the conversation but is bug #11257 (memory leak in > graphics) solved in the recent nightly? > Last time I checked a nightly, the issue was there. > Even with the workaround proposed in > http://bugzilla.scilab.org/show_bug.cgi?id=11257#c6 graphics were > unusable for me and my colleagues. > That's a show stopper for us if 5.4 ships with such a bug .... :-( > > Antoine > > > >> >> Dealing with the help pages issue, we have had an issue with the >> Japanese documentation which has impacted the rest, but be reassured, >> it will be corrected for the final version release. Do you confirm >> that you tried to use the Japanese version or could it be another >> problem? >> >> Concerning our market positioning and future offer, we indeed plan to >> have a Long Term Support version of Scilab for subscriptors, and that >> will include support and maintenance. We have officially announced it >> during our last ScilabTEC. LTS versions will likely be available next >> year. >> >> Regards, >> Vincent COUVERT >> >> Le 25/09/12 09:32, Blee, Patrick a ?crit : >>> Hi, >>> Firstly, congrats on the development -- certainly a mammoth task but >>> the continual improvement of Scilab/xcos environment is clearly >>> evident ! >>> Whilst I start on a positive note, I'm afraid to report my journey >>> to Scilab/Xcos, through Scicos, has been fraught with difficulties. >>> The main one has always been _stability_. >>> Firstly, the improvement in the user environment going from 5.3.x to >>> 5.4.x has been immense. >>> However, none of the versions I have downloaded have been stable -- >>> scilab has always bombed out when I was modifying an xcos file or >>> indeed an xcos subsystem has corrupted the simulation and, again, >>> crashed scilab. >>> I briefly tried the most up-to-date 5.4 version yesterday (nightly >>> build) - but it had no help files -- while 5.4 beta 3 suffered the >>> 5-10 minute drop-out. >>> This is frustrating as there is so much potential in the package -- >>> particularly in how it links in so many user-contributed toolboxes. >>> Whilst the above may sound negative, believe me, it is not intended >>> to be -- I think this package is going to take Simulation tools to >>> an interesting place ! >>> I have 2 questions today: >>> >>> 1. Have you an idea as to when v5.4 will reach the end of the >>> present development phase and be bug-free? >>> 2. Is the long-term plan to hand over/sell Scilab to a Corporate >>> player, introducing a pricing strategy? >>> (This would be a concern from my perspective as the >>> Open-Architecture and Freeware nature of the package to date is >>> a real attraction to the Student/Hobby fraternity -- possibly >>> encouraging people to enter the field of Engineering down the line). >>> >>> Best of luck with the on-going development and I hope to hear from >>> you soon, >>> Patrick >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > 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 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludo.wag at laposte.net Tue Sep 25 15:51:18 2012 From: ludo.wag at laposte.net (Orbeman) Date: Tue, 25 Sep 2012 06:51:18 -0700 (PDT) Subject: [Scilab-users] Colormap of 2 sides Message-ID: <1348581078955-4024901.post@n3.nabble.com> Hello, With this simply example : f = scf(); plot3d1(); f.color_map = autumncolormap(32); How can I obtain a coloration of the 2-sides ? Thank you. -- View this message in context: http://mailinglists.scilab.org/Colormap-of-2-sides-tp4024901.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Sep 25 16:01:19 2012 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 25 Sep 2012 16:01:19 +0200 Subject: [Scilab-users] Colormap of 2 sides In-Reply-To: <1348581078955-4024901.post@n3.nabble.com> References: <1348581078955-4024901.post@n3.nabble.com> Message-ID: <5061B92F.2070203@laas.fr> On 25/09/2012 15:51, Orbeman wrote: > f = scf(); > plot3d1(); > f.color_map = autumncolormap(32); f.children.children.hiddencolor=-1 Antoine From haasejos at web.de Tue Sep 25 15:36:00 2012 From: haasejos at web.de (haasejos) Date: Tue, 25 Sep 2012 06:36:00 -0700 (PDT) Subject: [Scilab-users] dos command execution Message-ID: <1348580160682-4024900.post@n3.nabble.com> hallo, I try to change a directory by using: *[a,b,c] = dos('cd C:\Documents and Settings\haasejos\Desktop\' , '-echo');* That does not work as can be seen with the pwd-command. Is there a bug in this commandline? *cd ('C:\Documents and Settings\haasejos\Desktop\');* changes the directory correctly. thank you! Josef -- View this message in context: http://mailinglists.scilab.org/dos-command-execution-tp4024900.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vogt at centre-cired.fr Tue Sep 25 18:00:22 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 25 Sep 2012 18:00:22 +0200 Subject: [Scilab-users] dos command execution In-Reply-To: <1348580160682-4024900.post@n3.nabble.com> References: <1348580160682-4024900.post@n3.nabble.com> Message-ID: <5061D516.50100@centre-cired.fr> On 25/09/2012 15:36, haasejos wrote: > hallo, > I try to change a directory by using: > *[a,b,c] = dos('cd C:\Documents and Settings\haasejos\Desktop\' , '-echo');* hi as far as I understand, there are two reasons this does not work first, there are spaces in the path you give to cd, so you should use double strings as in the next example: [a,b,c] = dos('cd ""C:\Documents and Settings\haasejos\Desktop\""' , '-echo'); anyway, scilab won't change the current directory using dos("cd"), but you can still use other commands as: [a b c]=dos('dir ""C:\Documents and Settings\""' , '-echo'); to check that dos and the "" "" thing actually work cheers > That does not work as can be seen with the pwd-command. > Is there a bug in this commandline? > > *cd ('C:\Documents and Settings\haasejos\Desktop\');* changes the directory > correctly. > > thank you! > Josef > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/dos-command-execution-tp4024900.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From haasejos at web.de Wed Sep 26 08:52:35 2012 From: haasejos at web.de (haasejos) Date: Tue, 25 Sep 2012 23:52:35 -0700 (PDT) Subject: [Scilab-users] dos command execution In-Reply-To: <5061D516.50100@centre-cired.fr> References: <1348580160682-4024900.post@n3.nabble.com> <5061D516.50100@centre-cired.fr> Message-ID: <1348642355350-4024904.post@n3.nabble.com> Adrien, thank you very much for your answer: You are right! I have to think over these string conventions and to figure out how the dos-commant works. J. -- View this message in context: http://mailinglists.scilab.org/dos-command-execution-tp4024900p4024904.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Patrick.Blee at invista.com Wed Sep 26 17:19:00 2012 From: Patrick.Blee at invista.com (Pat) Date: Wed, 26 Sep 2012 08:19:00 -0700 (PDT) Subject: [Scilab-users] Scilab 5.4 Release In-Reply-To: <506171A9.80307@scilab-enterprises.com> References: <34E7EE1AC743E9429A60C23C105149ED026ECE8F77@MSGIICTC.dtinet.net> <506171A9.80307@scilab-enterprises.com> Message-ID: <1348672740982-4024906.post@n3.nabble.com> Thanks Vincent - Roll on next week ! -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Scilab-5-4-Release-tp4024890p4024906.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at free.fr Wed Sep 26 19:42:18 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Wed, 26 Sep 2012 19:42:18 +0200 Subject: [Scilab-users] funny result for tensor norm calculation Message-ID: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> Dear All, A funny result for calculating the norm of a tensor . for ounce a "traditional" method (that probably uses vectorization in back stage) is faster than the norm function . Paul mode(0); A = [ 1 2 3 ; 4 5 6; 7 8 9] n = 1000 for i = 1 : n for j = 1 : n B(i,j) = i*j; end end // Scilab function tic(); norm(B) t1 = toc() // "traditional" method // norm = sqrt(trace(A_transp * A)) tic norm_ = (trace(B'*B))**0.5 t2 = toc() -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Sep 26 22:31:55 2012 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 26 Sep 2012 22:31:55 +0200 Subject: [Scilab-users] funny result for tensor norm calculation In-Reply-To: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> References: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> Message-ID: <5063663B.5040303@centre-cired.fr> On 26/09/2012 19:42, Paul Carrico wrote: > > Dear All, > > A funny result for calculating the norm of a tensor ... for ounce a > "traditional" method (that probably uses vectorization in back stage) > is faster than the norm function ... > > Paul > > mode(0); > > A= [ 1 2 3 ; 4 5 6; 7 8 9] > > n= 1000 > > fori = 1 : n > > for j = 1 : n > > B(i,j) = i*j; > > end > > end > > /// Scilab function/ > > _tic_(); > > _norm_(B) > > t1= _toc_() > > /// "traditional" method/ > > /// norm = sqrt(trace(A_transp * A))/ > > _tic_ > > norm_= (_trace_(B'*B))**0.5 > > t2= _toc_() > > Hi Yep, same result for me, the handmade computation is 4 times faster. Maybe norm i written assuming B is a complex hypermatrix or something. But the real improvement would be to use a "vectorized" code to generate B, try this: tic n= 1000 fori = 1 : n for j = 1 : n B(i,j) = i*j; end end toc tic BB=(1:n)'*(1:n); toc the second method is several hundred times faster than the first. Note that the first method uses loops when matrix computations are able to do the job, and, worst, B is not initialized. This means that every while, scilab will notice that B is larger than expected, and will ask for a new, larger place in memory to store B, will copy the existing B from the old place to the new one, only to find out later that B is actually even bigger. I do not know how exactly this is implemented, but this can happen basically for each new value of i, so 1000 time. The take away message is: when having to building a matrix with a loop, "initailize" your matrix: tic n= 1000 fori = 1 : n for j = 1 : n Bad(i,j) = i*j; end end bad=toc() tic Good = zeros(n,n); n= 1000 fori = 1 : n for j = 1 : n Good(i,j) = i*j; end end good=toc() bad/good //(in my PC this is already 3x faster) tic best=(1:n)'*(1:n); best=toc() bad/best -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Wed Sep 26 22:54:50 2012 From: paul.carrico at free.fr (Paul Carrico) Date: Wed, 26 Sep 2012 22:54:50 +0200 Subject: [Scilab-users] funny result for tensor norm calculation In-Reply-To: <5063663B.5040303@centre-cired.fr> References: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> <5063663B.5040303@centre-cired.fr> Message-ID: <000601cd9c29$2c55b8e0$85012aa0$@carrico@free.fr> Hi Adrien, I forgot this basic thanks I?ve another na?ve question concerning eigen values calculation : D2 is a symmetrical 3x3 matrix while D1 not ; as expected, D1 gives 3 eigen values with (by convention) eigen_D1(1) > eigen_D1(2) > eigen_D1(3) but this is not the case with the symmetrical matrix (under scilab5.3.3) -> the max value is on eigen_D2(3) any reason ? D1 = [2 2 1 ; 1 2 1 ; 0 2 2] D2 = [ 2 2 1 ; 2 2 1; 1 1 2 ] eigen_D1 = spec(D1) eigen_D2 = spec(D2) Paul De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Adrien Vogt-Schilb Envoy? : mercredi 26 septembre 2012 22:32 ? : International users mailing list for Scilab. Objet : Re: [Scilab-users] funny result for tensor norm calculation On 26/09/2012 19:42, Paul Carrico wrote: Dear All, A funny result for calculating the norm of a tensor for ounce a ?traditional? method (that probably uses vectorization in back stage) is faster than the norm function Paul mode(0); A = [ 1 2 3 ; 4 5 6; 7 8 9] n = 1000 for i = 1 : n for j = 1 : n B(i,j) = i*j; end end // Scilab function tic(); norm(B) t1 = toc() // "traditional" method // norm = sqrt(trace(A_transp * A)) tic norm_ = (trace(B'*B))**0.5 t2 = toc() Hi Yep, same result for me, the handmade computation is 4 times faster. Maybe norm i written assuming B is a complex hypermatrix or something. But the real improvement would be to use a "vectorized" code to generate B, try this: tic n = 1000 for i = 1 : n for j = 1 : n B(i,j) = i*j; end end toc tic BB=(1:n)'*(1:n); toc the second method is several hundred times faster than the first. Note that the first method uses loops when matrix computations are able to do the job, and, worst, B is not initialized. This means that every while, scilab will notice that B is larger than expected, and will ask for a new, larger place in memory to store B, will copy the existing B from the old place to the new one, only to find out later that B is actually even bigger. I do not know how exactly this is implemented, but this can happen basically for each new value of i, so 1000 time. The take away message is: when having to building a matrix with a loop, "initailize" your matrix: tic n = 1000 for i = 1 : n for j = 1 : n Bad(i,j) = i*j; end end bad=toc() tic Good = zeros(n,n); n = 1000 for i = 1 : n for j = 1 : n Good(i,j) = i*j; end end good=toc() bad/good //(in my PC this is already 3x faster) tic best=(1:n)'*(1:n); best=toc() bad/best -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stephane.BECU at cea.fr Thu Sep 27 09:42:12 2012 From: Stephane.BECU at cea.fr (=?iso-8859-1?Q?BECU_St=E9phane_MAYA_Technologies?=) Date: Thu, 27 Sep 2012 07:42:12 +0000 Subject: [Scilab-users] About "findfiles" function Message-ID: Hello, When using the "findfiles" function to list .txt files I face some issues I can not manage: 1. typing findfiles('.','*E*.txt') in my working directory does not always lists all .txt files containing the "E" letter in the file name as I expected 2. using findfiles to list files with same root name (name1.txt, name2.txt,..., name100.txt) sometimes sorts files in a disordered way. How can I fix the way to list the files? For information, this happened whatever SCILAB version between 5.3.2 to 5.4-alpha1. Thanks for help, St?phane From manasdas17 at gmail.com Thu Sep 27 10:11:36 2012 From: manasdas17 at gmail.com (manasdas17) Date: Thu, 27 Sep 2012 01:11:36 -0700 (PDT) Subject: [Scilab-users] Couldn't find the computational functions for the blocks in xcos in scilab-5.3.3 Message-ID: <1348733496103-4024911.post@n3.nabble.com> The computational function for LOGICAL_OP.sci couldn't be found in this file path "SCI/modules/scicos_blocks/src/c/logicalop.c".Inside scicos_blocks folder there is no folder named as "src"in Scilab-5.3.3.If the computational function isnt there then how does the block "LOGICAL_OP.sci" performs its operation.If its not in the specified folder then where in scilab-5.3.3,it can be found. Manas IIT-Bombay India -- View this message in context: http://mailinglists.scilab.org/Couldn-t-find-the-computational-functions-for-the-blocks-in-xcos-in-scilab-5-3-3-tp4024911.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arawak1 at yahoo.com Fri Sep 28 04:05:16 2012 From: arawak1 at yahoo.com (raf .) Date: Thu, 27 Sep 2012 19:05:16 -0700 (PDT) Subject: [Scilab-users] Remove from mailing list Message-ID: <1348797916.12845.YahooMailNeo@web121606.mail.ne1.yahoo.com> Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: From arawak1 at yahoo.com Fri Sep 28 05:10:10 2012 From: arawak1 at yahoo.com (raf .) Date: Thu, 27 Sep 2012 20:10:10 -0700 (PDT) Subject: [Scilab-users] remove from mailing list Message-ID: <1348801810.53609.YahooMailMobile@web121601.mail.ne1.yahoo.com> Please remove me from this mailing list Thank You, -------------- next part -------------- An HTML attachment was scrubbed... URL: From arawak1 at yahoo.com Fri Sep 28 05:14:11 2012 From: arawak1 at yahoo.com (raf .) Date: Thu, 27 Sep 2012 20:14:11 -0700 (PDT) Subject: [Scilab-users] funny result for tensor norm calculation Message-ID: <1348802051.84335.YahooMailMobile@web121606.mail.ne1.yahoo.com> PlEase remove me from this mailing list. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Fri Sep 28 08:30:26 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 28 Sep 2012 08:30:26 +0200 Subject: [Scilab-users] Remove from mailing list In-Reply-To: <1348797916.12845.YahooMailNeo@web121606.mail.ne1.yahoo.com> References: <1348797916.12845.YahooMailNeo@web121606.mail.ne1.yahoo.com> Message-ID: <50654402.10803@scilab-enterprises.com> On 28/09/2012 04:05, raf . wrote: > Thank You See here: http://lists.scilab.org/mailman/listinfo/users Regards, Sylvestre -- Sylvestre Ledru Operation Manager / Community Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Fri Sep 28 11:22:49 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 28 Sep 2012 10:22:49 +0100 Subject: [Scilab-users] How to add numbers beside stacked bar chart Message-ID: Dear Sir, I would like to add data (such as percentage of total for each bar) to bar charts plotted with data such as shown in the attached SCILAB file. The contents of the file is also reproduced below. Kindly suggest the command I should use. God bless you. Samuel Ogbonna Enibe Department of Mechanical Engineering University of Nigeria, Nsukka, Nigeria //////////////// CONTENTS OF SCILAB file ///////////////////////// year = [2000 2010 2020 2030];//years for the data data = [8.18 21.54 49.68 62.56;//data for industry 10.61 15.73 24.56 39.45;//data for Transport 15.61 16.17 18.45 24.84;//data for Household 1.72 2.3 3.13 4.28//data for services ]; data2 = data';//transpose of data sectors = ["Industry" "Transport" "Household" "Services"]; bar(year,data2,"stacked"); xtitle("","","Energy Demand,mtoe"); legend(sectors,"in_upper_left"); -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: energy-iloeje-2012-test.sce Type: application/octet-stream Size: 453 bytes Desc: not available URL: From Serge.Steer at inria.fr Fri Sep 28 13:50:21 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 28 Sep 2012 13:50:21 +0200 Subject: [Scilab-users] funny result for tensor norm calculation In-Reply-To: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> References: <000301cd9c0e$47768fc0$d663af40$@carrico@free.fr> Message-ID: <50658EFD.1010201@inria.fr> norm(B) computes the L2 norm of (the greatest singular value) while norm(B,'fro') and sqrt(B'*B) compute the frobennius norm of B __ B=rand(100,100); tic();norm(B);t2=toc(); B=rand(100,100); tic();norm(B,'fro');tf=toc(); that explain why /sqrt(trace(A_transp * A)) can be more efficient than norm(A) / /Serge Steer / Le 26/09/2012 19:42, Paul Carrico a ?crit : > > Dear All, > > A funny result for calculating the norm of a tensor ... for ounce a > "traditional" method (that probably uses vectorization in back stage) > is faster than the norm function ... > > Paul > > mode(0); > > A= [ 1 2 3 ; 4 5 6; 7 8 9] > > n= 1000 > > fori = 1 : n > > for j = 1 : n > > B(i,j) = i*j; > > end > > end > > /// Scilab function/ > > _tic_(); > > _norm_(B) > > t1= _toc_() > > /// "traditional" method/ > > /// norm = sqrt(trace(A_transp * A))/ > > _tic_ > > norm_= (_trace_(B'*B))**0.5 > > t2= _toc_() > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Fri Sep 28 15:28:08 2012 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 28 Sep 2012 15:28:08 +0200 Subject: [Scilab-users] How to add numbers beside stacked bar chart In-Reply-To: References: Message-ID: <5065A5E8.6030908@inria.fr> Le 28/09/2012 11:22, Samuel Enibe a ?crit : > year = [2000 2010 2020 2030];//years for the data > data = [8.18 21.54 49.68 62.56;//data for industry > 10.61 15.73 24.56 39.45;//data for Transport > 15.61 16.17 18.45 24.84;//data for Household > 1.72 2.3 3.13 4.28//data for services > ]; > data2 = data';//transpose of data > sectors = ["Industry" "Transport" "Household" "Services"]; > bar(year,data2,"stacked"); > xtitle("","","Energy Demand,mtoe"); > legend(sectors,"in_upper_left"); Here is a solution year = [2000 2010 2020 2030];//years for the data data = [8.18 21.54 49.68 62.56;//data for industry 10.61 15.73 24.56 39.45;//data for Transport 15.61 16.17 18.45 24.84;//data for Household 1.72 2.3 3.13 4.28//data for services ]; data2 = data';//transpose of data sectors = ["Industry" "Transport" "Household" "Services"]; clf;bar(year,data2,"stacked"); ny=size(year,'*'); cdata=cumsum([zeros(1,ny);data(1:$-1,:)],1)+data/2; for j=1:ny //loop on years for i=1:size(data,1) //loop on types l=string(data(i,j)); r=xstringl(0,0,l); xstring(year(j)-r(3)/2,cdata(i,j)-r(4)/2,l); end end xtitle("","","Energy Demand,mtoe"); legend(sectors,"in_upper_left"); Serge Steer INRIA From brad at bradgoodman.com Fri Sep 28 15:30:28 2012 From: brad at bradgoodman.com (bkgoodamn) Date: Fri, 28 Sep 2012 06:30:28 -0700 (PDT) Subject: [Scilab-users] read_csv returning "Undefined variable" Message-ID: <1348839028402-4024919.post@n3.nabble.com> I am very new to Scilab, using version 5.3.3 (Windows) and trying to import csv data. Everything I try always returns: Undefined variable: read_csv I have tried things such as: B = read_csv(TMPDIR + '/foo.csv');M = read_csv('test.foo');M = read_csv('y:\bkg\test.csv');M=read_csv(test.foo');M=read_csv("test.foo",",");M=read_csv("test.foo",",")read_csv Absolutely everything returns the same error. Any ideas what I'm doing wrong?? -Brad -- View this message in context: http://mailinglists.scilab.org/read-csv-returning-Undefined-variable-tp4024919.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From samuel.enibe at unn.edu.ng Fri Sep 28 16:34:22 2012 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Fri, 28 Sep 2012 15:34:22 +0100 Subject: [Scilab-users] How to add numbers beside stacked bar chart In-Reply-To: <5065A5E8.6030908@inria.fr> References: <5065A5E8.6030908@inria.fr> Message-ID: Dear Serge, Thank you so much for your suggestions. It has worked very well. I am very gratefull for the insight. Enibe On Fri, Sep 28, 2012 at 2:28 PM, Serge Steer wrote: > Le 28/09/2012 11:22, Samuel Enibe a ?crit : > > year = [2000 2010 2020 2030];//years for the data >> data = [8.18 21.54 49.68 62.56;//data for industry >> 10.61 15.73 24.56 39.45;//data for Transport >> 15.61 16.17 18.45 24.84;//data for Household >> 1.72 2.3 3.13 4.28//data for services >> ]; >> data2 = data';//transpose of data >> sectors = ["Industry" "Transport" "Household" "Services"]; >> bar(year,data2,"stacked"); >> xtitle("","","Energy Demand,mtoe"); >> legend(sectors,"in_upper_left"**); >> > > Here is a solution > > > year = [2000 2010 2020 2030];//years for the data > data = [8.18 21.54 49.68 62.56;//data for industry > 10.61 15.73 24.56 39.45;//data for Transport > 15.61 16.17 18.45 24.84;//data for Household > 1.72 2.3 3.13 4.28//data for services > ]; > data2 = data';//transpose of data > sectors = ["Industry" "Transport" "Household" "Services"]; > clf;bar(year,data2,"stacked"); > ny=size(year,'*'); > cdata=cumsum([zeros(1,ny);**data(1:$-1,:)],1)+data/2; > for j=1:ny //loop on years > for i=1:size(data,1) //loop on types > l=string(data(i,j)); > r=xstringl(0,0,l); > xstring(year(j)-r(3)/2,cdata(**i,j)-r(4)/2,l); > end > end > > xtitle("","","Energy Demand,mtoe"); > legend(sectors,"in_upper_left"**); > > > Serge Steer > INRIA > ______________________________**_________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/**mailman/listinfo/users > - -------------- next part -------------- An HTML attachment was scrubbed... URL: From bcfjohns at gmail.com Fri Sep 28 22:30:57 2012 From: bcfjohns at gmail.com (Benjamin Johnson) Date: Fri, 28 Sep 2012 16:30:57 -0400 Subject: [Scilab-users] Unable to use lincos with some multiple output systems In-Reply-To: References: <5065A5E8.6030908@inria.fr> Message-ID: <15DC7840-24E4-4570-A41C-6AC16C40F439@gmail.com> Hi all, I want to have 3 outputs from an xcos model I developed for a series elastic actuator. When I only have 2 lincos works fine. When I add a third output I get plant=lincos(scs_m); !--error 15 Submatrix incorrectly defined. at line 235 of function lincos called by : plant=lincos(scs_m); I tested this with some very simple models with the same result. A single input to a gain block with a gain of one connects to two, three, or four outputs. When there are only two outputs lincos works fine. When there are three or four outputs I get the above error. I'm running Scilab 5.3.3 on Windows 7 in a virtual machine. Thanks, -Ben Johnson From bkpsusmitaa at gmail.com Sat Sep 29 11:54:23 2012 From: bkpsusmitaa at gmail.com (bkpsusmitaa) Date: Sat, 29 Sep 2012 02:54:23 -0700 (PDT) Subject: [Scilab-users] What's the difference between Scilab mailinglist and Scilab Forum? Message-ID: <1348912463389-4024923.post@n3.nabble.com> I find that Scilab also maintains a forum at http://www.scilab.in/forum . So What's the difference between Scilab mailinglist and Scilab Forum? At a first glance it appears that the two exist independent of each other. Is it meant to be so? Isn't it a waste of resources? Regards -- View this message in context: http://mailinglists.scilab.org/What-s-the-difference-between-Scilab-mailinglist-and-Scilab-Forum-tp4024923.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.