MATLAB: How to find all the value

variable

%%
u = 10:100:250; %[m/s]

D = 0.002; %[m]




v = 2*10^-7; %[m/s]
P = 1;
k = 0.1; %[w/mk]

ks = 60.6; %[w/mk]
t1 = 0.0002; %[m]
t2 = t1; %[m]
H = 0.002; %[m]
qw = 2:10:20; %[Mw/m^2]
w = 0.002; %[m]
R = (u*D)/v
Nu = 0.023*(R.^0.8)*P.^0.4
hc =(Nu*k)/D
bw = hc/(ks*t1)
b1 = sqrt(bw)
b2 = b1;
A1 = ((coth(b1*w/2)/b1*ks))+((t1/t2)*coth(b1*H))/(b1*ks)
format long g
>> distribution
R =
100000 1100000 2100000
Nu =
230 1566.18111933013 2627.26131915328
hc =
11500 78309.0559665065 131363.065957664
bw =
948844.884488449 6461143.23155994 10838536.7951868
b1 =
974.086692491202 2541.8778946991 3292.19331072567
A1 =
0.0238257663820485
>>
I'm not able to get the all values of A1. Can you please point out to me how to find the all the value of A1?

Best Answer

Use dot slash rather than slash to do an element-by-element divide:
A1 = ((coth(b1*w/2) ./ b1*ks))+((t1/t2)*coth(b1*H)) ./ (b1*ks)