Error using plot Data must be numeric, datetime, duration or an array convertible to double.
135 visualizzazioni (ultimi 30 giorni)
WHY PLOT GIVE ME THIS ERROR???: Error using plot
Data must be numeric, datetime, duration or an array convertible to double.
syms s t
Gs=0.98/(s.^2 +0.5*s +0.49);
Ilya Gurin il 6 Gen 2022
Looks like plot can't handle symbolic variables. (Note that plotting anything requires you to specify the range of the independent variable, and you haven't done so anywhere in your code snippet.) fplot may work better for you.
Walter Roberson il 6 Gen 2022
You cannot plot that, at least not in any straight forward way
Just because you can construct an arbitrary transfer function does not mean that there is a known inverse laplace transform of it.
You cannot even do the simple part
Us = exp(s*50);
If you examine this, you will see that exp(s*50) is the transform for a delay of -50 (negative 50) -- but a delay of -50 is a forecast of what will happen 50 in the future, which you cannot do with laplace transform.