How to find variable in the same Longitude and Latitude for Excel

2 ビュー (過去 30 日間)
Farshid Daryabor
Farshid Daryabor 2019 年 10 月 10 日
編集済み: Michal 2019 年 10 月 11 日
I have a xlsx matrix size (9884*21), I'm trying to manage a matlab code to find the exact value position in the each row corresponding to the longitude and latitude, for example; And I want to save them in new file accordingly.
I appreciate any support
No. Value Lon Lat
1 a i j
2 b ii jj
3 c iii jjj
4 d . .
5 e . .
6 f . .
7 g . .
8 . . .
. . . .
. . . .
. . . .
. . . .
. . . .
9884
  5 件のコメント
John Doe
John Doe 2019 年 10 月 11 日
I have no idea what want to do. Eitherway,
You first need to import the data in MATLAB you can do this using readtable.
fullFileName = ('c:\ ..... .xslx') % Put your full file path in here.
opts.VariableNamesLine = 1;
t{1} = readtable(fullFileName, opts);
Michal
Michal 2019 年 10 月 11 日
編集済み: Michal 2019 年 10 月 11 日
Are you trying to find the row number of a specific set of latitude and longitude? So, using your example table above, if your longitude is ii and latitude is jj you are hoping to get the number 2 (i.e. 2nd row; assuming we are skipping headers) so you can then extract all the information (i.e. the values of all the other columns) that can be found in that row?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by