Graphing specific function over time

조회 수: 10 (최근 30일)
William Haskins
William Haskins 2023년 3월 10일
답변: Walter Roberson 2023년 3월 10일
How can I graph the function da=0.5+0.425*sin((2*pi*60)*t) and vary t from 0 to 10 seconds?

채택된 답변

Voss
Voss 2023년 3월 10일
t = linspace(0,10,100);
da = 0.5+0.425*sin(2*pi*60*t);
plot(t,da)

추가 답변 (1개)

Walter Roberson
Walter Roberson 2023년 3월 10일
da = @(t)0.5+0.425*sin((2*pi*60)*t);
fplot(da, [0 10])

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 2-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