Download a script (*.m) instead of BLOCK DIAGRAM (*mdl) into target PC.

Can I download a script (*.m) instead of BLOCK DIAGRAM (*mdl) into target PC. How to do it? What toolboxes do I need?

Answers (2)

You can use MATLAB Coder to generate standalone C code from MATLAB code and compile it into an executable or library for the host machine. If your target is different from the host, you can adjust the datatype sizes, but might need to adjust the build rules manually.
You could probably download it, but you wouldn't be able to run it. The target is not running MATLAB.

Asked:

c
c
on 31 May 2013

Community Treasure Hunt

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

Start Hunting!