Friday, January 8, 2010

Please help with this matlab coding!?

what is wrong with this line of code? Its something with the dot division i think :[[


I will rate! please help!


v=0:5:1000;


T=70:5:320;


R=8.31


M=0.032


P=4.*pi.*(M./(2.*pi.*R.*T)).^(3/2).*v.鈥?br>




Its screwing up where im defining P...im pretty sure its in the exponentiation areaPlease help with this matlab coding!?
You must use X and Y for calculate P, let麓s redefine the names:





...


[vm, Tm] = meshgrid(v,T);


P=4.*pi.*(M./(2.*pi.*R.*Tm)).^(3/2).*v鈥?br>

mesh(vm,Tm,P);


...





for use mesh, vm, Tm and P must be matrices of same size.

No comments:

Post a Comment