Simple question but i can't do it i just started using matlab

how can i do this please help
0<a<1 and draw graph of y=a^x

1 Comment

What have you done so far? What specific problems are you having with your code? A single graph? Or multiple x-y graphs for various values of a? Or ...?

Sign in to comment.

 Accepted Answer

x = 1:5;
a = 2;
y = a.^x;
plot(x, y);

More Answers (0)

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!