Plotting quadratic f(t) = t^3

조회 수: 4 (최근 30일)
Mxolisi Mathonsi
Mxolisi Mathonsi 2018년 10월 5일
답변: Sebastian Castro 2018년 10월 7일
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.

채택된 답변

Sebastian Castro
Sebastian Castro 2018년 10월 7일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by