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 件のコメント

Stephen23
Stephen23 2017 年 12 月 4 日
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?
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya 2017 年 12 月 4 日
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?
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya 2017 年 12 月 5 日
編集済み: Tanmoyee Bhattacharya 2017 年 12 月 5 日
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