Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
matlab compiler, matlab path, expanded ctf issues

Subject: matlab compiler, matlab path, expanded ctf issues

From: Misha Koshelev

Date: 25 Jun, 2009 01:23:01

Message: 1 of 4

Dear All:

If anyone has used the matlab compiler I would appreciate some help.

I make a very simple test case test.m:
function test
    fprintf('Hello world\n');
    test2

And test2.m:
function test2
    fprintf('2Hello world\n');

I do mcc -m test

Run it runs beautifully.

Now, same thing, move test2.m somewhere on matlab path. test still runs in matlab. I do mcc -m test, and get error:
misha@misha-d630:~/Montague Lab/code$ ./test
This MATLAB file does not have proper version information and may be corrupt.
The file
   '/home/misha/Montague/matlab/test2.m'
   is not in the application's expanded CTF archive at
    '/home/misha/.mcr_cache_v78/test_76D3A49E2BAD9671283F48CFD4C9C63F'.
This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications.
??? An error occurred while trying to determine whether "test2" is a function name.

Please help.

Thank you
Misha

Subject: matlab compiler, matlab path, expanded ctf issues

From: CyberFrog

Date: 12 Jan, 2010 11:58:57

Message: 2 of 4

Hi Misha,
I have just come across this same problem, did you ever figure this out in the end?

Thanks

Subject: matlab compiler, matlab path, expanded ctf issues

From: Misha Koshelev

Date: 12 Jan, 2010 13:12:05

Message: 3 of 4

CyberFrog <domlee55@hotmail.com> wrote in message <299841556.55624.1263297568019.JavaMail.root@gallium.mathforum.org>...
> Hi Misha,
> I have just come across this same problem, did you ever figure this out in the end?
>
> Thanks

Sorry, no luck :( Please let me know if you figure out!

Misha

Subject: matlab compiler, matlab path, expanded ctf issues

From: Peter Webb

Date: 12 Jan, 2010 16:34:13

Message: 4 of 4

Can you elaborate on the problem? I think I must have missed the initial
posting.

"CyberFrog" <domlee55@hotmail.com> wrote in message
news:299841556.55624.1263297568019.JavaMail.root@gallium.mathforum.org...
> Hi Misha,
> I have just come across this same problem, did you ever figure this out in
> the end?
>
> Thanks

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us