how can I read different data types from excel file

12 ビュー (過去 30 日間)
yasser
yasser 2019 年 12 月 3 日
回答済み: galaxy 2019 年 12 月 4 日
Hello,
I have an excel file with mixed data (charachters and numericals), how can I read this file with these data into one workspace?
I try to use this command [Mat_A_STRS,str]=xlsread(filename4,sheet); the result got into two arraies but I cant merge it into one workspace.
Thank You

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 12 月 3 日
[NUM,TXT,RAW]=xlsread(FILE). Get the Raw data.

その他の回答 (1 件)

galaxy
galaxy 2019 年 12 月 4 日
You also use readtable function
data = readtable(FILE,'Sheet', 'sheet_name', 'ReadVariableNames', false);

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by