xlsread reading in erroneous values.
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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 commentaire
Star Strider
le 20 Juil 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.
Réponses (1)
Azzi Abdelmalek
le 20 Juil 2016
Maybe you need to specify the path
path='C:\Users\malek\Google Drive\matlab'
name=fullfile(path,'filename.xls')
data = xlsread(name);
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!