[Scilab-users] Plots on second Y axis
Dang Ngoc Chan, Christophe
Christophe.Dang at sidel.com
Tue Mar 28 10:45:07 CEST 2017
Hello,
Thanks for sharing.
Just a general comment:
> De : mathias_magdowski
> Envoyé : mardi 28 mars 2017 09:52
>
> while 1
> if distance>10 then
> [...]
> elseif distance<1 then
>[... ]
> else
> // exit loop
> break;
> end
> end
I can admit that break() can spare a lot of unnecessary code lines.
Nevertheless, I think it should be avoided when unnecessary and would recommend something like:
// **********
testvalue = %t;
while testvalue
if distance>10 then
[...]
elseif distance<1 then
[...]
else
testvalue = %f;
end
end
// **********
Regards
--
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.
More information about the users
mailing list