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
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