Two functions superimposed on each other.

1 回表示 (過去 30 日間)
T
T 2012 年 10 月 18 日
Suppose I have two functions, say y = sin(t) and y = sin( t + pi/4) and I want to make them start at the same point. How can this be done?
  2 件のコメント
Matt J
Matt J 2012 年 10 月 18 日
編集済み: Matt J 2012 年 10 月 18 日
How do you define their "starting point" right now? For example, why couldn't you consider t=0 to be the starting point of both functions already? Sure, they start at different values, but what difference does that make?
T
T 2012 年 10 月 18 日
編集済み: T 2012 年 10 月 18 日
Suppose that y1 = sin(t) starts at t = 2000 s and ends at t = 5000 s and y2 = sin(t + pi/4) starts at t = 4000 s and ends at, say 7000 s.

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 10 月 18 日
t=0:0.1:10
plot(t, sin(t))
hold on ,
plot(t+pi/4,sin( t + pi/4) )

その他の回答 (1 件)

Matt J
Matt J 2012 年 10 月 18 日
Change y2 to y2 = sin(t +2000 + pi/4)
now they will both start at t=2000

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by