Hi I'm new to Matlab and was trying to plot a graph of 2^n but havn't been able to.
1 次查看(过去 30 天)
显示 更早的评论
.
2 个评论
Priyanshu Mishra
2020-5-19
Hi Sara,
Just for clarification , can you share your code, what you have tried so far ?
采纳的回答
Abdolkarim Mohammadi
2020-5-19
For example for the range [-5,5]
x = linspace (-5,5,101);
y = 2 .^ x;
plot (x,y);
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!