Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
hoe to assign a numerical value to a previously defined symbol?

Subject: hoe to assign a numerical value to a previously defined symbol?

From: Shishir Jaiswal

Date: 16 Feb, 2013 14:21:06

Message: 1 of 3

I am using 'sym' for defining a symbol in matlab. After some steps i want to assign a numerical value(basically a range of values) to that symbol in the same script file. But it is still treating that as a symbol..
How to do this ??

Subject: hoe to assign a numerical value to a previously defined symbol?

From: Steven_Lord

Date: 18 Feb, 2013 03:21:17

Message: 2 of 3



"Shishir Jaiswal" <shishirjaiswal_18@yahoo.com> wrote in message
news:kfo4ki$6o9$1@newscl01ah.mathworks.com...
> I am using 'sym' for defining a symbol in matlab. After some steps i want
> to assign a numerical value(basically a range of values) to that symbol in
> the same script file. But it is still treating that as a symbol..
> How to do this ??

Use the SUBS function.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: hoe to assign a numerical value to a previously defined symbol?

From: Shishir Jaiswal

Date: 18 Feb, 2013 08:29:07

Message: 3 of 3

"Steven_Lord" <slord@mathworks.com> wrote in message <kfs6nd$lgc$1@newscl01ah.mathworks.com>...
>
>
> "Shishir Jaiswal" <shishirjaiswal_18@yahoo.com> wrote in message
> news:kfo4ki$6o9$1@newscl01ah.mathworks.com...
> > I am using 'sym' for defining a symbol in matlab. After some steps i want
> > to assign a numerical value(basically a range of values) to that symbol in
> > the same script file. But it is still treating that as a symbol..
> > How to do this ??
>
> Use the SUBS function.
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com


Thank you Sir.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us