Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Stefan Du Rietz
Hello Jens, this line in your function or script returns its file name as you requested: [filepath,filename]=get_absolute_file_path(); Best regards Stefan On 2024-01-18 11:42, Jens Simon Strom wrote: Hi, I look for a command which -- as part of a script -- returns a string containing the

Re: [Scilab-users] Get filename by script command

2024-01-18 Thread Stefan Du Rietz
Hi Jens, this line in your function or script gives the filename as you requested: [filepath,filename]=get_absolute_file_path(); Regards Stefan On 18/01/2024 11.42, Jens Simon Strom wrote: Hi, I look for a command which -- as part of a script -- returns a string containing the file name

Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-15 Thread Stefan Du Rietz
On a laptop computer of mine with Intel (8:th gen.) integrated graphics, the environment variable _JAVA_OPTIONS="-Djogl.disable.openglcore" makes some lines in a plot wrongly drawn, but LIBGL_ALWAYS_SOFTWARE=1 makes them correct. Stefan On 14/10/2023 13.50, Samuel Enibe wrote: This has been

Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-14 Thread Stefan Du Rietz
The strange thing is that at the moment, after $ sudo apt update && sudo apt upgrade the plotting works without setting a new environment variable! However, when I start Scilab from the command line, lots of Java errors are still reported. Stefan On 14/10/2023 13.50, Samuel Enibe wrote:

Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-14 Thread Stefan Du Rietz
or it is a normal situation to have to tweak the desktop file? So far I haven't had this kind of problem with other programs using graphic capabilities. Thank you again. Regards. Federico On 13/10/2023 19:45, Stefan Du Rietz wrote: Hello Federico, I had to set an environment variable in my desktop

Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-13 Thread Stefan Du Rietz
Hello Federico, I had to set an environment variable in my desktop file: Exec=env LIBGL_ALWAYS_SOFTWARE=1 /usr/local/scilab/scilab-2023.1.0/bin/scilab Regards Stefan On 13/10/2023 22.10, Federico Miyara wrote: Dear All, I'm trying to use Scilab on Linux Mint 21.2 (which is similar to or

Re: [Scilab-users] Basic query - mprintf

2023-01-11 Thread Stefan Du Rietz
On 2023-01-11 00:11, Samuel Gougeon wrote: Le 07/04/2022 à 09:50, Lester Anderson a écrit : Hello all, Very basic query but how do you print all the values from a result via mprintf? e.g. fac = factor(1729) 7 13 19 mprintf('Factors of 1729 are: %d\n', fac) just prints 'Factors of 1729

Re: [Scilab-users] Long delay before callback

2022-09-22 Thread Stefan Du Rietz
ot;,"slider",... "units","normalized",... "position",[0.1 0 0.9 0.05],... "background",[1 1 1],... "min",t(1),"max",t($),"sliderstep",(t(2)-t(1))*[1 1]); but=uicontrol("style","pushbutton",..

Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stefan Du Rietz
Hi, thanks. Yes, but it doesn't seem to make much difference. And I don't exactly understand the different options. Stefan On 2022-09-20 12:03, Stéphane Mottelet wrote: Hi, Did you try to play wth callback_type (interruptible or not) ? Le 20/09/2022 à 10:48, Stefan Du Rietz a écrit

Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stefan Du Rietz
Stefan On 2022-09-19 08:45, Stéphane Mottelet wrote: Hello Stefan, Can you  give a minimal and reproductible example ? S. Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit : Hello, I have a problem with GUI: when I choose a menu or press a button, sometimes it takes half a minute before

[Scilab-users] Long delay before callback

2022-09-18 Thread Stefan Du Rietz
Hello, I have a problem with GUI: when I choose a menu or press a button, sometimes it takes half a minute before the callback starts. Scilab is then using 100% of CPU, according to Bash top. I suppose it has something to do with Java? What can I do? --> ver ans = "Scilab Version: "

Re: [Scilab-users] Is this behavior of ifft / isreal correct?

2022-04-07 Thread Stefan Du Rietz
Hello Federico, --> isreal(%i^2, %eps) ans = T --> %i^2 == -1 ans = T Regards Stefan On 2022-04-07 05:24, Federico Miyara wrote: Dear all, Consider M = 16 w = [ones(1,M/4),zeros(1,M/4)] w = [w(1:M/2), 0, conj(w($:-1:2))] v = ifft(w) isreal(v) The first 3 lines defines a real

Re: [Scilab-users] Cannot start Scilab 6.1.1

2022-03-30 Thread Stefan Du Rietz
3, Stephane Mottelet wrote: Can you try, on the command line : _JAVA_OPTIONS="-Djogl.disable.openglarbcontext=1" ./bin/scilab & --- Stephane Mottelet Le 2022-03-29 21:43, Stefan Du Rietz a écrit : Hi Stéphane, Thank you very much, your command worked! $ sudo apt install

Re: [Scilab-users] Cannot start Scilab 6.1.1

2022-03-29 Thread Stefan Du Rietz
Hi Stéphane, Thank you very much, your command worked! $ sudo apt install libtinfo5 Then Scilab started OK, but with many messages: stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ ./bin/scilab & [1] 276737 stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ X Error of failed request: BadValue

[Scilab-users] Cannot start Scilab 6.1.1

2022-03-29 Thread Stefan Du Rietz
Hello all, I am trying to get Scilab 6.1.1 running in a new Computer (Xubuntu Linux 20-04, nVidia T-600 with proprietary driver) from scilab-6.1.1.bin.linux-x86_64.tar.gz in the same way as in another computer with the same OS but with Java 8, But when I try to start from the terminal:

Re: [Scilab-users] Scinotes background color

2022-01-25 Thread Stefan Du Rietz
, Stefan Du Rietz a écrit : Hello, with Scilab 6.1.1 and Linux (Ubuntu with XFCE) the background color in Scinotes turned grey, which makes almost all text unreadable. In Scinotes Preferences and in the Command window it is white. Is there anything I can do? Regards Stefan

[Scilab-users] Scinotes background color

2022-01-25 Thread Stefan Du Rietz
Hello, with Scilab 6.1.1 and Linux (Ubuntu with XFCE) the background color in Scinotes turned grey, which makes almost all text unreadable. In Scinotes Preferences and in the Command window it is white. Is there anything I can do? Regards Stefan

Re: [Scilab-users] xdel replaced by close()

2022-01-22 Thread Stefan Du Rietz
Hello, On 2022-01-21 23:54, Samuel Gougeon wrote: Hello Claus, Le 21/01/2022 à 20:58, Claus Futtrup a écrit : Hi Scilabers Today I tried to replace xdel(winsid()) in one of my scripts with close(winsid()) because Scilab shows a warning in the console: Warning: Feature xdel(...) is

Re: [Scilab-users] Scilab crashes on x_choose_modeless

2021-10-25 Thread Stefan Du Rietz
scilab.org/show_bug.cgi?id=14905 Thanks, Clément -Original Message- From: users On Behalf Of Stefan Du Rietz Sent: Monday, October 25, 2021 9:34 AM To: users@lists.scilab.org Subject: Re: [Scilab-users] Scilab crashes on x_choose_modeless Hello, I get the same result (nothing but the titl

Re: [Scilab-users] Scilab crashes on x_choose_modeless

2021-10-25 Thread Stefan Du Rietz
Hello, I get the same result (nothing but the title: "Scilab Choose Message") with Scilab 6.1.1 under Linux. And Scilab hangs ... Stefan On 2021-10-25 09:06, Stéphane Mottelet wrote: Hi, Let us see if someone reacts to/cares about  this message... S. Le 24/10/2021 à 22:58, P M a écrit :

Re: [Scilab-users] Messagebox - button pre-selection

2021-10-22 Thread Stefan Du Rietz
Sorry, I didn't read yor message to the end ... On 2021-10-22 14:18, Stefan Du Rietz wrote: Hello Philipp, you can change the button labels. Regards Stefan On 2021-10-22 12:56, P M wrote: Dear, in a messagebox: Is it possible to have a button other than the first one pre-selected? e.g

Re: [Scilab-users] datatips in multiple axes plot

2021-10-01 Thread Stefan Du Rietz
Sorry, I missed a "2": function y = yblu(yin) y = -1 + log10(yin)*2/3 endfunction Stefan On 2021-10-01 12:58, Stefan Du Rietz wrote: Hello David, if you don't need automatic scaling, you could use drawaxis() to get the second and third y-axis and then scale the y-data of t

Re: [Scilab-users] datatips in multiple axes plot

2021-10-01 Thread Stefan Du Rietz
Hello David, if you don't need automatic scaling, you could use drawaxis() to get the second and third y-axis and then scale the y-data of those lines to plot them in the first axes. In your figure: function y = yblu(yin) y = -1 + log10(yin)/3 endfunction function y = yred(yin) y = -1 +

Re: [Scilab-users] 6.1.1 startup error

2021-09-23 Thread Stefan Du Rietz
with Regards Samuel Le 22/09/2021 à 12:08, Stefan Du Rietz a écrit : Hello, when starting Scilab 6.1.1 with   $ /usr/local/scilab/scilab-6.1.1/bin/scilab I get the message: Startup execution:   loading initial environment at line

[Scilab-users] 6.1.1 startup error

2021-09-22 Thread Stefan Du Rietz
Hello, when starting Scilab 6.1.1 with $ /usr/local/scilab/scilab-6.1.1/bin/scilab I get the message: Startup execution: loading initial environment at line81 of function xmlGetValues ( /usr/local/scilab/scilab-6.1.1/share/scilab/modules/xml/macros/xmlGetValues.sci line 94 ) at

[Scilab-users] Remove a Scilab version in Ubuntu Linux

2021-09-22 Thread Stefan Du Rietz
Hello, can I remove the version 6.0.1 from the terminal with $ sudo rm -r /usr/local/scilab/scilab-6.1.0/ or is that not enough? Regards Stefan ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz
On 2021-08-15 15:54, Samuel Gougeon wrote: Le 15/08/2021 à 11:28, Lester Anderson a écrit : Hello Samuel, The size of ns (number of steps) and seq (sequence of values) are variable depending on the integer input, and this seems to be one issue. For this reason, seq must be a list, leading

Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz
, Stefan Du Rietz <mailto:s...@durietz.se>> wrote: Hello Lester, the problem is that seq in each loop is a vector of increasing length! Stefan On 2021-08-15 12:05, Lester Anderson wrote: > Hi Stefan, > > I did try that before, but got an error - &quo

Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz
Hello Lester, the problem is that seq in each loop is a vector of increasing length! Stefan On 2021-08-15 12:05, Lester Anderson wrote: Hi Stefan, I did try that before, but got an error - "Submatrix incorrectly defined" Lester On Sun, 15 Aug 2021 at 10:56, Stefan Du Rietz

Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz
On 2021-08-15 09:00, Lester Anderson wrote: Hello, Basic query. I have a simple code that applies the Collatz conjecture equation (3n+1) by running a function and then runs a loop over the values stored in prime (the first 8 Prime numbers): clear exec('collatz.sci',-1); prime =

Re: [Scilab-users] % instead of percent

2021-07-14 Thread Stefan Du Rietz
Hello Jens, by "%%" Stefan On 2021-07-14 16:55, Jens Simon Strom wrote: Hallo Scilab family, How can I replace /percen/t by the symbol % in the command printf('Change: %5.1f percent \n',5.0) ? I use  Version 6.1.0 Kind regards Jens ___ users

Re: [Scilab-users] Undocking windows

2021-06-25 Thread Stefan Du Rietz
Hello, Stéphane, thank you very much! Stefan On 2021-06-24 17:51, Stéphane Mottelet wrote: Le 24/06/2021 à 17:41, Stefan Du Rietz a écrit : On 2021-06-24 15:45, Stéphane Mottelet wrote: Le 24/06/2021 à 13:09, Stefan Du Rietz a écrit : Hello, yes, and to get the useful part

Re: [Scilab-users] Undocking windows

2021-06-24 Thread Stefan Du Rietz
On 2021-06-24 15:45, Stéphane Mottelet wrote: Le 24/06/2021 à 13:09, Stefan Du Rietz a écrit : Hello, yes, and to get the useful part of the window a little higher. The same without toolbars (that I never use). Isn't there a text-file with window settings somewhere? no But when I

Re: [Scilab-users] Undocking windows

2021-06-24 Thread Stefan Du Rietz
, Stéphane Mottelet wrote: Hi, Why do you need this feature ? I mean, do you need a kind off accessibility setting to prevent docking them by accident ? S. Le 18/06/2021 à 21:00, Stefan Du Rietz a écrit : On 2021-06-18 20:53, Samuel Gougeon wrote: Hello, Le 18/06/2021 à 18:28, Stefan Du Rietz

Re: [Scilab-users] Undocking windows

2021-06-18 Thread Stefan Du Rietz
On 2021-06-18 20:53, Samuel Gougeon wrote: Hello, Le 18/06/2021 à 18:28, Stefan Du Rietz a écrit : Hello, how can I make all my Scilab windows not dockable? And how can I get rid of the toolbars? I can do both with figure windows. Fine. So,  with "all your Scilab windows&quo

[Scilab-users] Undocking windows

2021-06-18 Thread Stefan Du Rietz
Hello, how can I make all my Scilab windows not dockable? And how can I get rid of the toolbars? I can do both with figure windows. Regards Stefan ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] callback delay

2020-10-21 Thread Stefan Du Rietz
On 2020-10-18 16:12, Stéphane Mottelet wrote: Hello, Did you try to play with the callback_property ? I think that making the callback interruptible or non interruptible may change things. S. Hello Stéphane, thanks for the proposition, which never concurred to me! But, since there is no

Re: [Scilab-users] callback delay

2020-10-19 Thread Stefan Du Rietz
On 2020-10-19 13:11, Stefan Du Rietz wrote: On 2020-10-18 19:34, Antoine Monmayrant wrote: On 18/10/2020 10:43, Stefan Du Rietz wrote: Hello Antoine, thank you very much for your replies, especially your hint about Java. The problem is that my GUI is rather complex with several levels

Re: [Scilab-users] callback delay

2020-10-19 Thread Stefan Du Rietz
On 2020-10-18 19:34, Antoine Monmayrant wrote: On 18/10/2020 10:43, Stefan Du Rietz wrote: Hello Antoine, thank you very much for your replies, especially your hint about Java. The problem is that my GUI is rather complex with several levels and the delay is not always happening. However

Re: [Scilab-users] callback delay

2020-10-18 Thread Stefan Du Rietz
for this bug... Antoine On 17/10/2020 21:00, Stefan Du Rietz wrote: Hello Stephane and Antoine, I tried to explain why I cannot. After I have pressed the button with the callback, I can see that it takes a long time until the toc() message from the start of myfunction arrives. I don't know how

Re: [Scilab-users] callback delay

2020-10-17 Thread Stefan Du Rietz
On 2020-10-17 17:10, Stéphane Mottelet wrote: Hello Stefan, Do you have a complete example using e.g. an uicontrol or else ? S. Le 17 oct. 2020 à 16:49, Stefan Du Rietz a écrit : Hello, in the latest version Scilab 6.1.0, I have noticed that sometimes there is a long delay before the execution

[Scilab-users] callback delay

2020-10-17 Thread Stefan Du Rietz
Hello, in the latest version Scilab 6.1.0, I have noticed that sometimes there is a long delay before the execution of a callback, If I try to measure it, e.g. by using tic() "callback","tic();myfunction()" and then, in the beginning of myfunction(), having disp(toc()) the time is

Re: [Scilab-users] Read file (.txt)

2020-09-13 Thread Stefan Du Rietz
On 2020-09-12 16:55, Stefan Du Rietz wrote: On 2020-09-12 00:06, Stefan Du Rietz wrote: On 2020-09-11 19:32, Samuel Gougeon wrote: Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit : Hello Samuel, read() never works OK with m = -1, see your own comment in Bug 15075! This prevented me from

Re: [Scilab-users] Read file (.txt)

2020-09-12 Thread Stefan Du Rietz
On 2020-09-12 00:06, Stefan Du Rietz wrote: On 2020-09-11 19:32, Samuel Gougeon wrote: Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit : Hello Samuel, read() never works OK with m = -1, see your own comment in Bug 15075! This prevented me from upgrading to Scilab 6 until I found out how

Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz
On 2020-09-11 19:32, Samuel Gougeon wrote: Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit : Hello Samuel, read() never works OK with m = -1, see your own comment in Bug 15075! This prevented me from upgrading to Scilab 6 until I found out how to do it with fscanfMat(). But then I had

Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz
Please replace my latest e-mail with this. Hello Samuel, read() never works OK with m = -1, see your own comment in Bug 15075! This prevented me from upgrading to Scilab 6 until I found out how to do it with fscanfMat(). But then I had to remove all blank lines in my files (which I had to

Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz
Hello Samuel, read() never works OK with m = -1, see your own comment in Bug 15075! This prevented me from upgrading to Scilab 6 until I found out how to do it with fscanfMat(). But then I had to remove all blank lines in my files (which I had to quickly find different parts of my data).

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
You don't *need* it, of course ;-) cafix is the handle of your axes from plot() which you got with gca(). You can then set the properties of it with the dot method. Stefan On 2020-08-08 23:33, Stefan Du Rietz wrote: Hello Fukashiimo, you don't nedd the last line! All is already done

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
Hello Fukashiimo, you don't nedd the last line! All is already done by the previous lines. Stefan On 2020-08-08 23:25, Fukashiimo wrote: Hello, Mr. Stefan, Thanks. plot (X,Y); cafix = gca(); cafix.tight_limits="on"; cafix.auto_scale="off"; cafix.data_bounds = [-0.5,-2;0.5,2];

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
That is if you want to change the data_ bounds each time (for very different data). I thought that was what you wanted. Otherwise you could use it only once after the first plot, or even before if you have no other figure open. (thanks Samuel!) On 2020-08-08 15:08, Stefan Du Rietz wrote

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
Hello, not before but after! Stefan On 2020-08-08 15:03, Fukashiimo wrote: Hello, Mr. Stefan, Thanks. Should we put following codes before each plot command? cafix = gca(); cafix.tight_limits="on"; cafix.auto_scale="off"; cafix.data_bounds = [-0.5,-2;0.5,2]; -- Sent from:

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
Sorry for a wrong letter in my previous mail! Hello Fukashiimo, 1. get the handle of your axes: --> cafix = gca(); 2. set the properties: --> cafix.tight_limits="on"; --> cafix.auto_scale="off"; --> cafix.data_bounds = [-0.5,-2;0.5,2]; Regards Stefan On 2020-08-08 12:15, Fukashiimo wrote:

Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
Hello, --> help data_bounds Regards Stefan On 2020-08-08 10:56, Fukashiimo wrote: Hello, I would like to define the Y Range of plot. Could you tell me the Scilibe code to realize this. If I use the plot command, Y range is automatically set by Scilab. I would like to set the Y range, e.g.

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz
On 2019-11-28 20:55, Samuel Gougeon wrote: Le 28/11/2019 à 17:47, Antoine Monmayrant a écrit : .../... Also, you should better use get(a, 'propertyName') or set(a, 'propertyName', value) instead of a.propertyName and a.propertyName=value in your callbacks. I have found that this latter

Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz
Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup a écrit: I think you can achieve what you want by setting ".visible='off'" for all the uicontrols you don't want to show initialy. You can then set ".visible='on'" after the first call to the callback (or at each call if you are lazy).

Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-12-04 Thread Stefan Du Rietz
Hello, J managed to resolve it by reinstalling Scilab with "Select components" "Graphic User Interface" "Java Runtime (...)" deselected!! Probably the already installed Java Runtime interfered? Regards Stefan On 2017-09-03 10:08, Stefan Du Rietz wrote:

Re: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux)

2017-12-04 Thread Stefan Du Rietz
Hello Antoine, I managed to fix this issue in Windows 7 (http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html) by reinstalling Scilab without Java. Regards Stefan On 2017-12-04 16:38, Antoine Monmayrant wrote: Hi all, Answering my own post: it was a graphic

Re: [Scilab-users] Scilab/XCos - recommendable Book

2017-10-05 Thread Stefan Du Rietz
On 2017-10-05 17:25, philippe wrote: Le 05/10/2017 à 12:58, Yves Rambi a écrit : Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos (introduction and further reading)? As a French speaker I read the book wrote by Yvon Degré and Serge Steer and I think it is very goog! It

Re: [Scilab-users] Print string matrix on console without exclamation marks

2017-10-05 Thread Stefan Du Rietz
Hello Jens, -->M = ['a','b';'c','d']; -->mprintf("%s %s\n", M) a b c d Regards Stefan On 2017-10-05 10:41, Jens Simon Strom wrote: Hi Scilab experts, How can I print a string matrix on the console without leading and trailing exlamation marks (!)? ['a','b';'c','d'] should simply be

Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-09-03 Thread Stefan Du Rietz
On 2017-09-02 21:39, Samuel Gougeon wrote: Le 02/09/2017 à 20:58, rlandersen a écrit : I still have the problem. Anyone found a solution for this? Please post. Does the console version run? It does not run the Java virtual Machine. This may make a difference in your case. If it does, then

Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-06-25 Thread Stefan Du Rietz
I have the same problem. I have uninstalled 6.0 and have then several times uninstalled Scilab 5.5.2, deleted SCIHOME and reinstalled Scilab 5.5.2, which worked before(!), to no avail ... /Stefan On 2017-06-25 19:21, rlandersen wrote: I have the same problem. When I try to launch Scilab I

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

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] 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] 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] 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] 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] 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-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-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

[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] 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] 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] 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

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] 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] 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] 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] 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] 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] 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-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] 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] 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

[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-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] 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

[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

  1   2   >