xlsread reading in erroneous values.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I'm using xlsread in a compiled stand alone executable like so.
data = xlsread('filename.xls');
%'filename.xls' is one of the files compiled in the executable
% run specified analytics on 'data' and then print 'data'
This works on my local environment (windows 8) and returns the values that I need but when I send the exe to my coworkers xlsread returns crazy values that are no where near the values contained in the excel sheet. The same thing also happens when 'filename.xls' is passed to the exe separately (not packaged with it). Has anyone else encountered this problem or have any ideas as to how to fix it?
Thanks!
1 Comment
Star Strider
on 20 Jul 2016
This seems a problem in deploying your executable rather than only with xlsread. It might be best if you asked it in that context. Be sure to mention the important characteristics of the computers you are deploying it on, since that could be part of the problem.
Answers (1)
Azzi Abdelmalek
on 20 Jul 2016
Maybe you need to specify the path
path='C:\Users\malek\Google Drive\matlab'
name=fullfile(path,'filename.xls')
data = xlsread(name);
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!