Graphing specific function over time

10 Ansichten (letzte 30 Tage)
William Haskins
William Haskins am 10 Mär. 2023
Beantwortet: Walter Roberson am 10 Mär. 2023
How can I graph the function da=0.5+0.425*sin((2*pi*60)*t) and vary t from 0 to 10 seconds?

Akzeptierte Antwort

Voss
Voss am 10 Mär. 2023
t = linspace(0,10,100);
da = 0.5+0.425*sin(2*pi*60*t);
plot(t,da)

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 10 Mär. 2023
da = @(t)0.5+0.425*sin((2*pi*60)*t);
fplot(da, [0 10])

Communitys

Weitere Antworten in  Power Electronics Control

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by