フィルターのクリア

How could I make a periodic function in MatLab

15 ビュー (過去 30 日間)
John Nosh
John Nosh 2017 年 9 月 3 日
回答済み: ali vatan 2020 年 9 月 4 日
For example I have a function f(x)=2*t how could I make the function repeat every t=5 seconds ? After creating it I would like to plot it. Any ideas how someone could approach this?

採用された回答

Walter Roberson
Walter Roberson 2017 年 9 月 3 日
f = @(t) 2 * mod(t, 5);
fplot(f, [-10 10])

その他の回答 (1 件)

ali vatan
ali vatan 2020 年 9 月 4 日
f = @(t) 2 * mod(t, 5);
fplot(f, [-10 10])

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by