Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: convert string to scalar, Is it possible?
Replies: 5   Last Post: Feb 6, 2013 3:57 AM

Advanced Search

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

Posts: 1,266
Registered: 10/24/08
Re: convert string to scalar, Is it possible?
Posted: Feb 6, 2013 3:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"grega" wrote in message <ket2eg$6ss$1@newscl01ah.mathworks.com>...
> Hi All
>
> Say we have a string and a scalar value
> A = 'string';
> B = 2;
>
> Is it possible to make manipulation to assign the scalar value to the string, so that we get:
> string = 2;
>
> I did not manage it. Please, suggestions. Tnx


yes it is possible, but first of all, really think about why you want to do this?

help eval

~ Jos



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.