필터 지우기
필터 지우기

How to plot for for a range? showing error

조회 수: 1 (최근 30일)
Shauvik Das
Shauvik Das 2019년 12월 1일
편집: Bhaskar R 2019년 12월 1일

채택된 답변

Bhaskar R
Bhaskar R 2019년 12월 1일
편집: Bhaskar R 2019년 12월 1일
Your code
t = 0:0.001:1;
D = (117649*exp(4*t))/6561- (117649*exp(4*t))/26244 - (117649*t.^2.*exp(4*t))/4374 - ...
(117649*t.^3.*exp(4*t))/8748 - (117649*t.^4.*exp(4*t))/46656;
plot(t, D);

추가 답변 (1개)

Vladimir Sovkov
Vladimir Sovkov 2019년 12월 1일
Probably, t^2 and t^4 are implyed to be t.^2 and t.^4.
And all the multiplications of the expressions containing t are implyed to be .* but not just *
This is if you want to do the element-wise operations (as it looks to be) but not the algebraic matrix operations.
  댓글 수: 1
Bhaskar R
Bhaskar R 2019년 12월 1일
편집: Bhaskar R 2019년 12월 1일
Don't make your comment in answer section and code should not be in image

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by