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 commentaires

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

Connectez-vous pour commenter.

Réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by