Hello all,
I'm having trouble trying to reproduce my instructor plot, but I can't seem to get the right plot. This is what I have right now:
t=linspace(-2,2);
i_p=(-30/13)*cos(60*t)+(45/13)*sin(60*t)+(160/17)*cos(40*t)-(40/17)*sin(40*t);
plot(t,i_p)
grid on
title('LRC Steady-State')
xlabel('Time(t)')
ylabel('Current(i)')
And here is what I have for my plot:
And here is what my instructors plot looks like:
At this moment, I'm lost and can't seem to reproduce the plot. Any help would be great. Thanks in advance.

 채택된 답변

Akira Agata
Akira Agata 2017년 8월 3일

0 개 추천

This is due to the low sampling speed. Please try to use much higher sampling rate, like:
t=linspace(-2,2,2000);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2017년 8월 3일

댓글:

2017년 8월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by