plotting a graph in for loop

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?

 采纳的回答

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Programming 的更多信息

产品

版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by