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 comentarios

mat = [...
30.45 70.34
30.95 71.23
31.34 72.34
33.23 76.34];
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya el 4 de Dic. de 2017
Editada: Stephen23 el 4 de Dic. de 2017
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?
KL
KL el 4 de Dic. de 2017
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?
Stephen23
Stephen23 el 4 de Dic. de 2017
@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?
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya el 4 de Dic. de 2017
Sir, Actually I have solved it.I arrange longitude according to latitude and by xyz2grd fuction I have created a matrix.
KSSV
KSSV el 5 de Dic. de 2017
Tanmoyee you are missing logic some where......what exactly you want to do?
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya el 5 de Dic. de 2017
Editada: Tanmoyee Bhattacharya el 5 de Dic. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 4 de Dic. de 2017

Editada:

el 5 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by