From clement.david at scilab-enterprises.com Thu Oct 1 10:15:28 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 01 Oct 2015 10:15:28 +0200 Subject: [Scilab-users] setmemory() <= Re: Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector) In-Reply-To: <560BEBFB.8040000@free.fr> References: <1443434473.3942.29.camel@scilab-enterprises.com> <560B9EDF.4050703@free.fr> <560BA824.6090504@scilab-enterprises.com> <560BEBFB.8040000@free.fr> Message-ID: <1443687328.2787.26.camel@scilab-enterprises.com> Hello Samuel, > So, my questions are: > * can't the same be implemented in Scilab 6? No it can not be exactly the same as we no more used a stack approach for Scilab 6. > * If yes: is there a way to implement it in such a way that sharing > between global and local+intermediate variables/memory would be set > dynamically, in a transparent way for the user that would not have to > specify fixed amounts for each kind of variables? We can handle raw data for ArrayOf based variables (any matrices data type). Which means that if the user allocate 100x100 double matrix, we would only check 10000*8 against the sett-ed limitation (no global / local distinction, datatype or class memory layout not included). This approach is the simplest one and do not manage list / mlist nor user-allocated data. In my view, this is sufficient to handle the basic multiplication mistake or any other basic memory-bound operation. In fact we can handle the allocation implementation per Scilab type so we just have to choose what is handled or not (this does not cover gateways allocation). > * How the "default" buffer is initially sized in Scilab 5? Does it > take > into account the available memory at the time of launching the Scilab > session, such as it could be different from a Scilab session to the > other, particularly when several concurrent Scilab sessions are > simultaneously run on the same computer? How could it be managed in > Scilab 6, while the former Scilab memory limit that became quite > smaller than common available RAM does no longer hold? The static settings is defined in etc/scilab.start for Scilab 5 with value 10000000*8 bytes for *all* datatypes. You can pass the '-mem' argument that will modify this value at startup. As Simon written, this is not possible to automatically handle that for each user as Scilab's usage will vary. We just set a sane default value (probably the same value as in Scilab 5) and allow each user to modify it at Scilab's startup or later. > * Is this setting a memory reservation?.. in such a way that > increasing > the java heap max size makes this memory unavailable for other > processes > external to Scilab, or even unavailable for other Scilab sessions > running on the same computer? Yep this is static memory reservation settings (call Java Heap Space) that can be only tuned at the JVM startup. > * Does each Scilab session have its own java heap, or is the java > heap > shared? This is the first case ; each OS process is independent and the Java Heap Space is allocated per process. > In the first case, including its setting through setmemory() of > a session could be meaningful. -- Cl?ment From clement.david at scilab-enterprises.com Thu Oct 1 10:34:35 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 01 Oct 2015 10:34:35 +0200 Subject: [Scilab-users] setmemory() <= Re: Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector) In-Reply-To: <560BEBFB.8040000@free.fr> References: <1443434473.3942.29.camel@scilab-enterprises.com> <560B9EDF.4050703@free.fr> <560BA824.6090504@scilab-enterprises.com> <560BEBFB.8040000@free.fr> Message-ID: <1443688475.4365.7.camel@scilab-enterprises.com> Le mercredi 30 septembre 2015 ? 16:04 +0200, Samuel Gougeon a ?crit : > The meaning of my first post was that, from a user point of view, > knowing that the amount of memory involved in a Scilab session is of > "Scilab global kind" or of "Scilab intermediate kind" or of "java > kind" > or of "TCL kind" (for so-called TCL interpreters) is of no > importance. > The only thing that really matters is that my calculations and > graphics > work within a specified total amount of memory. In an ideal world, > even > the size of the java heap should be dynamically set as a part of the > total amount of memory set for the Scilab session. It might not be > possible, but it was the idea of my question/discussion. > > Samuel I think I was not clear enough. For me if you want to limit the allocated memory for the whole process, you have to use some OS specific features for that (ulimit or cgroups on Linux for exemple). My point is just to avoid swapping and slowing down the whole computer on Scilab beginner mistake. In fact, it seems to be possible (at least on Windows using "Job Objects" and Linux using "Cgroups") but out of scope for me. > PS: By the way, in Scilab 5, are the TCL variables -- that are > "persistent" -- stored in the global area, or anywhere else? Anywhere else (in the TCL allocated space) ! Each gateway can allocate any data without being managed by Scilab. The stack usually only contains an handle (an mlist containing a single pointer) used to access the data. -- Cl?ment From jrafaelbguerra at hotmail.com Thu Oct 1 12:36:35 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 1 Oct 2015 12:36:35 +0200 Subject: [Scilab-users] Function In-Reply-To: <560C594F.1070803@gmail.com> References: , <560A9EC8.2080709@gmail.com>, , , <560C594F.1070803@gmail.com> Message-ID: I can only think of Da Vinci's wise words: "simplicity is the ultimate sophistication" > To: users at lists.scilab.org > From: cfuttrup at gmail.com > Date: Wed, 30 Sep 2015 23:51:11 +0200 > Subject: Re: [Scilab-users] Function > > Hi Christophe, et al. > > Sarcasm can create an unpleasant atmosphere, which is generally not > desirable in a forum. Just ot be clear, I don't see any sarcasm in my > own response. If you see it otherwise, please explain. > > When it comes to my points, please bear in mind that I did find the > question by Peter Q highly suspicious. I think that very simple > questions needs to be turned over and studied further. Also please be > aware that if young people show up and need answers, it could interfere > with educational programs. Therefore skepticism may be just right under > certain circumstances. > > An approach for helpers in the forum could be, that if a question is > very simple, consider asking questions, like for example "what is the > general purpose?" - and/or - "can you explain more about the problem > you're trying to solve?" > > I appreciate Samuels reply in that the answer may not be so simple, if > the space is not a simple cartesian space. This was also part of the > thoughts underlying my response. I was thinking, "where's the catch?" > > I do think that the forum members should be concerned with interfering > with educational programs (like classes in school). > > Best regards, > Claus > > On 30-09-2015 10:18, Dang, Christophe wrote: > > Hello, > > > >> De : users [mailto:users-bounces at lists.scilab.org] De la part de Peter Q. > >> Envoy? : mardi 29 septembre 2015 21:34 > >> > >> Thanks guys for answer. > > You're welcome. > > > > I personally think that we should sometimes simply answer elementary questions without sarcasm, as it is good news: the popularity of Scilab increases and people start using it without being senior calculators (this is also for myself, as I confess I have been myself sometimes sarcastic). > > > > If we suspect some lazy student, maybe we could discuss to have a common and adapted answer, such as asking first for the formulas before helping coding it. > > > > 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 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Oct 1 13:45:56 2015 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 1 Oct 2015 13:45:56 +0200 Subject: [Scilab-users] Function In-Reply-To: References: <560A9EC8.2080709@gmail.com> <560C594F.1070803@gmail.com> Message-ID: <560D1CF4.6050004@utc.fr> Le 01/10/2015 12:36, Rafael Guerra a ?crit : > I can only think of Da Vinci's wise words: "simplicity is the ultimate > sophistication" +1, definitively > > > To: users at lists.scilab.org > > From: cfuttrup at gmail.com > > Date: Wed, 30 Sep 2015 23:51:11 +0200 > > Subject: Re: [Scilab-users] Function > > > > Hi Christophe, et al. > > > > Sarcasm can create an unpleasant atmosphere, which is generally not > > desirable in a forum. Just ot be clear, I don't see any sarcasm in my > > own response. If you see it otherwise, please explain. > > > > When it comes to my points, please bear in mind that I did find the > > question by Peter Q highly suspicious. I think that very simple > > questions needs to be turned over and studied further. Also please be > > aware that if young people show up and need answers, it could interfere > > with educational programs. Therefore skepticism may be just right under > > certain circumstances. > > > > An approach for helpers in the forum could be, that if a question is > > very simple, consider asking questions, like for example "what is the > > general purpose?" - and/or - "can you explain more about the problem > > you're trying to solve?" > > > > I appreciate Samuels reply in that the answer may not be so simple, if > > the space is not a simple cartesian space. This was also part of the > > thoughts underlying my response. I was thinking, "where's the catch?" > > > > I do think that the forum members should be concerned with interfering > > with educational programs (like classes in school). > > > > Best regards, > > Claus > > > > On 30-09-2015 10:18, Dang, Christophe wrote: > > > Hello, > > > > > >> De : users [mailto:users-bounces at lists.scilab.org] De la part de > Peter Q. > > >> Envoy? : mardi 29 septembre 2015 21:34 > > >> > > >> Thanks guys for answer. > > > You're welcome. > > > > > > I personally think that we should sometimes simply answer > elementary questions without sarcasm, as it is good news: the > popularity of Scilab increases and people start using it without being > senior calculators (this is also for myself, as I confess I have been > myself sometimes sarcastic). > > > > > > If we suspect some lazy student, maybe we could discuss to have a > common and adapted answer, such as asking first for the formulas > before helping coding it. > > > > > > 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 > > > > _______________________________________________ > > 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 -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.marchetto at scilab-enterprises.com Thu Oct 1 14:39:29 2015 From: simon.marchetto at scilab-enterprises.com (Simon Marchetto) Date: Thu, 1 Oct 2015 14:39:29 +0200 Subject: [Scilab-users] setmemory() <= Re: Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector) In-Reply-To: <560BEBFB.8040000@free.fr> References: <1443434473.3942.29.camel@scilab-enterprises.com> <560B9EDF.4050703@free.fr> <560BA824.6090504@scilab-enterprises.com> <560BEBFB.8040000@free.fr> Message-ID: <560D2981.1070507@scilab-enterprises.com> Le 30/09/2015 16:04, Samuel Gougeon a ?crit : > In a practical way, what can be noticed is that when using a lot of > graphics in Scilab -- like for image processing --, some java > exceptions can be avoided by increasing the size of the java heap. Before increasing the Java heap, one should wonder if the needed graphic or the image processing really has to use so much memory: - Is the design of this image processing good ? - Do this graphic really need millions of vertices or points ? Because you can't always increase the memory, or/and the data could get even bigger than you thought. So you increase the memory only when the design can't be changed. Easy to say than done, I admit :-) Simon From laurent.bonaventure at ac-nantes.fr Thu Oct 1 15:51:55 2015 From: laurent.bonaventure at ac-nantes.fr (Laurent Bonaventure) Date: Thu, 1 Oct 2015 15:51:55 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: References: <55F59C4F.50404@free.fr> Message-ID: Hello. I'm still trying to understand the difference in behavior when opening a graphic windows, between: - opening it directly from Scilex - opening it from Scilex, but when Scilex stdin is piped I managed to narrow down the behavior to the opening of a new graphic window by java. In Scilex (Windows 7+Scilab 5.5.2), if you type: jimport org.scilab.modules.graphic_objects.builder.Builder jimport org.scilab.modules.graphic_objects.CallGraphicController p=jinvoke(Builder,"createNewFigureWithAxes") jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) //__GO_MENUBAR_VISIBLE__, false jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) //__GO_TOOLBAR_VISIBLE__, false jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) //__GO_INFOBAR_VISIBLE__, false jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) //__GO_MENUBAR_VISIBLE__, true jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) //__GO_TOOLBAR_VISIBLE__, true jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) //__GO_INFOBAR_VISIBLE__, true then you get an empty graphic window (java), and when you select Edit/Axes Properties, the Tk "graphic editor" window shows up immediately. If you send the same commands to Scilex "through a pipe" (eg: cat | scilex) (assuming you have "cat" on your windows), then the graphic window appears normally, but the Tk window don't show up when you select Edit/Axes Properties. Strangely, if you then close the graphic window and then reopen it (by sending the above commands again), the Tk windows shows up (too late). Could someone give me a hint about what's going on here? Why isn't Tk interacting correctly with the java graphic window in the "pipe" case, while everything goes normally in the "non-pipe" case? Thanks Laurent Bonaventure Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : > Hello. > > I'm still trying to pipe instructions into scilex (Windows 7, Scilab 5.4). > > When I send a plot command, scilex opens the graphics window and draw my > polyline -> Great ! > > Then I try to open the graphics editor from within the graphics window > (e.g. Edit/Axes properties) : nothing happens. > > Then I close the graphics window. > > Then I send the plot command again. And poof! The graphics windows opens > AND the long awaited graphics editor too. Except that nothing works in it. > > I guess it's some sort of handlers problem: the graphics window cannot > communicate correctly with the scilab kernel and get the correct > handlers to the figure. > > What's more strange, is that the behaviour is correct when I start > scilex from within an interactive console (cmd)... > > Steps to reproduce (you need some utility like cat from gnuwin32, or any > way to pipe commands to scilex) : > > (Incorrect behaviour, with a pipe) > > cat | scilex > x = 0:0.1:10 > plot(x,cos(x)) > > > > > plot(x,cos(x)) > functional)> > > (Correct behaviour, without pipe) > > scilex > x = 0:0.1:10 > plot(x,cos(x)) > > > > > I don't understand how scilex can see any difference between both > approaches, and why it would have a different behaviour based on that > difference. From its point of view, there shouldn't be any difference. > > Ah! And the -nw switch doesn't change anything... You get exactly the > same behaviour in both cases. > > Can someone give me some sort of solution, or pointers, or even give me > an idea for a workaround. I need to pipe things in scilex, and I need > the first approach to work correctly... > > Thank you. > Laurent From antoine.monmayrant at laas.fr Thu Oct 1 16:26:22 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 1 Oct 2015 16:26:22 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: References: <55F59C4F.50404@free.fr> Message-ID: <560D428E.5070500@laas.fr> Hi, I'm not sure I'll be of any help, as I'm using Scilab on a linux machine. Is there an equivalent of scilex.exe on linux? (Is it scilab-adv-cli or scilab-cli?) If yes, I can try to run a test case under Linux using the corresponding equivalent to see if it's a problem with pipes or pipes on Windows. Antoine Le 10/01/2015 03:51 PM, Laurent Bonaventure a ?crit : > Hello. > > I'm still trying to understand the difference in behavior when opening > a graphic windows, between: > - opening it directly from Scilex > - opening it from Scilex, but when Scilex stdin is piped > > I managed to narrow down the behavior to the opening of a new graphic > window by java. > > In Scilex (Windows 7+Scilab 5.5.2), if you type: > > jimport org.scilab.modules.graphic_objects.builder.Builder > jimport org.scilab.modules.graphic_objects.CallGraphicController > p=jinvoke(Builder,"createNewFigureWithAxes") > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) > //__GO_MENUBAR_VISIBLE__, false > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) > //__GO_TOOLBAR_VISIBLE__, false > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) > //__GO_INFOBAR_VISIBLE__, false > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) > //__GO_MENUBAR_VISIBLE__, true > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) > //__GO_TOOLBAR_VISIBLE__, true > jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) > //__GO_INFOBAR_VISIBLE__, true > > then you get an empty graphic window (java), and when you select > Edit/Axes Properties, the Tk "graphic editor" window shows up > immediately. > > If you send the same commands to Scilex "through a pipe" (eg: cat | > scilex) (assuming you have "cat" on your windows), then the graphic > window appears normally, but the Tk window don't show up when you > select Edit/Axes Properties. > > Strangely, if you then close the graphic window and then reopen it (by > sending the above commands again), the Tk windows shows up (too late). > > Could someone give me a hint about what's going on here? Why isn't Tk > interacting correctly with the java graphic window in the "pipe" case, > while everything goes normally in the "non-pipe" case? > > Thanks > > Laurent Bonaventure > > Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : >> Hello. >> >> I'm still trying to pipe instructions into scilex (Windows 7, Scilab >> 5.4). >> >> When I send a plot command, scilex opens the graphics window and draw my >> polyline -> Great ! >> >> Then I try to open the graphics editor from within the graphics window >> (e.g. Edit/Axes properties) : nothing happens. >> >> Then I close the graphics window. >> >> Then I send the plot command again. And poof! The graphics windows opens >> AND the long awaited graphics editor too. Except that nothing works >> in it. >> >> I guess it's some sort of handlers problem: the graphics window cannot >> communicate correctly with the scilab kernel and get the correct >> handlers to the figure. >> >> What's more strange, is that the behaviour is correct when I start >> scilex from within an interactive console (cmd)... >> >> Steps to reproduce (you need some utility like cat from gnuwin32, or any >> way to pipe commands to scilex) : >> >> (Incorrect behaviour, with a pipe) >> >> cat | scilex >> x = 0:0.1:10 >> plot(x,cos(x)) >> >> >> >> >> plot(x,cos(x)) >> > functional)> >> >> (Correct behaviour, without pipe) >> >> scilex >> x = 0:0.1:10 >> plot(x,cos(x)) >> >> >> >> >> I don't understand how scilex can see any difference between both >> approaches, and why it would have a different behaviour based on that >> difference. From its point of view, there shouldn't be any difference. >> >> Ah! And the -nw switch doesn't change anything... You get exactly the >> same behaviour in both cases. >> >> Can someone give me some sort of solution, or pointers, or even give me >> an idea for a workaround. I need to pipe things in scilex, and I need >> the first approach to work correctly... >> >> Thank you. >> Laurent > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From laurent.bonaventure at ac-nantes.fr Thu Oct 1 16:36:34 2015 From: laurent.bonaventure at ac-nantes.fr (Laurent Bonaventure) Date: Thu, 1 Oct 2015 16:36:34 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: <560D428E.5070500@laas.fr> References: <55F59C4F.50404@free.fr> <560D428E.5070500@laas.fr> Message-ID: Hi Antoine. I guess that the corresponding command in Linux would be "scilab-adv-cli". And yes, that would be very nice of you! Thanks for your interest in my predicament! Laurent Le 01/10/2015 16:26, Antoine Monmayrant a ?crit : > Hi, > > I'm not sure I'll be of any help, as I'm using Scilab on a linux machine. > Is there an equivalent of scilex.exe on linux? > (Is it scilab-adv-cli or scilab-cli?) > If yes, I can try to run a test case under Linux using the corresponding > equivalent to see if it's a problem with pipes or pipes on Windows. > > Antoine > > Le 10/01/2015 03:51 PM, Laurent Bonaventure a ?crit : >> Hello. >> >> I'm still trying to understand the difference in behavior when opening >> a graphic windows, between: >> - opening it directly from Scilex >> - opening it from Scilex, but when Scilex stdin is piped >> >> I managed to narrow down the behavior to the opening of a new graphic >> window by java. >> >> In Scilex (Windows 7+Scilab 5.5.2), if you type: >> >> jimport org.scilab.modules.graphic_objects.builder.Builder >> jimport org.scilab.modules.graphic_objects.CallGraphicController >> p=jinvoke(Builder,"createNewFigureWithAxes") >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) >> //__GO_MENUBAR_VISIBLE__, false >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) >> //__GO_TOOLBAR_VISIBLE__, false >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) >> //__GO_INFOBAR_VISIBLE__, false >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) >> //__GO_MENUBAR_VISIBLE__, true >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) >> //__GO_TOOLBAR_VISIBLE__, true >> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) >> //__GO_INFOBAR_VISIBLE__, true >> >> then you get an empty graphic window (java), and when you select >> Edit/Axes Properties, the Tk "graphic editor" window shows up >> immediately. >> >> If you send the same commands to Scilex "through a pipe" (eg: cat | >> scilex) (assuming you have "cat" on your windows), then the graphic >> window appears normally, but the Tk window don't show up when you >> select Edit/Axes Properties. >> >> Strangely, if you then close the graphic window and then reopen it (by >> sending the above commands again), the Tk windows shows up (too late). >> >> Could someone give me a hint about what's going on here? Why isn't Tk >> interacting correctly with the java graphic window in the "pipe" case, >> while everything goes normally in the "non-pipe" case? >> >> Thanks >> >> Laurent Bonaventure >> >> Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : >>> Hello. >>> >>> I'm still trying to pipe instructions into scilex (Windows 7, Scilab >>> 5.4). >>> >>> When I send a plot command, scilex opens the graphics window and draw my >>> polyline -> Great ! >>> >>> Then I try to open the graphics editor from within the graphics window >>> (e.g. Edit/Axes properties) : nothing happens. >>> >>> Then I close the graphics window. >>> >>> Then I send the plot command again. And poof! The graphics windows opens >>> AND the long awaited graphics editor too. Except that nothing works >>> in it. >>> >>> I guess it's some sort of handlers problem: the graphics window cannot >>> communicate correctly with the scilab kernel and get the correct >>> handlers to the figure. >>> >>> What's more strange, is that the behaviour is correct when I start >>> scilex from within an interactive console (cmd)... >>> >>> Steps to reproduce (you need some utility like cat from gnuwin32, or any >>> way to pipe commands to scilex) : >>> >>> (Incorrect behaviour, with a pipe) >>> >>> cat | scilex >>> x = 0:0.1:10 >>> plot(x,cos(x)) >>> >>> >>> >>> >>> plot(x,cos(x)) >>> >> functional)> >>> >>> (Correct behaviour, without pipe) >>> >>> scilex >>> x = 0:0.1:10 >>> plot(x,cos(x)) >>> >>> >>> >>> >>> I don't understand how scilex can see any difference between both >>> approaches, and why it would have a different behaviour based on that >>> difference. From its point of view, there shouldn't be any difference. >>> >>> Ah! And the -nw switch doesn't change anything... You get exactly the >>> same behaviour in both cases. >>> >>> Can someone give me some sort of solution, or pointers, or even give me >>> an idea for a workaround. I need to pipe things in scilex, and I need >>> the first approach to work correctly... >>> >>> Thank you. >>> Laurent >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> From antoine.monmayrant at laas.fr Thu Oct 1 16:43:43 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Thu, 1 Oct 2015 16:43:43 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: References: <55F59C4F.50404@free.fr> <560D428E.5070500@laas.fr> Message-ID: <560D469F.3070502@laas.fr> Well, I am not sure I can test your stuff. When I manually feed scilab-adv-cli with your code, I get the following error when trying to open Edit/Axes Prop... : --> Undefined variable: TCL_EvalStr at line 44 of function ged ( /home/myhome/softs/scilab-6.0.0-alpha-1/share/scilab/modules/graphics/macros/ged.sci line 52 ) Is scilab-adv-cli really the equivalent? Or are all the non-cli things deactivated? Antoine Le 10/01/2015 04:36 PM, Laurent Bonaventure a ?crit : > Hi Antoine. > > I guess that the corresponding command in Linux would be > "scilab-adv-cli". > > And yes, that would be very nice of you! > > Thanks for your interest in my predicament! > > Laurent > > Le 01/10/2015 16:26, Antoine Monmayrant a ?crit : >> Hi, >> >> I'm not sure I'll be of any help, as I'm using Scilab on a linux >> machine. >> Is there an equivalent of scilex.exe on linux? >> (Is it scilab-adv-cli or scilab-cli?) >> If yes, I can try to run a test case under Linux using the corresponding >> equivalent to see if it's a problem with pipes or pipes on Windows. >> >> Antoine >> >> Le 10/01/2015 03:51 PM, Laurent Bonaventure a ?crit : >>> Hello. >>> >>> I'm still trying to understand the difference in behavior when opening >>> a graphic windows, between: >>> - opening it directly from Scilex >>> - opening it from Scilex, but when Scilex stdin is piped >>> >>> I managed to narrow down the behavior to the opening of a new graphic >>> window by java. >>> >>> In Scilex (Windows 7+Scilab 5.5.2), if you type: >>> >>> jimport org.scilab.modules.graphic_objects.builder.Builder >>> jimport org.scilab.modules.graphic_objects.CallGraphicController >>> p=jinvoke(Builder,"createNewFigureWithAxes") >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) >>> //__GO_MENUBAR_VISIBLE__, false >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) >>> //__GO_TOOLBAR_VISIBLE__, false >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) >>> //__GO_INFOBAR_VISIBLE__, false >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) >>> //__GO_MENUBAR_VISIBLE__, true >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) >>> //__GO_TOOLBAR_VISIBLE__, true >>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) >>> //__GO_INFOBAR_VISIBLE__, true >>> >>> then you get an empty graphic window (java), and when you select >>> Edit/Axes Properties, the Tk "graphic editor" window shows up >>> immediately. >>> >>> If you send the same commands to Scilex "through a pipe" (eg: cat | >>> scilex) (assuming you have "cat" on your windows), then the graphic >>> window appears normally, but the Tk window don't show up when you >>> select Edit/Axes Properties. >>> >>> Strangely, if you then close the graphic window and then reopen it (by >>> sending the above commands again), the Tk windows shows up (too late). >>> >>> Could someone give me a hint about what's going on here? Why isn't Tk >>> interacting correctly with the java graphic window in the "pipe" case, >>> while everything goes normally in the "non-pipe" case? >>> >>> Thanks >>> >>> Laurent Bonaventure >>> >>> Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : >>>> Hello. >>>> >>>> I'm still trying to pipe instructions into scilex (Windows 7, Scilab >>>> 5.4). >>>> >>>> When I send a plot command, scilex opens the graphics window and >>>> draw my >>>> polyline -> Great ! >>>> >>>> Then I try to open the graphics editor from within the graphics window >>>> (e.g. Edit/Axes properties) : nothing happens. >>>> >>>> Then I close the graphics window. >>>> >>>> Then I send the plot command again. And poof! The graphics windows >>>> opens >>>> AND the long awaited graphics editor too. Except that nothing works >>>> in it. >>>> >>>> I guess it's some sort of handlers problem: the graphics window cannot >>>> communicate correctly with the scilab kernel and get the correct >>>> handlers to the figure. >>>> >>>> What's more strange, is that the behaviour is correct when I start >>>> scilex from within an interactive console (cmd)... >>>> >>>> Steps to reproduce (you need some utility like cat from gnuwin32, >>>> or any >>>> way to pipe commands to scilex) : >>>> >>>> (Incorrect behaviour, with a pipe) >>>> >>>> cat | scilex >>>> x = 0:0.1:10 >>>> plot(x,cos(x)) >>>> >>>> >>>> >>>> >>>> plot(x,cos(x)) >>>> >>> functional)> >>>> >>>> (Correct behaviour, without pipe) >>>> >>>> scilex >>>> x = 0:0.1:10 >>>> plot(x,cos(x)) >>>> >>>> >>>> >>>> >>>> I don't understand how scilex can see any difference between both >>>> approaches, and why it would have a different behaviour based on that >>>> difference. From its point of view, there shouldn't be any difference. >>>> >>>> Ah! And the -nw switch doesn't change anything... You get exactly the >>>> same behaviour in both cases. >>>> >>>> Can someone give me some sort of solution, or pointers, or even >>>> give me >>>> an idea for a workaround. I need to pipe things in scilex, and I need >>>> the first approach to work correctly... >>>> >>>> Thank you. >>>> Laurent >>> >>> >>> _______________________________________________ >>> 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 BP 54200 31031 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 antoine.elias at scilab-enterprises.com Thu Oct 1 18:08:02 2015 From: antoine.elias at scilab-enterprises.com (Antoine ELIAS) Date: Thu, 1 Oct 2015 18:08:02 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: <560D469F.3070502@laas.fr> References: <55F59C4F.50404@free.fr> <560D428E.5070500@laas.fr> <560D469F.3070502@laas.fr> Message-ID: <560D5A62.2010604@scilab-enterprises.com> Antoine, Laurent uses scilab 5.5.2 and TCL module is not replug in Scilab 6 at the moment.( work in progress ...) Scilab 5.5.2 binaries : Windows | Linux/MacOS WScilex <=> bin/scilab Scilex -nw <=> bin/scilab-adv-cli <=> bin/scilab -nw Scilex <=> bin/scilab-cli <=> bin/scilab -nwni Le 01/10/2015 16:43, Antoine Monmayrant a ?crit : > Well, > > I am not sure I can test your stuff. > When I manually feed scilab-adv-cli with your code, I get the following error when trying to open Edit/Axes Prop... : > > > --> Undefined variable: TCL_EvalStr > > at line 44 of function ged ( /home/myhome/softs/scilab-6.0.0-alpha-1/share/scilab/modules/graphics/macros/ged.sci line 52 ) > > Is scilab-adv-cli really the equivalent? > Or are all the non-cli things deactivated? > > Antoine > > > Le 10/01/2015 04:36 PM, Laurent Bonaventure a ?crit : >> Hi Antoine. >> >> I guess that the corresponding command in Linux would be "scilab-adv-cli". >> >> And yes, that would be very nice of you! >> >> Thanks for your interest in my predicament! >> >> Laurent >> >> Le 01/10/2015 16:26, Antoine Monmayrant a ?crit : >>> Hi, >>> >>> I'm not sure I'll be of any help, as I'm using Scilab on a linux machine. >>> Is there an equivalent of scilex.exe on linux? >>> (Is it scilab-adv-cli or scilab-cli?) >>> If yes, I can try to run a test case under Linux using the corresponding >>> equivalent to see if it's a problem with pipes or pipes on Windows. >>> >>> Antoine >>> >>> Le 10/01/2015 03:51 PM, Laurent Bonaventure a ?crit : >>>> Hello. >>>> >>>> I'm still trying to understand the difference in behavior when opening >>>> a graphic windows, between: >>>> - opening it directly from Scilex >>>> - opening it from Scilex, but when Scilex stdin is piped >>>> >>>> I managed to narrow down the behavior to the opening of a new graphic >>>> window by java. >>>> >>>> In Scilex (Windows 7+Scilab 5.5.2), if you type: >>>> >>>> jimport org.scilab.modules.graphic_objects.builder.Builder >>>> jimport org.scilab.modules.graphic_objects.CallGraphicController >>>> p=jinvoke(Builder,"createNewFigureWithAxes") >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) >>>> //__GO_MENUBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) >>>> //__GO_TOOLBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) >>>> //__GO_INFOBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) >>>> //__GO_MENUBAR_VISIBLE__, true >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) >>>> //__GO_TOOLBAR_VISIBLE__, true >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) >>>> //__GO_INFOBAR_VISIBLE__, true >>>> >>>> then you get an empty graphic window (java), and when you select >>>> Edit/Axes Properties, the Tk "graphic editor" window shows up >>>> immediately. >>>> >>>> If you send the same commands to Scilex "through a pipe" (eg: cat | >>>> scilex) (assuming you have "cat" on your windows), then the graphic >>>> window appears normally, but the Tk window don't show up when you >>>> select Edit/Axes Properties. >>>> >>>> Strangely, if you then close the graphic window and then reopen it (by >>>> sending the above commands again), the Tk windows shows up (too late). >>>> >>>> Could someone give me a hint about what's going on here? Why isn't Tk >>>> interacting correctly with the java graphic window in the "pipe" case, >>>> while everything goes normally in the "non-pipe" case? >>>> >>>> Thanks >>>> >>>> Laurent Bonaventure >>>> >>>> Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : >>>>> Hello. >>>>> >>>>> I'm still trying to pipe instructions into scilex (Windows 7, Scilab >>>>> 5.4). >>>>> >>>>> When I send a plot command, scilex opens the graphics window and draw my >>>>> polyline -> Great ! >>>>> >>>>> Then I try to open the graphics editor from within the graphics window >>>>> (e.g. Edit/Axes properties) : nothing happens. >>>>> >>>>> Then I close the graphics window. >>>>> >>>>> Then I send the plot command again. And poof! The graphics windows opens >>>>> AND the long awaited graphics editor too. Except that nothing works >>>>> in it. >>>>> >>>>> I guess it's some sort of handlers problem: the graphics window cannot >>>>> communicate correctly with the scilab kernel and get the correct >>>>> handlers to the figure. >>>>> >>>>> What's more strange, is that the behaviour is correct when I start >>>>> scilex from within an interactive console (cmd)... >>>>> >>>>> Steps to reproduce (you need some utility like cat from gnuwin32, or any >>>>> way to pipe commands to scilex) : >>>>> >>>>> (Incorrect behaviour, with a pipe) >>>>> >>>>> cat | scilex >>>>> x = 0:0.1:10 >>>>> plot(x,cos(x)) >>>>> >>>>> >>>>> >>>>> >>>>> plot(x,cos(x)) >>>>> >>>> functional)> >>>>> >>>>> (Correct behaviour, without pipe) >>>>> >>>>> scilex >>>>> x = 0:0.1:10 >>>>> plot(x,cos(x)) >>>>> >>>>> >>>>> >>>>> >>>>> I don't understand how scilex can see any difference between both >>>>> approaches, and why it would have a different behaviour based on that >>>>> difference. From its point of view, there shouldn't be any difference. >>>>> >>>>> Ah! And the -nw switch doesn't change anything... You get exactly the >>>>> same behaviour in both cases. >>>>> >>>>> Can someone give me some sort of solution, or pointers, or even give me >>>>> an idea for a workaround. I need to pipe things in scilex, and I need >>>>> the first approach to work correctly... >>>>> >>>>> Thank you. >>>>> Laurent >>>> >>>> >>>> _______________________________________________ >>>> 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 ELIAS Software developer ----------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles Phone: 01.80.77.04.70 http://www.scilab-enterprises.com From laurent.bonaventure at ac-nantes.fr Thu Oct 1 18:59:53 2015 From: laurent.bonaventure at ac-nantes.fr (Laurent Bonaventure) Date: Thu, 1 Oct 2015 18:59:53 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: <560D469F.3070502@laas.fr> References: <55F59C4F.50404@free.fr> <560D428E.5070500@laas.fr> <560D469F.3070502@laas.fr> Message-ID: Thank you for trying. Anyway, I have a virtual linux somewhere, so I guess I could try it myself with Scilab 5.5.2. on linux; if the difference of behavior doesn't reproduce, that would narrow the search more. See you, Laurent Le 01/10/2015 16:43, Antoine Monmayrant a ?crit : > Well, > > I am not sure I can test your stuff. > When I manually feed scilab-adv-cli with your code, I get the following > error when trying to open Edit/Axes Prop... : > > > --> Undefined variable: TCL_EvalStr > > at line 44 of function ged ( > /home/myhome/softs/scilab-6.0.0-alpha-1/share/scilab/modules/graphics/macros/ged.sci > line 52 ) > > Is scilab-adv-cli really the equivalent? > Or are all the non-cli things deactivated? > > Antoine > > > Le 10/01/2015 04:36 PM, Laurent Bonaventure a ?crit : >> Hi Antoine. >> >> I guess that the corresponding command in Linux would be >> "scilab-adv-cli". >> >> And yes, that would be very nice of you! >> >> Thanks for your interest in my predicament! >> >> Laurent >> >> Le 01/10/2015 16:26, Antoine Monmayrant a ?crit : >>> Hi, >>> >>> I'm not sure I'll be of any help, as I'm using Scilab on a linux >>> machine. >>> Is there an equivalent of scilex.exe on linux? >>> (Is it scilab-adv-cli or scilab-cli?) >>> If yes, I can try to run a test case under Linux using the corresponding >>> equivalent to see if it's a problem with pipes or pipes on Windows. >>> >>> Antoine >>> >>> Le 10/01/2015 03:51 PM, Laurent Bonaventure a ?crit : >>>> Hello. >>>> >>>> I'm still trying to understand the difference in behavior when opening >>>> a graphic windows, between: >>>> - opening it directly from Scilex >>>> - opening it from Scilex, but when Scilex stdin is piped >>>> >>>> I managed to narrow down the behavior to the opening of a new graphic >>>> window by java. >>>> >>>> In Scilex (Windows 7+Scilab 5.5.2), if you type: >>>> >>>> jimport org.scilab.modules.graphic_objects.builder.Builder >>>> jimport org.scilab.modules.graphic_objects.CallGraphicController >>>> p=jinvoke(Builder,"createNewFigureWithAxes") >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%f) >>>> //__GO_MENUBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%f) >>>> //__GO_TOOLBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%f) >>>> //__GO_INFOBAR_VISIBLE__, false >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,357,%t) >>>> //__GO_MENUBAR_VISIBLE__, true >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,355,%t) >>>> //__GO_TOOLBAR_VISIBLE__, true >>>> jinvoke(CallGraphicController,"setGraphicObjectProperty",p,358,%t) >>>> //__GO_INFOBAR_VISIBLE__, true >>>> >>>> then you get an empty graphic window (java), and when you select >>>> Edit/Axes Properties, the Tk "graphic editor" window shows up >>>> immediately. >>>> >>>> If you send the same commands to Scilex "through a pipe" (eg: cat | >>>> scilex) (assuming you have "cat" on your windows), then the graphic >>>> window appears normally, but the Tk window don't show up when you >>>> select Edit/Axes Properties. >>>> >>>> Strangely, if you then close the graphic window and then reopen it (by >>>> sending the above commands again), the Tk windows shows up (too late). >>>> >>>> Could someone give me a hint about what's going on here? Why isn't Tk >>>> interacting correctly with the java graphic window in the "pipe" case, >>>> while everything goes normally in the "non-pipe" case? >>>> >>>> Thanks >>>> >>>> Laurent Bonaventure >>>> >>>> Le 20/09/2015 04:41, Laurent Bonaventure a ?crit : >>>>> Hello. >>>>> >>>>> I'm still trying to pipe instructions into scilex (Windows 7, Scilab >>>>> 5.4). >>>>> >>>>> When I send a plot command, scilex opens the graphics window and >>>>> draw my >>>>> polyline -> Great ! >>>>> >>>>> Then I try to open the graphics editor from within the graphics window >>>>> (e.g. Edit/Axes properties) : nothing happens. >>>>> >>>>> Then I close the graphics window. >>>>> >>>>> Then I send the plot command again. And poof! The graphics windows >>>>> opens >>>>> AND the long awaited graphics editor too. Except that nothing works >>>>> in it. >>>>> >>>>> I guess it's some sort of handlers problem: the graphics window cannot >>>>> communicate correctly with the scilab kernel and get the correct >>>>> handlers to the figure. >>>>> >>>>> What's more strange, is that the behaviour is correct when I start >>>>> scilex from within an interactive console (cmd)... >>>>> >>>>> Steps to reproduce (you need some utility like cat from gnuwin32, >>>>> or any >>>>> way to pipe commands to scilex) : >>>>> >>>>> (Incorrect behaviour, with a pipe) >>>>> >>>>> cat | scilex >>>>> x = 0:0.1:10 >>>>> plot(x,cos(x)) >>>>> >>>>> >>>>> >>>>> >>>>> plot(x,cos(x)) >>>>> >>>> functional)> >>>>> >>>>> (Correct behaviour, without pipe) >>>>> >>>>> scilex >>>>> x = 0:0.1:10 >>>>> plot(x,cos(x)) >>>>> >>>>> >>>>> >>>>> >>>>> I don't understand how scilex can see any difference between both >>>>> approaches, and why it would have a different behaviour based on that >>>>> difference. From its point of view, there shouldn't be any difference. >>>>> >>>>> Ah! And the -nw switch doesn't change anything... You get exactly the >>>>> same behaviour in both cases. >>>>> >>>>> Can someone give me some sort of solution, or pointers, or even >>>>> give me >>>>> an idea for a workaround. I need to pipe things in scilex, and I need >>>>> the first approach to work correctly... >>>>> >>>>> Thank you. >>>>> Laurent >>>> >>>> >>>> _______________________________________________ >>>> 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 sgougeon at free.fr Thu Oct 1 20:17:20 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Oct 2015 20:17:20 +0200 Subject: [Scilab-users] Cannot understand scilex behavior when piping In-Reply-To: <560D5A62.2010604@scilab-enterprises.com> References: <55F59C4F.50404@free.fr> <560D428E.5070500@laas.fr> <560D469F.3070502@laas.fr> <560D5A62.2010604@scilab-enterprises.com> Message-ID: <560D78B0.5060607@free.fr> Hello, Le 01/10/2015 18:08, Antoine ELIAS a ?crit : > Antoine, > > Laurent uses scilab 5.5.2 and TCL module is not replug in Scilab 6 at the moment.( work in progress ...) > > Scilab 5.5.2 binaries : > > Windows | Linux/MacOS > WScilex <=> bin/scilab > Scilex -nw <=> bin/scilab-adv-cli <=> bin/scilab -nw > Scilex <=> bin/scilab-cli <=> bin/scilab -nwni . Useful table of equivalences that would be nice to add to --> help scilab, shortly after the current calling sequence block, or as substitute of it: http://help.scilab.org/docs/5.5.2/en_US/scilab.html Samuel From grivet at cnrs-orleans.fr Fri Oct 2 12:28:06 2015 From: grivet at cnrs-orleans.fr (grivet) Date: Fri, 2 Oct 2015 12:28:06 +0200 Subject: [Scilab-users] absolute size of figure Message-ID: <560E5C36.2070202@cnrs-orleans.fr> Hello, I have a problem with the size in pixels of figures produced by Scilab (5.5.1 under Win7). I use xs2gif to record figures on disk; these are later incorporated in an animation. My application requires that the picture size be not larger than 800*600 pixels. How is the actual size determined by Scilab ? If I use the statements hf = gcf(); hf.figure_size=[1000,400]; I find that the resulting size is not exactly 1000*400 but somewhat smaller in both dimensions. This is a bit annoying since the aspect ratio is altered. In some programs, I use xsetech to select either of two subwindows. How should I proceed to fix the overall size? Thank you for any help. Cheers, JP Grivet* From amonmayr at laas.fr Fri Oct 2 13:53:02 2015 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 02 Oct 2015 13:53:02 +0200 Subject: [Scilab-users] =?utf-8?q?absolute_size_of_figure?= In-Reply-To: <560E5C36.2070202@cnrs-orleans.fr> Message-ID: <60fb-560e7000-2d-56cdc400@43555483> Hi, You want to specify hf.axes_size = [1000,400]. figure_size sets the size of the inner part of the graphical window, including border and titlebar (hence the missing 1 pixel left and right and 58 at the top), Hope it helps, Antoine Le Vendredi 2 Octobre 2015 12:28 CEST, grivet a ?crit: > Hello, > I have a problem with the size in pixels of figures produced by Scilab > (5.5.1 under Win7). I use xs2gif to record figures on disk; these are > later incorporated in an animation. My application requires that the > picture size be not larger than 800*600 pixels. How is the actual size > determined by Scilab ? > If I use the statements > hf = gcf(); > hf.figure_size=[1000,400]; > I find that the resulting size is not exactly 1000*400 but somewhat > smaller in both dimensions. This is a bit annoying since the aspect > ratio is altered. > In some programs, I use xsetech to select either of two subwindows. How > should I proceed to fix the overall size? > Thank you for any help. > Cheers, > JP Grivet* > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From eddie.liberatoe at gmail.com Sat Oct 3 18:49:46 2015 From: eddie.liberatoe at gmail.com (eddie Liberato) Date: Sat, 3 Oct 2015 09:49:46 -0700 (MST) Subject: [Scilab-users] Help to understand XCOS Message-ID: <1443890986816-4032956.post@n3.nabble.com> Hi, Going straight to the point, I don't understand why Xcos mess with the amplitude when integrating the sine function. It shouldn't only go 90? out of phase? Someone can point where is my mistake ? thanks in advance. -- View this message in context: http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Oct 5 10:08:39 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 05 Oct 2015 10:08:39 +0200 Subject: [Scilab-users] Help to understand XCOS In-Reply-To: <1443890986816-4032956.post@n3.nabble.com> References: <1443890986816-4032956.post@n3.nabble.com> Message-ID: <1444032519.3148.9.camel@scilab-enterprises.com> Hello eddie, See http://math2.org/math/integrals/more/restrig.htm In fact you can move the starting point by changing the '1/s' initial value (which is by default 0). Regards, -- Cl?ment Le samedi 03 octobre 2015 ? 09:49 -0700, eddie Liberato a ?crit : > Hi, > > Going straight to the point, I don't understand why Xcos mess with > the > amplitude when integrating the sine function. It shouldn't only go > 90? out > of phase? > Someone can point where is my mistake ? > thanks in advance. > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956.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 fvogelnew1 at free.fr Mon Oct 5 21:24:20 2015 From: fvogelnew1 at free.fr (Francois Vogel) Date: Mon, 5 Oct 2015 21:24:20 +0200 Subject: [Scilab-users] [ANN] Scipad-8.75 Message-ID: <5612CE64.3090901@free.fr> ANNOUNCE: Scipad version 8.75 ============================= A new version of the Scipad text editor for Scilab and Scicoslab is available. CHANGES SINCE PREVIOUS VERSION ============================== FIXED BUGS: * Fixed Tcl error that popped out when closing Scipad opened in Scicoslab whereas Scipad did not have the focus * Fixed preferences file write issues with non-initialized variables, which was leading to several issues at Scipad startup (window position and opened files restoration restoration missing) 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.75/scipad-8.75-Scilab5.zip/download - for Scicoslab: http://sourceforge.net/projects/scipad/files/scipad-8.75/scipad-8.75-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. From amonmayr at laas.fr Tue Oct 6 00:01:04 2015 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 06 Oct 2015 00:01:04 +0200 Subject: [Scilab-users] How to produce a filled staircase plot Message-ID: <58b3-5612f300-7-34f5cf40@204903028> Hi everyone, I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). Is there a given combination of polyline_style and fill_mode, etc ... that can do this? Or should I resort to building a polygon by hand? Thanks in advance, Antoine From Christophe.Dang at sidel.com Tue Oct 6 10:15:42 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 6 Oct 2015 08:15:42 +0000 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <58b3-5612f300-7-34f5cf40@204903028> References: <58b3-5612f300-7-34f5cf40@204903028> Message-ID: Hello, > De : Antoine Monmayrant > Envoy? : mardi 6 octobre 2015 00:01 > > I'm trying to do a filled staircase plot > (ie a staircase where the area between the staircase and the x axis is filled with a solid color). > Is there a given combination of polyline_style and fill_mode, etc ... that can do this? I tried polt2d2 (or plot2d and polyline_style=2) With fill_mode="on" and background=2 (or whatever) And get some weird result: only the caption is filled, not the polyline. This is not what I expect when I read the help page http://help.scilab.org/docs/5.5.2/en_US/polyline_properties.html Did I misunderstand something or should I fill a bug report (is there already a bug report)? -- 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 gerard.bobillot at onera.fr Tue Oct 6 10:55:56 2015 From: gerard.bobillot at onera.fr (=?utf-8?Q?G=C3=A9rard_BOBILLOT?=) Date: Tue, 6 Oct 2015 10:55:56 +0200 Subject: [Scilab-users] Scilab with Mac OSX El Capitan In-Reply-To: <1443452444.3942.41.camel@scilab-enterprises.com> References: <1443434473.3942.29.camel@scilab-enterprises.com> <56092C2D.4070509@laas.fr> <56094500.10907@laas.fr> <1443452444.3942.41.camel@scilab-enterprises.com> Message-ID: Hello, I recently upgrade my MacPro with the new OSX El Capitan (OSX 10.11). One result is that I cannot run Scilab any more. I have tried Scilab 5.5.2 ans Scilab 6.0.0 alpha. I get the following message: ? This version of Scilab will probably fail on this system (10.11): Scilab requires 10.6.5 (Snow Leopard) or newer system. ? with two buttons ? Try anyway ? and ? Quit ?. Using the buttons, nothing happens. Any solution ? Regards G?rard Bobillot gerard.bobillot at onera.fr From Serge.Steer at inria.fr Tue Oct 6 11:42:08 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 06 Oct 2015 11:42:08 +0200 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <58b3-5612f300-7-34f5cf40@204903028> References: <58b3-5612f300-7-34f5cf40@204903028> Message-ID: <56139770.60404@inria.fr> Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : > Hi everyone, > > I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). > Is there a given combination of polyline_style and fill_mode, etc ... that can do this? > Or should I resort to building a polygon by hand? > > Thanks in advance, > > Antoine > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > May be the bar mode can help you x=linspace(0,%pi,10);y=sin(x); clf;plot(x,y);e=gce();e=e.children; e.polyline_style=6;e.bar_width=0.5; e.background=2; e.line_mode="off"; From amonmayr at laas.fr Tue Oct 6 11:57:23 2015 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Tue, 06 Oct 2015 11:57:23 +0200 Subject: [Scilab-users] =?utf-8?q?How_to_produce_a_filled_staircase_plot?= In-Reply-To: <56139770.60404@inria.fr> Message-ID: <524f-56139b00-13-dcc2080@138597307> Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occure at random times, following an exponential law (see the attached plot). For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. I was hoping for a cleaner solution. Thanks anyway, Cheers, Antoine Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer a ?crit: > Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : > > Hi everyone, > > > > I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). > > Is there a given combination of polyline_style and fill_mode, etc ... that can do this? > > Or should I resort to building a polygon by hand? > > > > Thanks in advance, > > > > Antoine > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > May be the bar mode can help you > x=linspace(0,%pi,10);y=sin(x); > clf;plot(x,y);e=gce();e=e.children; > e.polyline_style=6;e.bar_width=0.5; > e.background=2; > e.line_mode="off"; > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- A non-text attachment was scrubbed... Name: decay.png Type: image/png Size: 15722 bytes Desc: not available URL: From florian.osselin at gmail.com Tue Oct 6 12:31:30 2015 From: florian.osselin at gmail.com (Flopi) Date: Tue, 6 Oct 2015 03:31:30 -0700 (MST) Subject: [Scilab-users] EOF too early in a .txt file using read Message-ID: <1444127490447-4032965.post@n3.nabble.com> Dear all, I am facing a problem during the exploitation of my simulation results. I feed the code I am using with a 476x475 matrix and the code gives me back as many elements but with in 10 columns and 22610 lines. I am then using the read function read('file.txt',-1,475); in scilab to get it back to a matrix of 476x475 elements. But Scilab gives me a matrix of size 471x475. When I was using the code with a 330x330 matrix it always worked correctly. Do you have any idea of why I cannot get all my data as a result ? Thanks -- View this message in context: http://mailinglists.scilab.org/EOF-too-early-in-a-txt-file-using-read-tp4032965.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From umut.durak at tu-clausthal.de Tue Oct 6 14:57:07 2015 From: umut.durak at tu-clausthal.de (Dr.Umut Durak) Date: Tue, 06 Oct 2015 14:57:07 +0200 Subject: [Scilab-users] Compiling an MBLOCK Message-ID: Folks, I am trying to run a simple model that has a MBLOCK inside using Scilab 5.5.2. During compiling the modelica, everything works quite well until "Building shared library (be patient)", then it fails with "NMAKE : fatal error U1065". Haveacompiler returns true and findmsvccompiler returns msvc100pro. Any suggestions? Bests, 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 Come to: SpringSim'16 Submit to: 6th International Workshop on Model-driven Approaches for Simulation Engineering (MOD4SIM?16) Ontologies in Simulation Special Interest Track of Annual Simulation Symposium (ANSS) From clement.david at scilab-enterprises.com Tue Oct 6 16:12:54 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 06 Oct 2015 16:12:54 +0200 Subject: [Scilab-users] Compiling an MBLOCK In-Reply-To: References: Message-ID: <1444140774.3148.52.camel@scilab-enterprises.com> Hello Umut, This error seems to be an NMAKE issue. Can you provide us more information please ? Did you try logging the makefile using `ilib_verbose(2)` ? If possible, can you attach the MBLOCK content or the schema ? Regards, -- Cl?ment Le mardi 06 octobre 2015 ? 14:57 +0200, Dr.Umut Durak a ?crit : > Folks, > I am trying to run a simple model that has a MBLOCK inside using > Scilab > 5.5.2. During compiling the modelica, everything works quite well > until > "Building shared library (be patient)", then it fails with "NMAKE : > fatal > error U1065". Haveacompiler returns true and findmsvccompiler returns > msvc100pro. Any suggestions? > Bests, > > > > 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-analy > sis-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 > > Come to: SpringSim'16 > Submit to: > 6th International Workshop on Model-driven Approaches for Simulation > Engineering (MOD4SIM?16) > Ontologies in Simulation Special Interest Track of Annual Simulation > Symposium (ANSS) > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From umut.durak at tu-clausthal.de Tue Oct 6 17:30:52 2015 From: umut.durak at tu-clausthal.de (Dr.Umut Durak) Date: Tue, 06 Oct 2015 17:30:52 +0200 Subject: [Scilab-users] Compiling an MBLOCK In-Reply-To: <1444140774.3148.52.camel@scilab-enterprises.com> References: <1444140774.3148.52.camel@scilab-enterprises.com> Message-ID: Thanks Clement, the model you will find attached and the log with verbose level 2 is as follows: --------------------------------------------\ Main Modelica : C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.mo Flat Modelica : C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_imf.mo Simulation C code :C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.c erzeuge eine Laderdatei !// This file is released under the 3-clause BSD license. Se! ! e COPYING-BSD. ! ! ! !// Generated by builder.sce : Please, do not edit this file! ! ! !// --------------------------------------------------------! ! -------------------- ! ! ! !// ! ! ! !if ~win64() then ! ! ! ! warning(_("This module requires a Windows x64 platform.")! ! ); ! ! ! ! return ! ! ! !end ! ! ! !// ! ! ! !loop1_im_path = get_absolute_file_path('loader.sce'); ! ! ! !// ! ! ! !// ulink previous function with same name ! ! ! ![bOK, ilib] = c_link('loop1_im'); ! ! ! !if bOK then ! ! ! ! ulink(ilib); ! ! ! !end ! ! ! !// ! ! ! !link(loop1_im_path + 'libloop1_im' + getdynlibext(), ['loop! ! 1_im'],'c'); ! ! ! !// remove temp. variables on stack ! ! ! !clear loop1_im_path; ! ! ! !clear bOK; ! ! ! !clear ilib; ! ! ! !// --------------------------------------------------------! ! -------------------- ! erzeuge ein Makefile !# ------------------------------------------------------ ! ! ! !# generated by builder.sce : Please do not edit this file ! ! ! !# see TEMPLATE makefile for Visual Studio ! ! ! !# see SCI/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFIL! ! E.VC ! ! ! !# ------------------------------------------------------ ! ! ! !SCIDIR = C:/PROGRA~1/SCILAB~1.2 ! ! ! !# ------------------------------------------------------ ! ! ! !# default include options ! ! ! !INCLUDES = -I"$(SCIDIR)/libs/MALLOC/includes" \ -I"$(SCIDIR! ! )/libs/f2c" \ -I"$(SCIDIR)/libs/hashtable" \ -I"$(SCID! ! IR)/libs/intl" \ -I"$(SCIDIR)/modules/core/includes" \! ! -I"$(SCIDIR)/modules/api_scilab/includes" \ -I"$(SCID! ! IR)/modules/call_scilab/includes" \ -I"$(SCIDIR)/modul! ! es/output_stream/includes" \ -I"$(SCIDIR)/modules/jvm/! ! includes" \ -I"$(SCIDIR)/modules/localization/includes! ! " \ -I"$(SCIDIR)/modules/dynamic_link/includes" \ -I"$! ! (SCIDIR)/modules/mexlib/includes" \ -I"$(SCIDIR)/modul! ! es/time/includes" \ -I"$(SCIDIR)/modules/windows_tools! ! /includes" ! ! ! !# ------------------------------------------------------ ! ! ! !# SCILAB_LIBS is used by the binary version of Scilab for l! ! inking external codes ! ! ! !SCILAB_LIBS = "$(SCIDIR)/bin/blasplus.lib" \ "$(SCIDIR)/bin! ! /libf2c.lib" \ "$(SCIDIR)/bin/core.lib" \ "$(SCIDIR)/b! ! in/core_f.lib" \ "$(SCIDIR)/bin/lapack.lib" \ "$(SCIDI! ! R)/bin/libintl.lib" \ "$(SCIDIR)/bin/intersci.lib" \ "! ! $(SCIDIR)/bin/output_stream.lib" \ "$(SCIDIR)/bin/dyna! ! mic_link.lib" \ "$(SCIDIR)/bin/integer.lib" \ "$(SCIDI! ! R)/bin/optimization_f.lib" \ "$(SCIDIR)/bin/libjvm.lib! ! " \ "$(SCIDIR)/bin/scilocalization.lib" \ "$(SCIDIR)/b! ! in/linpack_f.lib" \ "$(SCIDIR)/bin/call_scilab.lib" \ ! ! "$(SCIDIR)/bin/time.lib" \ "$(SCIDIR)/bin/api_scilab.l! ! ib" \ "$(SCIDIR)/bin/libintl.lib" \ "$(SCIDIR)/bin/sci! ! lab_windows.lib" ! ! ! !# ------------------------------------------------------ ! ! ! !# name of the dll to be built ! ! ! !LIBRARY = libloop1_im ! ! ! !# ------------------------------------------------------ ! ! ! !# list of files ! ! ! !FILES_SRC = loop1_im.c ! ! ! !# ------------------------------------------------------ ! ! ! !# list of objects file ! ! ! !OBJS = loop1_im.obj ! ! ! !OBJS_WITH_PATH = Release/loop1_im.obj ! ! ! !# ------------------------------------------------------ ! ! ! !# added libraries ! ! ! !FORTRAN_RUNTIME_LIBRARIES = ! ! ! !OTHERLIBS = ! ! ! !# ------------------------------------------------------ ! ! ! !!include $(SCIDIR)\modules\dynamic_link\src\scripts\Makefil! ! e.incl.mak ! ! ! !# ------------------------------------------------------ ! ! ! !#CC = ! ! ! !# ------------------------------------------------------ ! ! ! !CFLAGS = $(CC_OPTIONS) -D__SCILAB_TOOLBOX__ -DFORDLL -I"$(! ! SCIDIR)/modules/scicos/includes" -I"$(SCIDIR)/modules/! ! scicos_blocks/includes" ! ! ! !# ------------------------------------------------------ ! ! ! !FFLAGS = $(FC_OPTIONS) -DFORDLL ! ! ! !# ------------------------------------------------------ ! ! ! !EXTRA_LDFLAGS = "C:/PROGRA~1/SCILAB~1.2/bin/scicos.lib" "C! ! :/PROGRA~1/SCILAB~1.2/bin/scicos_f.lib" "C:/PROGRA~1/S! ! CILAB~1.2/bin/scicos_blocks.lib" "C:/PROGRA~1/SCILAB~1! ! .2/bin/scicos_blocks_f.lib" ! ! ! !# ------------------------------------------------------ ! ! ! !!include $(SCIDIR)\modules\dynamic_link\src\scripts\Makedll! ! .incl ! ! ! !# ------------------------------------------------------ ! F?hre Makefile aus Kompilation von loop1_im.c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) ! ! ! ! !Microsoft (R) Program Maintenance Utility, Version 10.00.30! ! 319.01 ! ! ! !Copyright (C) Microsoft Corporation. Alle Rechte vorbehalte! ! n. ! ! ! ! ! ! ! !NMAKE : fatal error U1065: Ung?ltige Option "-" !! ! !Stop. ! !sorry compiling problem ! ! ! !ilib_compile: Fehler w?hrend der Ausf?hrung Makelib.mak. ! c_pass1: build the modelica meta-block failed xcos_simulate: Error during block parameters update. On Tue, 06 Oct 2015 16:12:54 +0200 Cl?ment David wrote: > Hello Umut, > > This error seems to be an NMAKE issue. Can you provide >us more > information please ? Did you try logging the makefile >using > `ilib_verbose(2)` ? > > If possible, can you attach the MBLOCK content or the >schema ? > > Regards, > > -- > Cl?ment > > Le mardi 06 octobre 2015 ? 14:57 +0200, Dr.Umut Durak a >?crit : >> Folks, >> I am trying to run a simple model that has a MBLOCK >>inside using >> Scilab >> 5.5.2. During compiling the modelica, everything works >>quite well >> until >> "Building shared library (be patient)", then it fails >>with "NMAKE : >> fatal >> error U1065". Haveacompiler returns true and >>findmsvccompiler returns >> msvc100pro. Any suggestions? >> Bests, >> >> >> >> 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-analy >> sis-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 >> >> Come to: SpringSim'16 >> Submit to: >> 6th International Workshop on Model-driven Approaches >>for Simulation >> Engineering (MOD4SIM?16) >> Ontologies in Simulation Special Interest Track of >>Annual Simulation >> Symposium (ANSS) >> _______________________________________________ >> 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 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 Come to: SpringSim'16 Submit to: 6th International Workshop on Model-driven Approaches for Simulation Engineering (MOD4SIM?16) Ontologies in Simulation Special Interest Track of Annual Simulation Symposium (ANSS) -------------- next part -------------- A non-text attachment was scrubbed... Name: loop1.zcos Type: application/octet-stream Size: 4157 bytes Desc: not available URL: From btoven66 at gmail.com Tue Oct 6 18:24:24 2015 From: btoven66 at gmail.com (Peter Q.) Date: Tue, 6 Oct 2015 11:24:24 -0500 Subject: [Scilab-users] Scilab with Mac OSX El Capitan In-Reply-To: References: <1443434473.3942.29.camel@scilab-enterprises.com> <56092C2D.4070509@laas.fr> <56094500.10907@laas.fr> <1443452444.3942.41.camel@scilab-enterprises.com> Message-ID: Virtualbox || VMware fusion player && Windows 8 || GNU/Linux On Oct 6, 2015 4:09 AM, "G?rard BOBILLOT" wrote: > Hello, > > I recently upgrade my MacPro with the new OSX El Capitan (OSX > 10.11). One result is that I cannot run Scilab any more. I have tried > Scilab 5.5.2 ans Scilab 6.0.0 alpha. I get the following message: > ? This version of Scilab will probably fail on this system (10.11): > Scilab requires 10.6.5 (Snow Leopard) or newer system. ? with two buttons ? > Try anyway ? and ? Quit ?. Using the buttons, nothing happens. > > Any solution ? > > Regards > > G?rard Bobillot > gerard.bobillot at onera.fr > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fezans at gmail.com Tue Oct 6 23:28:17 2015 From: nicolas.fezans at gmail.com (Nicolas Fezans) Date: Tue, 6 Oct 2015 23:28:17 +0200 Subject: [Scilab-users] Compiling an MBLOCK In-Reply-To: References: <1444140774.3148.52.camel@scilab-enterprises.com> Message-ID: Hi Umut, well unfortunately I was not able to reproduce your issue on any of the following combinations: A) Windows 7 Enterprise x64 (German) - Scilab 5.5.2 32bit B) Windows 7 Enterprise x64 (German) - Scilab 5.5.2 64bit C) Windows 7 Enterprise x64 (German) - Scilab 5.5.0 32bit D) Windows 7 Home x86 (English) - Scilab 5.5.2 32bit In all cases with Visual Studio 2010 (English version). My guess is that something is not configured "properly" on your machine (e.g. Path, Environment variable, ...) leading to things like not calling the right version of NMAKE or something like that happened earlier leading to generate commands that are not adequate for use with nmake. Maybe that helps but it seems that the NMAKE is complaining about being passed an option beginning with "--" or "/-" so I think somehow the call to NMAKE must be erroneous by itself and I see two main possibilities for that (but I know too little about the Xcos/Modelica compilation under Scilab to pretend that there are no other obvious possibilities): 1) you have another make system (e.g. gnu make or cmake) on your computer that was detected at some point during the process and the options passed to nmake where actually intended/generated for the other detected make system (which indeed can take options like --always-make , --ignore-errors , --trace etc.) 2) somehow compiler or linker flags were included in the nmake call (even though I can't think of any flags/options for cl or link beginning like the one that apparently causes your issue) If I had to bet on that I'll my money on number 1) Hope that helps, Nicolas On Tue, Oct 6, 2015 at 5:30 PM, Dr.Umut Durak wrote: > Thanks Clement, > the model you will find attached and the log with verbose level 2 is as > follows: > > --------------------------------------------\ > Main Modelica : > C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.mo > > Flat Modelica : > C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_imf.mo > Simulation C code > :C:\Users\dura_um\AppData\Local\Temp\SCI_TMP_6816_\loop1_im.c > erzeuge eine Laderdatei > !// This file is released under the 3-clause BSD license. Se! > ! e COPYING-BSD. ! > ! ! > !// Generated by builder.sce : Please, do not edit this file! > ! ! > !// --------------------------------------------------------! > ! -------------------- ! > ! ! > !// ! > ! ! > !if ~win64() then ! > ! ! > ! warning(_("This module requires a Windows x64 platform.")! > ! ); ! > ! ! > ! return ! > ! ! > !end ! > ! ! > !// ! > ! ! > !loop1_im_path = get_absolute_file_path('loader.sce'); ! > ! ! > !// ! > ! ! > !// ulink previous function with same name ! > ! ! > ![bOK, ilib] = c_link('loop1_im'); ! > ! ! > !if bOK then ! > ! ! > ! ulink(ilib); ! > ! ! > !end ! > ! ! > !// ! > ! ! > !link(loop1_im_path + 'libloop1_im' + getdynlibext(), ['loop! > ! 1_im'],'c'); ! > ! ! > !// remove temp. variables on stack ! > ! ! > !clear loop1_im_path; ! > ! ! > !clear bOK; ! > ! ! > !clear ilib; ! > ! ! > !// --------------------------------------------------------! > ! -------------------- ! > erzeuge ein Makefile > !# ------------------------------------------------------ ! > ! ! > !# generated by builder.sce : Please do not edit this file ! > ! ! > !# see TEMPLATE makefile for Visual Studio ! > ! ! > !# see SCI/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFIL! > ! E.VC ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !SCIDIR = C:/PROGRA~1/SCILAB~1.2 ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# default include options ! > ! ! > !INCLUDES = -I"$(SCIDIR)/libs/MALLOC/includes" \ > -I"$(SCIDIR! > ! )/libs/f2c" \ > -I"$(SCIDIR)/libs/hashtable" \ > -I"$(SCID! > ! IR)/libs/intl" \ > -I"$(SCIDIR)/modules/core/includes" \! > ! > -I"$(SCIDIR)/modules/api_scilab/includes" \ > -I"$(SCID! > ! IR)/modules/call_scilab/includes" \ > -I"$(SCIDIR)/modul! > ! es/output_stream/includes" \ > -I"$(SCIDIR)/modules/jvm/! > ! includes" \ > -I"$(SCIDIR)/modules/localization/includes! > ! " \ > -I"$(SCIDIR)/modules/dynamic_link/includes" \ > -I"$! > ! (SCIDIR)/modules/mexlib/includes" \ > -I"$(SCIDIR)/modul! > ! es/time/includes" \ > -I"$(SCIDIR)/modules/windows_tools! > ! /includes" ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# SCILAB_LIBS is used by the binary version of Scilab for l! > ! inking external codes ! > ! ! > !SCILAB_LIBS = "$(SCIDIR)/bin/blasplus.lib" \ > "$(SCIDIR)/bin! > ! /libf2c.lib" \ > "$(SCIDIR)/bin/core.lib" \ > "$(SCIDIR)/b! > ! in/core_f.lib" \ > "$(SCIDIR)/bin/lapack.lib" \ > "$(SCIDI! > ! R)/bin/libintl.lib" \ > "$(SCIDIR)/bin/intersci.lib" \ > "! > ! $(SCIDIR)/bin/output_stream.lib" \ > "$(SCIDIR)/bin/dyna! > ! mic_link.lib" \ > "$(SCIDIR)/bin/integer.lib" \ > "$(SCIDI! > ! R)/bin/optimization_f.lib" \ > "$(SCIDIR)/bin/libjvm.lib! > ! " \ > "$(SCIDIR)/bin/scilocalization.lib" \ > "$(SCIDIR)/b! > ! in/linpack_f.lib" \ > "$(SCIDIR)/bin/call_scilab.lib" \ > ! > ! "$(SCIDIR)/bin/time.lib" \ > "$(SCIDIR)/bin/api_scilab.l! > ! ib" \ > "$(SCIDIR)/bin/libintl.lib" \ > "$(SCIDIR)/bin/sci! > ! lab_windows.lib" ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# name of the dll to be built ! > ! ! > !LIBRARY = libloop1_im ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# list of files ! > ! ! > !FILES_SRC = loop1_im.c ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# list of objects file ! > ! ! > !OBJS = loop1_im.obj ! > ! ! > !OBJS_WITH_PATH = Release/loop1_im.obj ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !# added libraries ! > ! ! > !FORTRAN_RUNTIME_LIBRARIES = ! > ! ! > !OTHERLIBS = ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !!include $(SCIDIR)\modules\dynamic_link\src\scripts\Makefil! > ! e.incl.mak ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !#CC = ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !CFLAGS = $(CC_OPTIONS) -D__SCILAB_TOOLBOX__ -DFORDLL -I"$(! > ! SCIDIR)/modules/scicos/includes" -I"$(SCIDIR)/modules/! > ! scicos_blocks/includes" ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !FFLAGS = $(FC_OPTIONS) -DFORDLL ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !EXTRA_LDFLAGS = "C:/PROGRA~1/SCILAB~1.2/bin/scicos.lib" "C! > ! :/PROGRA~1/SCILAB~1.2/bin/scicos_f.lib" "C:/PROGRA~1/S! > ! CILAB~1.2/bin/scicos_blocks.lib" "C:/PROGRA~1/SCILAB~1! > ! .2/bin/scicos_blocks_f.lib" ! > ! ! > !# ------------------------------------------------------ ! > ! ! > !!include $(SCIDIR)\modules\dynamic_link\src\scripts\Makedll! > ! .incl ! > ! ! > !# ------------------------------------------------------ ! > F?hre Makefile aus > Kompilation von loop1_im.c > erzeuge eine gemeisame Bibliothek (habe Sie Geduld) > ! ! > ! ! > !Microsoft (R) Program Maintenance Utility, Version 10.00.30! > ! 319.01 ! > ! ! > !Copyright (C) Microsoft Corporation. Alle Rechte vorbehalte! > ! n. ! > ! ! > ! ! > ! ! > !NMAKE : fatal error U1065: Ung?ltige Option "-" !! > ! > !Stop. ! > !sorry compiling problem ! > ! ! > !ilib_compile: Fehler w?hrend der Ausf?hrung Makelib.mak. ! > c_pass1: build the modelica meta-block failed > xcos_simulate: Error during block parameters update. > > > > > > On Tue, 06 Oct 2015 16:12:54 +0200 > Cl?ment David wrote: >> >> Hello Umut, >> >> This error seems to be an NMAKE issue. Can you provide us more >> information please ? Did you try logging the makefile using >> `ilib_verbose(2)` ? >> >> If possible, can you attach the MBLOCK content or the schema ? >> >> Regards, >> >> -- >> Cl?ment >> >> Le mardi 06 octobre 2015 ? 14:57 +0200, Dr.Umut Durak a ?crit : >>> >>> Folks, >>> I am trying to run a simple model that has a MBLOCK inside using >>> Scilab 5.5.2. During compiling the modelica, everything works quite well >>> until "Building shared library (be patient)", then it fails with "NMAKE : >>> fatal error U1065". Haveacompiler returns true and findmsvccompiler >>> returns >>> msvc100pro. Any suggestions? >>> Bests, >>> >>> >>> >>> 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-analy >>> sis-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 >>> >>> Come to: SpringSim'16 >>> Submit to: >>> 6th International Workshop on Model-driven Approaches for Simulation >>> Engineering (MOD4SIM?16) >>> Ontologies in Simulation Special Interest Track of Annual Simulation >>> Symposium (ANSS) >>> _______________________________________________ >>> 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 > > > 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 > > Come to: SpringSim'16 > Submit to: > 6th International Workshop on Model-driven Approaches for Simulation > Engineering (MOD4SIM?16) > Ontologies in Simulation Special Interest Track of Annual Simulation > Symposium (ANSS) > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From jrafaelbguerra at hotmail.com Wed Oct 7 00:17:28 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Tue, 6 Oct 2015 23:17:28 +0100 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <524f-56139b00-13-dcc2080@138597307> References: <56139770.60404@inria.fr> <524f-56139b00-13-dcc2080@138597307> Message-ID: Hello Antoine, An attempt below, not particularly clean but I hope not too dirty either: //INPUT t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; N = [20 18 15 14 12 9 6 4 3 2 1]'; t2=[];N2=[]; ns= length(t); t2(1:2:2*ns) = t; t2(2:2:2*ns) = [t(2:$)-%eps; t($)]; N2(1:2:2*ns-1) = N; N2(2:2:2*ns) = N; clf; xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); h = gce(); h.line_mode = "off"; h.background = color('gray'); plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Tuesday, October 06, 2015 10:57 AM To: Users mailing list for Scilab Subject: Re: [Scilab-users] How to produce a filled staircase plot Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occur at random times, following an exponential law (see the attached plot). For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. I was hoping for a cleaner solution. Thanks anyway, Cheers, Antoine Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer < Serge.Steer at inria.fr> a ?crit: > Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : > > Hi everyone, > > > > I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). > > Is there a given combination of polyline_style and fill_mode, etc ... that can do this? > > Or should I resort to building a polygon by hand? > > > > Thanks in advance, > > > > Antoine > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > May be the bar mode can help you > x=linspace(0,%pi,10);y=sin(x); > clf;plot(x,y);e=gce();e=e.children; > e.polyline_style=6;e.bar_width=0.5; > e.background=2; > e.line_mode="off"; > _______________________________________________ > 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 Wed Oct 7 07:19:23 2015 From: arvid at softube.com (=?utf-8?B?QXJ2aWQgUm9zw6lu?=) Date: Wed, 7 Oct 2015 05:19:23 +0000 Subject: [Scilab-users] Scilab with Mac OSX El Capitan In-Reply-To: References: <1443434473.3942.29.camel@scilab-enterprises.com> <56092C2D.4070509@laas.fr> <56094500.10907@laas.fr> <1443452444.3942.41.camel@scilab-enterprises.com> Message-ID: Hi! I run Scilab 5.5.2 on OS X 10.11, and it works fine on several machines. You might try to reinstall Scilab and that old java version that is needed. I think I had to do that on one of the machines for whatever reason. Cheers, Arvid On 06 Oct 2015, at 18:24, Peter Q. > wrote: Virtualbox || VMware fusion player && Windows 8 || GNU/Linux On Oct 6, 2015 4:09 AM, "G?rard BOBILLOT" > wrote: Hello, I recently upgrade my MacPro with the new OSX El Capitan (OSX 10.11). One result is that I cannot run Scilab any more. I have tried Scilab 5.5.2 ans Scilab 6.0.0 alpha. I get the following message: ? This version of Scilab will probably fail on this system (10.11): Scilab requires 10.6.5 (Snow Leopard) or newer system. ? with two buttons ? Try anyway ? and ? Quit ?. Using the buttons, nothing happens. Any solution ? Regards G?rard Bobillot gerard.bobillot at onera.fr _______________________________________________ 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 yann.debray at scilab-enterprises.com Wed Oct 7 09:41:21 2015 From: yann.debray at scilab-enterprises.com (Yann DEBRAY) Date: Wed, 7 Oct 2015 09:41:21 +0200 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: References: <56139770.60404@inria.fr> <524f-56139b00-13-dcc2080@138597307> Message-ID: <5614CCA1.8000301@scilab-enterprises.com> Hello Raphael, Nice plot, but sadly it doesn't rescale. Do you have an idea how to make it fit the axes, to rescale automatically? Yann Le 07/10/2015 00:17, Rafael Guera a ?crit : > Hello Antoine, > > An attempt below, not particularly clean but I hope not too dirty either: > > //INPUT > t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; > N = [20 18 15 14 12 9 6 4 3 2 1]'; > > t2=[];N2=[]; > ns= length(t); > t2(1:2:2*ns) = t; > t2(2:2:2*ns) = [t(2:$)-%eps; t($)]; > N2(1:2:2*ns-1) = N; > N2(2:2:2*ns) = N; > clf; > xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); > h = gce(); > h.line_mode = "off"; > h.background = color('gray'); > plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); > > > Regards, > > Rafael > > -----Original Message----- > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant > Sent: Tuesday, October 06, 2015 10:57 AM > To: Users mailing list for Scilab > Subject: Re: [Scilab-users] How to produce a filled staircase plot > > Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. > I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occur at random times, following an exponential law (see the attached plot). > For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. > I was hoping for a cleaner solution. > > Thanks anyway, > > Cheers, > > Antoine > > Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer < Serge.Steer at inria.fr> a ?crit: > >> Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : >>> Hi everyone, >>> >>> I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). >>> Is there a given combination of polyline_style and fill_mode, etc ... that can do this? >>> Or should I resort to building a polygon by hand? >>> >>> Thanks in advance, >>> >>> Antoine >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> May be the bar mode can help you >> x=linspace(0,%pi,10);y=sin(x); >> clf;plot(x,y);e=gce();e=e.children; >> e.polyline_style=6;e.bar_width=0.5; >> e.background=2; >> e.line_mode="off"; >> _______________________________________________ >> 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 antoine.monmayrant at laas.fr Wed Oct 7 09:58:09 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 7 Oct 2015 09:58:09 +0200 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <5614CCA1.8000301@scilab-enterprises.com> References: <56139770.60404@inria.fr> <524f-56139b00-13-dcc2080@138597307> <5614CCA1.8000301@scilab-enterprises.com> Message-ID: <5614D091.9020103@laas.fr> Le 10/07/2015 09:41 AM, Yann DEBRAY a ?crit : > Hello Raphael, > > Nice plot, but sadly it doesn't rescale. > Do you have an idea how to make it fit the axes, to rescale automatically? You can calculate your data_bounds and set them after plotting. Alernatively, use my method that does not rely on xfpoly, but on plot that rescales automatically: //I want to staircase plot N(Decay_times) N=[N2,N2-cumsum(ones(Decay_times))+1]; Np1=[N2-cumsum(ones(Decay_times))+1,0]; Ns=matrix([N;Np1],2*prod(size(N))); Decay_times=[0,Decay_times]; D_t=matrix([Decay_times;Decay_times],2*prod(size(Decay_times))); //in the end, I plot Ns(D_t) Ns=[0;Ns]; D_t=[0;D_t]; //plot it plot(D_t,Ns, 'k-'); //fill the bacground e=gce(); e.children.polyline_style=1; e.children.closed='off'; e.children.background=color('gray'); > > Yann > > Le 07/10/2015 00:17, Rafael Guera a ?crit : >> Hello Antoine, >> >> An attempt below, not particularly clean but I hope not too dirty either: >> >> //INPUT >> t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; >> N = [20 18 15 14 12 9 6 4 3 2 1]'; >> >> t2=[];N2=[]; >> ns= length(t); >> t2(1:2:2*ns) = t; >> t2(2:2:2*ns) = [t(2:$)-%eps; t($)]; >> N2(1:2:2*ns-1) = N; >> N2(2:2:2*ns) = N; >> clf; >> xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); >> h = gce(); >> h.line_mode = "off"; >> h.background = color('gray'); >> plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); >> >> >> Regards, >> >> Rafael >> >> -----Original Message----- >> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant >> Sent: Tuesday, October 06, 2015 10:57 AM >> To: Users mailing list for Scilab >> Subject: Re: [Scilab-users] How to produce a filled staircase plot >> >> Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. >> I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occur at random times, following an exponential law (see the attached plot). >> For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. >> I was hoping for a cleaner solution. >> >> Thanks anyway, >> >> Cheers, >> >> Antoine >> >> Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer < Serge.Steer at inria.fr> a ?crit: >> >>> Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : >>>> Hi everyone, >>>> >>>> I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). >>>> Is there a given combination of polyline_style and fill_mode, etc ... that can do this? >>>> Or should I resort to building a polygon by hand? >>>> >>>> Thanks in advance, >>>> >>>> Antoine >>>> >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>> May be the bar mode can help you >>> x=linspace(0,%pi,10);y=sin(x); >>> clf;plot(x,y);e=gce();e=e.children; >>> e.polyline_style=6;e.bar_width=0.5; >>> e.background=2; >>> e.line_mode="off"; >>> _______________________________________________ >>> 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 -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 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 Serge.Steer at inria.fr Wed Oct 7 11:47:49 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 07 Oct 2015 11:47:49 +0200 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <5614D091.9020103@laas.fr> References: <56139770.60404@inria.fr> <524f-56139b00-13-dcc2080@138597307> <5614CCA1.8000301@scilab-enterprises.com> <5614D091.9020103@laas.fr> Message-ID: <5614EA45.20307@inria.fr> Under Scilab-5.5.2 xfpoly rescale the graph automatically as plot does A little more simple (efficient?) code: t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; N = [20 18 15 14 12 9 6 4 3 2 1]'; t2=matrix([t' t($); t' t($)],-1,1); N2=matrix([0 N'; N' 0],-1,1) clf; xfpoly(t2,N2); h = gce(); h.line_mode = "off"; h.background = color('gray'); plot(t2(2:$-1),N2(2:$-1),'black', t2(2:$-1),21*exp(-t2(2:$-1)/2),'red'); Le 07/10/2015 09:58, Antoine Monmayrant a ?crit : > Le 10/07/2015 09:41 AM, Yann DEBRAY a ?crit : >> Hello Raphael, >> >> Nice plot, but sadly it doesn't rescale. >> Do you have an idea how to make it fit the axes, to rescale >> automatically? > > You can calculate your data_bounds and set them after plotting. > Alernatively, use my method that does not rely on xfpoly, but on plot > that rescales automatically: > > //I want to staircase plot N(Decay_times) > N=[N2,N2-cumsum(ones(Decay_times))+1]; > Np1=[N2-cumsum(ones(Decay_times))+1,0]; > Ns=matrix([N;Np1],2*prod(size(N))); > Decay_times=[0,Decay_times]; > > D_t=matrix([Decay_times;Decay_times],2*prod(size(Decay_times))); > //in the end, I plot Ns(D_t) > Ns=[0;Ns]; > D_t=[0;D_t]; > //plot it > plot(D_t,Ns, 'k-'); > //fill the bacground > e=gce(); > e.children.polyline_style=1; > e.children.closed='off'; > e.children.background=color('gray'); > >> >> Yann >> >> Le 07/10/2015 00:17, Rafael Guera a ?crit : >>> Hello Antoine, >>> >>> An attempt below, not particularly clean but I hope not too dirty either: >>> >>> //INPUT >>> t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; >>> N = [20 18 15 14 12 9 6 4 3 2 1]'; >>> >>> t2=[];N2=[]; >>> ns= length(t); >>> t2(1:2:2*ns) = t; >>> t2(2:2:2*ns) = [t(2:$)-%eps; t($)]; >>> N2(1:2:2*ns-1) = N; >>> N2(2:2:2*ns) = N; >>> clf; >>> xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); >>> h = gce(); >>> h.line_mode = "off"; >>> h.background = color('gray'); >>> plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); >>> >>> >>> Regards, >>> >>> Rafael >>> >>> -----Original Message----- >>> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant >>> Sent: Tuesday, October 06, 2015 10:57 AM >>> To: Users mailing list for Scilab >>> Subject: Re: [Scilab-users] How to produce a filled staircase plot >>> >>> Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. >>> I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occur at random times, following an exponential law (see the attached plot). >>> For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. >>> I was hoping for a cleaner solution. >>> >>> Thanks anyway, >>> >>> Cheers, >>> >>> Antoine >>> >>> Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer < Serge.Steer at inria.fr> a ?crit: >>> >>>> Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : >>>>> Hi everyone, >>>>> >>>>> I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). >>>>> Is there a given combination of polyline_style and fill_mode, etc ... that can do this? >>>>> Or should I resort to building a polygon by hand? >>>>> >>>>> Thanks in advance, >>>>> >>>>> Antoine >>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>> May be the bar mode can help you >>>> x=linspace(0,%pi,10);y=sin(x); >>>> clf;plot(x,y);e=gce();e=e.children; >>>> e.polyline_style=6;e.bar_width=0.5; >>>> e.background=2; >>>> e.line_mode="off"; >>>> _______________________________________________ >>>> 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 > > > -- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Antoine Monmayrant LAAS - CNRS > 7 avenue du Colonel Roche > BP 54200 > 31031 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 jrafaelbguerra at hotmail.com Thu Oct 8 13:24:07 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 8 Oct 2015 13:24:07 +0200 Subject: [Scilab-users] How to produce a filled staircase plot In-Reply-To: <5614EA45.20307@inria.fr> References: <56139770.60404@inria.fr> <524f-56139b00-13-dcc2080@138597307>, , <5614CCA1.8000301@scilab-enterprises.com> <5614D091.9020103@laas.fr>,<5614EA45.20307@inria.fr> Message-ID: Very ingenious matrix trick, I loved it Date: Wed, 7 Oct 2015 11:47:49 +0200 From: Serge.Steer at inria.fr To: users at lists.scilab.org Subject: Re: [Scilab-users] How to produce a filled staircase plot Under Scilab-5.5.2 xfpoly rescale the graph automatically as plot does A little more simple (efficient?) code: t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; N = [20 18 15 14 12 9 6 4 3 2 1]'; t2=matrix([t' t($); t' t($)],-1,1); N2=matrix([0 N'; N' 0],-1,1) clf; xfpoly(t2,N2); h = gce(); h.line_mode = "off"; h.background = color('gray'); plot(t2(2:$-1),N2(2:$-1),'black', t2(2:$-1),21*exp(-t2(2:$-1)/2),'red'); Le 07/10/2015 09:58, Antoine Monmayrant a ?crit : Le 10/07/2015 09:41 AM, Yann DEBRAY a ?crit : Hello Raphael, Nice plot, but sadly it doesn't rescale. Do you have an idea how to make it fit the axes, to rescale automatically? You can calculate your data_bounds and set them after plotting. Alernatively, use my method that does not rely on xfpoly, but on plot that rescales automatically: //I want to staircase plot N(Decay_times) N=[N2,N2-cumsum(ones(Decay_times))+1]; Np1=[N2-cumsum(ones(Decay_times))+1,0]; Ns=matrix([N;Np1],2*prod(size(N))); Decay_times=[0,Decay_times]; D_t=matrix([Decay_times;Decay_times],2*prod(size(Decay_times))); //in the end, I plot Ns(D_t) Ns=[0;Ns]; D_t=[0;D_t]; //plot it plot(D_t,Ns, 'k-'); //fill the bacground e=gce(); e.children.polyline_style=1; e.children.closed='off'; e.children.background=color('gray'); Yann Le 07/10/2015 00:17, Rafael Guera a ?crit : Hello Antoine, An attempt below, not particularly clean but I hope not too dirty either: //INPUT t = [ 0 2 5 10 12 17 20 30 35 45 60]'*0.1; N = [20 18 15 14 12 9 6 4 3 2 1]'; t2=[];N2=[]; ns= length(t); t2(1:2:2*ns) = t; t2(2:2:2*ns) = [t(2:$)-%eps; t($)]; N2(1:2:2*ns-1) = N; N2(2:2:2*ns) = N; clf; xfpoly([t2(1)-%eps;t2;t2($)+%eps],[0;N2;0]); h = gce(); h.line_mode = "off"; h.background = color('gray'); plot(t2,N2,'black', t2,21*exp(-t2/2),'red'); Regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Antoine Monmayrant Sent: Tuesday, October 06, 2015 10:57 AM To: Users mailing list for Scilab Subject: Re: [Scilab-users] How to produce a filled staircase plot Thank you Serge for this solution, but it does not work for me: the "bars" in my case are not regular. I am simulating an exponential random decay: starting from a number N0, my population decreases by jumps of N0->N0-1 that occur at random times, following an exponential law (see the attached plot). For the moment, I just build my polygon by hand, but it adds quite a lot of "noise" on top of the code that I intent to show to my students. I was hoping for a cleaner solution. Thanks anyway, Cheers, Antoine Le Mardi 6 Octobre 2015 11:42 CEST, Serge Steer < Serge.Steer at inria.fr> a ?crit: Le 06/10/2015 00:01, Antoine Monmayrant a ?crit : Hi everyone, I'm trying to do a filled staircase plot (ie a staircase where the area between the staircase and the x axis is filled with a solid color). Is there a given combination of polyline_style and fill_mode, etc ... that can do this? Or should I resort to building a polygon by hand? Thanks in advance, Antoine _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users May be the bar mode can help you x=linspace(0,%pi,10);y=sin(x); clf;plot(x,y);e=gce();e=e.children; e.polyline_style=6;e.bar_width=0.5; e.background=2; e.line_mode="off"; _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From eddie.liberatoe at gmail.com Thu Oct 8 17:11:25 2015 From: eddie.liberatoe at gmail.com (Eddie Liberato) Date: Thu, 8 Oct 2015 12:11:25 -0300 Subject: [Scilab-users] Help to understand XCOS In-Reply-To: <1444032519.3148.9.camel@scilab-enterprises.com> References: <1443890986816-4032956.post@n3.nabble.com> <1444032519.3148.9.camel@scilab-enterprises.com> Message-ID: Hello Cl?ment, thanks for the answer. But "make it plot how it should" was not the point. I was trying to understand why It don't plot how it should. (I'm not a scientist, just a mechanic). I got myself thinking: if it wasn't a function that I already know, or in a complex block I could think the result is numerically right, when it's not. Thanks Anyway. On Mon, Oct 5, 2015 at 5:08 AM, Cl?ment David < clement.david at scilab-enterprises.com> wrote: > Hello eddie, > > See http://math2.org/math/integrals/more/restrig.htm > > In fact you can move the starting point by changing the '1/s' initial > value (which is by default 0). > > Regards, > > -- > Cl?ment > > Le samedi 03 octobre 2015 ? 09:49 -0700, eddie Liberato a ?crit : > > Hi, > > > > Going straight to the point, I don't understand why Xcos mess with > > the > > amplitude when integrating the sine function. It shouldn't only go > > 90? out > > of phase? > > Someone can point where is my mistake ? > > thanks in advance. > > > > > > > > > > > > -- > > View this message in context: > > http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956.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 clement.david at scilab-enterprises.com Thu Oct 8 17:34:48 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Thu, 08 Oct 2015 17:34:48 +0200 Subject: [Scilab-users] Help to understand XCOS In-Reply-To: References: <1443890986816-4032956.post@n3.nabble.com> <1444032519.3148.9.camel@scilab-enterprises.com> Message-ID: <1444318488.2890.12.camel@scilab-enterprises.com> Hello Eddie, To clarify and give you a broader view, in Xcos you are basically managing : * inputs / outputs : propagate the data * events : control the data flow * states : that represent data *inside* a block In the integral block, we have a state containing the "integral of previous values" and the initial value is by default equal to zero. If you set the initial state to another value, the initial starting point will vary however we can not "predict" your ideal initial value ; it depends on your system ! As an example, on the Lorenz demo you can change the initial values and this will give completely different results (and plots) but the system is the same ! Note: the plot works like the traditional scope, it just read the inputs at the given frequency and that's it. It will not hide or show you anything else (thinks about sub-sampling issues). Regards, -- Cl?ment Le jeudi 08 octobre 2015 ? 12:11 -0300, Eddie Liberato a ?crit : > Hello Cl?ment, thanks for the answer. > > But "make it plot how it should" was not the point. I was trying to > understand why It don't plot how it should. (I'm not a scientist, > just a mechanic). I got myself thinking: if it wasn't a function that > I already know, or in a complex block I could think the result is > numerically right, when it's not. > > Thanks Anyway. > > On Mon, Oct 5, 2015 at 5:08 AM, Cl?ment David < > clement.david at scilab-enterprises.com> wrote: > > Hello eddie, > > > > See http://math2.org/math/integrals/more/restrig.htm > > > > In fact you can move the starting point by changing the '1/s' > > initial > > value (which is by default 0). > > > > Regards, > > > > -- > > Cl?ment > > > > Le samedi 03 octobre 2015 ? 09:49 -0700, eddie Liberato a ?crit : > > > Hi, > > > > > > Going straight to the point, I don't understand why Xcos mess > > with > > > the > > > amplitude when integrating the sine function. It shouldn't only > > go > > > 90? out > > > of phase? > > > Someone can point where is my mistake ? > > > thanks in advance. > > > > > > > > > > > > > > > > > > -- > > > View this message in context: > > > http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956. > > 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 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From rcorderog at gmail.com Thu Oct 8 18:29:37 2015 From: rcorderog at gmail.com (Cordero R. ) Date: Thu, 8 Oct 2015 12:29:37 -0400 Subject: [Scilab-users] Help to understand XCOS In-Reply-To: <1444032519.3148.9.camel@scilab-enterprises.com> References: <1443890986816-4032956.post@n3.nabble.com> <1444032519.3148.9.camel@scilab-enterprises.com> Message-ID: Hi The integration function is correct. The problem is not the initial point. But the integral of a sinusoidal function is not just a 90 degrees out of phase. It will be clear if you consider a definite integral from 0 to t: t t 0 Ssin(x) dx = -cos(x)| = cos(x)| = cos(0) - cos(t) = 1 - cos(t) 0 0 t For that reason, there is an offset in the result of the integration. Att Dr. Raymundo Cordero G. 2015-10-05 4:08 GMT-04:00 Cl?ment David < clement.david at scilab-enterprises.com>: > Hello eddie, > > See http://math2.org/math/integrals/more/restrig.htm > > In fact you can move the starting point by changing the '1/s' initial > value (which is by default 0). > > Regards, > > -- > Cl?ment > > Le samedi 03 octobre 2015 ? 09:49 -0700, eddie Liberato a ?crit : > > Hi, > > > > Going straight to the point, I don't understand why Xcos mess with > > the > > amplitude when integrating the sine function. It shouldn't only go > > 90? out > > of phase? > > Someone can point where is my mistake ? > > thanks in advance. > > > > > > > > > > > > -- > > View this message in context: > > http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956.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 eddie.liberatoe at gmail.com Thu Oct 8 20:15:29 2015 From: eddie.liberatoe at gmail.com (Eddie Liberato) Date: Thu, 8 Oct 2015 15:15:29 -0300 Subject: [Scilab-users] Help to understand XCOS In-Reply-To: References: <1443890986816-4032956.post@n3.nabble.com> <1444032519.3148.9.camel@scilab-enterprises.com> Message-ID: Thanks Dr. Cordero, that's the explanation I was looking for. Eddie On Thu, Oct 8, 2015 at 1:29 PM, Cordero R. wrote: > Hi > The integration function is correct. The problem is not the initial point. > But the integral of a sinusoidal function is not just a 90 degrees out of > phase. It will be clear if you consider a definite integral from 0 to t: > > t t 0 > Ssin(x) dx = -cos(x)| = cos(x)| = cos(0) - cos(t) = 1 - cos(t) > 0 0 t > > For that reason, there is an offset in the result of the integration. > > Att > Dr. Raymundo Cordero G. > > > 2015-10-05 4:08 GMT-04:00 Cl?ment David < > clement.david at scilab-enterprises.com>: > >> Hello eddie, >> >> See http://math2.org/math/integrals/more/restrig.htm >> >> In fact you can move the starting point by changing the '1/s' initial >> value (which is by default 0). >> >> Regards, >> >> -- >> Cl?ment >> >> Le samedi 03 octobre 2015 ? 09:49 -0700, eddie Liberato a ?crit : >> > Hi, >> > >> > Going straight to the point, I don't understand why Xcos mess with >> > the >> > amplitude when integrating the sine function. It shouldn't only go >> > 90? out >> > of phase? >> > Someone can point where is my mistake ? >> > thanks in advance. >> > >> > >> > >> > >> > >> > -- >> > View this message in context: >> > http://mailinglists.scilab.org/Help-to-understand-XCOS-tp4032956.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 grivet at cnrs-orleans.fr Mon Oct 12 14:26:37 2015 From: grivet at cnrs-orleans.fr (grivet) Date: Mon, 12 Oct 2015 14:26:37 +0200 Subject: [Scilab-users] read format Message-ID: <561BA6FD.4040909@cnrs-orleans.fr> Hello, I have a data file of about 80k lines. A typical line looks like this: 01/03/2015 00:01:00;5.49;1 (date time; value;parameter). I am only interested in the field "value", which can be 3 or 4 characters wide (i.e. 5.49 or 5.4). How can I extract the desired data from this file ? Thank you for your help. JP Grivet From guylaine.collewet at irstea.fr Mon Oct 12 16:28:15 2015 From: guylaine.collewet at irstea.fr (Collewet Guylaine) Date: Mon, 12 Oct 2015 16:28:15 +0200 (CEST) Subject: [Scilab-users] read format In-Reply-To: <561BA6FD.4040909@cnrs-orleans.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> Message-ID: <002901d104fa$3b280a70$b1781f50$@irstea.fr> Hello, Perhaps this could help (there is probably a more direct way to do it) str1="00:01:00;5.49;1"; str2=strchr(str1,';'); //str2= ";5.49;1" str3=strtok(str2,';'); // str3 = "5.49" d = strtod(str3); Regards Guylaine -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de grivet Envoy??: lundi 12 octobre 2015 14:27 ??: users at lists.scilab.org Objet?: [Scilab-users] read format Hello, I have a data file of about 80k lines. A typical line looks like this: 01/03/2015 00:01:00;5.49;1 (date time; value;parameter). I am only interested in the field "value", which can be 3 or 4 characters wide (i.e. 5.49 or 5.4). How can I extract the desired data from this file ? Thank you for your help. JP Grivet _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From contact at pierre-vuillemin.fr Mon Oct 12 16:46:51 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Mon, 12 Oct 2015 16:46:51 +0200 Subject: [Scilab-users] Get back the name of a function given as argument Message-ID: <78f5162da832eb93a4ee336993c8edde@pierre-vuillemin.fr> Hi all, I am building some optimisation tools, and in this context, I was wondering if it was possible to get back the name of a function given as argument of another function. More specifically, consider the function 'fun' defined as deff('[f,g] = fun(x)','f = x^2;g = 2*x'); and an optimisation routine "minimize" which first argument is a function. Is there a way to get back the name of the function "fun" when calling "minimize(fun)" ? I would like to get back its name to wrap it inside another function which includes calls towards numerical derivatives, if needed. Best regards, Pierre Vuillemin From sgougeon at free.fr Mon Oct 12 16:57:07 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Oct 2015 16:57:07 +0200 Subject: [Scilab-users] read format In-Reply-To: <561BA6FD.4040909@cnrs-orleans.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> Message-ID: <561BCA43.7000704@free.fr> Hello, Le 12/10/2015 14:26, grivet a ?crit : > Hello, > I have a data file of about 80k lines. A typical line looks like this: > 01/03/2015 00:01:00;5.49;1 > (date time; value;parameter). I am only interested in the field > "value", which can be 3 or 4 > characters wide (i.e. 5.49 or 5.4). > How can I extract the desired data from this file ? . Likely with M = csvRead(TheFileName, ";", ".", "string"); values = evstr(M(:,2)); Samuel Gougeon From Serge.Steer at inria.fr Mon Oct 12 17:16:32 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 12 Oct 2015 17:16:32 +0200 Subject: [Scilab-users] read format In-Reply-To: <561BA6FD.4040909@cnrs-orleans.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> Message-ID: <561BCED0.8040407@inria.fr> with s given as follow s=[' 01/03/2015 00:01:00;5.49;1' ' 01/03/2015 00:01:01;5.9;1' ' 01/03/2015 00:01:11;4.9;1'] The following instructions returns the expexted results msscanf(-1,s,"%*s %*2s%*[:]%*2s%*[:]%*2s%*[;]%g[^;]%*[;]") But I do not succeed if the data are stored in a file u=mopen("....","r") mfscanf(-1,u,"%*s %*2s%*[:]%*2s%*[:]%*2s%*[;]%g[^;]%*[;]") returns an error I think a C format specialist could be able to find my error Serge Le 12/10/2015 14:26, grivet a ?crit : > Hello, > I have a data file of about 80k lines. A typical line looks like this: > 01/03/2015 00:01:00;5.49;1 > (date time; value;parameter). I am only interested in the field > "value", which can be 3 or 4 > characters wide (i.e. 5.49 or 5.4). > How can I extract the desired data from this file ? > Thank you for your help. > JP Grivet > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From grivet at cnrs-orleans.fr Mon Oct 12 18:00:10 2015 From: grivet at cnrs-orleans.fr (grivet) Date: Mon, 12 Oct 2015 18:00:10 +0200 Subject: [Scilab-users] read format In-Reply-To: <561BCA43.7000704@free.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> <561BCA43.7000704@free.fr> Message-ID: <561BD90A.1080203@cnrs-orleans.fr> Thank you Samuel, this works like a charm, even though the last step (evstr) takes a couple of minutes (80000 lines!). For a completely different solution: read the file into emacs, define a rectangle of width 20 chars and height the whole file, delete this rectangle, search for ".1" and erase every occurence of this string. Thanks to everybody, JP Grivet > Le 12/10/2015 14:26, grivet a ?crit : >> Hello, >> I have a data file of about 80k lines. A typical line looks like this: >> 01/03/2015 00:01:00;5.49;1 >> (date time; value;parameter). I am only interested in the field >> "value", which can be 3 or 4 >> characters wide (i.e. 5.49 or 5.4). >> How can I extract the desired data from this file ? > . > Likely with > M = csvRead(TheFileName, ";", ".", "string"); > values = evstr(M(:,2)); > > Samuel Gougeon > From clement.david at scilab-enterprises.com Mon Oct 12 18:07:54 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 12 Oct 2015 18:07:54 +0200 Subject: [Scilab-users] read format In-Reply-To: <561BD90A.1080203@cnrs-orleans.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> <561BCA43.7000704@free.fr> <561BD90A.1080203@cnrs-orleans.fr> Message-ID: <1444666074.27795.13.camel@scilab-enterprises.com> Hello, Well in fact the `evstr` call is not needed if you parse the csv and interpreting directly the values as "double" using : M = csvRead('/tmp/sample.csv', ';', "double"); values = M(:,2); Regards, -- Cl?ment Le lundi 12 octobre 2015 ? 18:00 +0200, grivet a ?crit : > Thank you Samuel, this works like a charm, even though the last step > (evstr) takes a couple of minutes (80000 lines!). > For a completely different solution: read the file into emacs, define > a > rectangle of width 20 chars and height the whole file, delete this > rectangle, search for ".1" and erase every occurence of this string. > Thanks to everybody, > JP Grivet > > > Le 12/10/2015 14:26, grivet a ?crit : > > > Hello, > > > I have a data file of about 80k lines. A typical line looks like > > > this: > > > 01/03/2015 00:01:00;5.49;1 > > > (date time; value;parameter). I am only interested in the field > > > "value", which can be 3 or 4 > > > characters wide (i.e. 5.49 or 5.4). > > > How can I extract the desired data from this file ? > > . > > Likely with > > M = csvRead(TheFileName, ";", ".", "string"); > > values = evstr(M(:,2)); > > > > Samuel Gougeon > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Mon Oct 12 20:54:05 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Oct 2015 20:54:05 +0200 Subject: [Scilab-users] read format In-Reply-To: <1444666074.27795.13.camel@scilab-enterprises.com> References: <561BA6FD.4040909@cnrs-orleans.fr> <561BCA43.7000704@free.fr> <561BD90A.1080203@cnrs-orleans.fr> <1444666074.27795.13.camel@scilab-enterprises.com> Message-ID: <561C01CD.8020609@free.fr> Le 12/10/2015 18:07, Cl?ment David a ?crit : > M = csvRead('/tmp/sample.csv', ';', "double"); > values = M(:,2); Indeed, or simply M = csvRead(theFileName, ';'); Without trying, i thought that meeting the date "01/03/2015 00:01:00;" would yield an error. But it is managed softly: it yields %nan instead. Scilab is great when it manages things softly :) This is why ieee(2) would be a soft default ;) Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Oct 12 21:02:01 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 12 Oct 2015 21:02:01 +0200 Subject: [Scilab-users] Get back the name of a function given as argument In-Reply-To: <78f5162da832eb93a4ee336993c8edde@pierre-vuillemin.fr> References: <78f5162da832eb93a4ee336993c8edde@pierre-vuillemin.fr> Message-ID: <561C03A9.4050200@free.fr> Hi Pierre, Le 12/10/2015 16:46, Pierre Vuillemin a ?crit : > Hi all, > > I am building some optimisation tools, and in this context, I was > wondering if it was possible to get back the name of a function given > as argument of another function. > > More specifically, consider the function 'fun' defined as > > deff('[f,g] = fun(x)','f = x^2;g = 2*x'); > > and an optimisation routine "minimize" which first argument is a > function. > > Is there a way to get back the name of the function "fun" when calling > "minimize(fun)" ? I am afraid that, with 5.5.2, you have to use something like minimize("thefun") instead, with function argout = minimize(fun,...) execstr("fun="+fun); ... endfunction Samuel From contact at pierre-vuillemin.fr Tue Oct 13 08:44:59 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 13 Oct 2015 08:44:59 +0200 Subject: [Scilab-users] Get back the name of a function given as argument In-Reply-To: <561C03A9.4050200@free.fr> References: <78f5162da832eb93a4ee336993c8edde@pierre-vuillemin.fr> <561C03A9.4050200@free.fr> Message-ID: <10fdc4fecb35c93d817545fdf654bf9f@pierre-vuillemin.fr> Hi Samuel, Thank you for the answer. I have finally came up with this routine : function funName = sopi_retrieveFunName(f) varList = who_user(%f); for i = 2:size(varList,1) // "f" is the local copy of the function and is the first one in the varList, it must be discarded varName = varList(i); execstr("var = "+varName); if var == f then funName = varName; break; end end endfunction It retrieves the name of the function given as argument by comparing it to the user's variables. It (very) far from being elegant, but it seems to work. Will there be a better way to achieve that with Scilab 6 ? Pierre Le 12.10.2015 21:02, Samuel Gougeon a ?crit?: > Hi Pierre, > > Le 12/10/2015 16:46, Pierre Vuillemin a ?crit : >> Hi all, >> >> I am building some optimisation tools, and in this context, I was >> wondering if it was possible to get back the name of a function given >> as argument of another function. >> >> More specifically, consider the function 'fun' defined as >> >> deff('[f,g] = fun(x)','f = x^2;g = 2*x'); >> >> and an optimisation routine "minimize" which first argument is a >> function. >> >> Is there a way to get back the name of the function "fun" when calling >> "minimize(fun)" ? > > I am afraid that, with 5.5.2, you have to use something like > minimize("thefun") instead, with > > function argout = minimize(fun,...) > execstr("fun="+fun); > ... > endfunction > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From contact at pierre-vuillemin.fr Tue Oct 13 09:36:33 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 13 Oct 2015 09:36:33 +0200 Subject: [Scilab-users] Get back the name of a function given as argument In-Reply-To: <10fdc4fecb35c93d817545fdf654bf9f@pierre-vuillemin.fr> References: <78f5162da832eb93a4ee336993c8edde@pierre-vuillemin.fr> <561C03A9.4050200@free.fr> <10fdc4fecb35c93d817545fdf654bf9f@pierre-vuillemin.fr> Message-ID: My bad, I've just realised that - this routine will actually give the name of the last copy of the function (in case of multiple imbricated function calls), - besides, a simpler solution consists in using the name of the local copy of the function. deff('y = fun(x)','y = x^2'); deff('y = f(x)','y = x'); deff('minimize(f)','disp(evstr(''f(2)''))'); minimize(f) // displays 2 minimize(fun) // displays 4 Le 13.10.2015 08:44, Pierre Vuillemin a ?crit?: > Hi Samuel, > > Thank you for the answer. I have finally came up with this routine : > > function funName = sopi_retrieveFunName(f) > varList = who_user(%f); > for i = 2:size(varList,1) // "f" is the local copy of the function > and is the first one in the varList, it must be discarded > varName = varList(i); > execstr("var = "+varName); > if var == f then > funName = varName; > break; > end > end > endfunction > > It retrieves the name of the function given as argument by comparing > it to the user's variables. It (very) far from being elegant, but it > seems to work. > > Will there be a better way to achieve that with Scilab 6 ? > > Pierre > > > Le 12.10.2015 21:02, Samuel Gougeon a ?crit?: >> Hi Pierre, >> >> Le 12/10/2015 16:46, Pierre Vuillemin a ?crit : >>> Hi all, >>> >>> I am building some optimisation tools, and in this context, I was >>> wondering if it was possible to get back the name of a function given >>> as argument of another function. >>> >>> More specifically, consider the function 'fun' defined as >>> >>> deff('[f,g] = fun(x)','f = x^2;g = 2*x'); >>> >>> and an optimisation routine "minimize" which first argument is a >>> function. >>> >>> Is there a way to get back the name of the function "fun" when >>> calling "minimize(fun)" ? >> >> I am afraid that, with 5.5.2, you have to use something like >> minimize("thefun") instead, with >> >> function argout = minimize(fun,...) >> execstr("fun="+fun); >> ... >> endfunction >> >> Samuel >> >> _______________________________________________ >> 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 grivet at cnrs-orleans.fr Tue Oct 13 12:09:03 2015 From: grivet at cnrs-orleans.fr (grivet) Date: Tue, 13 Oct 2015 12:09:03 +0200 Subject: [Scilab-users] read format In-Reply-To: <1444666074.27795.13.camel@scilab-enterprises.com> References: <561BA6FD.4040909@cnrs-orleans.fr> <561BCA43.7000704@free.fr> <561BD90A.1080203@cnrs-orleans.fr> <1444666074.27795.13.camel@scilab-enterprises.com> Message-ID: <561CD83F.5090801@cnrs-orleans.fr> Your suggestion does not work for me. Here is what I get: -->M = csvRead('dataN.txt', ';', "double"); -->M(1:10,:) ans = Nan 5.49 1. Nan 5.49 1. Nan 5.48 1. Nan 5.48 1. Nan 5.48 1. which seems to check with the help for csvRead: When the input argument "conversion" is equal to "double", the non-numeric fields within the .csv (e.g. strings) are converted into NaN. Thank you for your time and help. JP Grivet > Hello, > > Well in fact the `evstr` call is not needed if you parse the csv and > interpreting directly the values as "double" using : > > M = csvRead('/tmp/sample.csv', ';', "double"); > values = M(:,2); > > Regards, > > -- > Cl?ment > > Le lundi 12 octobre 2015 ? 18:00 +0200, grivet a ?crit : >> Thank you Samuel, this works like a charm, even though the last step >> (evstr) takes a couple of minutes (80000 lines!). >> For a completely different solution: read the file into emacs, define >> a >> rectangle of width 20 chars and height the whole file, delete this >> rectangle, search for ".1" and erase every occurence of this string. >> Thanks to everybody, >> JP Grivet >> >>> Le 12/10/2015 14:26, grivet a ?crit : >>>> Hello, >>>> I have a data file of about 80k lines. A typical line looks like >>>> this: >>>> 01/03/2015 00:01:00;5.49;1 >>>> (date time; value;parameter). I am only interested in the field >>>> "value", which can be 3 or 4 >>>> characters wide (i.e. 5.49 or 5.4). >>>> How can I extract the desired data from this file ? >>> . >>> Likely with >>> M = csvRead(TheFileName, ";", ".", "string"); >>> values = evstr(M(:,2)); >>> >>> Samuel Gougeon >>> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users From david.cheze at cea.fr Tue Oct 13 12:21:58 2015 From: david.cheze at cea.fr (CHEZE David 227480) Date: Tue, 13 Oct 2015 10:21:58 +0000 Subject: [Scilab-users] read format In-Reply-To: <561CD83F.5090801@cnrs-orleans.fr> References: <561BA6FD.4040909@cnrs-orleans.fr> <561BCA43.7000704@free.fr> <561BD90A.1080203@cnrs-orleans.fr> <1444666074.27795.13.camel@scilab-enterprises.com> <561CD83F.5090801@cnrs-orleans.fr> Message-ID: But you said you were just interested in the last two numeric values : with double conversion into csvRead call it's the fastest way to get the relevant information and process it further. Would you need to get the timestamps data, you may call csvRead with "string" conversion and process the first column of the matrix of string to retrieve numeric value fields. Cheers, David Ch?ze -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de grivet Envoy??: mardi 13 octobre 2015 12:09 ??: Cl?ment David ; Users mailing list for Scilab Objet?: Re: [Scilab-users] read format Your suggestion does not work for me. Here is what I get: -->M = csvRead('dataN.txt', ';', "double"); -->M(1:10,:) ans = Nan 5.49 1. Nan 5.49 1. Nan 5.48 1. Nan 5.48 1. Nan 5.48 1. which seems to check with the help for csvRead: When the input argument "conversion" is equal to "double", the non-numeric fields within the .csv (e.g. strings) are converted into NaN. Thank you for your time and help. JP Grivet > Hello, > > Well in fact the `evstr` call is not needed if you parse the csv and > interpreting directly the values as "double" using : > > M = csvRead('/tmp/sample.csv', ';', "double"); values = M(:,2); > > Regards, > > -- > Cl?ment > > Le lundi 12 octobre 2015 ? 18:00 +0200, grivet a ?crit : >> Thank you Samuel, this works like a charm, even though the last step >> (evstr) takes a couple of minutes (80000 lines!). >> For a completely different solution: read the file into emacs, define >> a rectangle of width 20 chars and height the whole file, delete this >> rectangle, search for ".1" and erase every occurence of this string. >> Thanks to everybody, >> JP Grivet >> >>> Le 12/10/2015 14:26, grivet a ?crit : >>>> Hello, >>>> I have a data file of about 80k lines. A typical line looks like >>>> this: >>>> 01/03/2015 00:01:00;5.49;1 (date time; value;parameter). I >>>> am only interested in the field "value", which can be 3 or 4 >>>> characters wide (i.e. 5.49 or 5.4). >>>> How can I extract the desired data from this file ? >>> . >>> Likely with >>> M = csvRead(TheFileName, ";", ".", "string"); values = >>> evstr(M(:,2)); >>> >>> Samuel Gougeon >>> >> _______________________________________________ >> 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 sgougeon at free.fr Tue Oct 13 16:19:07 2015 From: sgougeon at free.fr (sgougeon at free.fr) Date: Tue, 13 Oct 2015 16:19:07 +0200 (CEST) Subject: [Scilab-users] read format In-Reply-To: Message-ID: <900276355.69099865.1444745947945.JavaMail.root@zimbra75-e12.priv.proxad.net> Hello, ----- Mail original ----- >De: "CHEZE David 227480" > >.../... Would you need to get the timestamps data, you may call csvRead with "string" conversion and process the first column of the matrix of string to retrieve numeric value fields. For this part, using mfscanf() as suggested by Serge will be more straightforward, instead of csvRead(). Samuel From Serge.Steer at inria.fr Tue Oct 13 17:08:54 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 13 Oct 2015 17:08:54 +0200 Subject: [Scilab-users] read format In-Reply-To: <900276355.69099865.1444745947945.JavaMail.root@zimbra75-e12.priv.proxad.net> References: <900276355.69099865.1444745947945.JavaMail.root@zimbra75-e12.priv.proxad.net> Message-ID: <561D1E86.3000702@inria.fr> It is possible to achieve what you want using the following instruction. It is a little tricky, may be a C format expert can do it in a more simple way. u=mopen("....",'r') x=mfscanf(-1,u,"%*s %*2s%*[:]%*2s%*[:]%*2s%*[;]%g%*s"); mclose(u) Serge Steer Le 13/10/2015 16:19, sgougeon at free.fr a ?crit : > Hello, > > ----- Mail original ----- >> De: "CHEZE David 227480" >> >> .../... Would you need to get the timestamps data, you may call csvRead with "string" conversion and process the first column of the matrix of string to retrieve numeric value fields. > For this part, using mfscanf() as suggested by Serge will be more straightforward, instead of csvRead(). > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From jrafaelbguerra at hotmail.com Thu Oct 15 18:09:42 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 15 Oct 2015 09:09:42 -0700 (MST) Subject: [Scilab-users] Scilab slowing down computer heavilly In-Reply-To: References: <1432134976222-4032312.post@n3.nabble.com> <1bd1-555ca900-3-5a9a2e00@144309838> Message-ID: <1444925382516-4033005.post@n3.nabble.com> A late reply but in case it helps someone: the definitive fix to my Dell docking station issues with very slow PC performance with Scilab running, came after recent update at Dell site of the graphical drivers Best regards, Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-slowing-down-computer-heavilly-tp4032312p4033005.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From greanie at yahoo.com Thu Oct 15 18:53:35 2015 From: greanie at yahoo.com (Michael Greenish) Date: Thu, 15 Oct 2015 16:53:35 +0000 (UTC) Subject: [Scilab-users] Faster PWM signal References: <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> Message-ID: <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> Hello, I am modeling an electrical circuit.? I have a voltage across an inductor being switched on the ground side.? I am generating a pwm using a sawtooth genartor as shown by the attached image.? In my circuit, my PWM switches at 50kHz.? When if I set the sawtooth generator period to > 0.025, the results look as expected on the graphs.? If the sawtooth generate period is < 0.025, the results are flat; the system can't seem to calculate at that interval.? The period on the timer attached to the scope is 0.0001. I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit.? Is there a limit of the system I am running into or do I have a parameter wrong? Thanks, Mike Greenish -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Inductor PWM noise.zcos Type: application/octet-stream Size: 8345 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Lowside Switched Inductor.PNG Type: image/png Size: 45974 bytes Desc: not available URL: From Serge.Steer at inria.fr Fri Oct 16 09:50:31 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 16 Oct 2015 09:50:31 +0200 Subject: [Scilab-users] Faster PWM signal In-Reply-To: <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> References: <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> Message-ID: <5620AC47.5080003@inria.fr> Try with lower solver tolerances with the Simulate/Confiure menu. Serge Steer Le 15/10/2015 18:53, Michael Greenish a ?crit : > Hello, > > I am modeling an electrical circuit. I have a voltage across an > inductor being switched on the ground side. I am generating a pwm > using a sawtooth genartor as shown by the attached image. In my > circuit, my PWM switches at 50kHz. When if I set the sawtooth > generator period to > 0.025, the results look as expected on the > graphs. If the sawtooth generate period is < 0.025, the results are > flat; the system can't seem to calculate at that interval. The period > on the timer attached to the scope is 0.0001. > > I am only at 25ms, I need to get to 0.02 ms to match my real-life > circuit. Is there a limit of the system I am running into or do I > have a parameter wrong? > > Thanks, > > Mike Greenish > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From greanie at yahoo.com Fri Oct 16 11:14:18 2015 From: greanie at yahoo.com (Michael Greenish) Date: Fri, 16 Oct 2015 09:14:18 +0000 (UTC) Subject: [Scilab-users] Faster PWM signal In-Reply-To: <5620AC47.5080003@inria.fr> References: <5620AC47.5080003@inria.fr> Message-ID: <553038276.1335913.1444986858536.JavaMail.yahoo@mail.yahoo.com> @Serge: Thank you for the idea! I found my problem for running faster.? It turns out the slope of the triangle waveform is independent of the period so I had to apply a greater gain for the sawtooth for it to cross zero.? Now I am running at 50kHz. Thanks, Michael Greenish From: Serge Steer To: users at lists.scilab.org Sent: Friday, October 16, 2015 9:50 AM Subject: Re: [Scilab-users] Faster PWM signal Try with lower solver tolerances? with the Simulate/Confiure menu. Serge Steer Le 15/10/2015 18:53, Michael Greenish a ?crit?: Hello, I am modeling an electrical circuit.? I have a voltage across an inductor being switched on the ground side.? I am generating a pwm using a sawtooth genartor as shown by the attached image.? In my circuit, my PWM switches at 50kHz.? When if I set the sawtooth generator period to > 0.025, the results look as expected on the graphs.? If the sawtooth generate period is < 0.025, the results are flat; the system can't seem to calculate at that interval.? The period on the timer attached to the scope is 0.0001. I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit.? Is there a limit of the system I am running into or do I have a parameter wrong? Thanks, Mike Greenish _______________________________________________ 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 jrafaelbguerra at hotmail.com Sun Oct 18 13:29:08 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Sun, 18 Oct 2015 12:29:08 +0100 Subject: [Scilab-users] Creating tables with Scilab Message-ID: Dear Scilabers, Does anyone know if it possible to create tables similar to the one below in Scilab? I have tried the prettyprint command but with no success. Thanks and regards, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8706 bytes Desc: not available URL: From grocer.toolbox at gmail.com Sun Oct 18 14:59:05 2015 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 18 Oct 2015 14:59:05 +0200 Subject: [Scilab-users] Creating tables with Scilab In-Reply-To: References: Message-ID: Hello. Emmanuel Michaux has written a function mat2latex for our toolbox Grocer, which should answer your needs, eventually with some minor adpatation. I joined it as well as a demo function. Do not hesitate to have a look at Grocer, available on Atoms (or at http://dubois.ensae.net/grocer.html), to have a look at all other capabilties incorporated in Grocer! ?ric. 2015-10-18 13:29 GMT+02:00 Rafael Guera : > Dear Scilabers, > > > > Does anyone know if it possible to create tables similar to the one below > in Scilab? > > I have tried the prettyprint command but with no success. > > > > > > Thanks and regards, > > > > Rafael > > _______________________________________________ > 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: image001.jpg Type: image/jpeg Size: 8706 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mat2latex.sci Type: application/octet-stream Size: 6817 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mat2latex_d.sci Type: application/octet-stream Size: 581 bytes Desc: not available URL: From pgsmntry at gmail.com Mon Oct 19 20:39:48 2015 From: pgsmntry at gmail.com (Parthageet Samantaray) Date: Tue, 20 Oct 2015 00:09:48 +0530 Subject: [Scilab-users] EXCEPTION_ACCESS_VIOLATION "scicosim" function Message-ID: Hello Everyone, I have trying to simulate a xcos file with a refresh period of 20 sec and a simulation time of 20sec. The frequency of the signals being 45 Hz. But every time I try simulating it I come across this error after 10 sec of simulation. "Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "scicosim" function. Save your data and restart Scilab." Does anyone has any Idea how to resolve this in Xcos ? I also tried to look into the mailing threads related to this but could find nothing. Thanks and regards. Parthageet Samantaray -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Oct 20 08:10:49 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 20 Oct 2015 08:10:49 +0200 Subject: [Scilab-users] EXCEPTION_ACCESS_VIOLATION "scicosim" function In-Reply-To: References: Message-ID: <1445321449.2571.1.camel@scilab-enterprises.com> Hello, This seems to be a bug, can you report it on bugzilla.scilab.org ? Please also provide an example schema and tell us what Scilab version you are using. Regards, -- Cl?ment Le mardi 20 octobre 2015 ? 00:09 +0530, Parthageet Samantaray a ?crit : > Hello Everyone, > > I have trying to simulate a xcos file with a refresh period of 20 sec > and a simulation time of 20sec. The frequency of the signals being 45 > Hz. But every time I try simulating it I come across this error after > 10 sec of simulation. > "Warning !!! > Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) > with "scicosim" function. > Save your data and restart Scilab." > > Does anyone has any Idea how to resolve this in Xcos ? I also tried > to look into the mailing threads related to this but could find > nothing. > > Thanks and regards. > Parthageet Samantaray > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From pgsmntry at gmail.com Tue Oct 20 11:55:12 2015 From: pgsmntry at gmail.com (Parthageet Samantaray) Date: Tue, 20 Oct 2015 15:25:12 +0530 Subject: [Scilab-users] EXCEPTION_ACCESS_VIOLATION "scicosim" function In-Reply-To: <1445321449.2571.1.camel@scilab-enterprises.com> References: <1445321449.2571.1.camel@scilab-enterprises.com> Message-ID: Yeah for sure. I will post it on Bugzilla. Thanks. Parthageet Samantaray -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgsmntry at gmail.com Tue Oct 20 14:01:29 2015 From: pgsmntry at gmail.com (Parthageet Samantaray) Date: Tue, 20 Oct 2015 17:31:29 +0530 Subject: [Scilab-users] EXCEPTION_ACCESS_VIOLATION "scicosim" function In-Reply-To: References: <1445321449.2571.1.camel@scilab-enterprises.com> Message-ID: Hello, I have reported the bug on bugzilla.scilab.org . If any suggestions at all post back. Thanks. Parthageet On Tue, Oct 20, 2015 at 3:25 PM, Parthageet Samantaray wrote: > Yeah for sure. I will post it on Bugzilla. > Thanks. > Parthageet Samantaray > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j-lan at online.no Tue Oct 20 15:30:56 2015 From: j-lan at online.no (JLan) Date: Tue, 20 Oct 2015 06:30:56 -0700 (MST) Subject: [Scilab-users] "Recursive extraction" In-Reply-To: <55C0B49B.8030403@free.fr> References: <55C0B49B.8030403@free.fr> Message-ID: <1445347856329-4033019.post@n3.nabble.com> It seems like only one output argument can be assigned to a function for recursive extraction. So instead of different variables in the output argument list, assign the different parameters to a matrix: function x=getversion2() [a b]=getversion() x(2:size(b,2)+1)=b x(1)=a endfunction --> getversion2()(2:6) ans = !VC++ x64 modelicac release Oct 2 2015 ! J -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Recursive-extraction-tp4032660p4033019.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Wed Oct 21 21:49:58 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Wed, 21 Oct 2015 20:49:58 +0100 Subject: [Scilab-users] Creating tables with Scilab In-Reply-To: References: Message-ID: Hello Eric, Thanks for your reply and for the Grocer link. >From what I could understand, the Scilab script provided generates Latex code for a formatted table and writes the file to disk. What about the display of the Latex table, is this done inside Scilab? Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Eric Dubois Sent: Sunday, October 18, 2015 1:59 PM To: Users mailing list for Scilab Subject: Re: [Scilab-users] Creating tables with Scilab Hello. Emmanuel Michaux has written a function mat2latex for our toolbox Grocer, which should answer your needs, eventually with some minor adpatation. I joined it as well as a demo function. Do not hesitate to have a look at Grocer, available on Atoms (or at http://dubois.ensae.net/grocer.html), to have a look at all other capabilties incorporated in Grocer! ?ric. 2015-10-18 13:29 GMT+02:00 Rafael Guera >: Dear Scilabers, Does anyone know if it possible to create tables similar to the one below in Scilab? I have tried the prettyprint command but with no success. Thanks and regards, Rafael _______________________________________________ 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: image001.jpg Type: image/jpeg Size: 8706 bytes Desc: not available URL: From grocer.toolbox at gmail.com Wed Oct 21 21:58:01 2015 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Wed, 21 Oct 2015 21:58:01 +0200 Subject: [Scilab-users] Creating tables with Scilab In-Reply-To: References: Message-ID: Hello Rafael You have well understood: the program generates Latex code, but does not generate directly a pdf file that could be encapsulated into another document: this has to be done with a Latex generator, such as TehcnicCenter under windows. Sorry it this is does not answer your needs. ?ric 2015-10-21 21:49 GMT+02:00 Rafael Guera : > Hello Eric, > > > > Thanks for your reply and for the Grocer link. > > From what I could understand, the Scilab script provided generates Latex > code for a formatted table and writes the file to disk. > > What about the display of the Latex table, is this done inside Scilab? > > > > Regards, > > Rafael > > > > *From:* users [mailto:users-bounces at lists.scilab.org] *On Behalf Of *Eric > Dubois > *Sent:* Sunday, October 18, 2015 1:59 PM > *To:* Users mailing list for Scilab > *Subject:* Re: [Scilab-users] Creating tables with Scilab > > > > Hello. > > > > Emmanuel Michaux has written a function mat2latex for our toolbox Grocer, > which should answer your needs, eventually with some minor adpatation. I > joined it as well as a demo function. Do not hesitate to have a look at > Grocer, available on Atoms (or at http://dubois.ensae.net/grocer.html), > to have a look at all other capabilties incorporated in Grocer! > > > > ?ric. > > > > 2015-10-18 13:29 GMT+02:00 Rafael Guera : > > Dear Scilabers, > > > > Does anyone know if it possible to create tables similar to the one below > in Scilab? > > I have tried the prettyprint command but with no success. > > > > > > Thanks and regards, > > > > Rafael > > > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8706 bytes Desc: not available URL: From sgougeon at free.fr Thu Oct 22 09:49:39 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 22 Oct 2015 09:49:39 +0200 Subject: [Scilab-users] Creating tables with Scilab In-Reply-To: References: Message-ID: <56289513.8050703@free.fr> Hello Rafael, Le 21/10/2015 21:49, Rafael Guera a ?crit : > .../... > What about the display of the Latex table, is this done inside Scilab? It depends on where you want to display the table. If it must be displayed for instance in a Scilab graphic figure, i guess that it may be done as usual with xstring() within $..$: xstring("$"+strcat(mytable, " ")+"$",...) may be tried, or something similar. http://help.scilab.org/docs/5.5.2/en_US/math_rendering_features_in_graphic.html HTH Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerard.bobillot at onera.fr Thu Oct 22 10:54:57 2015 From: gerard.bobillot at onera.fr (=?utf-8?Q?G=C3=A9rard_BOBILLOT?=) Date: Thu, 22 Oct 2015 10:54:57 +0200 Subject: [Scilab-users] Scilab with Mac OSX El Capitan In-Reply-To: References: <1443434473.3942.29.camel@scilab-enterprises.com> <56092C2D.4070509@laas.fr> <56094500.10907@laas.fr> <1443452444.3942.41.camel@scilab-enterprises.com> Message-ID: <2218E21E-4F8B-4D66-B287-555E99E320B3@onera.fr> Hi! I tried several things ( reinstalling Scilab 5.5.2, installing Scilab 6.0.0 alpha, reinstalling javaforosx (https://support.apple.com/kb/DL1572?locale=fr_FR&viewlocale=en_US) ) without success. Then, I found the following library problem: $ /Volumes/scilab-5.5.2/scilab-5.5.2.app/Contents/MacOS/bin/scilab ; exit; true dyld: Symbol not found: _double_general_add Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib Expected in: /Volumes/scilab-5.5.2/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib /Volumes/scilab-5.5.2/scilab-5.5.2.app/Contents/MacOS/bin/scilab: line 928: 1226 Trace/BPT trap: 5 "$SCILABBIN" "$@" logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Op?ration termin?e] I delete the dylib " /Volumes/scilab-5.5.2/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib ? Now, it works ? Regards G?rard Bobillot gerard.bobillot at onera.fr Tel: 33 (1) 80 38 62 30 > Le 7 oct. 2015 ? 07:19, Arvid Ros?n a ?crit : > > Hi! > > I run Scilab 5.5.2 on OS X 10.11, and it works fine on several machines. You might try to reinstall Scilab and that old java version that is needed. I think I had to do that on one of the machines for whatever reason. > > Cheers, > Arvid > > >> On 06 Oct 2015, at 18:24, Peter Q. wrote: >> >> Virtualbox || VMware fusion player && Windows 8 || GNU/Linux >> >> On Oct 6, 2015 4:09 AM, "G?rard BOBILLOT" wrote: >> Hello, >> >> I recently upgrade my MacPro with the new OSX El Capitan (OSX 10.11). One result is that I cannot run Scilab any more. I have tried Scilab 5.5.2 ans Scilab 6.0.0 alpha. I get the following message: >> ? This version of Scilab will probably fail on this system (10.11): Scilab requires 10.6.5 (Snow Leopard) or newer system. ? with two buttons ? Try anyway ? and ? Quit ?. Using the buttons, nothing happens. >> >> Any solution ? >> >> Regards >> >> G?rard Bobillot >> gerard.bobillot at onera.fr >> _______________________________________________ >> 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 j-lan at online.no Thu Oct 22 11:48:12 2015 From: j-lan at online.no (JLan) Date: Thu, 22 Oct 2015 02:48:12 -0700 (MST) Subject: [Scilab-users] Converting matrix of number into string changing decimal separator In-Reply-To: <1444581609510-4032987.post@n3.nabble.com> References: <1444581609510-4032987.post@n3.nabble.com> Message-ID: <1445507292989-4033024.post@n3.nabble.com> csvWrite will allow text in the beginning of the file. This can for instance be used to put headers on each column: --> m=[1,2,3;4,5,6;7,8,9;10,11,12]; --> csvWrite(m,'mfile.csv',';',',',[],['Table Name','First;Second;Third']) J -- View this message in context: http://mailinglists.scilab.org/Converting-matrix-of-number-into-string-changing-decimal-separator-tp4032987p4033024.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From contact at pierre-vuillemin.fr Thu Oct 22 10:03:47 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Thu, 22 Oct 2015 10:03:47 +0200 Subject: [Scilab-users] Colours in Scilab terminal Message-ID: <157d2f6f7f497105214b06faf8d66903@pierre-vuillemin.fr> Hello all, I was wondering if it was possible to display coloured text in Scilab terminal with "mprintf" ? It seems to be possible with printf in C : http://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c Best regards, Pierre Vuillemin From n.strelkov at gmail.com Thu Oct 22 14:20:05 2015 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 22 Oct 2015 15:20:05 +0300 Subject: [Scilab-users] Modnum & Xcos In-Reply-To: References: <1380273388.2918.2.camel@pf-X58-USB3> <1380616167.5839.4.camel@paros> <1380656911.2865.15.camel@pf-X58-USB3> <1380696260.1703.5.camel@paros> <1425108793933-4031752.post@n3.nabble.com> Message-ID: Dear Peter Fabo! Do you have any updates on Xcos Modnum toolbox? It would be very useful. With best regards, maintainer and developer of Mathieu functions toolbox for Scilab, IEEE member, Ph.D., Nikolay Strelkov. 25 ??? 2015 ?. 16:50 ???????????? "Nikolay Strelkov" ???????: > Dear Peter Fabo! > > Do you have any updates on Xcos Modnum toolbox? > It would be very useful. > > With best regards, > maintainer and developer of Mathieu functions toolbox > for Scilab, > IEEE member, Ph.D., > Nikolay Strelkov. > > 2015-03-02 16:49 GMT+03:00 Nikolay Strelkov : > >> Dear Peter Fabo and all! >> >> It is great, that Modnum being ported to modern Scilab and Xcos! >> >> I'm very interested in PSPECSCOPE_? >> >> (for FFT) and CONVOLGEN_f >> >> (for FIR filtering) blocks. >> For FFT there is an project in Scilab Forge (bufferblock >> ), but it does not >> compile in modern versions of Xcos and Scilab (see issues >> ). But I saw a >> paper where it was used with Scilab >=5.3. >> >> I think it would be great if you place your work in Scilab Forge >> . >> I'm ready to test your toolbox. >> >> >> With best regards, >> maintainer and developer of Mathieu functions toolbox >> for Scilab, >> IEEE member, Ph.D., >> Nikolay Strelkov. >> >> >> 2015-02-28 10:33 GMT+03:00 Clemgill : >> >>> Hi all, >>> Any news on the availability of MODNUM converted to XCOS? >>> I am interested in the PLL palette. >>> Thx much, >>> Gilles. >>> >>> >>> >>> -- >>> View this message in context: >>> http://mailinglists.scilab.org/Scilab-users-Modnum-Xcos-tp4027491p4031752.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 Thu Oct 22 20:29:37 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 22 Oct 2015 20:29:37 +0200 Subject: [Scilab-users] Colours in Scilab terminal In-Reply-To: <157d2f6f7f497105214b06faf8d66903@pierre-vuillemin.fr> References: <157d2f6f7f497105214b06faf8d66903@pierre-vuillemin.fr> Message-ID: <56292B11.8050009@free.fr> Le 22/10/2015 10:03, Pierre Vuillemin a ?crit : > Hello all, > > I was wondering if it was possible to display coloured text in Scilab > terminal with "mprintf" ? > > It seems to be possible with printf in C : > http://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c Indeed, it would be great. Unfortunately, trials do not work: Outputs from mprintf("%s\n",ascii(27)+"[31mThis text is RED!"+ascii(27)+"[0m") mprintf("%s\n",ascii([27 91 31])+"m This text is RED!"+ascii([27 91 0])+"m") write(%io(2), ascii(27)+"[31m This text is RED!"+ascii(27)+"[0m") write(%io(2), ascii([27 91 31])+"m This text is RED!"+ascii([27 91 0])+"m") stand desperately black :( With early 5.x Scilab releases, it was possible to print some text in color or even import images in the console (like Scilab's Puffin) through some JIMS commands (The JIMS portal on the Forge showed some examples). But these features were canceled since then. Samuel Gougeon From sgougeon at free.fr Thu Oct 22 20:43:47 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 22 Oct 2015 20:43:47 +0200 Subject: [Scilab-users] Colours in Scilab terminal In-Reply-To: <157d2f6f7f497105214b06faf8d66903@pierre-vuillemin.fr> References: <157d2f6f7f497105214b06faf8d66903@pierre-vuillemin.fr> Message-ID: <56292E63.8070205@free.fr> Le 22/10/2015 10:03, Pierre Vuillemin a ?crit : > Hello all, > > I was wondering if it was possible to display coloured text in Scilab > terminal with "mprintf" ? > > It seems to be possible with printf in C : > http://stackoverflow.com/questions/3219393/stdlib-and-colored-output-in-c This wish is reported here: http://bugzilla.scilab.org/9420 (2011) See also: 2 font colors: One for commands, another for results : http://bugzilla.scilab.org/10142 (2011) SG From kymberlim.ribeiro at gmail.com Fri Oct 23 17:43:57 2015 From: kymberlim.ribeiro at gmail.com (kgiovanna) Date: Fri, 23 Oct 2015 08:43:57 -0700 (MST) Subject: [Scilab-users] Error - Optimization Message-ID: <1445615037279-4033029.post@n3.nabble.com> Hello, I tried to solve an LMI problem using lmitool but I received error which I could not understand the source. The problem can find a answer but it is not the best one. Did someone receive the same error? For tests, I used: A = - 2.0499 0.8913 0.8214 0.9218 0.2311 - 2.2379 0.4447 0.7382 0.6068 0.4565 - 2.3846 0.1763 0.486 0.0185 0.7919 - 2.5943 Q = eye(4,4) My function object was trace. The problem is: lmisolver: Constru??o de representa??o can?nica. lmisolver: Constru??o b?sica. lmisolver: FASE DE VIABILIDADE. obj. primal obj. dual fenda de dualidade 1.10e+00 -9.42e+02 9.43e+02 -4.34e+00 -9.42e+02 9.37e+02 lmisolver: Valor alvo alcan?ado. lmisolver: solu??o vi?vel encontrada. lmisolver: FASE DE OTIMIZA??O. obj. primal obj. dual fenda de dualidade 3.04e+01 -1.74e+00 3.21e+01 xerbla: On entry to DGELS parameter number 7 had an illegal value (lapack library problem) !--error 998 SCI\modules\core\macros\typeof.binat line 336 of function lmisolver called by : at line 16 of function lyapunov called by : P = lyapunov(A,Q) Erro em dgels, info = -7. !--error 230 semi def falhou. -- View this message in context: http://mailinglists.scilab.org/Error-Optimization-tp4033029.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From edmund.okoroigwe at unn.edu.ng Sat Oct 24 12:26:26 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Sat, 24 Oct 2015 12:26:26 +0200 Subject: [Scilab-users] Improving the quality of figures on word document Message-ID: Hi all, How can I improve the quality of my scilab figure plots when pasted on word document? I normally save in dot png (xs2png) but is always dull when inserted in word document. my publishers have complained and commented on the poor quality. I prefer plotting in scilab instead of excel. Can someone please help. Thanks -- 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 jrafaelbguerra at hotmail.com Sat Oct 24 13:44:13 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Sat, 24 Oct 2015 12:44:13 +0100 Subject: [Scilab-users] Improving the quality of figures on word document In-Reply-To: References: Message-ID: Hi Edmund, The quality of the output Scilab graphics seems to be much better using the PS/ESP formats (and these convert to high-quality PDFs using Acrobat Distiller or Ghostscript) Now, to import the Scilab generated EPS files into Word, googling ?How do I import an eps file into Word 2013??, you will see the instructions to add this feature to MS Office ?Converters and Filters?. I must say though, that it did not work for me yet... Let me us know if you succeed. Regards, Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Edmund Okoroigwe Sent: Saturday, October 24, 2015 11:26 AM To: users at lists.scilab.org Subject: [Scilab-users] Improving the quality of figures on word document Hi all, How can I improve the quality of my scilab figure plots when pasted on word document? I normally save in dot png (xs2png) but is always dull when inserted in word document. my publishers have complained and commented on the poor quality. I prefer plotting in scilab instead of excel. Can someone please help. Thanks -- 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 edmund.okoroigwe at unn.edu.ng Sat Oct 24 13:52:59 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Sat, 24 Oct 2015 13:52:59 +0200 Subject: [Scilab-users] Improving the quality of figures on word document In-Reply-To: References: Message-ID: Rafael, I will try it and get back to you when I do it. Thanks On Sat, Oct 24, 2015 at 1:44 PM, Rafael Guera wrote: > Hi Edmund, > > > > The quality of the output Scilab graphics seems to be much better using > the PS/ESP formats (and these convert to high-quality PDFs using Acrobat > Distiller or Ghostscript) > > > > Now, to import the Scilab generated EPS files into Word, googling ?How do > I import an eps file into Word 2013??, you will see the instructions to add > this feature to MS Office ?Converters and Filters?. I must say though, that > it did not work for me yet... > > > > Let me us know if you succeed. > > > > Regards, > > > > Rafael > > > > > > *From:* users [mailto:users-bounces at lists.scilab.org] *On Behalf Of *Edmund > Okoroigwe > *Sent:* Saturday, October 24, 2015 11:26 AM > *To:* users at lists.scilab.org > *Subject:* [Scilab-users] Improving the quality of figures on word > document > > > > Hi all, > > How can I improve the quality of my scilab figure plots when pasted on > word document? I normally save in dot png (xs2png) but is always dull > when inserted in word document. my publishers have complained and commented > on the poor quality. I prefer plotting in scilab instead of excel. Can > someone please help. > > Thanks > > > > -- > > Edmund C.Okoroigwe, > National Centre for Energy Research and Development,/ Dept of Mech. > Engineering > University of Nigeria, Nsukka > +234-8057156223, +234-8064879825 > > > _______________________________________________ > 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 edmund.okoroigwe at unn.edu.ng Sat Oct 24 14:19:27 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Sat, 24 Oct 2015 14:19:27 +0200 Subject: [Scilab-users] Improving the quality of figures on word document In-Reply-To: References: Message-ID: Rafael, It works perfectly well with file export code (xs2eps) even though the file does not show any image in the folder. To import it into the word document, click on insert, pictures, select the file in the folder. Then it imports and the quality is sharper and more beautiful than .png file. Thank you very much Edmund On Sat, Oct 24, 2015 at 1:44 PM, Rafael Guera wrote: > Hi Edmund, > > > > The quality of the output Scilab graphics seems to be much better using > the PS/ESP formats (and these convert to high-quality PDFs using Acrobat > Distiller or Ghostscript) > > > > Now, to import the Scilab generated EPS files into Word, googling ?How do > I import an eps file into Word 2013??, you will see the instructions to add > this feature to MS Office ?Converters and Filters?. I must say though, that > it did not work for me yet... > > > > Let me us know if you succeed. > > > > Regards, > > > > Rafael > > > > > > *From:* users [mailto:users-bounces at lists.scilab.org] *On Behalf Of *Edmund > Okoroigwe > *Sent:* Saturday, October 24, 2015 11:26 AM > *To:* users at lists.scilab.org > *Subject:* [Scilab-users] Improving the quality of figures on word > document > > > > Hi all, > > How can I improve the quality of my scilab figure plots when pasted on > word document? I normally save in dot png (xs2png) but is always dull > when inserted in word document. my publishers have complained and commented > on the poor quality. I prefer plotting in scilab instead of excel. Can > someone please help. > > Thanks > > > > -- > > Edmund C.Okoroigwe, > National Centre for Energy Research and Development,/ Dept of Mech. > Engineering > University of Nigeria, Nsukka > +234-8057156223, +234-8064879825 > > > _______________________________________________ > 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 cfuttrup at gmail.com Sat Oct 24 14:19:54 2015 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 24 Oct 2015 14:19:54 +0200 Subject: [Scilab-users] Improving the quality of figures on word document In-Reply-To: References: Message-ID: Hi Edmund I have successfully plotted in SVG, then you can decide on pixel resolution later. If all else fails, use Inkscape for conversion. Your editor should be happy. Best regards, Claus On Oct 24, 2015 12:26, "Edmund Okoroigwe" wrote: > Hi all, > How can I improve the quality of my scilab figure plots when pasted on > word document? I normally save in dot png (xs2png) but is always dull when > inserted in word document. my publishers have complained and commented on > the poor quality. I prefer plotting in scilab instead of excel. Can someone > please help. > Thanks > > -- > Edmund C.Okoroigwe, > National Centre for Energy Research and Development,/ Dept of Mech. > Engineering > University of Nigeria, Nsukka > +234-8057156223, +234-8064879825 > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From porpoiseseeker at gmail.com Sat Oct 24 21:57:42 2015 From: porpoiseseeker at gmail.com (Gary Nelson) Date: Sat, 24 Oct 2015 12:57:42 -0700 Subject: [Scilab-users] Faster PWM signal In-Reply-To: <5620AC47.5080003@inria.fr> References: <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> <84289816.931980.1444928016087.JavaMail.yahoo@mail.yahoo.com> <5620AC47.5080003@inria.fr> Message-ID: <978BDA4D-FF04-476F-B428-88E000E71BB1@gmail.com> Mike, Since you are modeling the circuit, it does not have to run in real time. You could get meaningful results by running at (for example) 10sec simulation time = 1sec real time. Gary Nelson, PhD Life is complex. It has real and imaginary parts > On Oct 16, 2015, at 12:50 AM, Serge Steer wrote: > > Try with lower solver tolerances with the Simulate/Confiure menu. > > Serge Steer > Le 15/10/2015 18:53, Michael Greenish a ?crit : >> Hello, >> >> I am modeling an electrical circuit. I have a voltage across an inductor being switched on the ground side. I am generating a pwm using a sawtooth genartor as shown by the attached image. In my circuit, my PWM switches at 50kHz. When if I set the sawtooth generator period to > 0.025, the results look as expected on the graphs. If the sawtooth generate period is < 0.025, the results are flat; the system can't seem to calculate at that interval. The period on the timer attached to the scope is 0.0001. >> >> I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit. Is there a limit of the system I am running into or do I have a parameter wrong? >> >> Thanks, >> >> Mike Greenish >> >> >> >> _______________________________________________ >> 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 fujimoto2005 at gmail.com Sun Oct 25 08:44:18 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 25 Oct 2015 00:44:18 -0700 (MST) Subject: [Scilab-users] "msprintf" in the NIghty build of Scilab 6.0 fails Message-ID: <1445759058547-4033036.post@n3.nabble.com> "msprintf" in scilab-master-1445614374 (64-bit) fails for vector input. Please try the following script. x=[1:10]/100 msprintf("%.1f%%\n",x*100) "Scilab 6.0 master" succeeded to generate vector outputs. But 1445614374 failed. It generate only the first output "1.0%". How can I genarate vector output? Best regards -- View this message in context: http://mailinglists.scilab.org/msprintf-in-the-NIghty-build-of-Scilab-6-0-fails-tp4033036.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun Oct 25 15:12:06 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 25 Oct 2015 15:12:06 +0100 Subject: [Scilab-users] "msprintf" in the NIghty build of Scilab 6.0 fails In-Reply-To: <1445759058547-4033036.post@n3.nabble.com> References: <1445759058547-4033036.post@n3.nabble.com> Message-ID: <562CE336.6070806@free.fr> Hello, msprint() is designed to work row-wise => inputs must be columns: x=[1:10].'; msprintf("%.1f%%\n", x) But there is actually a bug with 6.0-a1, when "%%" is used in the format. It is now reported here: http://bugzilla.scilab.org/14221 Regards Samuel Gougeon From shamika.i.nair at gmail.com Mon Oct 26 14:39:36 2015 From: shamika.i.nair at gmail.com (Shamika Mohanan) Date: Mon, 26 Oct 2015 19:09:36 +0530 Subject: [Scilab-users] Struct and Cell Array API function Message-ID: Hi, I posted this query on Scilab developer's mailing list but I got no reply. I'm trying my luck here. I'm using Scilab API in C++ code. I have to return struct and cell array values to Scilab environment. As there are no Scilab API functions for struct and cell array data types, is there any way to do it? If I do have to write API functions, would list/mlist be the best way to deal with structs and cell arrays? Shamika -------------- next part -------------- An HTML attachment was scrubbed... URL: From contact at pierre-vuillemin.fr Tue Oct 27 13:27:39 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 27 Oct 2015 13:27:39 +0100 Subject: [Scilab-users] Backslash operator with square singular matrix Message-ID: Hi all, I was quite surprised that the backslash operator used with a square singular matrix does not yield any warning in Scilab. For instance, // Singular matrix A = [2 4;1 2]; disp(det(A)) b = [1;1]; x = A \ b; disp(norm(A*x-b)); And indeed, in the online help https://help.scilab.org/docs/5.5.2/en_US/backslash.html (not as clear in the embedded french version though), it is stated that if the condition number of A is too small, then a least-square solution is computed. Wouldn't it be "safer" to display a warning in this case (like in Matlab)? While I agree that one should check if a matrix is singular before trying to invert it, a warning may save some time in a code prototyping phase. Besides, the behaviour of linear solvers is not consistent : umfpack produces an error and linsolve returns an empty solution x. Best regards, Pierre Vuillemin From stephane.mottelet at utc.fr Tue Oct 27 14:53:28 2015 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Tue, 27 Oct 2015 14:53:28 +0100 Subject: [Scilab-users] Backslash operator with square singular matrix In-Reply-To: References: Message-ID: <562F81D8.1050909@utc.fr> Hello, Le 27/10/2015 13:27, Pierre Vuillemin a ?crit : > A = [2 4;1 2]; > disp(det(A)) > b = [1;1]; > x = A \ b; -->A = [2 4;1 2]; -->disp(det(A)) 0. -->b = [1;1]; -->x = A \ b; Attention : La matrice est presque singuli?re ou mal conditionn?e. rcond = 0.0000D+00 Calcul de la solution des moindres carr?s (voir lsq). Isn't it a warning ? S. From j-lan at online.no Tue Oct 27 15:14:01 2015 From: j-lan at online.no (JLan) Date: Tue, 27 Oct 2015 07:14:01 -0700 (MST) Subject: [Scilab-users] Backslash operator with square singular matrix In-Reply-To: <562F81D8.1050909@utc.fr> References: <562F81D8.1050909@utc.fr> Message-ID: <1445955241578-4033042.post@n3.nabble.com> Different in 6.0.0-alpha: --> A = [2 4;1 2]; --> disp(det(A)) det: LAPACK error n?2. --> b = [1;1]; --> x = A \ b; --> disp(norm(A*x-b)); 0.4472136 J -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Backslash-operator-with-square-singular-matrix-tp4033040p4033042.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Tue Oct 27 15:20:06 2015 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Tue, 27 Oct 2015 15:20:06 +0100 Subject: [Scilab-users] Backslash operator with square singular matrix In-Reply-To: <1445955241578-4033042.post@n3.nabble.com> References: <562F81D8.1050909@utc.fr> <1445955241578-4033042.post@n3.nabble.com> Message-ID: I forgot to mention that I tested this with 5.4.1 S. > Le 27 oct. 2015 ? 15:14, JLan a ?crit : > > Different in 6.0.0-alpha: > --> A = [2 4;1 2]; > --> disp(det(A)) > det: LAPACK error n?2. > --> b = [1;1]; > --> x = A \ b; > --> disp(norm(A*x-b)); > 0.4472136 > > J > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Backslash-operator-with-square-singular-matrix-tp4033040p4033042.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 contact at pierre-vuillemin.fr Tue Oct 27 15:35:01 2015 From: contact at pierre-vuillemin.fr (Pierre Vuillemin) Date: Tue, 27 Oct 2015 15:35:01 +0100 Subject: [Scilab-users] Backslash operator with square singular matrix In-Reply-To: <562F81D8.1050909@utc.fr> References: <562F81D8.1050909@utc.fr> Message-ID: <7552b93a5303720a74b625dea8f08fce@pierre-vuillemin.fr> Well, I must have switched the warnings off at some point and I did not realise that it was persistent. Thank you for pointing that out. Now that I can see the warnings, this leads me to another question : With dense matrices, rcond seems to be used to detect singularity when doing A\b while in the sparse case, rank deficiency is checked. cond, rcond and rank works with dense matrices, condestsp works with sparse matrices but not with singular ones. What would be a consistent (and efficient?) way of detecting matrix singularity? Through LU factorisation to get the rank of the matrix? Le 27.10.2015 14:53, St?phane Mottelet a ?crit?: > Hello, > > > > Le 27/10/2015 13:27, Pierre Vuillemin a ?crit : >> A = [2 4;1 2]; >> disp(det(A)) >> b = [1;1]; >> x = A \ b; > -->A = [2 4;1 2]; > > -->disp(det(A)) > > 0. > > -->b = [1;1]; > > -->x = A \ b; > Attention : > La matrice est presque singuli?re ou mal conditionn?e. rcond = > 0.0000D+00 > Calcul de la solution des moindres carr?s (voir lsq). > > Isn't it a warning ? > > S. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sdr at durietz.se Wed Oct 28 00:32:35 2015 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 28 Oct 2015 00:32:35 +0100 Subject: [Scilab-users] Windows shell command Message-ID: <56300993.5050005@durietz.se> Hello, I want to run and get the output from the command robocopy under Windows 10 from Scilab. I have tried the Scilab functions unix_g(), dos(), and powershell() but I always get the same empty output: ->[rep, stat] = unix_g(cmd) stat = 1. rep = However, the command is successful: the files are copied OK. If I run the command (cmd) from Windows "Command Prompt" or "Select Windows PowerShell" I get the output. If I use xcopy I also get the output from Scilab . Regards Stefan From fujimoto2005 at gmail.com Wed Oct 28 04:26:05 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Tue, 27 Oct 2015 20:26:05 -0700 (MST) Subject: [Scilab-users] =?utf-8?q?Shrinkage=E3=80=80of_hyper-matrix_happen?= =?utf-8?q?_again?= Message-ID: <1446002765252-4033046.post@n3.nabble.com> I heard the shrinkage problem of the hyper-matrix with the last dimension of 1 element in scilab 5.5.2 has been fixed in scilab 6. I confirmed the first version of scilab 6 has fixed it. But it seems to re-happen in the nightly build scilab-master-1445614374 (64-bit). Please try the following script. x=zeros(2,3,1,3); y=zeros(2,3,1); size(x) size(y) I want to get size(y) to be 2,3,1. But it returns 2,3. Is it my misunderstanding? -- View this message in context: http://mailinglists.scilab.org/Shrinkage-of-hyper-matrix-happen-again-tp4033046.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sdr at durietz.se Wed Oct 28 18:04:17 2015 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 28 Oct 2015 18:04:17 +0100 Subject: [Scilab-users] Windows shell command In-Reply-To: <56300993.5050005@durietz.se> References: <56300993.5050005@durietz.se> Message-ID: <56310011.1000804@durietz.se> If I repeat the command, which shall only update older files in the target directory, nothing is done, but I get stat = 0. rep = ! the output OK ... ! However, the successful command gives stat = 1 like an erroneous command! So there must be a bug or am I missing something? Regards Stefan On 2015-10-28 00:32, Stefan Du Rietz wrote: > Hello, > > I want to run and get the output from the command robocopy under > Windows 10 from Scilab. I have tried the Scilab functions unix_g(), > dos(), and powershell() but I always get the same empty output: > > > > ->[rep, stat] = unix_g(cmd) > > stat = > > 1. > > rep = > > > > > However, the command is successful: the files are copied OK. > > > > If I run the command (cmd) from Windows "Command Prompt" or "Select > Windows PowerShell" I get the output. > > > > If I use xcopy I also get the output from Scilab > . > > > Regards > > Stefan > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From francois.granade at scilab-enterprises.com Wed Oct 28 19:17:39 2015 From: francois.granade at scilab-enterprises.com (=?iso-8859-1?Q?Fran=E7ois_Granade?=) Date: Wed, 28 Oct 2015 19:17:39 +0100 Subject: [Scilab-users] Struct and Cell Array API function In-Reply-To: References: Message-ID: Hi Shamika, There is currently no API to access struct (nor cells); it *is* possible, but not easy; and it would require a little bit of code. Here are the possibilities to access structs/cells: - either use the fact that structs are overloaded mlists: thus you can access them as mlist, and extract/create your data by hand in C++ (that's where some code is needed... we could show you that if needed) - or, easier, do the struct <-> mlist conversion on the Scilab side, not on C++ side. That way you only manipulate mlists on the C++ side. Or, for that matter, convert them, on the Scilab side, in/from another format easily managed on the C++ side. - now, maybe it's worth looking at Scilab 6, where there are native types "types::struct" and "types::cell" directly in the api_scilab API... which makes things much easier. But the API is not documented (yet). We can talk more about it if you need; the right solution may depend of your the exact use case (in terms of performance in particular). Also we strongly suggest that you start looking at Scilab 6 for that; if we have done things right, everything should be easier there :). We can help you on that too... Regards, Fran?ois On Oct 26, 2015, at 2:39 PM, Shamika Mohanan wrote: > Hi, > > I posted this query on Scilab developer's mailing list but I got no reply. I'm trying my luck here. > > I'm using Scilab API in C++ code. I have to return struct and cell array values to Scilab environment. As there are no Scilab API functions for struct and cell array data types, is there any way to do it? If I do have to write API functions, would list/mlist be the best way to deal with structs and cell arrays? > > Shamika > _______________________________________________ > 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 Wed Oct 28 21:47:41 2015 From: j-lan at online.no (JLan) Date: Wed, 28 Oct 2015 13:47:41 -0700 (MST) Subject: [Scilab-users] Windows shell command In-Reply-To: <56300993.5050005@durietz.se> References: <56300993.5050005@durietz.se> Message-ID: <1446065261512-4033049.post@n3.nabble.com> Try without any extra files in the target directory (/MIR will remove them). -->[rep,stat]=unix_g('robocopy C:\A D:\A /MIR') stat = 1. rep = -->[rep,stat]=unix_g('robocopy C:\A D:\A /MIR') stat = 0. rep = !------------------------------------------------------------------------------- ! ! ! ! ROBOCOPY :: Robust File Copy for Windows ! ! ! Regards Jan -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Windows-shell-command-tp4033045p4033049.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From j-lan at online.no Wed Oct 28 23:53:21 2015 From: j-lan at online.no (JLan) Date: Wed, 28 Oct 2015 15:53:21 -0700 (MST) Subject: [Scilab-users] Windows shell command In-Reply-To: <56300993.5050005@durietz.se> References: <56300993.5050005@durietz.se> Message-ID: <1446072801049-4033050.post@n3.nabble.com> Workaround: [reg stat]=unix_g('robocopy C:\A D:\A /LOG:C:\A\log.txt') [regl statl]=unix_g('type c:\A\log.txt') J -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Windows-shell-command-tp4033045p4033050.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sdr at durietz.se Thu Oct 29 15:17:34 2015 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 29 Oct 2015 15:17:34 +0100 Subject: [Scilab-users] Windows shell command In-Reply-To: <1446072801049-4033050.post@n3.nabble.com> References: <56300993.5050005@durietz.se> <1446072801049-4033050.post@n3.nabble.com> Message-ID: <56322A7E.6070008@durietz.se> Thanks, I used the switch /LOG to check what happened when I ran the dos command from Scilab. But there is a workaround without an extra file. My first test command was (the switches are needed when I use it with a network server): -->RCcmd RCcmd = ROBOCOPY C:\Users\stefan\Documents\test C:\Users\stefan\Documents\new *.txt /TEE /COPY:DT /XJ /XO /FFT /DST /NP If I add this to the first command, it works, because the output is via ECHO: -->RC2cmd = "FOR /F ""usebackq delims=="" %i IN (`" + RCcmd + "`) DO @echo %i" RC2cmd = FOR /F "usebackq delims==" %i IN (`ROBOCOPY C:\Users\stefan\Documents\test C:\Users\stefan\Documents\new *.txt /TEE /COPY:DT /XJ /XO /FFT /DST /NP`) DO @echo %i But that should be handled by Scilab's functions, at least dos() and powershell(), shouldn't it? Regards Stefan On 2015-10-28 23:53, JLan wrote: > Workaround: > [reg stat]=unix_g('robocopy C:\A D:\A /LOG:C:\A\log.txt') > [regl statl]=unix_g('type c:\A\log.txt') > > J > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Windows-shell-command-tp4033045p4033050.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 adelson.oliveira at gmail.com Fri Oct 30 01:10:37 2015 From: adelson.oliveira at gmail.com (Adelson) Date: Thu, 29 Oct 2015 17:10:37 -0700 (MST) Subject: [Scilab-users] interactive graphical window Message-ID: <1446163837783-4033052.post@n3.nabble.com> Is it possible to configure graphical windows so as to allow for interactive actions like reploting with different parameters? For example, one may want to change from plot2d to plot2d3, rescaling something, plot3d to Sgrayplot, and so on. This actions are not allowed if one press the "edit" button. I know it is possible to configure additional buttons at graphical windows. Can someone tell me where can I find information on if and how to do that? Thanks -- View this message in context: http://mailinglists.scilab.org/interactive-graphical-window-tp4033052.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From oleksiy.bond at gmail.com Fri Oct 30 01:17:23 2015 From: oleksiy.bond at gmail.com (ol.bond) Date: Thu, 29 Oct 2015 17:17:23 -0700 (MST) Subject: [Scilab-users] interactive graphical window In-Reply-To: <1446163837783-4033052.post@n3.nabble.com> References: <1446163837783-4033052.post@n3.nabble.com> Message-ID: You can check Demos -> GUI -> Uicontrols2 2015-10-30 9:10 GMT+09:00 Adelson [via Scilab / Xcos - Mailing Lists Archives] : > Is it possible to configure graphical windows so as to allow for > interactive actions like reploting with different parameters? For example, > one may want to change from plot2d to plot2d3, rescaling something, plot3d > to Sgrayplot, and so on. This actions are not allowed if one press the > "edit" button. > > I know it is possible to configure additional buttons at graphical > windows. Can someone tell me where can I find information on if and how to > do that? > > Thanks > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://mailinglists.scilab.org/interactive-graphical-window-tp4033052.html > To start a new topic under Scilab users - Mailing Lists Archives, email > ml-node+s994242n2602246h53 at n3.nabble.com > To unsubscribe from Scilab users - Mailing Lists Archives, click here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/interactive-graphical-window-tp4033052p4033053.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adelson.oliveira at gmail.com Fri Oct 30 01:32:22 2015 From: adelson.oliveira at gmail.com (Adelson) Date: Thu, 29 Oct 2015 22:32:22 -0200 Subject: [Scilab-users] interactive graphical window In-Reply-To: References: <1446163837783-4033052.post@n3.nabble.com> Message-ID: <5632BA96.7040109@gmail.com> Thanks. I will check it out Em 29-10-2015 22:17, ol.bond escreveu: > You can check Demos -> GUI -> Uicontrols2 > > 2015-10-30 9:10 GMT+09:00 Adelson [via Scilab / Xcos - Mailing Lists > Archives] <[hidden email] > >: > > Is it possible to configure graphical windows so as to allow for > interactive actions like reploting with different parameters? For > example, one may want to change from plot2d to plot2d3, rescaling > something, plot3d to Sgrayplot, and so on. This actions are not > allowed if one press the "edit" button. > > I know it is possible to configure additional buttons at graphical > windows. Can someone tell me where can I find information on if > and how to do that? > > Thanks > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://mailinglists.scilab.org/interactive-graphical-window-tp4033052.html > > To start a new topic under Scilab users - Mailing Lists Archives, > email [hidden email] > To unsubscribe from Scilab users - Mailing Lists Archives, click here. > NAML > > > > > > ------------------------------------------------------------------------ > View this message in context: Re: interactive graphical window > > 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 amonmayr at laas.fr Fri Oct 30 07:56:40 2015 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 30 Oct 2015 07:56:40 +0100 Subject: [Scilab-users] =?utf-8?q?interactive_graphical_window?= In-Reply-To: <5632BA96.7040109@gmail.com> Message-ID: <36be-56331480-5-58dfab8@200683828> I just started playing with guis and interactive plots for a set of lectures I am giving. I can send you the (terrible) things I've made. BTW, I think the Scilab community could do with a set of recent and clear tutorials on how to use uicontrols to do interactive plots. For example, the new constraints system to place uicontrols in a smart way is quite difficult to understand and the help pages are not that helpful: constraints = createConstraints(constraintsType, varargin) "none" or "nolayout": No constraints will be added to the uicontrol layout. "grid": A grid layout constraint. "border": A border layout constraint. "gridbag": A gridbag layout constraint. A nice tutorial where the different placement strategies are explained in layman terms and compared to each other could help! Cheers, Antoine Le Vendredi 30 Octobre 2015 01:32 CET, Adelson a ?crit: > Thanks. > > I will check it out > > > Em 29-10-2015 22:17, ol.bond escreveu: > > You can check Demos -> GUI -> Uicontrols2 > > > > 2015-10-30 9:10 GMT+09:00 Adelson [via Scilab / Xcos - Mailing Lists > > Archives] <[hidden email] > > >: > > > > Is it possible to configure graphical windows so as to allow for > > interactive actions like reploting with different parameters? For > > example, one may want to change from plot2d to plot2d3, rescaling > > something, plot3d to Sgrayplot, and so on. This actions are not > > allowed if one press the "edit" button. > > > > I know it is possible to configure additional buttons at graphical > > windows. Can someone tell me where can I find information on if > > and how to do that? > > > > Thanks > > > > ------------------------------------------------------------------------ > > If you reply to this email, your message will be added to the > > discussion below: > > http://mailinglists.scilab.org/interactive-graphical-window-tp4033052.html > > > > To start a new topic under Scilab users - Mailing Lists Archives, > > email [hidden email] > > To unsubscribe from Scilab users - Mailing Lists Archives, click here. > > NAML > > > > > > > > > > > > ------------------------------------------------------------------------ > > View this message in context: Re: interactive graphical window > > > > 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 clement.david at scilab-enterprises.com Fri Oct 30 08:21:40 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Fri, 30 Oct 2015 08:21:40 +0100 Subject: [Scilab-users] interactive graphical window In-Reply-To: <36be-56331480-5-58dfab8@200683828> References: <36be-56331480-5-58dfab8@200683828> Message-ID: <1446189700.9611.9.camel@scilab-enterprises.com> Hello all, In fact, we just mapped some Java layout to the UIControls API. To have nice tutorials on that refers to the Java Layouts [1] tutorials. And for beginners on UI, I strongly suggests you to use Netbeans Swing GUI Builder [2] or Eclipse Swing Designer [3] to discover panel placement strategies. Currently we do not have any Scilab code generation backend for these tools but I agree that manual coding UI might be hard and we have to improve that situation (of course no deadline, no defined features yet :) ). [1]: http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html [2]: https://netbeans.org/features/java/swing.html [3]: http://www.eclipse.org/windowbuilder/ -- Cl?ment Le vendredi 30 octobre 2015 ? 07:56 +0100, Antoine Monmayrant a ?crit : > constraints = createConstraints(constraintsType, varargin) > > "none" or "nolayout": No constraints will be added to the > uicontrol layout. > "grid": A grid layout constraint. > "border": A border layout constraint. > "gridbag": A gridbag layout constraint. > > A nice tutorial where the different placement strategies are > explained in layman terms and compared to each other could help! From amonmayr at laas.fr Fri Oct 30 09:19:44 2015 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 30 Oct 2015 09:19:44 +0100 Subject: [Scilab-users] =?utf-8?q?interactive_graphical_window?= In-Reply-To: <1446189700.9611.9.camel@scilab-enterprises.com> Message-ID: <2384-56332800-5-5bb88000@42244859> Hi David, Thanks for the head up. I'll try to have a look at it. I think that more generally Scilab could be improved by improving the help pages so that a new user can better understand what the hell is going on with a given function. Cheers, Antoine Le Vendredi 30 Octobre 2015 08:21 CET, Cl?ment David a ?crit: > Hello all, > > In fact, we just mapped some Java layout to the UIControls API. To have > nice tutorials on that refers to the Java Layouts [1] tutorials. And > for beginners on UI, I strongly suggests you to use Netbeans Swing GUI > Builder [2] or Eclipse Swing Designer [3] to discover panel placement > strategies. > > Currently we do not have any Scilab code generation backend for these > tools but I agree that manual coding UI might be hard and we have to > improve that situation (of course no deadline, no defined features yet > :) ). > > [1]: http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html > [2]: https://netbeans.org/features/java/swing.html > [3]: http://www.eclipse.org/windowbuilder/ > > -- > Cl?ment > > Le vendredi 30 octobre 2015 ? 07:56 +0100, Antoine Monmayrant a ?crit : > > constraints = createConstraints(constraintsType, varargin) > > > > "none" or "nolayout": No constraints will be added to the > > uicontrol layout. > > "grid": A grid layout constraint. > > "border": A border layout constraint. > > "gridbag": A gridbag layout constraint. > > > > A nice tutorial where the different placement strategies are > > explained in layman terms and compared to each other could help! > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From antoine.monmayrant at laas.fr Fri Oct 30 12:20:36 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 30 Oct 2015 12:20:36 +0100 Subject: [Scilab-users] interactive graphical window In-Reply-To: <1446189700.9611.9.camel@scilab-enterprises.com> References: <36be-56331480-5-58dfab8@200683828> <1446189700.9611.9.camel@scilab-enterprises.com> Message-ID: <56335284.1050504@laas.fr> Le 10/30/2015 08:21 AM, Cl?ment David a ?crit : > [1]:http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html Can't these illustrations/examples be reproduced in the uicontrols or uiconstraints help page? A small picture and the corresponding code would help a lot understanding which constraint does what. Cheers, Antoine From Jean-Yves.Baudais at insa-rennes.fr Fri Oct 30 13:03:32 2015 From: Jean-Yves.Baudais at insa-rennes.fr (jbaudais@insa-rennes.fr) Date: Fri, 30 Oct 2015 13:03:32 +0100 Subject: [Scilab-users] varialble and string Message-ID: <56335C94.2040606@insa-rennes.fr> Hello, I use multiple variables with names given in a matrix, or vector > x=["a","b","c","d","e"]; I can easily use the variable with the function eval in math expression > 2*eval(x(1))+1 But if I want > a=1; How can I do this using the vector x only? I try > execstr("x(1)=1") but the answer is "Pas encore impl?ment? dans Scilab...", with Scilab 5.3.3. Thanks, Jean-Yves From antoine.monmayrant at laas.fr Fri Oct 30 13:28:10 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 30 Oct 2015 13:28:10 +0100 Subject: [Scilab-users] varialble and string In-Reply-To: <56335C94.2040606@insa-rennes.fr> References: <56335C94.2040606@insa-rennes.fr> Message-ID: <5633625A.7000108@laas.fr> Le 10/30/2015 01:03 PM, jbaudais at insa-rennes.fr a ?crit : > Hello, > > I use multiple variables with names given in a matrix, or vector > > > x=["a","b","c","d","e"]; > > I can easily use the variable with the function eval in math expression > > > 2*eval(x(1))+1 > > But if I want > > > a=1; > > How can I do this using the vector x only? I try > > > execstr("x(1)=1") Is this what you want to do: -->x=["a","b","c","d","e"]; -->execstr(x(1)+"=1") -->a a = 1. ? Antoine > > but the answer is "Pas encore impl?ment? dans Scilab...", with Scilab > 5.3.3. > > Thanks, > > Jean-Yves > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From Jean-Yves.Baudais at insa-rennes.fr Fri Oct 30 13:55:58 2015 From: Jean-Yves.Baudais at insa-rennes.fr (jbaudais@insa-rennes.fr) Date: Fri, 30 Oct 2015 13:55:58 +0100 Subject: [Scilab-users] varialble and string In-Reply-To: <5633625A.7000108@laas.fr> References: <56335C94.2040606@insa-rennes.fr> <5633625A.7000108@laas.fr> Message-ID: <563368DE.10908@insa-rennes.fr> Le 30/10/2015 13:28, Antoine Monmayrant a ?crit : > Le 10/30/2015 01:03 PM, jbaudais at insa-rennes.fr a ?crit : > Is this what you want to do: > > -->x=["a","b","c","d","e"]; > > -->execstr(x(1)+"=1") > > -->a > a = > > 1. > > ? Yes of course! Thanks, --Jean-Yves From edmund.okoroigwe at unn.edu.ng Sat Oct 31 14:06:21 2015 From: edmund.okoroigwe at unn.edu.ng (Edmund Okoroigwe) Date: Sat, 31 Oct 2015 15:06:21 +0200 Subject: [Scilab-users] Error message Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Oct 31 20:02:05 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 31 Oct 2015 20:02:05 +0100 Subject: [Scilab-users] Error message In-Reply-To: References: Message-ID: <5635102D.6030701@free.fr> Hello, As far as i know, linregr() has never been a native Scilab function. May be you found it in an external module. If it performs a linear regression, a Scilab equivalent is reglin() (there are other ones). HTH Samuel Gougeon Le 31/10/2015 14:06, Edmund Okoroigwe a ?crit : > > 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 >