Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


dpb
Posts:
9,716
Registered:
6/7/07


Re: using "eval" with strings from a cell array
Posted:
Jul 22, 2013 1:14 PM


On 7/22/2013 10:43 AM, Jakob wrote: > for the next one to run into this problem here is the simple solution: > char( yourcell{} )
And generally the wiser choice in most cases is to not use "evil eval" at all...this just showed up in cssm w/ original question so no way to know if is a real need or not but most times it's something like a new user trying to "poof" variables into the workspace instead of using dynamic structure names or cell array indexing or even just subarrays.




