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

4 vues (au cours des 30 derniers jours)
Huseyin Kaan
Huseyin Kaan le 4 Oct 2022
Commenté : James Tursa le 4 Oct 2022
how can i do this please help
0<a<1 and draw graph of y=a^x
  1 commentaire
James Tursa
James Tursa le 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 ...?

Connectez-vous pour commenter.

Réponse acceptée

Benjamin Thompson
Benjamin Thompson le 4 Oct 2022
x = 1:5;
a = 2;
y = a.^x;
plot(x, y);
  1 commentaire
Benjamin Thompson
Benjamin Thompson le 4 Oct 2022
Fee free to change the value of a since you wanted it 0 < a < 1.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by