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 commentaires

Guillaume
Guillaume le 28 Jan 2020
You currently have 57 elements in LEV. In total with your 3 matrices, you have 57+100+44 == 201 elements. You tell use you want a new matrix with 57*44*100 == 250800 elements. Where do the extra elements come from? Why do you want a 3D matrix?
Farshid Daryabor
Farshid Daryabor le 28 Jan 2020
I would to plot a profile corresponding to a specific longitude and latitude. Thanks
Guillaume
Guillaume le 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.

Connectez-vous pour commenter.

 Réponse acceptée

Selva Karna
Selva Karna le 28 Jan 2020

0 votes

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 commentaires

Farshid Daryabor
Farshid Daryabor le 28 Jan 2020
>> size(z)
44*57*100
I want to be, (57*44*100) instead of (44*57*100)
Thanks
Farshid Daryabor
Farshid Daryabor le 28 Jan 2020
I did, thank you very much
Farshid Daryabor
Farshid Daryabor le 28 Jan 2020
problem is the surface value, if you see the corresponding value for the depth at the seasurface is not zero
25.1250000000000 ---------------> it shoud be "0"
5
10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
85
90
95
100
125
150
175
200
225
250
275
300
325
350
375
400
425
450
475
500
550
600
650
700
750
800
850
900
950
1000
1050
1100
1150
1200
1250
1300
1350
1400
1450
1500
Guillaume
Guillaume le 28 Jan 2020
It makes no sense to construct a volume taking some values from the latitude and longitude and some from the measurement at these coordinates. LAT and LON are the coordinates of the points in the volume, they're not the volume data.
Farshid Daryabor
Farshid Daryabor le 28 Jan 2020
Dear Guillaume, You are right, I did other way. Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by