write program using matlab a) A mission to mans is being designed with the idea
ID: 3804347 • Letter: W
Question
write program using matlab
Explanation / Answer
function force = thrust(m, V, A,diffP0P1)
force = (m * V) + (A * diffP0P1)
end
function chVel = deltav(mi,mf,Fthrust,g)
Isp = Fthrust / 1000
chVel = g * Isp * log(mi/mf)
end
force = thrust(500,30.28,15,128)
fprintf("Mass = 500 kg/s, Thrush: %f ",force);
force = thrust(1000,30.28,15,128)
chVal = deltav(1800,1500,force,9.8)
fprintf("Mass = 1000 kg/s, Thrush: %f ",force);
fprintf("Fthrust(m = 1000 kg/s) = %f, mi = %d, mj = %d, Change in velocity: %f ",force, 1800,1500,chVal);
force = thrust(850,30.28,15,128)
fprintf("Mass = 850 kg/s, Thrush: %f ",force);
force = thrust(750,30.28,15,128)
fprintf("Mass = 750 kg/s, Thrush: %f ",force);
------------------output-------------------------
force = 17060
force = 17060
Mass = 500 kg/s, Thrush: 17060.000000
force = 32200
force = 32200
Isp = 32.200
chVel = 57.533
chVal = 57.533
Mass = 1000 kg/s, Thrush: 32200.000000
Fthrust(m = 1000 kg/s) = 32200.000000, mi = 1800, mj = 1500, Change in velocity: 57.533390
force = 27658
force = 27658
Mass = 850 kg/s, Thrush: 27658.000000
force = 24630
force = 24630
Mass = 750 kg/s, Thrush: 24630.000000
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.