Need help plotting one function against a variable without it using the mean value of the first variable?
조회 수: 1 (최근 30일)
이전 댓글 표시
The following is my code so far. I'm trying to plot T against V, which is in the denominator of the equation for T as well as being in a square root in the numerator. When I run this code, it just plots T and v using v=7.5 and it just gives a striahgt line (T is only calculated for v=7.5). How do I get T to vary with v as it should?
v=0:0.1:15;
P=15*10^6;
a=(0.027138*10^-9);mew=0.15;n=(2.2*10^11);L1=P/n;
h=(mew*L1*v)/(pi*(a^2));rho=8000;C=500;Kd=16.3;Kp=300;
Pc=(v*a*rho*C)/(2*Kd);
T=(13.176*a*h)/(46.848*Kp+9*pi*Kd*sqrt(pi*(0.874+Pc)))
plot(v,T)
댓글 수: 0
채택된 답변
Dishant Arora
2014년 3월 16일
use dot operator ./
T=(13.176*a*h)./(46.848*Kp+9*pi*Kd*sqrt(pi*(0.874+Pc)))
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!