The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: using "eval" with strings from a cell array
Replies: 6   Last Post: Nov 29, 2016 11:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: using "eval" with strings from a cell array
Posted: Jul 22, 2013 1:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 cs-sm 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.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.