plotting a graph in for loop

7 Ansichten (letzte 30 Tage)
Daryun
Daryun am 15 Okt. 2018
Bearbeitet: Daryun am 16 Okt. 2018
clc
clear
W1=0.076;
L1=0.076;
b1=0.03;
Vfr1=14/2118.88199311;
Ac1=W1*b1;
U1=(1/2)*(Vfr1/Ac1);
Tint=25+273;
Tc=15+273;
teta1=Tint-Tc;
kair1=0.0263;
vair1=15.89*10^-6;
Prair1=0.707;
roal=2702;
kal=177;
Lc1=L1/2;
Re1=(U1*Lc1)/vair1;
zopt1=Lc1*3.24*(Re1^(-1/2))*(Prair1^(-1/4));
h1=(kair1/Lc1)*0.664*(Re1^(1/2))*(Prair1^(1/3));
n=1;
T1matris = [];
for t1=0.00001:0.00001:0.002
nf1=W1/(zopt1+t1);
beta1=b1*sqrt((2*h1)/(kal*t1));
verimf1=(tanh(beta1))/beta1;
Af1=2*(L1+t1)*b1;
At1=nf1*(Af1+(L1*zopt1));
over1=1-((nf1*Af1)/At1)*(1-verimf1);
qtot1=over1*At1*h1*teta1;
T1matris(1,n)=t1;
T(n,1)=t1;
T(n,2)=nf1;
T(n,3)=qtot1;
n=n+1;
filename='heatsink.xlsx';
end
xlswrite(filename,T,1,'A2');
How do I plot this code?
  1 Kommentar
dpb
dpb am 15 Okt. 2018
What do you want to plot against what?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Daryun
Daryun am 16 Okt. 2018
Bearbeitet: Daryun am 16 Okt. 2018
Plot(t1, qtot1, 'o' )

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by