convert 1D to 3D

15 views (last 30 days)
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.
  3 Comments
Guillaume
Guillaume on 28 Jan 2020
I would to plot a profile corresponding to a specific longitude and latitude
You don't have this information at the moment. You would indeed need a 57*44*100 matrix to do this, but it needs to be something you already have, you can't make it up.
I suspect that the LEV you have is the profile at ONE of these latitude/longitude coordinates.

Sign in to comment.

Accepted Answer

Selva Karna
Selva Karna on 28 Jan 2020
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)
  5 Comments
Farshid Daryabor
Farshid Daryabor on 28 Jan 2020
Dear Guillaume, You are right, I did other way. Thanks

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!