Winopen does not work on executable
이전 댓글 표시
Hello everyone, I am trying to make an app and it works fine, but when I compile it to a standalone app winopen() will not work. Any ideas?
I have included the winopen.m during packeging and also used full Path, but still it does not work.
댓글 수: 2
Abderrahim. B
2022년 8월 8일
편집: Abderrahim. B
2022년 8월 8일
Hi!
what is the format of the file you are trying to open ? and on which operating system you are testing the App?
Thanks
Nikos Gartaganis
2022년 8월 8일
답변 (1개)
dpb
2022년 8월 8일
0 개 추천
I've packaged it (winopen) in another app and it works fine. Looking at the above code snippet, I'd hypothesize your problem is that you're not using the fully-qualified filename to open and so it isn't finding the file -- but winopen unfortunately doesn't include any return parameter to report on its success in that regards; you could(*) do an exist on the filename first to ensure it does exist and is found first.
(*) Probably "should" instead of "could" is more appropriate
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!