MATLAB Answers

how to create lat lon matrix in matlab

3 views (last 30 days)
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya on 4 Dec 2017
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

Show 4 older comments
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya on 4 Dec 2017
Sir, Actually I have solved it.I arrange longitude according to latitude and by xyz2grd fuction I have created a matrix.
KSSV
KSSV on 5 Dec 2017
Tanmoyee you are missing logic some where......what exactly you want to do?
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya on 5 Dec 2017
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)

Community Treasure Hunt

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

Start Hunting!