Plotting quadratic f(t) = t^3

4 visualizaciones (últimos 30 días)
Mxolisi Mathonsi
Mxolisi Mathonsi el 5 de Oct. de 2018
Respondida: Sebastian Castro el 7 de Oct. de 2018
Hi
How can I plot a f(t)=t^3 when with a period of -pi<=t<pi.
Over the time interval of -2pi<=t<=2pi.

Respuesta aceptada

Sebastian Castro
Sebastian Castro el 7 de Oct. de 2018
Yes.
% 1001 samples from -2pi to 2pi
t = linspace(-2*pi, 2*pi, 1001);
% Element-wise multiplication
f = t.^3;
% Plot
plot(t,f)
- Sebastian

Más respuestas (0)

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by