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

 Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 4 Apr 2014
Modificato: Azzi Abdelmalek il 4 Apr 2014
x=1:1:30
h=70
y=h./x
plot(x,y)

4 Commenti

nida
nida il 4 Apr 2014
Modificato: Azzi Abdelmalek il 4 Apr 2014
thanks, but what if i have
s=1,58,4,2,4
with
x=1:1:30
h=70
y=h./s
What is your question?
nida
nida il 4 Apr 2014
Modificato: nida il 4 Apr 2014
my question is that keeping x-axis same i want to plot y by dividing h with specific numbers...s.
x and y must have the same length

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by