Graphing specific function over time

2 visualizaciones (últimos 30 días)
William Haskins
William Haskins el 10 de Mzo. de 2023
Respondida: Walter Roberson el 10 de Mzo. de 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?

Respuesta aceptada

Voss
Voss el 10 de Mzo. de 2023
t = linspace(0,10,100);
da = 0.5+0.425*sin(2*pi*60*t);
plot(t,da)

Más respuestas (1)

Walter Roberson
Walter Roberson el 10 de Mzo. de 2023
da = @(t)0.5+0.425*sin((2*pi*60)*t);
fplot(da, [0 10])

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by