How to fill the grid matrix?

조회 수: 1 (최근 30일)
Lilya
Lilya 2017년 9월 10일
댓글: Lilya 2017년 9월 11일
Hi all,
I extracted the data from files sequentially. The aim is ordering the values by the grid points; in the grid file, I have n number of grid points (two vectors each has a dim of 987*1 Latitude and Longitude), which I need to fill in with my data by order. I need to read each of my longitude and latitude my files and order them as the grid points.
I mean, every hour of my data represents as one column of the big matrix. Then, you read each long and lat of the hourly file, as above, to find which position is that in the grid matrix (987 points) and fill it at that line in my matrix.
thank you for your help in advance.

채택된 답변

Walter Roberson
Walter Roberson 2017년 9월 10일
t = readtable('YourFileName.txt');
data = reshape( t{:,:}, 987, [], size(t,2) );
  댓글 수: 1
Lilya
Lilya 2017년 9월 11일
Appreciate it. Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by