[Scilab-users] Protecting a new variable by using predef()

A Khorshidi akhorshidi at live.com
Wed Aug 28 09:50:58 CEST 2013


Hi;

the help says: "predef(n) sets the max(n,7) last defined variables as
protected" 
So, predef(n) doesn't protect my new defined variables. In fact this syntax
is equivalent to predef('clear') ! 

-->predef()
 ans  =
 
    75.  
 
-->a1=1;a2=2;a3=3;a4=4;
 
-->predef(4)
 ans  =
 
    75.    13.  



So my question is, how to protect only one variable? for example "a1"

Merci
Mehran




--
View this message in context: http://mailinglists.scilab.org/Protecting-a-new-variable-by-using-predef-tp4027293.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list