필터 지우기
필터 지우기

I have an excel file containing text and numbers, xlsread not import the columns containing text. what should I do?

조회 수: 1 (최근 30일)
I have an excel file containing text and numbers, xlsread not import the columns containing text. what should I do?

답변 (2개)

Michael Haderlein
Michael Haderlein 2015년 2월 3일
It does, it just returns it in another parameter. From Matlab help:
[ndata, text, alldata] = xlsread('myExample.xlsx')
ndata =
1 2 3
4 5 NaN
7 8 9
text =
'First' 'Second' 'Third'
'' '' ''
'' '' 'x'
alldata =
'First' 'Second' 'Third'
[ 1] [ 2] [ 3]
[ 4] [ 5] 'x'
[ 7] [ 8] [ 9]
(<http://www.mathworks.com/help/matlab/ref/xlsread.html>)
Best regards,
Michael

Zahra Sharifnezhadazizi
Zahra Sharifnezhadazizi 2018년 12월 30일
You can use 'num2str(myExample)'

카테고리

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