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

mat = [...
30.45 70.34
30.95 71.23
31.34 72.34
33.23 76.34];
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya 2017년 12월 4일
편집: Stephen23 2017년 12월 4일
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 2017년 12월 4일
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 2017년 12월 4일
@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 2017년 12월 5일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기

질문:

2017년 12월 4일

편집:

2017년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by