generation function by function call
alex G
alx4t1 at gmail.com
Mon Aug 29 11:12:55 CEST 2011
Sorry for my english, i'm beginner in english ...
Hello,
I wish convert a string to a function when I press a button graphic. For
that, I call a function when pressing the button.
I don't have a function in out of my call, why ?
Here is an excerpt of the code I use:
//on souhaite transformer une chaine de caractère en fonction
co=['4*x(1)+3(2)'];
function re()
if(isempty(co(1))==%F) then
function [y]=C1(x)
y=evstr(co(1))
return(evstr(co(1)))
endfunction
else
function [y]=C1(x)
y=0;
endfunction
end;
endfunction
--
View this message in context: http://mailinglists.scilab.org/generation-function-by-function-call-tp3292242p3292242.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list