Effacer les filtres
Effacer les filtres

Hi I'm new to Matlab and was trying to plot a graph of 2^n but havn't been able to.

2 vues (au cours des 30 derniers jours)
.
  2 commentaires
Priyanshu Mishra
Priyanshu Mishra le 19 Mai 2020
Hi Sara,
Just for clarification , can you share your code, what you have tried so far ?

Connectez-vous pour commenter.

Réponse acceptée

Abdolkarim Mohammadi
Abdolkarim Mohammadi le 19 Mai 2020
For example for the range [-5,5]
x = linspace (-5,5,101);
y = 2 .^ x;
plot (x,y);

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by