Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Symbolic seems to have an error

조회 수: 1 (최근 30일)
Stephen Wilkerson
Stephen Wilkerson 2020년 9월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
Two typos in my original post corrected
  댓글 수: 2
John D'Errico
John D'Errico 2020년 9월 11일
편집: John D'Errico 2020년 9월 11일
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 2020년 9월 11일
We'll do you have an answer?

답변 (3개)

Stephen Wilkerson
Stephen Wilkerson 2020년 9월 11일
Yes that's what I ended up doing.

Stephen Wilkerson
Stephen Wilkerson 2020년 9월 11일
Now I'm unsure how to delete the second post?

Paul
Paul 2020년 9월 11일
편집: Paul 2020년 9월 12일
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
  댓글 수: 1
Stephen Wilkerson
Stephen Wilkerson 2020년 9월 11일
Thank you

Community Treasure Hunt

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

Start Hunting!

Translated by