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

4 次查看(过去 30 天)
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

回答(1 个)

Adam
Adam 2015-8-18
varXls = uint16( xlsread('filename') );

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by