simple plotting in matlab

3 次查看(过去 30 天)
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

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-4-4
编辑:Azzi Abdelmalek 2014-4-4
x=1:1:30
h=70
y=h./x
plot(x,y)
  4 个评论
nida
nida 2014-4-4
编辑:nida 2014-4-4
my question is that keeping x-axis same i want to plot y by dividing h with specific numbers...s.
Azzi Abdelmalek
Azzi Abdelmalek 2014-4-4
x and y must have the same length

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by