Hi I'm new to Matlab and was trying to plot a graph of 2^n but havn't been able to.

조회 수: 2 (최근 30일)
.

채택된 답변

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020년 5월 19일
For example for the range [-5,5]
x = linspace (-5,5,101);
y = 2 .^ x;
plot (x,y);

추가 답변 (0개)

카테고리

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