MCC unable to locate file as a function on MATLAB path

1 view (last 30 days)
Hi,
While trying to compile with matlab packages, I get the 'Unable to locate func.m as a function on the MATLAB path'
I am using matlab packages and say the func.m file exists in a +tools folder,and the main.m function calls the func.m as tools.func().
I tried the following without success:
1) mcc -m main.m tools.func.m
2) mcc -m main.m func.m
Thanks for any help.
Thanks, Shiva
  2 Comments
shiva
shiva on 1 Apr 2013
Edited: shiva on 1 Apr 2013
Yes, i suppose it is on the MATLAB path, but since we are calling the function as foldername.function(), so I am not sure. Also, I tried adding the +tool to the path as well, but got a Warning: Package directories not allowed in MATLAB path.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!