[Scilab-users] converting a variable name into a string

christophk christoph.knappe at gmail.com
Tue Dec 6 14:43:25 CET 2016


Ok here is another question for the Scilab experts around.
Is there a way to convert the name of a variable into a string in Scilab?

Lets say, I have:
//START OF CODE
s = 2;

//then:
string(s) // returns "2"
//is there a function f with f(s) == "s" ??
//END OF CODE


Searched the web, but could only find a solution for Matlab:
https://se.mathworks.com/matlabcentral/newsreader/view_thread/251347



--
View this message in context: http://mailinglists.scilab.org/converting-a-variable-name-into-a-string-tp4035182.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list