Feeds
已回答
Use eval function with strings containing if clauses and for loops
this example works, I believe you can figure out the rest: eval(char(sprintf('for i=1:2 i \n end ')))
Use eval function with strings containing if clauses and for loops
this example works, I believe you can figure out the rest: eval(char(sprintf('for i=1:2 i \n end ')))
8 years 前 | 0

