Plotting curves with increasing radius.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
for dout = 11:0.5:100 for din = 1:0.5:90 mn = 5; mf = pi/4*(dout*dout-din*din)*13*7890*10^-6; k = dout/2^0.5; rn = 5.5;
J = (mn*rn^2 + mf*k^2)*2*pi/rn;
plot(dout,J);
end
end
Hi, I am using this code to plot dout vs J. But i end up getting only one value. how should i modify this code?
Thanks, karthik.
0 comentarios
Respuestas (1)
KSSV
el 9 de Mzo. de 2017
Are you expecting this?
dout = 11:0.5:100 ;
din = 1:0.5:90 ;
mn = 5;
mf = pi/4*(dout.*dout-din.*din)*13*7890*10^-6;
k = dout/2^0.5;
rn = 5.5;
J = (mn*rn^2 + mf.*k.^2)*2*pi./rn;
plot(dout,J);
2 comentarios
KSSV
el 9 de Mzo. de 2017
The above code, what I have copied will work. How you have tried the code?
Ver también
Categorías
Más información sobre Desktop 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!