Plotting Length vs Height

조회 수: 10 (최근 30일)
kileigh palmer
kileigh palmer 2020년 12월 2일
댓글: Shubham Gupta 2020년 12월 3일
Hello!
I am currently trying to create a GUI that plots length vs height, I'm currently working on the loop to do the length at different values. Whenever I do the loop below, it outputs one value on the graph, how might I do this?
lp = [0:200];
for i=1:length(lp)
SVP = exp(20.386-(5132/(T+273))); % to solve for vapor pressure
constants = (((101*10^3)/(1000*9.81))+3)-(((SVP*10^3)/(1000*9.81))+7); % answer is l/s
constants2 = (D+(f*lp))/(D*2*g);
V3 = (constants/constants2)^(1/3); % in m/s
hp = ((f*(lp/D)*((V3^2)/(2*g)))-2.6681); % important equation here
plot(lp, hp);
end
  댓글 수: 1
Shubham Gupta
Shubham Gupta 2020년 12월 3일
I am sorry to say but the question is unclear and please provide other constant values which are not defined here.
Also, try:
plot(lp,hp,'*')
What does it show?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by