Effacer les filtres
Effacer les filtres

simple plotting in matlab

3 vues (au cours des 30 derniers jours)
nida
nida le 4 Avr 2014
x=1:1:30 h=70 y=h/x
i understand they are unequal in length but how would i plot it dividing 70 by x one at a time to plot

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 4 Avr 2014
Modifié(e) : Azzi Abdelmalek le 4 Avr 2014
x=1:1:30
h=70
y=h./x
plot(x,y)
  4 commentaires
nida
nida le 4 Avr 2014
Modifié(e) : nida le 4 Avr 2014
my question is that keeping x-axis same i want to plot y by dividing h with specific numbers...s.
Azzi Abdelmalek
Azzi Abdelmalek le 4 Avr 2014
x and y must have the same length

Connectez-vous pour commenter.

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