how can I read different data types from excel file

11 vues (au cours des 30 derniers jours)
yasser
yasser le 3 Déc 2019
Réponse apportée : galaxy le 4 Déc 2019
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

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 3 Déc 2019
[NUM,TXT,RAW]=xlsread(FILE). Get the Raw data.

Plus de réponses (1)

galaxy
galaxy le 4 Déc 2019
You also use readtable function
data = readtable(FILE,'Sheet', 'sheet_name', 'ReadVariableNames', false);

Produits


Version

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by