How to plot this function?
이전 댓글 표시
x(t) = exp(λt) for λ = −1, −2, −3, −4 and 0 ≤ t < 10 on the same graph.
답변 (1개)
KSSV
2022년 3월 26일
0 개 추천
What have you attempted for this simple question?
- Read about linspace or :
- Read about exp
- Read about plot
- Read about hold on
댓글 수: 1
One year ago, you already learned how to use plot() and hold on.
Maybe linspace() is new to you?
numEl = 1001; % number of elements
t = linspace(0, 10, numEl);
Without using the for loop repetition control structure, you can plot each signal separately. Since you know hold on, you can retain the current figure after plotting the 1st signal, and then continue creating plots for the rest. If you still have trouble doing this, let us know.




카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!