Hi I'm new to Matlab and was trying to plot a graph of 2^n but havn't been able to.
1 view (last 30 days)
Show older comments
Sara Renmiu
on 17 May 2020
Answered: Abdolkarim Mohammadi
on 19 May 2020
.
2 Comments
Priyanshu Mishra
on 19 May 2020
Hi Sara,
Just for clarification , can you share your code, what you have tried so far ?
Accepted Answer
Abdolkarim Mohammadi
on 19 May 2020
For example for the range [-5,5]
x = linspace (-5,5,101);
y = 2 .^ x;
plot (x,y);
0 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!