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:
Generating C++ code

Subject: Generating C++ code

From: Liana

Date: 29 Aug, 2011 15:06:26

Message: 1 of 3

Hello:

I would like to generate C++ code using MATLAB Compiler. So, what I have is a list of functions (*.m files) and GUI with figures. Questions:
1) Can I run Compiler for this GUI? Or do I need to have only functions without any graphical interface?
2) Do I need to manually connect all *.m files? Or is it enough to define the main *.m file and all other files will be attached automatically?

Thanks.

Subject: Generating C++ code

From: Brian Lee

Date: 29 Aug, 2011 19:49:11

Message: 2 of 3

I am note sure how to write c++ code, but it is fairly easy to compile into a .exe

If you have the compiler package, type mcc -m file_name

There are other options with the mcc command that may get you what you want.

Subject: Generating C++ code

From: Liana

Date: 2 Sep, 2011 20:15:25

Message: 3 of 3

Thank you, I used 'deploytool' to get C++ Shared Library. I still have some open questions, but in general it's clear.

"Brian Lee" <blee66@rams.colostate.edu> wrote in message <j3gqfn$rip$1@newscl01ah.mathworks.com>...
> I am note sure how to write c++ code, but it is fairly easy to compile into a .exe
>
> If you have the compiler package, type mcc -m file_name
>
> There are other options with the mcc command that may get you what you want.

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