필터 지우기
필터 지우기

Why does my ctfroot have unexpected subfolders?

조회 수: 4 (최근 30일)
Andy S
Andy S 2019년 3월 6일
댓글: Kees Aalbers 2019년 10월 8일
Hi
I'm running a deployed executable, in which I load myfile.jpg. I access the file using:
AppRoot=ctfroot;
if isdeployed
matlabImage = imread(strcat(AppRoot,'\myfile.jpg'));
However the file is not found, because it is actually located in this subfolder of ctfroot:
Capture.JPG
As it happens, all the source files and myfile.jpg live in C:\AQUAscat_Toolkit, which is where I'm running my compiler, but I haven't explicitly included that path in the compiler settings, so why has it put it in a subfolder and not in the root? It seems to be using absolute rather than relative paths. I cannot find any setting to change the source file root. Also, since the subfolder in ctfroot is a truncated version of the original, how safe would it be to assume that my file will always be in a subfolder with that name?
  댓글 수: 4
Image Analyst
Image Analyst 2019년 8월 16일
What is "cli"?
Kees Aalbers
Kees Aalbers 2019년 10월 8일
cli - command line interface

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

답변 (1개)

Bereketab Gulai
Bereketab Gulai 2019년 10월 8일
The issue whereby the resource location was changed after several times of compiling. Occurred because the resources folder added was not in the matlab path.
Try it and add the all paths to the matlab session during compiling.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by