MATLAB: Convert 1D to 3D

1d

Please find the attached file that included "LEV(57*1), LON(100*1) and LAT(44*1)" parameters. I want to convert "LEV" to LEV(57*44*100). Thanks for your kind help.

Best Answer

clc
clear all;
close all;
load('ZYX.mat')
z=zeros(44,57);
z(:,1)=LAT;
z(1,:)=LEV;
z(1,1,1:100)=LON;
volshow(z)