2. If the current in 3 mF capacitor is i(t) = e ^ t * sin 3t. Plot a graph of the current vs time. Is it true this coding for this question?
조회 수: 2 (최근 30일)
이전 댓글 표시
clear; clc;
t=0:10; f=exp(t).*sin(3*t); diff (f) c=0.003; I=c*diff(f);
figure; plot(1:10,I); grid; xlabel('time'); ylabel('current'); title('current vs time');
댓글 수: 1
David Goodmanson
2022년 5월 16일
Hi Muhammed, they are providing a current and asking you to plot it. No need for diff.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!