How do I do a Matlab assignment (report)?
조회 수: 8 (최근 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?
댓글 수: 0
답변 (2개)
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.
댓글 수: 0
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
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!