フィルターのクリア

Compare the graphs of 𝐬𝐢𝐧 𝒕 and 𝐜𝐨𝐬 𝒕 on the same plot, where the time 𝑡 starts from 0 and ends at 4π, with an increment of T/100.

1 回表示 (過去 30 日間)
Lana
Lana 2023 年 10 月 23 日
回答済み: Sulaymon Eshkabilov 2023 年 10 月 23 日
Compare the graphs of 𝐬𝐢𝐧 𝒕 and 𝐜𝐨𝐬 𝒕 on the same plot, where the time 𝑡 starts from 0 and ends at 4π, with an increment of T/100.
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 23 日
This looks like awfully like a homework assignment, please show us what you have attempted yet.
Sam Chak
Sam Chak 2023 年 10 月 23 日
Not exactly sure what aspect you are trying to compare the sine and cosine waves. Maybe the phase?
%% Two sinusoids on the same plot

サインインしてコメントする。

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 10 月 23 日
You can use a few different MATLAB built-in fcns to get this exercise done, such as, colon ":" operator, plot(), hold, legend(), xlabel, ylabel, etc.
t = tmin:increment:tmax;
F1 = sin(t);
F2 = cos(t);
plot(t, F1, 'r-')
hold on
...
xlabel...
legend(..., ..., 'location', 'best')
hold off

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by