plotting a graph in for loop

7 ビュー (過去 30 日間)
Daryun
Daryun 2018 年 10 月 15 日
編集済み: Daryun 2018 年 10 月 16 日
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 件のコメント
dpb
dpb 2018 年 10 月 15 日
What do you want to plot against what?

サインインしてコメントする。

採用された回答

Daryun
Daryun 2018 年 10 月 16 日
編集済み: Daryun 2018 年 10 月 16 日
Plot(t1, qtot1, 'o' )

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by