Re: [Scilab-users] linking (jumping) from line of code to an other

2017-05-15 Thread Frieder Nikolaisen
y experience writing software for the last 40 > years, that often the poor ignorant fool who has to maintain your > software is you, months or years down the road -- so it pays to make > your code readable. Nothing makes you feel dumber than not being able > to understand your own cod

Re: [Scilab-users] linking (jumping) from line of code to an other

2017-05-12 Thread Frieder Nikolaisen
The Solution is: Using whil: i = 1 a = 1 while i < 5 disp(i) a = a + 1 i = i +1 if a == 3 then i = i - 1 end end Am 2017-05-12 11:15, schrieb Frieder Nikolaisen: > Hello, > > another question to solve the locomotive stuff, giving you a example with the not im

[Scilab-users] linking (jumping) from line of code to an other

2017-05-12 Thread Frieder Nikolaisen
Hello, another question to solve the locomotive stuff, giving you a example with the not implented code. I don't want to code the same stuff twice. Thats why I want to jump between lines of code. Is this possible and how? P = 200; DM = 1; for n = 1:10 if DM == 1 then if P > 100 then DM

Re: [Scilab-users] Avoiding a loop

2017-05-12 Thread Frieder Nikolaisen
n your > P(n,2) * (P(n+1,1) - P(n,1)) term to find where the battery state of > charge (I assume that's what 'batt' is) hits 800. > > It'll be complicated. It'll be prone to error. Proving that it's > correct will be a pain. But when you get it working

Re: [Scilab-users] Avoiding a loop

2017-05-11 Thread Frieder Nikolaisen
0 at 17:23 +0200, Frieder Nikolaisen wrote: Hello, I did write an example code, but I do not like the time consuming way I solved the problem. With 50 000 lines in the matrix, it wouldn't be fun. How can I avoid using the for-loop? 10, 80; 11, 200 15, 0]; batt = 1000; ge

Re: [Scilab-users] Avoiding a loop

2017-05-10 Thread Frieder Nikolaisen
- P(n,2) * (P(n+1,1) - P(n,1)) end disp('n ' + string(n)) disp('batt ' + string(batt)) disp('gen ' + string(gen)) end Am 2017-05-10 17:23, schrieb Frieder Nikolaisen: > Hello, > > I did write an example code, but I do not like the time consuming way I

[Scilab-users] Avoiding a loop

2017-05-10 Thread Frieder Nikolaisen
Hello, I did write an example code, but I do not like the time consuming way I solved the problem. With 50 000 lines in the matrix, it wouldn't be fun. How can I avoid using the for-loop? 10, 80; 11, 200 15, 0]; batt = 1000; gen = 0; n = 1 for n=1:5 if P(n,2) > 100 then if batt > 800

Re: [Scilab-users] applying a function to each element

2017-05-10 Thread Frieder Nikolaisen
Hello Samuel, thanks a lot. It works fine. Best regards Frieder Am 2017-05-10 13:33, schrieb sgoug...@free.fr: > Hello Frieder, > > max(A,B) does it: > --> max(A,B) > ans = > 3. > 3. > 2. > > Samuel > > - Mail original - > > Hello, > > I have to matrices: A = [ 1 ; 2 ; 2 ]

[Scilab-users] applying a function to each element

2017-05-10 Thread Frieder Nikolaisen
Hello, I have to matrices: A = [1; 2; 2] B = [3; 3; 1] I looking for get matric with having only the larger Elemtns: C = [3; 3; 2] Is there function to make to apply functions to eacth element. C = [ if A .> B then A else B] elemtwise. A for loop is to slow. Thanks a lot. Cheers

Re: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0

2017-05-04 Thread Frieder Nikolaisen
t; > Antoine > > Le 04/05/2017 à 09:13, Frieder Nikolaisen a écrit : > >> Dear Community, >> >> I am using the GUI Builder again (last time Oktobre 2016), now with Scilab 6.0.0. >> >> I started to Design the interface, generated the GUI. Had the GUI

Re: [Scilab-users] GUI Builder 4.0.1 for Scilab 6.0

2017-05-04 Thread Frieder Nikolaisen
I restarted the project with the GUI Builder 3.0 for Scilab 5.5. To now, it runs normal. I attach the working file. I do not understand the trouble. I had other problems yesterday, with both versions. Hopefully it runs now stable. Am 2017-05-04 09:13, schrieb Frieder Nikolaisen: > D

[Scilab-users] GUI Builder 4.0.1 for Scilab 6.0

2017-05-04 Thread Frieder Nikolaisen
Dear Community, I am using the GUI Builder again (last time Oktobre 2016), now with Scilab 6.0.0. I started to Design the interface, generated the GUI. Had the GUI run and wanted to reload it. But: --> guibuilder operation -: Warning adding a matrix with the empty matrix will give an empty

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

2017-03-21 Thread Frieder Nikolaisen
s with the Scilab help. Greetings Frieder Am 2017-03-20 17:53, schrieb Tim Wescott: > On Mon, 2017-03-20 at 17:26 +0100, Frieder Nikolaisen wrote: > >> Hello, I do try to read a matrix of floating point numbers from a text file. I want to have floating point numbers in Sciliab. (I

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

2017-03-20 Thread Frieder Nikolaisen
Am 20.03.2017 um 18:30 schrieb Osvaldo Sergio Farhat de Carvalho: Hi Frieder, Try Koeffizienten_Pfad = uigetfile(["*.txt"],'',"Wählen Sie die Datei Koeffizienten"); m = fscanfMat(Koeffizienten_Pfad) disp(B) Regards, Osvaldo -"users" escre

[Scilab-users] Read matrix from text file

2017-03-20 Thread Frieder Nikolaisen
Hello, I do try to read a matrix of floating point numbers from a text file. I want to have floating point numbers in Sciliab. (I used before mgetl which return strings). I have attached the example text file and scilab file. The error it says is: read: Wrong number of output argument(s): 0

[Scilab-users] Fwd: Re: Fwd: plotxxyyy

2016-10-13 Thread Frieder Nikolaisen
ng(M(m))) >> end >> >> "How can I move the lettering above the plot (or at least to the bottom, next to the x-axis)?" By data_bounds (see axes_properties in the help pages) you can enlarge the y-axis beyond the y data span at will. The y-level of the lettering is con

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-12 Thread Frieder Nikolaisen
ettering above the plot (or at least to the bottom, next to the x-axis)?" By data_bounds (see axes_properties in the help pages) you can enlarge the y-axis beyond the y data span at will. The y-level of the lettering is controlled by the input variable 'ybase' (see code above). >&g

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-12 Thread Frieder Nikolaisen
--------- > > Am 12.10.2016 10:52, schrieb Frieder Nikolaisen: > >> Hello, >> >> thank you for all the feedback and help. It's really great. >> >> I used the idea of Jens S

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-12 Thread Frieder Nikolaisen
Hello, thank you for all the feedback and help. It's really great. I used the idea of Jens Simon Strom combined with some help from last week: //Datensätze x1 = (A(:,1) - A(1,1)) * 24 * 3600; y1 = A(:,y_1); y2 = A(:,y_2); y3 = A(:,y_3); drawlater() subplot(3, 1, 1) co = color("green");

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-11 Thread Frieder Nikolaisen
dd a x-axis by using subplot?_" and your last example, > > Couldn't you add a 4th subplot at the bottom in order to plot the 2ndx-axis (say by plotting only zeros)? > > Regards, > > Rafael > > FROM: users [mailto:users-boun...@lists.scilab.org [1]] ON BEHAL

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-11 Thread Frieder Nikolaisen
x3 axis, since it is on the right side // create 2nd x-axis a4 = newaxes(); c=color("black"); a4.font_color=c; a4.foreground=c; plot2d(x2, fake_y,c); // for fake_y = 0 creates a line on the x2-axis // therefore the fake data are not visible a4.children.children.visible = off; // hide fak

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-10 Thread Frieder Nikolaisen
are not visible a4.children.children.visible = off; // hide fake graph if nesessary to only show the axes a4.data_bounds = [min(x2),0;max(x2),1]; a4.axes_visible(2)="off"; a4.filled="off"; a4.x_location="bottom"; a4.margins = [0.2 0.2 0.2 0.1]; drawnow() 2016-10-09

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-08 Thread Frieder Nikolaisen
Dear Philipp, thank you, thats great. I will try it at work on monday. Actually, I do have three plots sharing a common x axis and having three different y axis. Why I do want to have two x axis is, to show to different times on x. Once in secound, once in line of document. Best regards Fri

Re: [Scilab-users] [EXTERNAL] !--error 21

2016-10-06 Thread Frieder Nikolaisen
this code, but earlier in the program. Regards Am 06.10.2016 15:27, schrieb Clément David: Hallo Frieder, Most of this ML readers / writers are not german speaker, could you please use english next time ? Thanks, -- Clément Le jeudi 06 octobre 2016 à 15:18 +0200, Frieder Nikolaisen a écri

Re: [Scilab-users] [EXTERNAL] !--error 21

2016-10-06 Thread Frieder Nikolaisen
(''), c=c, sizeA=size(A) before the problem line if A(c-1,3)==0 then and you will see what happens there. Regards Jens --- Am 06.10.2016 08:29, schrieb Frieder Nikolaisen: With the real Code, it's more difficult to predict the first c. Tha

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-06 Thread Frieder Nikolaisen
na.axes_visible(1)="off"; // Masking the x axis (useless overlay) na.y_location="right"; // Y axis on the right side na.children(1).children(1).thickness=2; // Curve thickness //Secound x axis, by Frieder Nikolaisen supported by Jen

Re: [Scilab-users] [EXTERNAL] !--error 21

2016-10-05 Thread Frieder Nikolaisen
1,3) If c = 1 then A(0,3) that is not possible since the index start to 1 ... no ? -Message d'origine- De : users [mailto:users-boun...@lists.scilab.org] De la part de Frieder Nikolaisen Envoyé : jeudi 6 octobre 2016 08:18 À : Users mailing list for Scilab Objet : [EXTERNAL]

[Scilab-users] !--error 21

2016-10-05 Thread Frieder Nikolaisen
Hello everybody, I do have a code, I cannot find the mistake. I get the error: "if A(c-1,3)==0 then !--error 21 ungültiger Index. at line 11 of exec file called by : exec('M:\CAD\Abteilungen\Praktikanten\Nikolaisen, Frieder\Fahrdaten\Testprogramm\Archive\test2.sce', -1)

Re: [Scilab-users] Fwd: plotxxyyy

2016-10-03 Thread Frieder Nikolaisen
#x27;P in MW' oder 'P [MW]'. I think the diagram would look quite nice. Regards Jens ------- Am 30.09.2016 13:23, schrieb Frieder Nikolaisen: Dear Jens, there is not much to be confused about. I have attached my Diagramms wi

Re: [Scilab-users] Fwd: plotxxyyy

2016-09-30 Thread Frieder Nikolaisen
t you plan to plot. Regards Jens Am 30.09.2016 11:27, schrieb Frieder Nikolaisen: I did forgott one Point: My data Looks like: Drehzahl Cv-DruckRichtungLokbremse anlegen Lokbremse lösenZugbrem

[Scilab-users] Fwd: plotxxyyy

2016-09-30 Thread Frieder Nikolaisen
0.000 0 1 0 1 0 0 ... For beeing used in a secound Programm. Best regards Originalnachricht Betreff: [Scilab-users] plotxxyyy Datum: 30.09.2016 11:17 Absender: Frieder Nikolaisen Empfänger: Users mailing list for Scilab Antwort an: Users

[Scilab-users] plotxxyyy

2016-09-30 Thread Frieder Nikolaisen
quot; Best regards Frieder Nikolaisen The minimal Code: //Write your callback for Diagramm here A=rand(15,50) //Dieser Code und geistiges Eigentum von Samuel GOUGEON wird geändert und angepasst von Frieder Nikolaisen (FN), bleibt in seinen Grundzügen jedoch erhalten // Scilab ( h

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread Frieder Nikolaisen
Thank you. Am 28.09.2016 12:35, schrieb sgoug...@free.fr: Hello, I did attach a plot, now 20kB, of a pump from an old exam. The plot does provide SI dimensions as well as US ones. Thats why there are three x-axis and two y-axis. For this kind of case where * you want different axes _for t

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-28 Thread Frieder Nikolaisen
e are three x-axis and two y-axis. Best regards Frieder Nikolaisen Am 26.09.2016 18:29, schrieb sgoug...@free.fr: De: "Frieder Nikolaisen" .../... I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the Demos? no. To get and use the demos manager, you

Re: [Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread Frieder Nikolaisen
my field of engineering. Best Regards, Frieder Nikolaisen Am 26.09.2016 14:18, schrieb sgoug...@free.fr: Hello, De: "Frieder Nikolaisen" Envoyé: Lundi 26 Septembre 2016 13:27:35 Objet: [Scilab-users] Plot with two different y-axis as one plot Dear Sir or Madam, I want to print a

[Scilab-users] Plot with two different y-axis as one plot

2016-09-26 Thread Frieder Nikolaisen
legend("Drehzahl",1) I would even like to have four y-axis, two of both sides in the same Color as the graph. How to do this? Best regards Frieder Nikolaisen ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users