Need help plotting one function against a variable without it using the mean value of the first variable?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Killian
el 16 de Mzo. de 2014
Comentada: Killian
el 16 de Mzo. de 2014
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 comentarios
Respuesta aceptada
Dishant Arora
el 16 de Mzo. de 2014
use dot operator ./
T=(13.176*a*h)./(46.848*Kp+9*pi*Kd*sqrt(pi*(0.874+Pc)))
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!