how to create lat lon matrix in matlab

I want to create a latitude longitude 4*4 dimension matrix of temperature from dataset where temperature is in third column
30.45 70.34 20
30.95 71.23 23
31.34 72.34 25
33.23 76.34 30
Can anybody help me how to create it?

7 Comments

mat = [...
30.45 70.34
30.95 71.23
31.34 72.34
33.23 76.34];
Thank you sir for your reply.If I have a format like this
30.45 70.34 20
30.95 71.23 23
31.34 72.34 25
33.23 76.34 30
And I want to arrange the third column in 4*4 dimension lat lon format waht change I have to do?
What do you mean by ...I want to arrange the third column in 4*4 dimension ...?
You only have three columns. Show us how do you expect the output to look like?
@Tanmoyee Bhattacharya: the third column has four elements. How do you want to allocate those four elements to the sixteen elements of a 4x4 matrix?
Sir, Actually I have solved it.I arrange longitude according to latitude and by xyz2grd fuction I have created a matrix.
Tanmoyee you are missing logic some where......what exactly you want to do?
Sir I arrange data set like
if true
% code
end
30.45 78.34 34
30.45 76.34 23
30.45 75.23 25
30.45 76.45 26
...........
.........
31.45 78.34 34
31.45 76.34 24
31.45 75.23 23
31.45 76.45 23
Then I create the matrix by function xyz2grd.
It is solved sir.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!