Why deplyoed executable file doesn't read *.MAT file ?

I am working on classification using Neural Network tool.I've made a GUI which will take user given data attributes and classify it by the trained neural network and will show the perfect class of the product where does it belong.This GUI,who is taking some stored data by loading a *.mat file, is working great while running on Matlab but when I've deployed this GUI and a standalone exe file's been produced then it's become unable to read anything from the *.mat file but doing the rest activities fine (apart from reading the data from the .mat file). Please anybody knowing the remedy of that problem reply me.How I'll be able to make read that standalone executable file the data from that .MAT file ? Thank you.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 28일
편집: Azzi Abdelmalek 2013년 3월 28일

1 개 추천

When you load tour mat file, did you use
load('yourmatfile') % This recognize the current folder in Matlab but not in your executable
You should use
load('yourfolder/yourmatfile')

댓글 수: 4

JIT
JIT 2013년 3월 28일
Many Thanx for your reply. I've used only mat file name once and also tried with the full directory name , but the both cases went in vain. In "load('yourfolder/yourmatfile')" , here should I use the the folder name where the new built standalone exe will be generated or where the *.m file is residing ?
did you use
data=load('yourfolder/yourmatfile')
JIT
JIT 2013년 3월 28일
Yes I tried this but after deploy that exe is still unable to read the MAT file.I've used, load('APPLICATION/data.mat'); where data.mat is in the folder named 'APPLICATION' and the .m file does also belong there.
No, I said
data=load('APPLICATION/data.mat')
not
load('APPLICATION/data.mat')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

JIT
2013년 3월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by