필터 지우기
필터 지우기

extracting values from excel file

조회 수: 1 (최근 30일)
Quan Seah
Quan Seah 2018년 5월 9일
답변: Sharannya Ranjith 2018년 5월 11일
So I have read an excel file from a set data by using xlsread(), and now I want to get information from the excel file that is 9354x4. And I am trying to get all the data from row 1 to row 365 that is in the fourth column, I have tried using num1(365,4)*Note num1 is the variable that I used to read the excel file*, and it only gives me the data that belongs to row 365 column 4, but what I want is everything starts from row 1 to row 365 that is in column 4, please help.
  댓글 수: 2
Pawel Jastrzebski
Pawel Jastrzebski 2018년 5월 9일
편집: Pawel Jastrzebski 2018년 5월 9일
Try:
num1(1:365,4)
This will give you a range rather than a single value.
Quan Seah
Quan Seah 2018년 5월 9일
Thank you!

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

답변 (1개)

Sharannya Ranjith
Sharannya Ranjith 2018년 5월 11일
As suggested by Pawel, use a colon as a subscript. num1(1:365,4) should do the trick. Refer https://www.mathworks.com/help/matlab/ref/colon.html for more information on other indexing expressions.

카테고리

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