How to plot this function?

x(t) = exp(λt) for λ = −1, −2, −3, −4 and 0 ≤ t < 10 on the same graph.

回答 (1 件)

KSSV
KSSV 2022 年 3 月 26 日

0 投票

What have you attempted for this simple question?
  1. Read about linspace or :
  2. Read about exp
  3. Read about plot
  4. Read about hold on

1 件のコメント

Sam Chak
Sam Chak 2022 年 3 月 26 日
編集済み: Sam Chak 2022 年 3 月 26 日
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 Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2022 年 3 月 26 日

編集済み:

2022 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by