필터 지우기
필터 지우기

xlsread doesn't read a column that contains string in the cells with unknown number of rows

조회 수: 5 (최근 30일)
Hi all
I am trying to read from an xlsx Excel file some rows in clumn 1 that are strings.
xlsread alone does not function
how to read all and put into a list ?
  댓글 수: 9
Bob Thompson
Bob Thompson 2019년 6월 20일
A conversion to what? What are you looking to do with it? all(1) is a cell class element, but all{1} is a string class, which can be used as an input for other commands, such as a file reading function.
farzad
farzad 2019년 6월 20일
Conversion between classes But I think I'm convinced
Thank you so much

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

채택된 답변

Dimitar Georgiev
Dimitar Georgiev 2019년 6월 20일
You can use readcell, for example,
example = readcell('example.xlsx','Range','A2:P5');
Now you can extract strings from the cell array.
I would recommend you to read:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by