Effacer les filtres
Effacer les filtres

plot scale is messed up

4 vues (au cours des 30 derniers jours)
flemingtb
flemingtb le 7 Mai 2018
Commenté : Ameer Hamza le 7 Mai 2018
Wow i'm rusty... I'd like to interpolate for Wn over the range of Ln in the code below. Which it does but the plot 'X' axis is numbered from 1 to 25. Why doesn't it scale from 500 to 2500?
L = 500:500:2500;
W = [13 11 10 15 22];
Ln = 500:100:2500;
Wn = interp1(L, W, Ln);
  1 commentaire
jonas
jonas le 7 Mai 2018
How do you plot?

Connectez-vous pour commenter.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 7 Mai 2018
Plot using
plot(Ln, Wn)
  2 commentaires
flemingtb
flemingtb le 7 Mai 2018
that was easy...thank you.
Ameer Hamza
Ameer Hamza le 7 Mai 2018
You are welcome.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by