Re: [Scilab-users] {EXT} Scilab 6's plot2d displays %nan on the horizontal line in the mid-range of vertical axis

2017-05-24 Thread CRETE Denis
Hello Christophe,
Thank you for trying also the function "plot" instead of "plot2d". 
On Scilab 6, on a Linux platform, I have the same result for both functions = 
they both plot a number of points equal to size(x,'*'), with guessed values for 
Yk when Yk is %nan... 
Code:
 X=1:5;
 Y=X.^2;
 Y(3)=%nan;
 plot(X',Y');
 plot2d(X',Y',style=3);
 // cf. figures; Parabole_nan.png is generated by "plot", and 
Parabole_2d_nan.png is generated by "plot2d".

I did not install Scilab 6 on Windows yet. When this is done, I'll give it a 
try.
Best regards
Denis
  
-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de Dang Ngoc 
Chan, Christophe
Envoyé : mercredi 17 mai 2017 15:25
À : Users mailing list for Scilab
Objet : Re: [Scilab-users] {EXT} Scilab 6's plot2d displays %nan on the 
horizontal line in the mid-range of vertical axis

Hello Denis,

> De  CRETE Denis
> Envoyé : mercredi 17 mai 2017 14:20
>
> If %nan values are in the Y vector,
> plot2d behaves as if the following was performed before display:
> Y (isnan(Y))=(YM + Ym)/2

I'm not sure I understand what you're pointing out.

The following code works exactly as I expect:

--

x = 1:5;

y=x.^2;

y(3)=%nan;

plot(x, y)

--

i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4.

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] !--error 10000

2017-05-24 Thread marcus scilab
Hello,

i get this error message:

  !--error 1 
%st_e: Wrong value for input argument #1: not a valid field name.
at line  39 of function %st_e called by :  
at line 219 of function push_calc_callback called by :  
ect(23472);push_calc_callback(handles);if exists("%oldgcbo") then gcbo = %ol
while executing a callback

i am trying to get my the entry of an edit field in GUI with
get(handles.obj1,'String').
I am using this code line earlier in my code and it works fine.
Now later in the code for an other edit field it gives me this error.
Any suggestions what i've done wrong?
Thank you!



--
View this message in context: 
http://mailinglists.scilab.org/error-1-tp4036440.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] GUI

2017-05-24 Thread marcus scilab
Hello,
I have 2 GUI's. now i want to open the 2nd GUI with a push button on the
first GUI.
I tried opening it with the exec('C') command. But when I do it like
this, i can't set or get values out of edit buttons.
So how can I call my 2nd GUI with the push button and all its handles files?
Thanks for your help!



--
View this message in context: http://mailinglists.scilab.org/GUI-tp4036438.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users