필터 지우기
필터 지우기

How to extract specific column and row and put them on a new table?

조회 수: 10 (최근 30일)
Danai Varvatsouli
Danai Varvatsouli 2020년 5월 14일
댓글: Sindar 2020년 5월 15일
I have an excel file and I want specific cells (row,column) to extract them from the table and put them in a new one.
I want the values: (108,4) (210,4) (313,4) (415,4) (519,4) (621,4) etc to put them in a new Table.
In the new table I want to have a column with the values and a column where I will enter where I find them.
For example: (108,4) is Italy, so I want
Italy 108,4
Greece 210,4
Germany 314,4
.
.
Any thought???
  댓글 수: 1
Sindar
Sindar 2020년 5월 15일
readtable (documentation) will allow you to load data from excel
You can access specific rows and columns of a Matlab table using () or {} indexing. () returns a new table.
writetable (documentation) can write the data back to an excel file
If you still have issues, could you include an excerpt of the source table?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by