Re: [Scilab-users] uicontrol edit

2012-11-09 Thread Stefan Du Rietz
On 2012-11-08 21:36, Samuel Gougeon wrote: Le 08/11/2012 19:25, Stefan Du Rietz a écrit : is this intended or a bug in uicontrol: when I press a button, an edit field is not updated with the last written text. I have to either press return in the edit field or move focus

Re: [Scilab-users] sort a table/matrix

2012-11-10 Thread Stefan Du Rietz
On 2012-11-10 16:39, Samuel Gougeon wrote: Le 10/11/2012 15:06, Paul Carrico a écrit : D= [ 10 3 11 10 13; 49 6 -1 -1 0; 178 39 9 -451 3; 10110 -12 1 -9 45 ; -13514 15 78 -99 3] /// each line is sorted from the 1rst column (in increasing order)/ D_expeted= [ -13514

Re: [Scilab-users] csvWrite trouble

2012-11-24 Thread Stefan Du Rietz
: Hello, It is a just a display. The vector has still a size of 2x1: --size(s) ans = 2.1. Sylvestre On 24/11/2012 16:46, Stefan Du Rietz wrote: Hello Sylvestre, A similar question: Why are string vectors written with every other line empty? --s = [ --This is a two row --string

[Scilab-users] xpoly bug

2012-12-11 Thread Stefan Du Rietz
Hi Sylvestre, with polyline_style 3 (vertical lines from [x, 0] to [x, y]), line_mode controls the display of an extra line with polyline_style 1! And mark_mode on draws extra markers (not at [x, y]), which is also true with polyline_style 2. Shall I open a new bug or add to your 11632?

Re: [Scilab-users] Scinotes for Scilab 5.4 - Background color

2013-01-18 Thread Stefan Du Rietz
On 2013-01-18 01:02, Samuel Gougeon wrote: Le 17/01/2013 11:00, Stefan Du Rietz a écrit : And to remove the toolbar, please? * close Scilab * edit SCI\modules\scinotes\etc\scinotesGUIConfiguration.xml * put in comment the content between toolbar... /toolbar Beware: 2

Re: [Scilab-users] Peaks and positions

2013-01-28 Thread Stefan Du Rietz
It means the last element of the vector/matrix. /Stefan On 2013-01-28 22:30, Berns Buenaobra wrote: Hi Samuel: I'd like to understand the $ inside the would mean from the script? Thanks, Berns B. On Sun, Jan 27, 2013 at 12:46 AM, Samuel Gougeon sgoug...@free.fr

Re: [Scilab-users] Vectorization

2013-02-12 Thread Stefan Du Rietz
On 2013-02-12 18:34, Stefan Du Rietz wrote: On 2013-02-12 17:50, Serge Steer wrote: Are you sure of your variance definition? For me if v is a vector the variance of v is computed by sqrt(sum( (v-mean(v))^2)) That is standard deviation -- the variance

Re: [Scilab-users] Plots on second Y axis

2013-02-23 Thread Stefan Du Rietz
http://help.scilab.org/docs/5.4.0/en_US/drawaxis.html /Stefan On 2013-02-23 22:19, Samuel Enibe wrote: Thanks, Spougeon. This has partly solved the problem. Suppose I have two plots on the same graph, one is to use the left Y-axis, while the second is to use the right Y-axis. How should I

Re: [Scilab-users] Plots on second Y axis

2013-02-23 Thread Stefan Du Rietz
)) y2 = 2 * sin(x) //y2label = 2 * sin(x) How do I plot y2 so that it uses the right Y-axis with its y2label properly specified On Sat, Feb 23, 2013 at 1:25 PM, Stefan Du Rietz s...@durietz.se mailto:s...@durietz.se wrote: http://help.scilab.org/docs/5.__4.0/en_US/drawaxis.html http

Re: [Scilab-users] Loading functions in Scilab

2013-02-27 Thread Stefan Du Rietz
On 2013-02-27 13:14, Dang, Christophe wrote: Hello, Imagine you had tens, hundreds or even thousands of functions [...] Do you have to load each one in turn every time you start Scilab? Have you considered the creation of a library? see

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-17 Thread Stefan Du Rietz
--y=(5*x)-1 y = - 11. - 6. - 1.4.9. --ya ans = F F F F T This is F (the first element) /Stefan On 2013-03-17 20:23, Modestas Bunokas wrote: If someone will find 2 min of free time, I would be very grateful. I'm somehow getting weird result doing simple

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-17 Thread Stefan Du Rietz
Sorry, I should have written (?): A multi-element logical array is true (T) only if all elements are T. --and(ya) ans = F /Stefan On 2013-03-17 20:35, Stefan Du Rietz wrote: --y=(5*x)-1 y = - 11. - 6. - 1.4.9. --ya ans = F F F F T This is F

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-17 Thread Stefan Du Rietz
), end, end - 11. - 6. - 1. 4. 100. Or maybe this is easier to follow: --for k=1:length(y), if y(k)a, disp(b), else, disp(y(k)), end, end - 11. - 6. - 1. 4. 100. /Stefan On 2013-03-17 20:46, Stefan Du Rietz wrote: Sorry, I should have written

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-17 Thread Stefan Du Rietz
But this is the ultimate solution without a loop: --bool2s(ya) .* b + bool2s(~ya) .* y ans = - 11. - 6. - 1.4.100. /Stefan On 2013-03-17 22:05, Stefan Du Rietz wrote: Maybe one of the last two of these four loops was what you wanted: --bool2s(ya) ans

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-18 Thread Stefan Du Rietz
Rietz s...@durietz.se mailto:s...@durietz.se wrote: But this is the ultimate solution without a loop: --bool2s(ya) .* b + bool2s(~ya) .* y ans = - 11. - 6. - 1.4.100. /Stefan On 2013-03-17 22:05, Stefan Du Rietz wrote: Maybe

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-18 Thread Stefan Du Rietz
But as usual there is a better (faster, simpler) solution without a loop! // sort in reverse order and get indices [ysort, k] = gsort(data(:, 2)); // take indices of the 5 largest values k = k(1:5); // keep those data data = [data(k, :)]; Regards Stefan On 2013-03-18 13:09, Stefan Du Rietz

Re: [Scilab-users] Regarding simple numerical operations result display.

2013-03-19 Thread Stefan Du Rietz
On 2013-03-19 09:26, Dang, Christophe wrote: Hello, De la part de Stefan Du Rietz Envoyé : lundi 18 mars 2013 17:23 But as usual there is a better (faster, simpler) solution without a loop! // sort in reverse order and get indices [ysort, k] = gsort(data(:, 2)); Well

Re: [Scilab-users] discrete Fourier transform

2013-03-21 Thread Stefan Du Rietz
On 2013-03-21 17:13, Serge Steer wrote: Le 21/03/2013 16:41, haasejos a écrit : hello, for signalanalysis I would like to use discrete Fourier transform (dft). To see, how it works, I use the simple example below. Why is *XfA = abs(Xf)*2/n* respectively why is XfA =

Re: [Scilab-users] Disable figure name

2013-04-19 Thread Stefan Du Rietz
Hi, you mean the Title bar, which unfortunately is repeated under the menu bar ;-( I would like to remove the lower repeated title bar and also, sometimes, the menu bar. Is that possible? I would also like to hide (with drawlater?) the creation of a figure until it is ready. Now I have to

Re: [Scilab-users] Conditional assignments

2013-04-21 Thread Stefan Du Rietz
| Editor-in-Chief Scope Junction | http://www.scopejunction.com/ (415) 947-6096 (USA) (519) 744-9395 (Canada) Skype: MichaelDunn_UBM LinkedIn: http://www.linkedin.com/in/cantares http://www.tech.ubm.com/ -Original Message- From: Stefan Du Rietz s...@durietz.se Reply-To: International

Re: [Scilab-users] Tcl vs. Java: I want to understand

2013-05-14 Thread Stefan Du Rietz
On 2013-05-14 10:22, Sylvestre Ledru wrote: Le 14/05/2013 10:14, Piotr Zaprawa a écrit : Hello I want to understand why Tcl in Scilab has been replaced by Java. I spend many hours reading many different papers on the Internet and I find only this: Francois Vogel: ...The

[Scilab-users] Dot operator on a handle

2013-09-29 Thread Stefan Du Rietz
Error setting a property of a graphics entity with the dot operator on a handle from a calling function Save these two functions in a file testhandle.sci: function testhandle(nodot, h_arg) if ~exists('nodot') then nodot = %f; end if ~exists('h_arg') then h_arg = %f; end f =

[Scilab-users] changed axes

2013-10-11 Thread Stefan Du Rietz
Hi all, when I have a figure with several axes below each other (created with newaxes()) and move the cursor over the axes at the bottom, it sometimes gets changed in a peculiar way and I cannot get it back ... Can I prevent this from happening? Regards Stefan

[Scilab-users] Changed axes

2013-10-11 Thread Stefan Du Rietz
Hi all, when I have a figure with several axes below each other (created with newaxes()) and move the cursor over the axes at the bottom, it sometimes gets changed in a peculiar way and I cannot get it back ... Can I prevent this from happening? Regards Stefan

Re: [Scilab-users] Advice from Scilab community

2013-10-22 Thread Stefan Du Rietz
-22 14:42, Stefan Du Rietz wrote: You can use vectorfind() three times to get the line number. Regards Stefan. On 2013-10-22 13:58, Carrico, Paul wrote: Dear All I’m asking here an advice from the community in order to find a (fast and clean) solution

Re: [Scilab-users] How to solve this modular inequality in scilab?

2013-12-21 Thread Stefan Du Rietz
On 2013-12-21 06:49, email1018 wrote: |x| = 6 -- View this message in context: http://mailinglists.scilab.org/How-to-solve-this-modular-inequality-in-scilab-tp4028097.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.

Re: [Scilab-users] printing a boolean value

2013-12-21 Thread Stefan Du Rietz
On 2013-12-21 12:29, Iai Masafumi ax wrote: How do I print a boolean value? Any of these gave me an error: mprintf(%d\n, %T) mprintf(%i\n, %T) mprintf(%o\n, %T) mprintf(%u\n, %T) mprintf(%x\n, %T) mprintf(%X\n, %T) mprintf(%e\n, %T) mprintf(%E\n, %T) mprintf(%f\n, %T)

[Scilab-users] clock

2014-01-01 Thread Stefan Du Rietz
Hello developers, in Scilab 5.4.1, Windows 7 or Xubuntu: --clock() ans = 2014.1.1.17.49.40.03 --clock() ans = 2014.1.1.17.49.42.97 --clock() ans = 2014.1.1.17.49.44.02 --clock() ans = 2014.1.

Re: [Scilab-users] clock

2014-01-01 Thread Stefan Du Rietz
Thank you, Samuel! Regards /Stefan On 2014-01-01 20:20, Samuel Gougeon wrote: Hello Stefan, It is already somewhat reported here: http://bugzilla.scilab.org/show_bug.cgi?id=10597 Regards Samuel Le 01/01/2014 17:55, Stefan Du Rietz a écrit : Hello developers, in Scilab

[Scilab-users] grid lines

2014-01-10 Thread Stefan Du Rietz
Hi, is it possible to change the line_style of axes property grid? Regards /Stefan ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] grid lines

2014-01-12 Thread Stefan Du Rietz
GOMEZ http://bugzilla.scilab.org/show_bug.cgi?id=6191 However, nobody has yet taken care of it ... /Stefan On 2014-01-11 13:20, Samuel Gougeon wrote: Hi, Le 10/01/2014 19:43, Stefan Du Rietz a écrit : is it possible to change the line_style of axes property grid? You may

Re: [Scilab-users] Bitmap export

2014-01-13 Thread Stefan Du Rietz
Hi Calixte, here you are! Regards /Stefan On 2014-01-13 10:43, Calixte Denizet wrote: Hi Stefan, Could you attach the guilty picture please ? Regards Calixte On 13/01/2014 10:37, Stefan Du Rietz wrote: On 2014-01-13 09:16, Antoine Monmayrant wrote

Re: [Scilab-users] Bitmap export

2014-01-16 Thread Stefan Du Rietz
up! /Stefan On 2014-01-13 10:52, Calixte Denizet wrote: Weird... imho it is a problem with the driver of your GC. Could you try to install proprietary driver please ? Regards Calixte On 13/01/2014 10:50, Stefan Du Rietz wrote: Hi Calixte, here you are! Regards /Stefan

Re: [Scilab-users] Bitmap export

2014-01-16 Thread Stefan Du Rietz
On 2014-01-16 23:13, Antoine Monmayrant wrote: Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz s...@durietz.se a écrit: Hi Calixte, I would rather not, because there is no other problem with the Linux driver and I remember other problems with the proprietary driver

[Scilab-users] Transparent rectangle?

2014-01-19 Thread Stefan Du Rietz
Hi all, is it possible to draw a filled coloured rectangle after lines so that those lines can still be seen trough it? Regards Stefan ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Transparent rectangle?

2014-01-19 Thread Stefan Du Rietz
On 2014-01-19 21:28, Stefan Du Rietz wrote: On 2014-01-19 21:15, Antoine Monmayrant wrote: Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz s...@durietz.se a écrit: Hi all, is it possible to draw a filled coloured rectangle after lines so

Re: [Scilab-users] Bitmap export

2014-01-20 Thread Stefan Du Rietz
and the bitmap is converted into PNG. The GC driver is called to retrieve the data and it seems that this kind of bug is typical to Ubuntu with free driver... the only workaround I know (for the moment ;)) is to switch to the proprietary driver. Calixte On 17/01/2014 00:42, Stefan Du Rietz wrote: Hi

Re: [Scilab-users] Bitmap export

2014-01-20 Thread Stefan Du Rietz
On 2014-01-20 19:19, Stefan Du Rietz wrote: Hi Calixte, thank you very much for your comprehensive reply! Now I understand why I must either install the proprietary driver (beware!) or use the vectorial export. I will probably choose the latter when I want to export a figure

Re: [Scilab-users] Transparent rectangle?

2014-01-20 Thread Stefan Du Rietz
On 2014-01-20 11:04, Serge Steer wrote: Hi Antoine, I understand that I could draw the lines after the coloured rectangle to get them visible, but I cannot do that. So, I need the rectangle to be transparent. What do you mean by rearrange the order? Here is an example

[Scilab-users] Strange list error

2014-01-25 Thread Stefan Du Rietz
Hi all, one of my functions suddenly stopped working. During my effort to find the error by running the commands from the command window, I experienced this: -1-args(1) = null(); args(1) = null(); !--error 44 Wrong argument #2. and when I checked: -1-typeof(args) ans =

Re: [Scilab-users] Strange list error

2014-01-25 Thread Stefan Du Rietz
, Stefan Du Rietz wrote: Hi all, one of my functions suddenly stopped working. During my effort to find the error by running the commands from the command window, I experienced this: -1-args(1) = null(); args(1) = null(); !--error 44 Wrong argument #2. and when

Re: [Scilab-users] Strange list error

2014-01-27 Thread Stefan Du Rietz
args = list(); args(1)=null() it runs smooth. Regards, Paul On 01/25/2014 09:07 PM, Stefan Du Rietz wrote: I found out what the error was: I had a line if exists(bolus) then that became true when I had this variable in the workspace, which I never had before. I changed

Re: [Scilab-users] Strange list error

2014-01-27 Thread Stefan Du Rietz
PS --testlisterror(pnonfast,nonfast) works OK also after resume twice. /Stefan On 2014-01-27 19:05, Stefan Du Rietz wrote: Hello Paul, after trying like a maniac ;-) I finally managed to reproduce it! The error shows up only when you run the command from the command

Re: [Scilab-users] Strange list error

2014-01-28 Thread Stefan Du Rietz
On 2014-01-27 22:43, Serge Steer wrote: Le 27/01/2014 19:05, Stefan Du Rietz a écrit : Hello Paul, after trying like a maniac ;-) I finally managed to reproduce it! The error shows up only when you run the command from the command window after a pause in the attached

Re: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables

2014-01-29 Thread Stefan Du Rietz
On 2014-01-28 18:42, Serge Steer wrote: Le 28/01/2014 17:14, Adrien Vogt-Schilb a écrit : The page does not mention pause Just because pause behave similarily to functions with respect to calling context And you think the fact that it behaves equal to (not similar to)

Re: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables

2014-01-29 Thread Stefan Du Rietz
On 2014-01-29 20:03, Stefan Du Rietz wrote: On 2014-01-28 18:42, Serge Steer wrote: Le 28/01/2014 17:14, Adrien Vogt-Schilb a écrit : The page does not mention pause Just because pause behave similarily to functions with respect to calling context

Re: [Scilab-users] printing a boolean value

2014-03-28 Thread Stefan Du Rietz
On 2013-12-21 12:48, Stefan Du Rietz wrote: On 2013-12-21 12:29, Iai Masafumi ax wrote: How do I print a boolean value? Any of these gave me an error: mprintf(%d\n, %T) mprintf(%i\n, %T) mprintf(%o\n, %T) mprintf(%u\n, %T) mprintf(%x\n, %T) mprintf(%X

[Scilab-users] Figure window with slow GUI:s

2014-03-28 Thread Stefan Du Rietz
Hello, I had a figure with 2 axes, menus, and several GUI:s. I created new GUI:s from the menus, which was extremely slow on not very powerful computers (Win 7 and Xubuntu). I also tried to just change the visibility property of the GUI:s, but that made no difference (at least not a

[Scilab-users] Figure window with slow GUI:s

2014-03-28 Thread Stefan Du Rietz
Please replace my last mail with this one. I had a figure with 2 axes, menus, and several GUI:s. I created temporary new GUI:s from the menus, which was extremely slow on not very powerful computers (Win 7 and Xubuntu). I also tried to just change the visible property of the GUI:s, but that

Re: [Scilab-users] Figure window with slow GUI:s

2014-04-01 Thread Stefan Du Rietz
Isn't this remarkable? Stefan On 2014-03-28 20:37, Stefan Du Rietz wrote: Once again ;-( Please replace my last mail with this one. Hello, I had a figure with 2 axes, menus, and several GUI:s. I created temporary new GUI:s from the menus, which was extremely slow

Re: [Scilab-users] memory leak?

2014-05-24 Thread Stefan Du Rietz
Hello, I have noticed in Xubuntu Linux that, after Scilab stopped working and I had to stop it by clicking the close button of the console window (the menu did not work), I could still see scilab-bin in top (which shows all running programs). Regards Stefan On 2014-05-24 17:26, Raghu Char

[Scilab-users] Figure

2014-05-26 Thread Stefan Du Rietz
Hello, I am trying to get my figures from 5.4.1 in 5.5.0. Why is everything red? (no help found and no answer to an equal question on the Internet) Regards Stefan ___ users mailing list users@lists.scilab.org

Re: [Scilab-users] Figure

2014-05-28 Thread Stefan Du Rietz
On 2014-05-26 21:53, Samuel Gougeon wrote: Le 26/05/2014 20:39, Stefan Du Rietz a écrit : Hello, I am trying to get my figures from 5.4.1 in 5.5.0. Why is everything red? (no help found and no answer to an equal question on the Internet) Like here?: http://bugzilla.scilab.org/attachment.cgi

Re: [Scilab-users] Figure

2014-06-02 Thread Stefan Du Rietz
On 2014-06-02 19:02, Stefan Du Rietz wrote: On 2014-06-02 13:41, Samuel Gougeon wrote: Le 28/05/2014 21:32, Stefan Du Rietz a écrit : On 2014-05-26 21:53, Samuel Gougeon wrote: Le 26/05/2014 20:39, Stefan Du Rietz a écrit : Hello, I am trying to get

Re: [Scilab-users] Figure

2014-06-03 Thread Stefan Du Rietz
On 2014-06-02 20:05, Stefan Du Rietz wrote: On 2014-06-02 19:02, Stefan Du Rietz wrote: On 2014-06-02 13:41, Samuel Gougeon wrote: Le 28/05/2014 21:32, Stefan Du Rietz a écrit : On 2014-05-26 21:53, Samuel Gougeon wrote: Le 26/05

Re: [Scilab-users] Is FPPO available ?

2014-06-04 Thread Stefan Du Rietz
On 2014-06-04 21:09, Claus Futtrup wrote: Hi there I have generated some 60 seconds of (pink) noise, sampled at 48 kHz, which I can fft to get a linear-frequency representation (predominantly interested in 20 - 20k Hz). If I plot this data on a log-frequency plot, then of

Re: [Scilab-users] Plotting time (hours) in scilab

2014-06-05 Thread Stefan Du Rietz
On 2014-06-05 11:29, Edmund Okoroigwe wrote: I want to plot time (8:00,9:00,10:00,11:00, 12:00, 13:00,14:00) as x-axis. How can I achieve this. The data is saved in excel file. Thanks Edmund Maybe like this: t = 8:14; a = gca(); // Set the x-axis limits to the first and

Re: [Scilab-users] Plotting time (hours) in scilab

2014-06-05 Thread Stefan Du Rietz
On 2014-06-05 12:41, Stefan Du Rietz wrote: On 2014-06-05 11:29, Edmund Okoroigwe wrote: I want to plot time (8:00,9:00,10:00,11:00, 12:00, 13:00,14:00) as x-axis. How can I achieve this. The data is saved in excel file. Thanks Edmund Maybe like

Re: [Scilab-users] Plotting time (hours) in scilab

2014-06-05 Thread Stefan Du Rietz
On 2014-06-05 13:00, Stefan Du Rietz wrote: On 2014-06-05 12:41, Stefan Du Rietz wrote: On 2014-06-05 11:29, Edmund Okoroigwe wrote: I want to plot time (8:00,9:00,10:00,11:00, 12:00, 13:00,14:00) as x-axis. How can I achieve this. The data is saved

[Scilab-users] 5.5.0 axes data_bounds

2014-06-05 Thread Stefan Du Rietz
Hello, it seems like there is a new bug in Scilab 5.5.0. If I set a.data_bounds and then plot something, even with xpoly(), they are changed, despite that a.auto_scale==off and a.tight_limits==on. It worked in 5.4.1. Shall I report a bug? Regards Stefan

Re: [Scilab-users] 5.5.0 axes data_bounds

2014-06-06 Thread Stefan Du Rietz
On 2014-06-05 23:54, Antoine Monmayrant wrote: Le Jeudi 5 Juin 2014 19:58 CEST, Stefan Du Rietz s...@durietz.se a écrit: Hello, it seems like there is a new bug in Scilab 5.5.0. If I set a.data_bounds and then plot something, even with xpoly(), they are changed, despite that a.auto_scale

[Scilab-users] Bug in csim in Scilab 5.5.0?

2014-06-14 Thread Stefan Du Rietz
Hello, I have a function using csim that worked OK in 5.4.1 but not in 5.5.0. However, if I use the csim.sci from 5.4.1 it also works in 5.5.0. I stop the simulation, read the states, insert an impulse by adding to the first state, and continue with the the states as initial states (x0) in a

[Scilab-users] printf bug?

2014-07-29 Thread Stefan Du Rietz
Hello, under Xubuntu 14.04 (Ubuntu Linux with XFCE) and locale en_DK.UTF-8 all Scilab printf functions output decimal commas instead of points: --x = 0.6231166; --xstr = msprintf(%0.2f, x) xstr = 0,62 which leads to --eval(xstr) ans = 0. and (worse) wrong numbers written to text

Re: [Scilab-users] printf bug?

2014-07-29 Thread Stefan Du Rietz
=sl_SI.UTF-8 No problem here, printf functions outputs decimal point. 2014-07-29 16:06 GMT+02:00 Stefan Du Rietz s...@durietz.se mailto:s...@durietz.se: Hello, under Xubuntu 14.04 (Ubuntu Linux with XFCE) and locale en_DK.UTF-8 all Scilab printf functions output decimal commas

Re: [Scilab-users] printf bug?

2014-07-29 Thread Stefan Du Rietz
Leon, Can you please try it with Scilab 5.4.1 under openSUSE? And can you show its Bash output from $ locale When I was running Scilab 5.4.1 under Xubuntu 12.04, printf worked OK, but also in Bash. So the question is: Why do you now get different results in Scilab and Bash? And *the

Re: [Scilab-users] printf bug?

2014-08-02 Thread Stefan Du Rietz
With Scilab here, I mean Scilab 5.5.0. On 2014-08-02 22:30, Stefan Du Rietz wrote: Thank you, Leon, it confirms that Scilab 5.4.1 handles it correctly. But when I have LC_NUMERIC=en_DK.utf8 which means decimal comma, see below, Scilab is in error: --msprintf(%0.2f, %pi) ans = 3,14

[Scilab-users] integers?

2014-08-30 Thread Stefan Du Rietz
Hello, I got a strange error and tried to debug it: -1-dv dv = 2014.8.31.8.0. Is the third element more than the number of days in the month? --eday = eomday(2014, 8) eday = 31. -1-incmon = find(dv(:, 3) eday) incmon = 1. But both are integers 31.:

Re: [Scilab-users] printf bug?

2014-10-20 Thread Stefan Du Rietz
Hello, look here: --x = 1.2345 x = 1.2345 --msprintf(%0.1f, x) ans = 1,2 --string(0.1 * floor(10 * x)) ans = 1.2 This could cause disastrous results, e.g. when written to files ... Regards Stefan On 2014-08-02 22:35, Stefan Du Rietz wrote: With Scilab here, I mean Scilab 5.5.0

Re: [Scilab-users] printf bug?

2014-10-20 Thread Stefan Du Rietz
) ans = 1.2 S. Le 20/10/2014 17:48, Stefan Du Rietz a écrit : Hello, look here: --x = 1.2345 x = 1.2345 --msprintf(%0.1f, x) ans = 1,2 --string(0.1 * floor(10 * x)) ans = 1.2 This could cause disastrous results, e.g. when written to files ... Regards Stefan On 2014-08-02 22:35

Re: [Scilab-users] printf bug?

2014-10-21 Thread Stefan Du Rietz
which are defined with the format macro, i.e. you get the same output with --string(%pi) and --disp(%pi) So it is just a feature, not a bug :-D S. Le 20/10/2014 19:49, Stefan Du Rietz a écrit : But why the difference between msprintf() and string()? Stefan On 2014-10-20 18:19, Stéphane

Re: [Scilab-users] xpoly()

2014-11-20 Thread Stefan Du Rietz
On 2014-11-20 12:59, Antoine Monmayrant wrote: On 11/19/2014 06:39 PM, Stefan Du Rietz wrote: Hello, I have made quite an effort to write commands in numerous sci-files with the low level function xpoly() to avoid changes to the axes. But (surprise, surprise!), suddenly the low level function

Re: [Scilab-users] xpoly()

2014-12-03 Thread Stefan Du Rietz
On 2014-11-20 23:58, Samuel Gougeon wrote: Hello, Le 19/11/2014 18:39, Stefan Du Rietz a écrit : Hello, I have made quite an effort to write commands in numerous sci-files with the low level function xpoly() to avoid changes to the axes. But (surprise, surprise!), The fix of the bug 8956

Re: [Scilab-users] xpoly()

2014-12-04 Thread Stefan Du Rietz
Du Rietz wrote: On 2014-11-20 23:58, Samuel Gougeon wrote: Hello, Le 19/11/2014 18:39, Stefan Du Rietz a écrit : Hello, I have made quite an effort to write commands in numerous sci-files with the low level function xpoly() to avoid changes to the axes. But (surprise, surprise!), The fix

Re: [Scilab-users] qustion on functional argument

2015-04-20 Thread Stefan Du Rietz
You don't need find(). k = x1; Stefan On 2015-04-20 12:09, Frederic Jourdin wrote: I suggest something like this: function b=g(x) b= 1/x k= find( x1) b( k)= x( k) + 1 endfunction Fred Le 19/04/2015 17:57, fujimoto2005 a écrit : function b=g(x)if x1 then b=x+1

Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz
On 2015-05-13 12:47, Philipp Mühlmann wrote: / But my problem is:/ /1. I change only the x-axis in the axes a/ /2. I let Scilab set the position with a.title.auto_position=on/ /3. I change a.title_position(2)=new_vertical_position/ /4. unfortunately a.title_position(1) is not updated/ // I guess

Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz
)=new_vertical_position then the title gets the correct position: the automatic x value and the y value new_vertical_position. Calixte, please, that must be a bug? Best regards Stefan 2015-05-13 14:18 GMT+02:00 Stefan Du Rietz s...@durietz.se mailto:s...@durietz.se: On 2015-05-13 12:47

Re: [Scilab-users] Command lauch using a string

2015-05-15 Thread Stefan Du Rietz
On 2015-05-14 22:51, paul.carr...@free.fr wrote: Dear All, I've been thinking in creating a string in order to run specific instructions afterward (I'm under Windows OS for the moement); An example of my code: # A =

Re: [Scilab-users] Strange figure behaviour

2015-05-14 Thread Stefan Du Rietz
On 2015-05-14 19:00, Stefan Du Rietz wrote: On 2015-05-13 21:25, Samuel Gougeon wrote: Le 13/05/2015 13:54, Stefan Du Rietz a écrit : Thanks, but it changes the same axes wherever I click! I do not get this behavior with Scilab 5.5.2 on win7_x64. Only the clicked axes is rotated, whatever

Re: [Scilab-users] Strange figure behaviour

2015-05-14 Thread Stefan Du Rietz
On 2015-05-14 20:07, Samuel Gougeon wrote: Le 14/05/2015 19:11, Stefan Du Rietz a écrit : PS And who wants to rotate a 2d-plot (and in error)? If you really want that, you should have to do something! I rather agree. Interactive 3D rotation could be activated by default only for 3D viewed

Re: [Scilab-users] Windows shell command

2015-10-29 Thread Stefan Du Rietz
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

[Scilab-users] Windows shell command

2015-10-27 Thread Stefan Du Rietz
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

Re: [Scilab-users] Windows shell command

2015-10-28 Thread Stefan Du Rietz
? 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(

[Scilab-users] SciNotes disappeared

2016-04-11 Thread Stefan Du Rietz
Hello, suddenly I could not start SciNotes. Before, I had by mistake dragged a bin-file instead of a sci-file to the SciNotes window and it crashed. However, after a restart of SciNotes it worked for a while. But after a restart of Scilab: -->scinotes --> and nothing happens. What can I

Re: [Scilab-users] SciNotes disappeared

2016-04-11 Thread Stefan Du Rietz
. But why did it happen? Regards Stefan On 2016-04-11 14:01, Paul Bignier wrote: Hello, You may delete you SCIHOME folder, that way SciNotes' config will be renewed. Regards, Paul On 04/11/2016 12:46 PM, Stefan Du Rietz wrote: Hello, suddenly I could not start SciNotes. Before, I had by mistake

[Scilab-users] Cannot start Xcos

2016-08-11 Thread Stefan Du Rietz
Hello, how do I start Xcos for the first time ever? When I try from the menu: Applications - Xcos, I get this message: 8361 Tue Aug 9 21:14 ckobject(28);if with_module("xcos") then xcos(); else disp(gettext("Please install xcos module

Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Stefan Du Rietz
ferring. Can you please disable their autoload and try to launch Xcos? If it works, you may want to load them one by one until you can't relaunch Xcos ; that way we'll know which one is causing the trouble. Thank you, best regards, Paul On 08/12/2016 10:45 AM, Stefan Du Rietz wrote: Hello Paul

Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Stefan Du Rietz
Bignier wrote: You're welcome! I don't know what is in that loadsci.sci (sounds more like a .sce by the way) but if it is a personal file I'd start looking into it ;) Regards, Paul On 08/12/2016 03:06 PM, Stefan Du Rietz wrote: Paul, thank you very much for your help. Generally it is one's own

Re: [Scilab-users] Cannot start Xcos

2016-08-15 Thread Stefan Du Rietz
This line in my loadsci.sce is the culprit: r = input("usb2data? [n] ", "s"); The following lines don't matter. This must certainly be a bug? Regards Stefan On 2016-08-12 16:23, Stefan Du Rietz wrote: But why can I launch Xcos after running my loadsci.sce(!) if I hav

Re: [Scilab-users] Cannot start Xcos

2016-08-15 Thread Stefan Du Rietz
1. Launch Scilab 2. Do this -->input("Press Return!", "s") -->xcos() Regards Stefan On 2016-08-15 17:58, Stefan Du Rietz wrote: This line in my loadsci.sce is the culprit: r = input("usb2data? [n] ", "s"); The following lines don't matter.

Re: [Scilab-users] case control statement

2017-01-22 Thread Stefan Du Rietz
Hello Claus, you put the parentheses wrong: elseif or([model==3 model==4]) Regards Stefan On 2017-01-22 17:01, Claus Futtrup wrote: Hi there OK, so I converted to elseif (source code at the bottom of my post). Now Scilab complains like this: elseif or[(model==3) (model==4)] then

Re: [Scilab-users] Scilab 6.0.0

2017-02-22 Thread Stefan Du Rietz
I have 32-bit versions. Stefan On 2017-02-22 11:47, Stefan Du Rietz wrote: I agree! Regards Stefan On 2017-02-22 11:41, Lester Anderson wrote: Hi all, Just a general query, but has anyone noticed that it takes a lot longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)? Only

Re: [Scilab-users] Scilab 6.0.0

2017-02-22 Thread Stefan Du Rietz
I agree! Regards Stefan On 2017-02-22 11:41, Lester Anderson wrote: Hi all, Just a general query, but has anyone noticed that it takes a lot longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)? Only installed a little while ago, but 5.5.2 loads really promptly on a laptop with 4

[Scilab-users] Scilab 6.0.0, read()

2017-02-22 Thread Stefan Du Rietz
Hello, I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data with read() took almost half an hour. From toc() and mprintf(): Loading of data took 26 min 23 sec In Scilab 5.5.2 it took just over a second. From toc() and mprintf(): Loading of data took 1.219 sec. What

[Scilab-users] Scilab 6.0.0 cannot start

2017-02-19 Thread Stefan Du Rietz
Dear Scilab team, thank you very much for the new version! But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I get this message: "Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and third-party packages

Re: [Scilab-users] Scilab 6.0.0 cannot start

2017-02-23 Thread Stefan Du Rietz
or software setup); please describe what's specific in your setup and post the result of `[s,d]=getdebuginfo()` using Scilab 5.5.2. Thanks, -- Clément Le dimanche 19 février 2017 à 11:09 +0100, Stefan Du Rietz a écrit : Dear Scilab team, thank you very much for the new version! But when I try to start

Re: [Scilab-users] Scilab 6.0.0, read()

2017-02-22 Thread Stefan Du Rietz
you have a test script to try, see if the issue can be reproduced? Cheers Lester On 22 February 2017 at 10:15, Stefan Du Rietz <s...@durietz.se> wrote: Hello, I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data with read() took almost half an hour. From toc() and m

Re: [Scilab-users] Anonymous functions

2017-01-20 Thread Stefan Du Rietz
Hello Pierre, is this too simple? function outer() a = 1 function inner() mprintf("a = %i (inner: a has the value of the outer function)\n", a) a = resume(a); endfunction inner() mprintf("a = %i (outer: a has got its new inner value of 2\n", a) endfunction /Stefan On

Re: [Scilab-users] Anonymous functions

2017-01-20 Thread Stefan Du Rietz
Sorry, I left out a line below (a = 2;) Hello Pierre, is this too simple? function outer() a = 1 function inner() mprintf("a = %i (inner: a has the value of the outer function)\n",a) a = 2; a = resume(a); endfunction inner() mprintf("a = %i (outer: a has got its new inner

Re: [Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Stefan Du Rietz
Hello Jens, T = msprintf("%3i\n", N) Regards Stefan On 2016-08-28 16:17, Jens Simon Strom wrote: Hello, I try to transform the number colum N containing integer elements from 1 to 999, e. g. N=[1;11;111] into T=["1";"11";"111"]. I tried with commands like justify, repmat, string, size,

Re: [Scilab-users] Read matrix from text file

2017-03-20 Thread Stefan Du Rietz
Hello Frieder, have you tried just this? Koeffizienten_Pfad = uigetfile(["*.txt"],'',"Wählen Sie die Datei Koeffizienten"); B = read(Koeffizienten_Pfad,-1,4) Redards Stefan On 2017-03-20 17:26, Frieder Nikolaisen wrote: Hello, I do try to read a matrix of floating point numbers from a

  1   2   >