How do I do a Matlab assignment (report)?

26 次查看(过去 30 天)
Hello there, I had to do 2 codes about heat transfer in a plate which I have almost done but from those 2 code I have to do a report but I have no idea how to do a report about a Matlab code. Could someone advice me please?

回答(2 个)

Steven Lord
Steven Lord 2021-1-15
Assuming this is homework, you should probably ask your professor about the format of the report they expect you to submit.
You may be able to submit a Live Script or you may be able to publish a regular script or function. See this documentation page for a description of those techniques.

Sohaib Saeed
Sohaib Saeed 2022-12-21
U = 398600;
R1 = 7200;
for RA4 = [300000,700000,1100000]
% INITAL ORBIT VELOCITY
v1 = sqrt(U/R1);
%RADIUS OF FINAL ORBIT
r2 = 10000:0.1:200000;
% VELOCITY OF FINAL ORBIT
v2 = sqrt(U./r2);
% HOHMANN
rp3 = R1;
ra3 = r2;
h3 = sqrt(2*U)*sqrt((rp3*ra3)/(rp3+ra3));
% CHANGE IN VELOCITY
delta_va_h = (h3/R1) - v1;
delta_vb_h = v2 - (h3./r2);
total_delta_v_h = delta_va_h + delta_vb_h;
% BI ELLIPTICAL
% 1ST TRANSFER ORBIT
rp4 = R1;
h4 = sqrt(2*U)*sqrt((rp4*RA4)/(rp4+RA4));
% 2ND TRANSFER ORBIT
rp5 = r2;
ra5 = RA4;
h5 = sqrt(2*U)*sqrt((rp5*ra5)/(rp5+ra5));
% CHANGE IN VELOCITY
delta_v_a_be = (h4/rp4) - v1;
delta_v_x_be = (h5./ra5) - (h4/RA4);
delta_v_y_be = (h5./rp5) - v2;
total_delta_v_be = delta_v_a_be + delta_v_x_be + delta_v_y_be;
alpha = r2./R1;
beta = RA4./R1;
% Hohmann orbit
plot(alpha,total_delta_v_h,'r')
hold on
plot(alpha,total_delta_v_be)
xlabel('RADIUS OF FINAL ORBIT/RADIUS OF INITIAL ORBIT')
ylabel('CHANAGE IN VELOCITY REQUIRED')
title ('Comparison of Hohmann vs Bi elliptical Ortbit')
legend('Hohmann')
end

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by