Plotting quadratic f(t) = t^3

Illustration
Quinn - 2021-03-10T10:29:41+00:00
Question: Plotting quadratic f(t) = t^3

How can I  plot a f(t)=t^3 when with a period of -pi<=t

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Yes , 

 

% 1001 samples from -2pi to 2pi
t = linspace(-2*pi, 2*pi, 1001);

% Element-wise multiplication
f = t.^3; 

% Plot
plot(t,f)


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!