Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Symbolic seems to have an error

1 Ansicht (letzte 30 Tage)
Stephen Wilkerson
Stephen Wilkerson am 11 Sep. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Two typos in my original post corrected
  2 Kommentare
John D'Errico
John D'Errico am 11 Sep. 2020
Bearbeitet: John D'Errico am 11 Sep. 2020
Then why did you feel the need to post it again? Just edit your original post. Anyway, it seems like everytime you don't understand a piece of code, you declare it to be a bug.
Stephen Wilkerson
Stephen Wilkerson am 11 Sep. 2020
We'll do you have an answer?

Antworten (3)

Stephen Wilkerson
Stephen Wilkerson am 11 Sep. 2020
Yes that's what I ended up doing.

Stephen Wilkerson
Stephen Wilkerson am 11 Sep. 2020
Now I'm unsure how to delete the second post?

Paul
Paul am 11 Sep. 2020
Bearbeitet: Paul am 12 Sep. 2020
The RHS of your differential equation should be 3*u.
In the frequency domain, Y(s) = H(s)*U(s). It looks like you're trying to get the step repsonse of your second order system, so U(s) = 1/s. You forgot to multiply by U(s) in your symbolic approach.
num = 3;
den = [1 2 5];
syms s
nums = poly2sym(num,s);
dens = poly2sym(conv(den,[1 0]),s); % here!
ilaplace(nums/dens)
ans =
3/5 - (3*exp(-t)*(cos(2*t) + sin(2*t)/2))/5

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by