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

Stefan Du Rietz sdr at durietz.se
Sun Mar 17 20:35:44 CET 2013


-->y=(5*x)-1
  y  =
   - 11.  - 6.  - 1.    4.    9.

-->y>a
  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 operation like:
>
> a=7;  b=100;  x=[-2:1:2];  y=(5*x)-1;
> if  y>a  then  disp(b);
>      else  disp(y);
> end
>
> --> - 11.  - 6.  - 1.    4.    9.
>
> Last result (9) is wrong, it should be 100 (b). I fully understand
> that it's because of lack of my knowledge in programming but in few
> days I could not solve or even could not find any help. Because of
> that writing here.
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list