Generating a 2D plot for a function

조회 수: 16 (최근 30일)
Chigozirim Ike
Chigozirim Ike 2016년 2월 12일
답변: Walter Roberson 2016년 2월 12일
how can i plot this function R(n+1) = -0.8 * R(n)?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 2월 12일
for n = 1 : 100
R(n+1) = -0.8 * R(n);
end
Now you have a vector of R that you can plot.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by