xlsread reading in erroneous values.

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 个评论

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.

回答(1 个)

Maybe you need to specify the path
path='C:\Users\malek\Google Drive\matlab'
name=fullfile(path,'filename.xls')
data = xlsread(name);

此问题已关闭。

提问:

2016-7-20

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by