[SOLVED](adsbygoogle = window.adsbygoogle || []).push({});

I am getting this error when I try to run the code (at bottom):

check =

1

??? Undefined function or method 'gt' for input arguments of

type 'sym'.

Error in ==> hw at 15

if check > 10

The value "check" seems to be a real value, not symbolic. It outputs a value of 1 in the terminal. Can anyone help me resolve this problem?

CODE:

clear all

syms z p x;

z = -10;

p = 0;

while p <20

while z < 20

G1 = tf([1 z],[1 p]);

X1 = (x+z)/(x+p);

G2 = tf([1],[1 2.5 1]);

X2 = (1/(x^2+2.5*x+1));

TF = G1*G2/(1+G1*G2);

XF = X1*X2/(1+X1*X2);

z = z + .1;

check = limit(XF,x,0)

if check > 10

[Wn,Z] = damp(TF)

z

p

end

end

p = p+.1;

end

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB symbolic function shouldn't be symbolic

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for MATLAB symbolic function | Date |
---|---|

Python How can I run Python by getting values from Matlab | Mar 7, 2018 |

What is each step of this Matlab program doing? | Feb 21, 2018 |

C/++/# Help with MATLAB code? | Feb 9, 2018 |

Numerical Integration with variable limits MATLAB | Jan 15, 2018 |

Symbolic calculations in MATLAB | Nov 21, 2017 |

**Physics Forums - The Fusion of Science and Community**