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

4 visualizzazioni (ultimi 30 giorni)
how can i do this please help
0<a<1 and draw graph of y=a^x
  1 Commento
James Tursa
James Tursa il 4 Ott 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 ...?

Accedi per commentare.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by