late nite Matlab help!

Omegachi

Diamond Member
Mar 27, 2001
3,922
0
76
okay, i am trying to use the the step() function to find the step response of this equation

syms c l s r;
num = (s*l + (1/(s*c)) + r)
den = r

step(num,den)


for some reason i am getting a error message when i try to solve that:

??? sym c;
|
Error: Missing operator, comma, or semicolon.



what is going on?
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
i believe matlab must have the symbolic math toolbox in order for that to work.... if you have a non-student version that it might not have that toolbox. *shrug* that's just what i glean from some pages i found on google...

i get the same error for what it is worth...
 

Triumph

Lifer
Oct 9, 1999
15,031
14
81
first off, did you try "help step"? my matlab is a little rusty, but go ahead and create a transfer function and then use the step function. that might work.