필터 지우기
필터 지우기

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 CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by