From samuel.enibe at unn.edu.ng Sun Nov 1 05:23:28 2015 From: samuel.enibe at unn.edu.ng (Samuel Enibe) Date: Sun, 1 Nov 2015 05:23:28 +0100 Subject: [Scilab-users] Error message In-Reply-To: References: Message-ID: The linregr function is defined in an external module. Once you load the module, the function will be defined, and it should run. Samuel Ogbonna Enibe University of Nigeria, Nsukka, Nigeria On Sat, Oct 31, 2015 at 2:06 PM, Edmund Okoroigwe < edmund.okoroigwe at unn.edu.ng> wrote: > Hi all, > I have a Scilab code I have run successfully previously. [b1,start] = > linregr ( [ a1 T1], "a1 T1", "1 T1", "a1"); > Now I want to run it again in the same file and folder but I keep on > receiving error message > 'Undefined variable: linregr'. > Please remind me how to overcome this so that my script will run. > Thanks > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgsmntry at gmail.com Sun Nov 1 06:26:11 2015 From: pgsmntry at gmail.com (Parthageet Samantaray) Date: Sun, 1 Nov 2015 10:56:11 +0530 Subject: [Scilab-users] How to plot frequency spectrum in Xcos for Scilab Version 5.5.2(64 bit) Message-ID: Hello, I am trying to plot the Frequency Spectrum of a Sampled Sinusoidal Wave in the above mentioned version of Scilab using XCOS. But I didn't find any Scope for that in the Sinks Palette. I found that there was some toolbox called Modnum which had a "pspec_scope" to plot the Power Spectrum of a signal. But this was for Scilab version 4.2, so unable to use in 5.5.2(64 bit). If anyone has any idea any this regard, kindly post it. Thanks and Regards. Parthageet Samantaray -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmund.okoroigwe at unn.edu.ng Sun Nov 1 13:25:31 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Sun, 1 Nov 2015 14:25:31 +0200 Subject: [Scilab-users] Error message In-Reply-To: References: Message-ID: Thanks to Prof and others, I have tried atomsInstall(['linregr']), a number of times to re-install the module but I keep on getting error message " atomsInstallList: The package linregr is not available" Is there any other method? Thanks for your help On Sun, Nov 1, 2015 at 6:23 AM, Samuel Enibe wrote: > The linregr function is defined in an external module. Once you load the > module, the function will be defined, and it should run. > > Samuel Ogbonna Enibe > University of Nigeria, Nsukka, Nigeria > > On Sat, Oct 31, 2015 at 2:06 PM, Edmund Okoroigwe < > edmund.okoroigwe at unn.edu.ng> wrote: > >> Hi all, >> I have a Scilab code I have run successfully previously. [b1,start] = >> linregr ( [ a1 T1], "a1 T1", "1 T1", "a1"); >> Now I want to run it again in the same file and folder but I keep on >> receiving error message >> 'Undefined variable: linregr'. >> Please remind me how to overcome this so that my script will run. >> Thanks >> >> _______________________________________________ >> 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 > > -- Edmund C.Okoroigwe, National Centre for Energy Research and Development,/ Dept of Mech. Engineering University of Nigeria, Nsukka +234-8057156223, +234-8064879825 -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.strelkov at gmail.com Sun Nov 1 21:48:28 2015 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sun, 1 Nov 2015 23:48:28 +0300 Subject: [Scilab-users] How to plot frequency spectrum in Xcos for Scilab Version 5.5.2(64 bit) In-Reply-To: References: Message-ID: Dear Parthageet Samantaray! You are right about PSPECSCOPE_? in Modnum toolbox. For now it is available only for ScicosLab . There is a project from Peter Fabo for porting Modnum to modern Scilab (see here and in the mail list ). I prefer to use Scilab with Xcos, so I suggest the following solution (tested on 5.5.2 x64): 1. Create Xcos model with variables - see *sine.xcos* 2. Create Scilab script file for launching Xcos model and plotting result as function of time and frequency (with built-in FFT function) - see *sine_launcher.sce* 3. Launch *sine_launcher.sce* and it will simulate Xcos model and plot FFT for it Hope this helps. With best regards, maintainer and developer of Mathieu functions toolbox for Scilab, IEEE member, Ph.D., Nikolay Strelkov. ? ?????????, ?.?.?., ????????? ??????? ????? ???????????? ??? ??. ?.?. ???????????? ??? "???", ???? IEEE, ???????? ?.?. 2015-11-01 8:26 GMT+03:00 Parthageet Samantaray : > Hello, > > I am trying to plot the Frequency Spectrum of a Sampled Sinusoidal Wave in > the above mentioned version of Scilab using XCOS. But I didn't find any > Scope for that in the Sinks Palette. > > I found that there was some toolbox called Modnum which had a > "pspec_scope" to plot the Power Spectrum of a signal. But this was for > Scilab version 4.2, so unable to use in 5.5.2(64 bit). > > If anyone has any idea any this regard, kindly post it. > > Thanks and Regards. > Parthageet Samantaray > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sine.xcos Type: application/octet-stream Size: 42766 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sine_launcher.sce Type: application/x-scilab Size: 1291 bytes Desc: not available URL: From Christophe.Dang at sidel.com Mon Nov 2 10:08:42 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 2 Nov 2015 09:08:42 +0000 Subject: [Scilab-users] Error message In-Reply-To: References: Message-ID: Hello, > De : Edmund Okoroigwe > Envoy? : dimanche 1 novembre 2015 13:26 > > I have tried atomsInstall(['linregr') linregr() is the name of the function, not of the package. A quick search told me that it might belong to the regtools module. http://atoms.scilab.org/toolboxes/regtools Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From edmund.okoroigwe at unn.edu.ng Mon Nov 2 11:39:06 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Mon, 2 Nov 2015 12:39:06 +0200 Subject: [Scilab-users] Error message In-Reply-To: References: Message-ID: Dear All, Thanks for all your contributions. It is now working fine. Cheers On Mon, Nov 2, 2015 at 11:08 AM, Dang, Christophe wrote: > Hello, > > > De : Edmund Okoroigwe > > Envoy? : dimanche 1 novembre 2015 13:26 > > > > I have tried atomsInstall(['linregr') > > linregr() is the name of the function, not of the package. > > A quick search told me that it might belong to the regtools module. > > http://atoms.scilab.org/toolboxes/regtools > > Regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error), > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Edmund C.Okoroigwe, National Centre for Energy Research and Development,/ Dept of Mech. Engineering University of Nigeria, Nsukka +234-8057156223, +234-8064879825 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgsmntry at gmail.com Tue Nov 3 13:04:23 2015 From: pgsmntry at gmail.com (Parthageet Samantaray) Date: Tue, 3 Nov 2015 17:34:23 +0530 Subject: [Scilab-users] How to plot frequency spectrum in Xcos for Scilab Version 5.5.2(64 bit) In-Reply-To: References: Message-ID: Thanks a lot Nikolay for such a fast response. I will go through it and will attempt implementation of my design. With regards. Parthageet Samantaray On Nov 2, 2015 2:21 AM, "Nikolay Strelkov" wrote: > Dear Parthageet Samantaray! > > You are right about PSPECSCOPE_? > > in Modnum toolbox. For now it is available only for ScicosLab > . > There is a project from Peter Fabo for porting Modnum to modern Scilab > (see here and in the mail > list > > ). > > I prefer to use Scilab with Xcos, so I suggest the following solution > (tested on 5.5.2 x64): > 1. Create Xcos model with variables - see *sine.xcos* > 2. Create Scilab script file for launching Xcos model and plotting result > as function of time and frequency (with built-in FFT function) - see > *sine_launcher.sce* > 3. Launch *sine_launcher.sce* and it will simulate Xcos model and plot > FFT for it > > Hope this helps. > > With best regards, > maintainer and developer of Mathieu functions toolbox > for Scilab, > IEEE member, Ph.D., > Nikolay Strelkov. > > ? ?????????, ?.?.?., > ????????? ??????? ????? ???????????? ??? > ??. ?.?. ???????????? ??? "???", ???? IEEE, > ???????? ?.?. > > 2015-11-01 8:26 GMT+03:00 Parthageet Samantaray : > >> Hello, >> >> I am trying to plot the Frequency Spectrum of a Sampled Sinusoidal Wave >> in the above mentioned version of Scilab using XCOS. But I didn't find any >> Scope for that in the Sinks Palette. >> >> I found that there was some toolbox called Modnum which had a >> "pspec_scope" to plot the Power Spectrum of a signal. But this was for >> Scilab version 4.2, so unable to use in 5.5.2(64 bit). >> >> If anyone has any idea any this regard, kindly post it. >> >> Thanks and Regards. >> Parthageet Samantaray >> >> _______________________________________________ >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.lebeillan at outlook.com Wed Nov 4 06:55:54 2015 From: christopher.lebeillan at outlook.com (Planet59) Date: Tue, 3 Nov 2015 22:55:54 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller Message-ID: <1446616554965-4033072.post@n3.nabble.com> Hello, After installing successfully COSELICA blocks, I wanted to run some demo on order to see how to implement model with those blocks. When running the simulation, I got a error message about C compiller: /--------------------------------------------\ Main Modelica : C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_im.mo Flat Modelica : C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_imf.mo Simulation C code :C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_im.c Generate a loader file Generate a Makefile Running the Makefile !sorry compiling problem ! ! ! !A Fortran or C compiler is required. ! c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update./ I have typed this command in the console so that someone help me how to solve this problem (saw it in other related issue but the solution were not explained clearly). /-->haveacompiler() ans = F/ So it seems that I have not the C compiller. But where could I get this C compiller needed to run correctly the COSELICA blocks ? Which application and how to link it to scilab ? Thank in advance for help and your reply. Planet59 Best Regards -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From n.strelkov at gmail.com Wed Nov 4 10:16:44 2015 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Wed, 4 Nov 2015 12:16:44 +0300 Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1446616554965-4033072.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> Message-ID: Dear Christopher! If you are on Windows, you should install MinGW compiler from Scilab ATOMS (see its Description). With best regards, maintainer and developer of Mathieu functions toolbox for Scilab, IEEE member, Ph.D., Nikolay Strelkov. 2015-11-04 8:55 GMT+03:00 Planet59 : > Hello, > > After installing successfully COSELICA blocks, I wanted to run some demo on > order to see how to implement model with those blocks. > > When running the simulation, I got a error message about C compiller: > /--------------------------------------------\ > Main Modelica : > > C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_im.mo > > Flat Modelica : > > C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_imf.mo > Simulation C code > > :C:\Users\XXXXXXX\AppData\Local\Temp\SCI_TMP_5984_\HeatTransfer_TwoMasses_im.c > Generate a loader file > Generate a Makefile > Running the Makefile > > !sorry compiling problem ! > ! ! > !A Fortran or C compiler is required. ! > c_pass1: build the modelica meta-block failed > > xcos_simulate: Error during block parameters update./ > > < > http://mailinglists.scilab.org/file/n4033072/InfosMessageScilabXcosCoselica.png > > > > I have typed this command in the console so that someone help me how to > solve this problem (saw it in other related issue but the solution were not > explained clearly). > /-->haveacompiler() > ans = > > F/ > > So it seems that I have not the C compiller. But where could I get this C > compiller needed to run correctly the COSELICA blocks ? Which application > and how to link it to scilab ? > > Thank in advance for help and your reply. > > Planet59 > Best Regards > > > > -- > View this message in context: > http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072.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 fujimoto2005 at gmail.com Thu Nov 5 16:06:58 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 5 Nov 2015 08:06:58 -0700 (MST) Subject: [Scilab-users] link-pasting into MS Word documnets Message-ID: <1446736018019-4033075.post@n3.nabble.com> Is there any ways to paste the scilab graphic into MS word documents linked with the source file such as scg files or eps files? I want the diagram embedded in the word documents to reflect the change of the original source files. Best regards -- View this message in context: http://mailinglists.scilab.org/link-pasting-into-MS-Word-documnets-tp4033075.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j.s.strom at hslmg.de Fri Nov 6 11:06:02 2015 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 06 Nov 2015 11:06:02 +0100 Subject: [Scilab-users] Maximize a graphic window from iconified condition Message-ID: <563C7B8A.3080001@hslmg.de> Hallo Scilab experts, Given a graphic window created by f1=figure(1) is minimized (iconified) at a certain point of a script: Which command(s) can lift it visible on to the screen (i. e. maximize it)? Something likemaximize(f1) ormaximize(1) does not exist. I triedshow_window(1) and show_window(f1) with no effect. Hoping to receive advice Jens S. Strom -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.lebeillan at outlook.com Sat Nov 7 03:14:29 2015 From: christopher.lebeillan at outlook.com (Planet59) Date: Fri, 6 Nov 2015 19:14:29 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: References: <1446616554965-4033072.post@n3.nabble.com> Message-ID: <1446862469622-4033077.post@n3.nabble.com> Hello, Thank you for the quick reply ! I will install once I have resolved an another problem... I declared it on bugzilla Under ID 14242 (EXEPTION ACCESS VIOLATION with get function)...Hope to get solution as soons as possible to work on Xcos. BR Christopher ----- Dear, Best regards Christopher -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033077.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Tue Nov 10 15:29:19 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 10 Nov 2015 15:29:19 +0100 Subject: [Scilab-users] Maximize a graphic window from iconified condition In-Reply-To: <563C7B8A.3080001@hslmg.de> References: <563C7B8A.3080001@hslmg.de> Message-ID: <5641FF3F.8060308@free.fr> Hello, Le 06/11/2015 11:06, Jens Simon Strom a ?crit : > Hallo Scilab experts, > Given a graphic window created by f1=figure(1) is minimized > (iconified) at a certain point of a script: Which command(s) can lift > it visible on to the screen (i. e. maximize it)? Something > likemaximize(f1) ormaximize(1) does not exist. I triedshow_window(1) > and show_window(f1) with no effect. This bugzilla thread could give you some hints: http://bugzilla.scilab.org/11363 Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Nov 10 22:40:12 2015 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 10 Nov 2015 22:40:12 +0100 Subject: [Scilab-users] Maximize a graphic window from iconified condition In-Reply-To: <5641FF3F.8060308@free.fr> References: <563C7B8A.3080001@hslmg.de> <5641FF3F.8060308@free.fr> Message-ID: <5642643C.3010600@hslmg.de> Hello, maybe "copy()" offers a solution. Regards Jens ------------------------------------------------------------------------------------------------------------------- Am 10.11.2015 15:29, schrieb Samuel Gougeon: > Hello, > > Le 06/11/2015 11:06, Jens Simon Strom a ?crit : >> Hallo Scilab experts, >> Given a graphic window created by f1=figure(1) is minimized >> (iconified) at a certain point of a script: Which command(s) can lift >> it visible on to the screen (i. e. maximize it)? Something >> likemaximize(f1) ormaximize(1) does not exist. I triedshow_window(1) >> and show_window(f1) with no effect. > > This bugzilla thread could give you some hints: > http://bugzilla.scilab.org/11363 > > Regards > Samuel Gougeon > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mohammednazreen at live.com Thu Nov 12 03:41:36 2015 From: mohammednazreen at live.com (Nazreen) Date: Wed, 11 Nov 2015 19:41:36 -0700 (MST) Subject: [Scilab-users] Reading an xcos diagram with scs_m In-Reply-To: <1441780352.2687.62.camel@scilab-enterprises.com> References: <1441780352.2687.62.camel@scilab-enterprises.com> Message-ID: <1447296096910-4033080.post@n3.nabble.com> Dear Mr. Cl?ment David, I am developing a toolbox with new xcos blocks which can create many different diagrams. For instance, I have many xcos diagram files saved and have a few open on scilab xcos. For example, I have an Xcos block called "Solver" in each file but I would like to perform calculations on one file by clicking the block in that file. How can Scilab/Xcos tell which file I want to say use the function ImportXcosDiagram? In other words, get the scs_m from the diagram file where the xcos block was clicked when many files are open without having to state the file directory? Regards, Nazreen. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-with-scs-m-tp4032802p4033080.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From amonmayr at laas.fr Thu Nov 12 11:09:51 2015 From: amonmayr at laas.fr (amonmayr at laas.fr) Date: Thu, 12 Nov 2015 11:09:51 +0100 Subject: [Scilab-users] Help with bvodeS & bvode and unusual boundary conditions Message-ID: <5644656F.6060308@laas.fr> Hi everyone, I'm trying to understand how bvodeS works and whether I can use it to solve numerically my problem. A bit of context: I have a 1D coupled-mode problem, where I model the propagation along one direction (let's call it y) of two modes (one in +y-direction and one in the -y-direction). Schematically, it looks like this: a(0) -->| ODE |-->a(L) b(0) <--| ODE |<--b(L) The ODE is of the first order (only a(y), b(y) and a'(y) and b'(y) in the ODE, together with non-constant factors). The thing is that I have scattering-like boundary conditions. I know the inputs [a(0)=a0;b(L)=bL] and look for the outputs [a(L)=?; b(0)=?]. I am of course also interested in the values of [a(y), b(y)] for all y in [0,L], but the puzzling issue are my boundary conditions. I basically half of my conditions on one side, the other half on the other side. Can I solve such a system using bvodeS? If I can, how am I supposed to build "zeta" to reflect that my conditions only concerns a(0) and b(L)? Is this doable to get zeta "with holes"? Thank you in advance for your help, Antoine From Serge.Steer at inria.fr Thu Nov 12 12:19:55 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Thu, 12 Nov 2015 12:19:55 +0100 Subject: [Scilab-users] Help with bvodeS & bvode and unusual boundary conditions In-Reply-To: <5644656F.6060308@laas.fr> References: <5644656F.6060308@laas.fr> Message-ID: <564475DB.5070109@inria.fr> in zeta you will give the locations (relative to y) of your boundary conditions in your case something like [0 0 0 , L L L ] if you have 6 states 3 with initial constraints and 3 with final contraints The constraints should then be defined by the gsub and dgsub functions Serge Le 12/11/2015 11:09, amonmayr at laas.fr a ?crit : > Hi everyone, > > I'm trying to understand how bvodeS works and whether I can use it to > solve numerically my problem. > A bit of context: > I have a 1D coupled-mode problem, where I model the propagation along > one direction (let's call it y) of two modes (one in +y-direction and > one in the -y-direction). > Schematically, it looks like this: > > a(0) -->| ODE |-->a(L) > b(0) <--| ODE |<--b(L) > > The ODE is of the first order (only a(y), b(y) and a'(y) and b'(y) in > the ODE, together with non-constant factors). > > The thing is that I have scattering-like boundary conditions. > I know the inputs [a(0)=a0;b(L)=bL] and look for the outputs [a(L)=?; > b(0)=?]. > I am of course also interested in the values of [a(y), b(y)] for all > y in [0,L], but the puzzling issue are my boundary conditions. > I basically half of my conditions on one side, the other half on the > other side. > Can I solve such a system using bvodeS? > If I can, how am I supposed to build "zeta" to reflect that my > conditions only concerns a(0) and b(L)? > Is this doable to get zeta "with holes"? > > Thank you in advance for your help, > > Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From clement.david at scilab-enterprises.com Thu Nov 12 14:17:20 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 12 Nov 2015 14:17:20 +0100 Subject: [Scilab-users] Reading an xcos diagram with scs_m In-Reply-To: <1447296096910-4033080.post@n3.nabble.com> References: <1441780352.2687.62.camel@scilab-enterprises.com> <1447296096910-4033080.post@n3.nabble.com> Message-ID: <1447334240.3521.8.camel@scilab-enterprises.com> Hello, On Scilab 5 there is no way to retrieve the current diagram while opening a block. To cover your needs I suggest you to take a look at the simulation hook. This is some functions called before and after the simulation. In Scilab 6, it is possible to get the parent diagram but we currently provide no documented way to achieve that. Can you clarify your needs ? Do you setup the solver on a block ? What kind of information do you need ? -- Cl?ment Le mercredi 11 novembre 2015 ? 19:41 -0700, Nazreen a ?crit : > Dear Mr. Cl?ment David, > > I am developing a toolbox with new xcos blocks which can create many > different diagrams. For instance, I have many xcos diagram files saved and > have a few open on scilab xcos. For example, I have an Xcos block called > "Solver" in each file but I would like to perform calculations on one file > by clicking the block in that file. How can Scilab/Xcos tell which file I > want to say use the function ImportXcosDiagram? In other words, get the > scs_m from the diagram file where the xcos block was clicked when many files > are open without having to state the file directory? > > Regards, > Nazreen. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram- > with-scs-m-tp4032802p4033080.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 mohammednazreen at live.com Thu Nov 12 14:45:48 2015 From: mohammednazreen at live.com (Nazreen) Date: Thu, 12 Nov 2015 06:45:48 -0700 (MST) Subject: [Scilab-users] Reading an xcos diagram with scs_m In-Reply-To: <1447334240.3521.8.camel@scilab-enterprises.com> References: <1441780352.2687.62.camel@scilab-enterprises.com> <1447296096910-4033080.post@n3.nabble.com> <1447334240.3521.8.camel@scilab-enterprises.com> Message-ID: <1447335948462-4033084.post@n3.nabble.com> Dear Sir, In my Xcos diagram file, I am not using any simulation functions. Basically I just want to retrieve stored data from all the blocks (using the scs_m and scs_m.objs). The "Solver" is setup on a block. I coded the block in such a way that when one clicks on the block, it executes a file (which runs some instructions and functions). So i would like the block, on clicking it, to be able to tell which file is in use (if many files are opened in xcos) so it can retrieve the data from that specified xcos file and then carry out the calculations. My files are shown above. As you can see, the same Solver block ("Solve Power Flow") is in both files. I would like the function of the block to importXcosDiagraam("desired xcos file"). So i would like to retrieve the scs_m of one file when many are opened. Regards, Nazreen. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-with-scs-m-tp4032802p4033084.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Fri Nov 13 08:31:05 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 13 Nov 2015 08:31:05 +0100 Subject: [Scilab-users] Reading an xcos diagram with scs_m In-Reply-To: <1447335948462-4033084.post@n3.nabble.com> References: <1441780352.2687.62.camel@scilab-enterprises.com> <1447296096910-4033080.post@n3.nabble.com> <1447334240.3521.8.camel@scilab-enterprises.com> <1447335948462-4033084.post@n3.nabble.com> Message-ID: <1447399865.3521.12.camel@scilab-enterprises.com> Hello, Do you use any hierarchy ? If the current `scs_m` level is exported it might be sufficient in my view. Can you open a bug describing your need ? I will try to implement that for Scilab 6.0. Regards, -- Cl?ment Le jeudi 12 novembre 2015 ? 06:45 -0700, Nazreen a ?crit : > Dear Sir, > In my Xcos diagram file, I am not using any simulation > functions. Basically I just want to retrieve stored data from all the blocks > (using the scs_m and scs_m.objs). The "Solver" is setup on a block. I coded > the block in such a way that when one clicks on the block, it executes a > file (which runs some instructions and functions). So i would like the > block, on clicking it, to be able to tell which file is in use (if many > files are opened in xcos) so it can retrieve the data from that specified > xcos file and then carry out the calculations. > > My files are shown above. As you can see, the same Solver block ("Solve > Power Flow") is in both files. I would like the function of the block to > importXcosDiagraam("desired xcos file"). So i would like to retrieve the > scs_m of one file when many are opened. > Regards, > Nazreen. > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram- > with-scs-m-tp4032802p4033084.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 mohammednazreen at live.com Fri Nov 13 14:39:19 2015 From: mohammednazreen at live.com (Nazreen) Date: Fri, 13 Nov 2015 06:39:19 -0700 (MST) Subject: [Scilab-users] Reading an xcos diagram with scs_m In-Reply-To: <1447399865.3521.12.camel@scilab-enterprises.com> References: <1441780352.2687.62.camel@scilab-enterprises.com> <1447296096910-4033080.post@n3.nabble.com> <1447334240.3521.8.camel@scilab-enterprises.com> <1447335948462-4033084.post@n3.nabble.com> <1447399865.3521.12.camel@scilab-enterprises.com> Message-ID: <1447421959721-4033086.post@n3.nabble.com> Dear Sir, I use the uigetfile function to get the file directory and open the xcos files, as shown below. My application currently functions as follows: datafilex= uigetfile(["*.zcos|*.xcos*"],toolbox_dir + "/Diagram Files/", "Select diagram file of power system"); If retrieving the scs_m for the "four bus system" diagram, the instructions that would execute are: datafilex="C:\Users\Mohammed\Documents\PROJECT\SCIPOWER\Diagram Files\four bus system.zcos" importXcosDiagram(datafilex); If retrieving the scs_m for the "five bus system" diagram, the instructions that would execute are: datafilex="C:\Users\Mohammed\Documents\PROJECT\SCIPOWER\Diagram Files\five bus system.xcos" importXcosDiagram(datafilex); Data is then extracted from scs_m.objs and sent to a csv file. The Solver block (when clicked on), reads the data from the csv file and then displays a scilab choose message. After an option is selected, it performs the calculations and displays the result on the console, as seen below. Instead, how can I automatically generate the desired file directory in the Solver xcos block when it is clicked on? The Solver block ("Solve Power Flow") currently works as seen above, but I have to specify the file directory using uigetfile. Thus, how can I change this and get the importXcosDiagram(datafilex) to be generated when many xcos files are opened through the Solver block without using uigetfile. Can a Solver block tell which file is currently in use when the Solver block in that file is clicked on (e.g. distinguish if four bus or five system is selected)? Regards, Nazreen. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Reading-an-xcos-diagram-with-scs-m-tp4032802p4033086.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From fujimoto2005 at gmail.com Sat Nov 14 05:49:29 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 13 Nov 2015 21:49:29 -0700 (MST) Subject: [Scilab-users] long legend Message-ID: <1447476569774-4033087.post@n3.nabble.com> When the strings of the legend is too long, is it possible to display in 2 lines?by?legend(stringPart1+'a line feed code'+stringPart2)? -- View this message in context: http://mailinglists.scilab.org/long-legend-tp4033087.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat Nov 14 10:43:26 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 14 Nov 2015 10:43:26 +0100 Subject: [Scilab-users] long legend In-Reply-To: <1447476569774-4033087.post@n3.nabble.com> References: <1447476569774-4033087.post@n3.nabble.com> Message-ID: <5647023E.2080806@free.fr> Hello, Le 14/11/2015 05:49, fujimoto2005 a ?crit : > When the strings of the legend is too long, is it possible to display in 2 > lines?by?legend(stringPart1+'a line feed code'+stringPart2)? Apparently, neither including ascii(10) nor ascii(13), nor using $abcd \newline efgh$ nor "abcd
efgh" work... No more idea... SG From jrafaelbguerra at hotmail.com Sat Nov 14 12:10:11 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Sat, 14 Nov 2015 11:10:11 +0000 Subject: [Scilab-users] long legend In-Reply-To: <5647023E.2080806@free.fr> References: <1447476569774-4033087.post@n3.nabble.com> <5647023E.2080806@free.fr> Message-ID: Hello, Is the solution below OK for you? x=1:0.1:6; y=sin(x'); str="This is a very long legend. Vive la France"; str1= part(str,1:27); str2= part(str,28:$); clf(); f=gcf(); plot2d(x,[y y]); f.children.children.children(2).line_mode = "on"; f.children.children.children(1).line_mode = "off"; legend(str1,str2); Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Saturday, November 14, 2015 9:43 AM To: Users mailing list for Scilab Subject: Re: [Scilab-users] long legend Hello, Le 14/11/2015 05:49, fujimoto2005 a ?crit : > When the strings of the legend is too long, is it possible to display in 2 > lines?by?legend(stringPart1+'a line feed code'+stringPart2)? Apparently, neither including ascii(10) nor ascii(13), nor using $abcd \newline efgh$ nor "abcd
efgh" work... No more idea... SG _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From fujimoto2005 at gmail.com Sat Nov 14 12:36:17 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sat, 14 Nov 2015 04:36:17 -0700 (MST) Subject: [Scilab-users] long legend In-Reply-To: References: <1447476569774-4033087.post@n3.nabble.com> <5647023E.2080806@free.fr> Message-ID: <1447500977992-4033090.post@n3.nabble.com> Hello Rafael Guera This is a great solution!! Thanks a lot. Best regards -- View this message in context: http://mailinglists.scilab.org/long-legend-tp4033087p4033090.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Sat Nov 14 15:48:13 2015 From: j-lan at online.no (=?UTF-8?Q?Jan_=c3=85ge_Langeland?=) Date: Sat, 14 Nov 2015 15:48:13 +0100 Subject: [Scilab-users] long legend In-Reply-To: <1447500977992-4033090.post@n3.nabble.com> References: <1447476569774-4033087.post@n3.nabble.com> <5647023E.2080806@free.fr> <1447500977992-4033090.post@n3.nabble.com> Message-ID: <564749AD.8040606@online.no> Smart solution from Rafael Guera, I actually needed the same . Here an inspired alternative with plot(), that also gets the colors correct (on white background): x=1:0.1:6; y1=sin(x); y2=cos(x); str="This is a very long legend. Vive la France"; str1= part(str,1:27); str2= part(str,28:$); strb="Another very long legend. Vive la France"; str1b= part(strb,1:27); str2b= part(strb,28:$); clf(); f=gcf(); replot([1 6 ;-1.5 2]); plot(x,y1,"..r",x,y1,"..w",x,y2,"g",x,y2,"w",x,y1,"..r",x,y2,"g"); legend(str1,str2,str1b,str2b); J? On 14.11.2015 12:36, fujimoto2005 wrote: > Hello Rafael Guera > > This is a great solution!! > Thanks a lot. > > Best regards > > > > -- > View this message in context: http://mailinglists.scilab.org/long-legend-tp4033087p4033090.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 j-lan at online.no Sat Nov 14 16:14:57 2015 From: j-lan at online.no (JLan) Date: Sat, 14 Nov 2015 08:14:57 -0700 (MST) Subject: [Scilab-users] long legend In-Reply-To: <1447500977992-4033090.post@n3.nabble.com> References: <1447476569774-4033087.post@n3.nabble.com> <5647023E.2080806@free.fr> <1447500977992-4033090.post@n3.nabble.com> Message-ID: <1447514097886-4033092.post@n3.nabble.com> updated Smart solution from Rafael Guera, I actually needed the same . Here an inspired alternative with plot(), that also gets the colors correct (on white background): x=1:0.1:6; y1=sin(x); y2=cos(x); str="This is a very long legend. Vive la France"; str1= part(str,1:27); str2= part(str,28:$); strb="Another very long legend. Vive la France"; str1b= part(strb,1:27); str2b= part(strb,28:$); clf(); f=gcf(); replot([1 6 ;-1.5 2]); plot(x,y1,"..r",x,y1,"..w",x,y2,"g",x,y2,"w",x,y1,"..r",x,y2,"g"); legend(str1,str2,str1b,str2b,%f); Jan -- View this message in context: http://mailinglists.scilab.org/long-legend-tp4033087p4033092.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Mon Nov 16 18:39:39 2015 From: petar.filipovic at hotmail.com (petarf) Date: Mon, 16 Nov 2015 10:39:39 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation Message-ID: <1447695579604-4033098.post@n3.nabble.com> Hi, Could anyone help with storing data from a hypermatrix( M(x,y,z,k) ) to a file. I would like to import this data to another software ( Gambit or Pointwise). Hypermatrix M consists only of numbers. Thank you for your help. Best regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Serge.Steer at inria.fr Mon Nov 16 21:43:26 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 16 Nov 2015 21:43:26 +0100 Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <1447695579604-4033098.post@n3.nabble.com> References: <1447695579604-4033098.post@n3.nabble.com> Message-ID: <564A3FEE.3070602@inria.fr> Le 16/11/2015 18:39, petarf a ?crit : > Hi, > > Could anyone help with storing data from a hypermatrix( M(x,y,z,k) ) to a > file. I would like to import this data to another software ( Gambit or > Pointwise). > > Hypermatrix M consists only of numbers. I do not know Gambit nor Pointwiseinput format, but you can transform your hypermatrix to a 1D array using v=M(:) then write the vector and the dimensions in an ascii file using the mfprintf function.... Nb V=[M(1,1,1,1);M(2,1,1,1);...M(1,2,1,1);M(2,2,1,1);... M(1,1,2,1);....] > Thank you for your help. > Best regards, Petar > > > > -- > View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098.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 jrafaelbguerra at hotmail.com Tue Nov 17 00:04:15 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 16 Nov 2015 23:04:15 +0000 Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <564A3FEE.3070602@inria.fr> References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> Message-ID: Hello, Here below a more inefficient solution but that might fit your needs: // Hypermatrix definition M(x,y,z,k) x=[1 1.5 2]; y=[0 1 %e %pi]; z=[2 3].^0.5; k=1:5; nx=length(x); ny=length(y); nz=length(z); nk=length(k); M=rand(nx,ny,nz,nk); // Write coordinates and M to disk: fid = mopen("hyper_out.txt",'w'); for i=1:nx; for j=1:ny; for m=1:nz; for n=1:nk mfprintf(fid,"%15.5f%15.5f%15.5f%15.5f%15.5f\n",x(i),y(j),z(m),k(n),M(i,j,m,n)); end; end; end; end mclose(fid) Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer Sent: Monday, November 16, 2015 8:43 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Hypermatrix manipulation Le 16/11/2015 18:39, petarf a ?crit : > Hi, > > Could anyone help with storing data from a hypermatrix( M(x,y,z,k) ) to a > file. I would like to import this data to another software ( Gambit or > Pointwise). > > Hypermatrix M consists only of numbers. I do not know Gambit nor Pointwiseinput format, but you can transform your hypermatrix to a 1D array using v=M(:) then write the vector and the dimensions in an ascii file using the mfprintf function.... Nb V=[M(1,1,1,1);M(2,1,1,1);...M(1,2,1,1);M(2,2,1,1);... M(1,1,2,1);....] > Thank you for your help. > Best regards, Petar > > > > -- > View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From petar.filipovic at hotmail.com Tue Nov 17 21:23:05 2015 From: petar.filipovic at hotmail.com (petarf) Date: Tue, 17 Nov 2015 13:23:05 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> Message-ID: <1447791785697-4033101.post@n3.nabble.com> Dear Rafael, My matrix is already defined M(50,3,3,3). These numbers depends on user input. It could be 100 instead 50. And also matrix is already filled. Because of this i have trouble with part where you define x,y,.. variables and later you call them in mfprintf function. Is there any possibility that I write only specific part of hypermatrix? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033101.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Tue Nov 17 21:25:23 2015 From: petar.filipovic at hotmail.com (petarf) Date: Tue, 17 Nov 2015 13:25:23 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <564A3FEE.3070602@inria.fr> References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> Message-ID: <1447791923391-4033102.post@n3.nabble.com> Thank you for your replay. So basically I need to store data from hypermatrix to another matrix and then I can write it to a file? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033102.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Tue Nov 17 22:38:23 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Tue, 17 Nov 2015 21:38:23 +0000 Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <1447791785697-4033101.post@n3.nabble.com> References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> Message-ID: Hi Petar, If you only need to write the hypermatrix M to disk you could do: M=rand(100,3,3,3); // example [nx,ny,nz,nk]= size(M); fid = mopen("hyper_out.txt",'w'); mfprintf(fid,"%i %i %i %i\n",nx,ny,nz,nk); for i=1: length(M) mfprintf(fid,"%15.5f\n",M(i)); end; mclose(fid) You need to adapt output format to your needs, which you did not specify. For example, to read the above file in Scilab, you could do: fid = mopen("hyper_out.txt",'r'); str = mgetl(fid,1); M= mfscanf(-1,fid,"%f"); mclose(fid) x= evstr(str); nx=x(1); ny=x(2); nz=x(3); nk=x(4); M= matrix(M,nx,ny,nz,nk); Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of petarf Sent: Tuesday, November 17, 2015 8:23 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Hypermatrix manipulation Dear Rafael, My matrix is already defined M(50,3,3,3). These numbers depends on user input. It could be 100 instead 50. And also matrix is already filled. Because of this i have trouble with part where you define x,y,.. variables and later you call them in mfprintf function. Is there any possibility that I write only specific part of hypermatrix? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033101.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 sgougeon at free.fr Wed Nov 18 00:39:34 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 18 Nov 2015 00:39:34 +0100 Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <1447791923391-4033102.post@n3.nabble.com> References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791923391-4033102.post@n3.nabble.com> Message-ID: <564BBAB6.2070102@free.fr> Le 17/11/2015 21:25, petarf a ?crit : > Thank you for your replay. > > So basically I need to store data from hypermatrix to another matrix and > then I can write it to a file? Yes, together with its sizes. If the numbers are all reals, you may use something like this: H = rand(50,3,3,3); filename = TMPDIR+"\record_hypermat_as_text.txt"; fprintfMat(filename, matrix(H,50,-1), "%lg", "size: "+strcat(string(size(H)),",")); [M, header] = fscanfMat(filename); s = evstr(tokens(part(header,6:$),",")'); rH = matrix(M,s); // recovered hypermat The output format may be tuned ("%lg"). Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpregitzer at transphormusa.com Thu Nov 19 02:57:17 2015 From: rpregitzer at transphormusa.com (Ricardo) Date: Wed, 18 Nov 2015 18:57:17 -0700 (MST) Subject: [Scilab-users] scilab 5.4.0 lcc In-Reply-To: <1356967076947-4025599.post@n3.nabble.com> References: <1356967076947-4025599.post@n3.nabble.com> Message-ID: <1447898237899-4033105.post@n3.nabble.com> Was there a resolution to this problem? I am having the same issue with SciLab 5.5.2 and lcc 0.5.1. I have the 32bit installation, but my system is Win 7 64bit. Running as admin does not fix the problem. I can run several demos (Standard Demos, or Control Systems), but not Electrical Systems. -- View this message in context: http://mailinglists.scilab.org/scilab-5-4-0-lcc-tp4025599p4033105.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Thu Nov 19 10:00:26 2015 From: petar.filipovic at hotmail.com (petarf) Date: Thu, 19 Nov 2015 02:00:26 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> Message-ID: <1447923626884-4033106.post@n3.nabble.com> Hi Rafael, This matrix represents points of geometry of axial fan blade. So the output format should be something I could load into SolidWorks or similar programs, but I will investigate that as soon as I write this matrix to a file. Thank you, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033106.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Thu Nov 19 10:23:04 2015 From: petar.filipovic at hotmail.com (petarf) Date: Thu, 19 Nov 2015 02:23:04 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> Message-ID: <1447924984540-4033107.post@n3.nabble.com> Hi Rafael, Is there any possibility to separate columns or rows by comma or other sing (e.g. parentheses)? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033107.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Thu Nov 19 10:55:03 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 19 Nov 2015 09:55:03 +0000 Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: <1447924984540-4033107.post@n3.nabble.com> References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> <1447924984540-4033107.post@n3.nabble.com> Message-ID: Hi Petar, You just need to add the comma inside the printf format string: M=rand(100,3,3,3); // example [nx,ny,nz,nk]= size(M); // To write: fid = mopen("hyper_out.txt",'w'); mfprintf(fid,"%i %i %i %i\n",nx,ny,nz,nk); mfprintf(fid,"%15.5f,\n",M(:)); mclose(fid) For more details on printf formats google "C++ printf reference" Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of petarf Sent: Thursday, November 19, 2015 9:23 AM To: users at lists.scilab.org Subject: Re: [Scilab-users] Hypermatrix manipulation Hi Rafael, Is there any possibility to separate columns or rows by comma or other sing (e.g. parentheses)? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033107.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 petar.filipovic at hotmail.com Thu Nov 19 11:06:36 2015 From: petar.filipovic at hotmail.com (petarf) Date: Thu, 19 Nov 2015 03:06:36 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> <1447924984540-4033107.post@n3.nabble.com> Message-ID: <1447927596213-4033109.post@n3.nabble.com> Hi Rafael, With your last advice I only manage to write comma after every value in matrix, but I need to separate entire columns. Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033109.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Thu Nov 19 12:11:26 2015 From: petar.filipovic at hotmail.com (petarf) Date: Thu, 19 Nov 2015 04:11:26 -0700 (MST) Subject: [Scilab-users] Hypermatrix manipulation In-Reply-To: References: <1447695579604-4033098.post@n3.nabble.com> <564A3FEE.3070602@inria.fr> <1447791785697-4033101.post@n3.nabble.com> <1447924984540-4033107.post@n3.nabble.com> Message-ID: <1447931486352-4033110.post@n3.nabble.com> Dear Rafael, I managed to solve it myself. Thank you very much for your help! Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-manipulation-tp4033098p4033110.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Fri Nov 20 17:02:54 2015 From: petar.filipovic at hotmail.com (petarf) Date: Fri, 20 Nov 2015 09:02:54 -0700 (MST) Subject: [Scilab-users] Hypermatrix and user defined function Message-ID: <1448035374344-4033111.post@n3.nabble.com> Hi, I have part of code which calls user defined function: for i=1:(m+1) alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i)); alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i)); alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i)); for j=1:k [xc,zc]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i)); end end With this code I only manage to write last value of xc and zc. When I change xc and zc to: for i=1:(m+1) alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i)); alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i)); alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i)); for j=1:k [MC(j,1,i),MC(j,3,i)]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i)); end end I get error: hmops: Invalid hypermatrix insertion. Can anyone help? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-and-user-defined-function-tp4033111.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jacques.ehrlich at ifsttar.fr Sat Nov 21 09:27:02 2015 From: jacques.ehrlich at ifsttar.fr (jacques.ehrlich at ifsttar.fr) Date: Sat, 21 Nov 2015 09:27:02 +0100 (CET) Subject: [Scilab-users] State diagram modelling Message-ID: <112446800.9924080.1448094422555.JavaMail.zimbra@ifsttar.fr> Is it possibe to simulate Moore and/or Mealy state diagram using Scilab or Xcos ? From jrafaelbguerra at hotmail.com Sat Nov 21 10:46:42 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sat, 21 Nov 2015 09:46:42 +0000 Subject: [Scilab-users] Hypermatrix and user defined function In-Reply-To: <1448035374344-4033111.post@n3.nabble.com> References: <1448035374344-4033111.post@n3.nabble.com> Message-ID: Hi, Defining the left-hand side of your function has follows should help: function [x, y]=mapToCylinder(a,M,r) . endfunction Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of petarf Sent: Friday, November 20, 2015 4:03 PM To: users at lists.scilab.org Subject: [Scilab-users] Hypermatrix and user defined function Hi, I have part of code which calls user defined function: for i=1:(m+1) alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i)); alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i)); alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i)); for j=1:k [xc,zc]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i)); end end With this code I only manage to write last value of xc and zc. When I change xc and zc to: for i=1:(m+1) alfac0(i)=atan(Mc(k/2,3,i),Mc(k/2,1,i)); alfas0(i)=atan(Ms(k/2,3,i),Ms(k/2,1,i)); alfap0(i)=atan(Mp(k/2,3,i),Mp(k/2,1,i)); for j=1:k [MC(j,1,i),MC(j,3,i)]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i)); end end I get error: hmops: Invalid hypermatrix insertion. Can anyone help? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/Hypermatrix-and-user-defined-function-tp4033111.h tml 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 sgougeon at free.fr Sat Nov 21 17:22:53 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 21 Nov 2015 17:22:53 +0100 Subject: [Scilab-users] Hypermatrix and user defined function In-Reply-To: <1448035374344-4033111.post@n3.nabble.com> References: <1448035374344-4033111.post@n3.nabble.com> Message-ID: <56509A5D.4090700@free.fr> Hello, Le 20/11/2015 17:02, petarf a ?crit : > .../... > > [MC(j,1,i),MC(j,3,i)]=mapToCylinder(alfac0(i),Mc(j,1,i),r(i)); If MC is not initialized as an hypermatrix before the first assignment for i=1, the first use MC(j,1,1),MC(j,3,1) initializes it as a common 2D matrix (with Scilab 5), since dimensions>2 that are singletons are ignored (this is no longer the case in Scilab 6, since a very recent modification). Then, next assignments with i>1 try to cast MC into an hypermat. I don't think that Scilab 5 can do that in this way. Scilab 6 should do it, since hypermatrices are no longer encoded as mlists but are natively encoded as matrices are. So: with SCilab 5, just initialize MC as an hypermat with the right final sizes before using it, and your code should work. Or you may start to use Scilab 6. HTH Samuel Gougeon From jrafaelbguerra at hotmail.com Sun Nov 22 21:47:15 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 22 Nov 2015 20:47:15 +0000 Subject: [Scilab-users] Scinotes special keywords In-Reply-To: <55747796.6010308@scilab-enterprises.com> References: <55747796.6010308@scilab-enterprises.com> Message-ID: Hi Calixte, The Scinotes Latex display is awesome and really very useful. Do you know how to insert the $$ $$ in order to display the multiple lines Latex comments below (from fmincon code by M.Baudin): // //\begin{eqnarray} //\mbox{min}_{x} & f(x) \\ //\mbox{subject to} & c(x) \leq 0 \\ // & c_{eq}(x) = 0 \\ // & Ax \leq b \\ // & A_{eq} x = b_{eq} \\ // & lb \leq x \leq ub //\end{eqnarray} // Thanks and regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Calixte Denizet Sent: Sunday, June 07, 2015 5:56 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Scinotes special keywords Hi, copy/paste these comments: // http://www.scilab.org // TODO: a todo comment // mailto:foo.bar at scilab-enterprises.com // $$\sum_{n=1}^{+\infty}\frac1{n^2} = \frac{\pi^2}6$$ you can put your mouse over the LaTeX expression to visualize it. Regards Calixte On 07/06/2015 18:07, Rafael Guera wrote: > Dear Scilabers, > > Do you know if there any other keywords pre-defined in Scinotes which change the > colours of the comments? > (similar to the behaviour of keyword " TODO: " which turns comments into red > colour). > > Thanks and regards, > > Rafael > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- 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 jrafaelbguerra at hotmail.com Sun Nov 22 22:47:15 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 22 Nov 2015 21:47:15 +0000 Subject: [Scilab-users] uman : help in the console, with language switch, automatic redirections, related online pages. In-Reply-To: <55769561.8050605@laas.fr> References: <5575F0C7.3080207@free.fr> <55769561.8050605@laas.fr> Message-ID: Hello Samuel, Thanks for sharing uman and congratulations for the amazing work done. This is a very useful tool to increase Scilab users productivity. The quick access to the appropriate bug webpages is awesome. May we also use uman to query the relevant threads in Scilab users webpages? Kind regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Tuesday, June 09, 2015 8:27 AM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] uman : help in the console, with language switch, automatic redirections, related online pages. I just started to play with it and it looks good! It provides a feature that scilab is lacking: a decent command line documentation. Thanks, Antoine Le 06/08/2015 09:45 PM, Samuel Gougeon a ?crit : Hello, uman is a Unified display command of the Scilab User MANual. It is a general purpose function that might be useful for every Scilab user and developer. uman 1.2 is just released on ATOMS (web and Scilab interface). Install it and enjoy! Pointers : * ATOMS page : http://atoms.scilab.org/toolboxes/uman * Help (en): http://sgougeon.free.fr/scilab/help/uman/scilab_en_US_help/uman.html * Help (fr) : http://sgougeon.free.fr/scilab/help/uman/scilab_fr_FR_help/uman.html Main features : * A single function to see help pages from Scilab, from installed ATOMS modules (no need to load them), from other external modules, and heading comments in functions. Around 50 external references available on the Scilab FileExchange can also be addressed. * A single function to target and display contents in text mode in the console, or as usual in the help browser, or as well online (help, bugzilla, atoms, forge, or even external websites). uman aims to embrace as many Scilab ressources as possible. * Just give a language code en | de | fr | ja | pt | ru | zh in option, and you get the right version of the page in the console or online. No need to change the session's language. Watching the reference en_US version of the page is now straightforward, without leaving your locales. * Just display main infos in brief: path in help, calling sequences, parameters, See also. And be free to display more on request: description, examples, history, parent ToC... Or finally display the whole page with the "a" option. It is so easy to copy/past pieces of examples from the console... to the console! * Are you used to use another scientific language? Almost 200 automatic redirections will target the right or nearest Scilab equivalence for you. Other handy shortcuts are also defined for all users. * Stucked with a bug? The "wb" option lets you list documented ones related to the faulty entry, for Scilab and many ATOMS packages. Online users comments have never been so easily reachable. * Last but not least: get a smart text layout in console. Nested lists of items, tables, pieces of codes, notes and warnings, text styles.. are supported. The code style of calling sequences and examples is also improved. Supported OS : Windows, Linux and Mac OS, with Scilab 5.5 and Scilab 6. uman has been extensively tested for Windows, a few tested for Linux, and is almost untested for Mac OS. Issues may be reported in comments on the ATOMS page. Please have a look to the list of known limitations before posting. Try uman, and adopt it ;) Best regards Samuel Gougeon _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at scilab-enterprises.com Wed Nov 25 09:44:30 2015 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Wed, 25 Nov 2015 09:44:30 +0100 Subject: [Scilab-users] test In-Reply-To: References: <5575F0C7.3080207@free.fr> <55769561.8050605@laas.fr> Message-ID: <565574EE.6020309@scilab-enterprises.com> From jrafaelbguerra at hotmail.com Wed Nov 25 12:45:29 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 25 Nov 2015 11:45:29 +0000 Subject: [Scilab-users] Title positioning on log-scale plots Message-ID: Dear Scilaber's, Does anybody know how to [x,y]-position titles on log-scale plots? See examples below which plot ok only if the x-scale is linear: clf; x=1:100; y=x.^0.2; subplot(2,1,1) plot2d(x,y,5,logflag="ln") // changing to "nn" or "nl" works, but not "ll" or "ln" a=gca(); a.title.text= "TITLE#1: out for lunch for logarithmic x-scale"; a.title.position= [min(x),max(y)+stdev(y)/3]; xgrid() subplot(2,1,2) plot2d(x,y,2,logflag="nn") a=gca(); a.title.text= "TITLE#2: OK for linear x-scale"; a.title.position= [min(x),max(y)+stdev(y)/3]; xgrid() On a related matter, is it possible to use figure coordinates to position titles (instead of the axes coordinates)? Thanks and regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigocarlson at gmail.com Wed Nov 25 13:09:30 2015 From: rodrigocarlson at gmail.com (rodrigocarlson) Date: Wed, 25 Nov 2015 05:09:30 -0700 (MST) Subject: [Scilab-users] call_scilab from another dll In-Reply-To: <1380038290073-4027456.post@n3.nabble.com> References: <1380038290073-4027456.post@n3.nabble.com> Message-ID: <1448453370944-4033121.post@n3.nabble.com> Dear David and scilab users, I'm running with a similar problem. I would like to call Scilab from a DLL that is loaded by a simulator. The simulator issues a message informing that the DLL was loaded successfully followed by another message stating the opposite: "Cannot load ...dll. Please check required dependencies. Windows Error: The specified procedure could not be found." "....dll is not a valid extension" The same call to scilab works properly in a console application. Does someone know how to solve this problem? Thanks, Rodrigo -- View this message in context: http://mailinglists.scilab.org/call-scilab-from-another-dll-tp4027456p4033121.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Wed Nov 25 13:45:12 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 25 Nov 2015 13:45:12 +0100 Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: References: Message-ID: <5655AD58.2000309@laas.fr> Le 11/25/2015 12:45 PM, Rafael Guerra a ?crit : > > Dear Scilaber?s, > > Does anybody know how to [x,y]-position titles on log-scale plots? > > See examples below which plot ok only if the x-scale is linear: > > _clf_; > > x=1:100;y=x.^0.2; > > _subplot_(2,1,1) > > plot2d(x,y,5,logflag="ln")/// changing to "nn" or "nl" works, but not > "ll" or "ln"/ > > a=_gca_(); > > a.title.text="TITLE#1: out for lunch for logarithmic x-scale"; > > a.title.position=[min(x),max(y)+_stdev_(y)/3]; > > xgrid() > > _subplot_(2,1,2) > > plot2d(x,y,2,logflag="nn") > > a=_gca_(); > > a.title.text="TITLE#2: OK for linear x-scale"; > > a.title.position=[min(x),max(y)+_stdev_(y)/3]; > > xgrid() > > On a related matter, is it possible to use figure coordinates to > position titles (instead of the axes coordinates)? > > Thanks and regards, > > Rafael > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi is a.title.auto_position="on" ok for you? Cheers, Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Nov 25 14:15:25 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 25 Nov 2015 14:15:25 +0100 Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: <5655AD58.2000309@laas.fr> References: <5655AD58.2000309@laas.fr> Message-ID: <5655B46D.8070500@inria.fr> Le 25/11/2015 13:45, Antoine Monmayrant a ?crit : > Le 11/25/2015 12:45 PM, Rafael Guerra a ?crit : >> >> Dear Scilaber?s, >> >> Does anybody know how to [x,y]-position titles on log-scale plots? >> >> See examples below which plot ok only if the x-scale is linear: >> >> _clf_; >> >> x=1:100;y=x.^0.2; >> >> _subplot_(2,1,1) >> >> plot2d(x,y,5,logflag="ln")/// changing to "nn" or "nl" works, but not >> "ll" or "ln"/ >> >> a=_gca_(); >> >> a.title.text="TITLE#1: out for lunch for logarithmic x-scale"; >> >> a.title.position=[min(x),max(y)+_stdev_(y)/3]; >> >> xgrid() >> >> _subplot_(2,1,2) >> >> plot2d(x,y,2,logflag="nn") >> >> a=_gca_(); >> >> a.title.text="TITLE#2: OK for linear x-scale"; >> >> a.title.position=[min(x),max(y)+_stdev_(y)/3]; >> >> xgrid() >> >> On a related matter, is it possible to use figure coordinates to >> position titles (instead of the axes coordinates)? >> You can use xchange function to convert pixel coordinates to axes coordinates Serge >> >> Thanks and regards, >> >> Rafael >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > Hi > > is > a.title.auto_position="on" > ok for you? > > Cheers, > > Antoine > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Wed Nov 25 16:37:01 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 25 Nov 2015 15:37:01 +0000 Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: <5655AD58.2000309@laas.fr> References: <5655AD58.2000309@laas.fr> Message-ID: Hi Antoine, Thanks for the tip but unfortunately a.auto_position it is not what I need. It does not seem to cope well with 90-deg rotations of the plot axes, which I can handle with manual title positioning (+ title rotation), whenever the x-scale is linear. I am still looking for what to use as [x,y] in a.title.position when logflag="ln" or "ll". Thanks and regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Wednesday, November 25, 2015 12:45 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Title positioning on log-scale plots Le 11/25/2015 12:45 PM, Rafael Guerra a ?crit : Dear Scilaber?s, Does anybody know how to [x,y]-position titles on log-scale plots? See examples below which plot ok only if the x-scale is linear: clf; x=1:100; y=x.^0.2; subplot(2,1,1) plot2d(x,y,5,logflag="ln") // changing to "nn" or "nl" works, but not "ll" or "ln" a=gca(); a.title.text= "TITLE#1: out for lunch for logarithmic x-scale"; a.title.position= [min(x),max(y)+stdev(y)/3]; xgrid() subplot(2,1,2) plot2d(x,y,2,logflag="nn") a=gca(); a.title.text= "TITLE#2: OK for linear x-scale"; a.title.position= [min(x),max(y)+stdev(y)/3]; xgrid() On a related matter, is it possible to use figure coordinates to position titles (instead of the axes coordinates)? Thanks and regards, Rafael _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users Hi is a.title.auto_position="on" ok for you? Cheers, Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Nov 25 17:06:49 2015 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 25 Nov 2015 17:06:49 +0100 (CET) Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: Message-ID: <218535208.258670650.1448467609723.JavaMail.root@zimbra75-e12.priv.proxad.net> Hi, >Does anybody know how to [ x,y ]-position titles on log-scale plots? This is a regression since Scilab 5.5.0, as well reported here for X and Y labels: http://bugzilla.scilab.org/13518 >On a related matter, is it possible to use figure coordinates to position titles (instead of the axes coordinates)? Actually, the normalized axes scale would be the best -- as when specifying gca().margins --, instead of the data scales. The figure coordinates would not be handy in case of subplots. Samuel From sgougeon at free.fr Wed Nov 25 17:40:11 2015 From: sgougeon at free.fr (sgougeon at free.fr) Date: Wed, 25 Nov 2015 17:40:11 +0100 (CET) Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: Message-ID: <840523507.258850022.1448469611720.JavaMail.root@zimbra75-e12.priv.proxad.net> >Does anybody know how to [ x,y ]-position titles on log-scale plots? After some trials without searching for the involved bugged piece of code, it comes that the title is wrongly displayed at X = 10*( gca().title.position(1) - 1) So, to display it from X=1 on your first graph, you must set gca().title.position(1) = 1.1 Samuel From jrafaelbguerra at hotmail.com Wed Nov 25 21:35:05 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 25 Nov 2015 20:35:05 +0000 Subject: [Scilab-users] Title positioning on log-scale plots In-Reply-To: <840523507.258850022.1448469611720.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <840523507.258850022.1448469611720.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: Hi Samuel, Thanks for the feedback. I have tried your linear formula for other data inputs, with different start and end points, but unfortunately this display problem is non-linear. It seems to involve the log10 function and both xmin and xmax but I could not find the formula. Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of sgougeon at free.fr Sent: Wednesday, November 25, 2015 4:40 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Title positioning on log-scale plots >Does anybody know how to [ x,y ]-position titles on log-scale plots? After some trials without searching for the involved bugged piece of code, it comes that the title is wrongly displayed at X = 10*( gca().title.position(1) - 1) So, to display it from X=1 on your first graph, you must set gca().title.position(1) = 1.1 Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From petar.filipovic at hotmail.com Fri Nov 27 19:28:59 2015 From: petar.filipovic at hotmail.com (petarf) Date: Fri, 27 Nov 2015 11:28:59 -0700 (MST) Subject: [Scilab-users] GUIBUILDER problem! Message-ID: <1448648939727-4033128.post@n3.nabble.com> Hi all, When I want to make simple pushbutton the figure on which I draw zooms out and I draw some rectangle but I can't see it. It is moved outside the figure. When I click to move that push button red rectangle which represents that button is not at the same place as pushbutton and I have to move that red rectangle outside of figure to see pushbutton. Can anyone help with this? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/GUIBUILDER-problem-tp4033128.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ridder.peter at googlemail.com Sat Nov 28 07:58:13 2015 From: ridder.peter at googlemail.com (windkraft) Date: Fri, 27 Nov 2015 23:58:13 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1446616554965-4033072.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> Message-ID: <1448693893115-4033129.post@n3.nabble.com> Hello I have the same problem, Scilab is missing a compiler on a windows 7 maschine even there is one in the main directory. And as it looks in several posts the problem or a variation of is exist in spite of some explanations what could possibly help. Is there someone who has a Scilab installation and Scilab finds the C Compiler? If so, could you explain which files must be stored in which relative pathes and which environmental variables has to be adjusted in which way. And what should be the contens of configuration files belonging this theme. Thanks, Peter -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033129.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From petar.filipovic at hotmail.com Sat Nov 28 20:26:07 2015 From: petar.filipovic at hotmail.com (petarf) Date: Sat, 28 Nov 2015 12:26:07 -0700 (MST) Subject: [Scilab-users] GUI help!!! Message-ID: <1448738767731-4033130.post@n3.nabble.com> Hello all, I have created GUI from example on openeering.com for LHY model. I was wondering is it possible to make input parameters (tau,smax...) stored into work space and not into variable param [] and sim []? Regards, Petar -- View this message in context: http://mailinglists.scilab.org/GUI-help-tp4033130.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From umut.durak at tu-clausthal.de Sun Nov 29 17:35:53 2015 From: umut.durak at tu-clausthal.de (Dr.Umut Durak) Date: Sun, 29 Nov 2015 17:35:53 +0100 Subject: [Scilab-users] Problem with Xcos FMU wrapper 0.6 Message-ID: Hi all, We are recently working on integrating FMUs (co-simulation) from Scilab into our real-time simulation framework 2Simulate (https://www.researchgate.net/publication/271963197_2Simulate_A_Distributed_Real-Time_Simulation_Framework?ev=prf_pub ), in order to exercise the suitability of FMI for (Scilab/Xcos) model integration for real time flight simulators (you can find more information about our model integration work for Matlab in https://www.researchgate.net/publication/266205585_Model_Integration_Workflow_for_Keeping_Models_up_to_Date_in_a_Research_Simulator?ev=prf_pub ). As the first step, we are trying to develop a simle standalone application for simulating an FMU using VC++, basically inspired from QTronic SDK (http://www.qtronic.de/en/fmusdk.html). We exported some sample FMUs for Co-Simulation from Xcos SCILAB using fmu-wrapper-0.6 (http://forge.scilab.org/index.php/p/fmu-wrapper/). The problem we are facing is that the exported FMU can only be imported in Xcos. In VC++, it gives me an error stated that "couldn't load xxx.dll". We tried to import the FMU using OpenModelica, but it also fails with the same problem, the DLL file. In the module documentation it is mentioned that Scilab must be installed because the shared library use some dependencies, but it's already installed. Again, according to the module description, the FMU should work fine in other tools, but we failed to achieve it. Any one has an example VC++ FMU master? We are then willing to prepare a tutorial and add it to fmu-wrapper documentation. Dr.Umut Durak Adjunct Lecturer TU Clausthal Institute of Informatics Model-based Systems Analysis and Simulation Department https://www.in.tu-clausthal.de/en/divisions/model-based-systems-analysis-and-simulation/members/drumut-durak/ Research Scientist DLR e.V. Institute of Flight Systems Flight Dynamics and Simulation Department Phone +49 531 295-2907 | umut.durak at dlr.de www.DLR.de/ft | de.linkedin.com/in/umutdurak Upcoming Book: Distributed Simulation: A Model Driven Engineering Approach Top?u, O., Durak, U., O?uzt?z?n, H., Yilmaz, L. http://www.springer.com/us/book/9783319030494 Upcomming Conferences and Workshops: 6th International Workshop on Model-driven Approaches for Simulation Engineering (MOD4SIM?16) Ontologies in Simulation Special Interest Track of Annual Simulation Symposium (ANSS) From fujimoto2005 at gmail.com Mon Nov 30 06:54:33 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 29 Nov 2015 22:54:33 -0700 (MST) Subject: [Scilab-users] getting the first column number of each row Message-ID: <1448862873647-4033132.post@n3.nabble.com> I want to get the first column number of each row with %T. Now I use loop as follows. x=rand(10,10); for i=1 :10 y(i)=min(find(x(i,:)>0.5); end Is there any way to get y without using 'for end' loop because it will take a time when row number is large . Best regards. -- View this message in context: http://mailinglists.scilab.org/getting-the-first-column-number-of-each-row-tp4033132.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.bignier at scilab-enterprises.com Mon Nov 30 09:11:04 2015 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 30 Nov 2015 09:11:04 +0100 Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1448693893115-4033129.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> <1448693893115-4033129.post@n3.nabble.com> Message-ID: <565C0498.3040403@scilab-enterprises.com> Hi, Can you run the Modelica demos (Demos->Xcos->Electrical systems), or does it tell you that you lack a compiler? What is the return of 'haveacompiler ' & 'findmsvccompiler '? Please refer to supported compilers for more info. Hope this helps, Paul On 11/28/2015 07:58 AM, windkraft wrote: > Hello > > I have the same problem, Scilab is missing a compiler on a windows 7 > maschine even there is one in the main directory. > And as it looks in several posts the problem or a variation of is exist in > spite of some explanations what could possibly help. > > Is there someone who has a Scilab installation and Scilab finds the C > Compiler? > If so, could you explain which files must be stored in which relative pathes > and which environmental variables has to be adjusted in which way. > And what should be the contens of configuration files belonging this theme. > > Thanks, Peter > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033129.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 -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre-aime.agnel at scilab-enterprises.com Mon Nov 30 10:33:19 2015 From: pierre-aime.agnel at scilab-enterprises.com (=?UTF-8?Q?Pierre-Aim=c3=a9_Agnel?=) Date: Mon, 30 Nov 2015 10:33:19 +0100 Subject: [Scilab-users] getting the first column number of each row In-Reply-To: <1448862873647-4033132.post@n3.nabble.com> References: <1448862873647-4033132.post@n3.nabble.com> Message-ID: <565C17DF.7030704@scilab-enterprises.com> Hi, You can do: x = rand(10, 10); tmp= zeros(10, 10); tmp( find(x > 0.5) ) = 1; [max_tmp, y] = max(tmp, "r"); //y holds the indices of the first row where tmp is at max value Hope this helps Best regards Le 30/11/2015 06:54, fujimoto2005 a ?crit : > I want to get the first column number of each row with %T. > Now I use loop as follows. > > x=rand(10,10); > for i=1 :10 > y(i)=min(find(x(i,:)>0.5); > end > > Is there any way to get y without using 'for end' loop because it will take > a time when row number is large . > > Best regards. > > > > > -- > View this message in context: http://mailinglists.scilab.org/getting-the-first-column-number-of-each-row-tp4033132.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 -- Pierre-Aim? Agnel R&D Projects Manager Phone: +33.1.80.77.04.67 Mobile: +33.6.82.49.35.23 ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.60 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Mon Nov 30 12:52:00 2015 From: j-lan at online.no (=?UTF-8?Q?Jan-=c3=85ge_Langeland?=) Date: Mon, 30 Nov 2015 12:52:00 +0100 Subject: [Scilab-users] getting the first column number of each row In-Reply-To: <1448862873647-4033132.post@n3.nabble.com> References: <1448862873647-4033132.post@n3.nabble.com> Message-ID: <565C3860.1010506@online.no> [a y]=max(int8(x>.5),'c'); J? On 30.11.2015 06:54, fujimoto2005 wrote: > I want to get the first column number of each row with %T. > Now I use loop as follows. > > x=rand(10,10); > for i=1 :10 > y(i)=min(find(x(i,:)>0.5); > end > > Is there any way to get y without using 'for end' loop because it will take > a time when row number is large . > > Best regards. > > > > > -- > View this message in context: http://mailinglists.scilab.org/getting-the-first-column-number-of-each-row-tp4033132.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 fujimoto2005 at gmail.com Mon Nov 30 14:20:21 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Mon, 30 Nov 2015 06:20:21 -0700 (MST) Subject: [Scilab-users] getting the first column number of each row In-Reply-To: <565C3860.1010506@online.no> References: <1448862873647-4033132.post@n3.nabble.com> <565C3860.1010506@online.no> Message-ID: <1448889621764-4033136.post@n3.nabble.com> Hi,Angel and JA I can get the solutions. Thanks a lot for your helps. Best regards. -- View this message in context: http://mailinglists.scilab.org/getting-the-first-column-number-of-each-row-tp4033132p4033136.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From arctica1963 at gmail.com Mon Nov 30 16:41:24 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 30 Nov 2015 15:41:24 +0000 Subject: [Scilab-users] How to install modules manually Message-ID: Hello, Is there a simple way to install modules for use in Scilab 5 when no direct Internet access. Having dowloaded a module zip file - what is the procedure to install? Thanks Lester From antoine.monmayrant at laas.fr Mon Nov 30 17:25:48 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 30 Nov 2015 17:25:48 +0100 Subject: [Scilab-users] How to install modules manually In-Reply-To: References: Message-ID: <565C788C.2030806@laas.fr> Le 11/30/2015 04:41 PM, Lester Anderson a ?crit : > Hello, > > Is there a simple way to install modules for use in Scilab 5 when no > direct Internet access. Having dowloaded a module zip file - what is > the procedure to install? atomsInstall('very/long/path/to/the/atom/zipfile.zip'); If you are under Linux, you'd better get a tarfile.tar.gz. I had some problem installing on a Linux machine an atom.zip file created on a Windows machine. Cheers, Antoine > > Thanks > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From arctica1963 at gmail.com Mon Nov 30 17:51:24 2015 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 30 Nov 2015 16:51:24 +0000 Subject: [Scilab-users] How to install modules manually In-Reply-To: <565C788C.2030806@laas.fr> References: <565C788C.2030806@laas.fr> Message-ID: I forgot to say I am working on Windows: Tried the command: -->atomsInstall('c:\ss20-work\scilab\swt-0.3.0.1-2-src.zip') !--error 10000 atomsDESCRIPTIONread: The file "C:\Users\landerso\AppData\Roaming\Scilab\scilab-5.4.1\.atoms\x64\tmp_1448901817\swt\DESCRIPTION" does not exist. at line 46 of function atomsDESCRIPTIONread called by : at line 160 of function atomsInstall called by : atomsInstall('c:\ss20-work\scilab\swt-0.3.0.1-2-src.zip') The zip file is there so not sure what is going on. Think I see the issue: https://atoms.scilab.org/toolboxes/swt - says it is being "packaged". The zip file contains all the source code and the builder.sce etc. (I asume that is the reason.) Lester On 30 November 2015 at 16:25, Antoine Monmayrant wrote: > Le 11/30/2015 04:41 PM, Lester Anderson a ?crit : >> >> Hello, >> >> Is there a simple way to install modules for use in Scilab 5 when no >> direct Internet access. Having dowloaded a module zip file - what is >> the procedure to install? > > > atomsInstall('very/long/path/to/the/atom/zipfile.zip'); > > If you are under Linux, you'd better get a tarfile.tar.gz. > I had some problem installing on a Linux machine an atom.zip file created on > a Windows machine. > > Cheers, > > Antoine >> >> >> Thanks >> Lester >> _______________________________________________ >> 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 ridder.peter at googlemail.com Mon Nov 30 20:27:56 2015 From: ridder.peter at googlemail.com (windkraft) Date: Mon, 30 Nov 2015 12:27:56 -0700 (MST) Subject: [Scilab-users] Xcos Coselica blocks - Error while running - C compiller In-Reply-To: <1446616554965-4033072.post@n3.nabble.com> References: <1446616554965-4033072.post@n3.nabble.com> Message-ID: <1448911676645-4033140.post@n3.nabble.com> Hello Paul Of course the Xcos example worked not. So I followed several suggestions out of forums and mailing lists concerning this theme. And all error messages which are mentioned above showed up on my w7 computer. Therefore it would be nice to get an information in which constallation it realy works and do it handish without the atoms GUI. That pathes, prepare configuration files etc. Cheers Peter -- View this message in context: http://mailinglists.scilab.org/Xcos-Coselica-blocks-Error-while-running-C-compiller-tp4033072p4033140.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.