Effacer les filtres
Effacer les filtres

how to change the data type when read .xls file using xlsread() function

4 vues (au cours des 30 derniers jours)
kanwal preet
kanwal preet le 18 Août 2015
Commenté : Walter Roberson le 18 Août 2015
i created a xls file with uint16 data type, when i am trying to read it using xlsread() it store in double type, i use this code
varXls=xlsread('filename');
varXLs store my data in double i want it in uint16 type, help me to change this type

Réponses (1)

Adam
Adam le 18 Août 2015
varXls = uint16( xlsread('filename') );

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by