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

Star Strider
Star Strider 2016년 7월 20일
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개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 20일

0 개 추천

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