Thread Subject: symbolic to double transfer function.

Subject: symbolic to double transfer function.

From: Mohammad salehizadeh

Date: 19 Sep, 2011 22:11:29

Message: 1 of 2

Help needed!!!

I have a symbolic function based on symbolic variable 's' , for example:

f=1/(s+1)

f is a symbolic function of s.

Now I wanna manipulate f numerically, I do not know which command can help me:


when I use double(f) it gives out this error:

??? Error using ==> sym.double
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use the VPA function instead.


Any help on how to convert it to double tranfer function is very appreciated...

Bets,
MS

Subject: symbolic to double transfer function.

From: Nasser M. Abbasi

Date: 20 Sep, 2011 03:21:12

Message: 2 of 2

On 9/19/2011 3:11 PM, Mohammad Salehizadeh wrote:
> Help needed!!!
>
> I have a symbolic function based on symbolic variable 's' , for example:
>
> f=1/(s+1)
>
> f is a symbolic function of s.
>
> Now I wanna manipulate f numerically, I do not know which command can help me:
>
>
> when I use double(f) it gives out this error:
>
> ??? Error using ==> sym.double
> DOUBLE cannot convert the input expression into a double array.
> If the input expression contains a symbolic variable, use the VPA function instead.
>
>
> Any help on how to convert it to double tranfer function is very appreciated...
>
> Bets,
> MS

try subs:

EDU>> syms s
EDU>> f=1/(1+s)
  
1/(s + 1)
  
EDU>> s=1
EDU>> subs(f)

     0.5000

EDU>> s=5
EDU>> subs(f)

     0.1667

--Nasser

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
symbolic Mohammad Salehizadeh 19 Sep, 2011 18:14:30
double Mohammad Salehizadeh 19 Sep, 2011 18:14:30
transfer function Mohammad Salehizadeh 19 Sep, 2011 18:14:30
rssFeed for this Thread

Contact us at files@mathworks.com