필터 지우기
필터 지우기

importing an excel table with words

조회 수: 3 (최근 30일)
AA
AA 2015년 10월 9일
편집: Nobel Mondal 2015년 10월 9일
I got an excel table with text and numbers. The code below does not allow me to display the text properly in the matlab table. how can i import the file as cell array so words can be read as well?
fileToRead = fullfile('C:\Users\Untitled Spreadsheet.xlsx');
circa1 = xlsread(fileToRead);

채택된 답변

Nobel Mondal
Nobel Mondal 2015년 10월 9일
편집: Nobel Mondal 2015년 10월 9일
'xlsread' returns 3 outputs -
[numOnly, textOnly, rawDataInCellArray] = xlsread(xlFile);
If you need the data in only cell array format, use the below style :
[~, ~, mydata] = xlsread(xlfile);
Please try 'help xlsread' to get more info.

추가 답변 (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