[Scilab-users] varialble and string

jbaudais@insa-rennes.fr Jean-Yves.Baudais at insa-rennes.fr
Fri Oct 30 13:03:32 CET 2015


Hello,

I use multiple variables with names given in a matrix, or vector

 > x=["a","b","c","d","e"];

I can easily use the variable with the function eval in math expression

 > 2*eval(x(1))+1

But if I want

 > a=1;

How can I do this using the vector x only? I try

 > execstr("x(1)=1")

but the answer is "Pas encore implémenté dans Scilab...", with Scilab 5.3.3.

Thanks,

Jean-Yves



More information about the users mailing list