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

4 views (last 30 days)
how can i do this please help
0<a<1 and draw graph of y=a^x
  1 Comment
James Tursa
James Tursa on 4 Oct 2022
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

Benjamin Thompson
Benjamin Thompson on 4 Oct 2022
x = 1:5;
a = 2;
y = a.^x;
plot(x, y);

More Answers (0)

Categories

Find more on Graph and Network Algorithms 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!