On 30-Mar-2008, Stefan Pofahl wrote:
| eval (sprintf ([nameofvariable, "= ", num2str(numberoffruits, "%i")]));
Since you're using sprintf anyway, you can simplify this to be
eval (sprintf ("nameofvariable = %d", numberoffruits"));
but I think it is generally best to avoid generating new variables
with eval.
jwe