simple plotting in matlab

9 Ansichten (letzte 30 Tage)
nida
nida am 4 Apr. 2014
Kommentiert: Azzi Abdelmalek am 4 Apr. 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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 4 Apr. 2014
Bearbeitet: Azzi Abdelmalek am 4 Apr. 2014
x=1:1:30
h=70
y=h./x
plot(x,y)
  4 Kommentare
nida
nida am 4 Apr. 2014
Bearbeitet: nida am 4 Apr. 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 am 4 Apr. 2014
x and y must have the same length

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by