how do you plot signal like cos wt and 1/4 cycle time delayed version of signal on same axis

x=0:0.01:2*pi y=cos(x) plot(x,y)
need a additional 1/4 cycle time delayed signal on the same axis as x

回答 (1 件)

Mischa Kim
Mischa Kim 2015 年 3 月 27 日
Amit, how about
x = 0:0.01:2*pi;
y = cos(x);
yd = cos(x + pi/2);
plot(x,y,x,yd)

1 件のコメント

Amit Aryal
Amit Aryal 2015 年 3 月 27 日
Thank you for the above answer. Is there a alternative to this using a time delay function in matlab?

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

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

質問済み:

2015 年 3 月 27 日

コメント済み:

2015 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by