% Matlab script to transfer the MATLAB output into excel sheets.
% First run the original MATLAB code, then run this code. This will produce
% an Excel file named: Transfer_to_Excel.xlsx
% Each variable is saved in another sheet. Consult the original MATLAB file
% to see what each variable represents and how it was calculated


filename = 'Transfer_to_Excel.xlsx';

writematrix(lat,filename,'Sheet','lat')
writematrix(lon,filename,'Sheet','lon')
writematrix(cntr,filename,'Sheet','cntr')
writematrix(radius,filename,'Sheet','radius')
writematrix(nx,filename,'Sheet','nx')
writematrix(u,filename,'Sheet','u')
writematrix(v,filename,'Sheet','v')
writematrix(vtheta,filename,'Sheet','vtheta')
writematrix(vr,filename,'Sheet','vr')
writematrix(windspd,filename,'Sheet','windspd')