# How do I do a Matlab assignment (report)?

4 vues (au cours des 30 derniers jours)
Hdez le 15 Jan 2021
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 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (2)

Steven Lord le 15 Jan 2021
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 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

Sohaib Saeed le 21 Déc 2022
U = 398600;
R1 = 7200;
for RA4 = [300000,700000,1100000]
% INITAL ORBIT VELOCITY
v1 = sqrt(U/R1);
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)
ylabel('CHANAGE IN VELOCITY REQUIRED')
title ('Comparison of Hohmann vs Bi elliptical Ortbit')
legend('Hohmann')
end
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Community Treasure Hunt

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

Start Hunting!

Translated by