# calculate the time to rise through the updraft

matlab
munichversion

a=[1 2 3]
b=[4 5 6]
c=permute(b,[2 1])
a*c

z(1:501)/W(1:501)

>> z(1:501)/W(1:501)

For 2 m/s to 7 km altitude
ans =

   1.8972e+03

sum(z/W)

for 5 m/s to 5 km ans =

  774.1612 = 12.9 min

for 2 m/s to 7 km ans = 2.4498e+03 = 40.83 min

