About matlab in real world

4 views (last 30 days)
divyanshu
divyanshu on 24 Mar 2014
Answered: Walter Roberson on 24 Mar 2014
i am doing a project on digital image processing using matlab. i have tested the code and its output, everything is working great but now i have to isolate the matlab from my project as i want to test my project as a real world application(as i cannot have a laptop everytime i want to implement my project), so my question is how do i implement it(like using a microcontroller, if yes, which one?) and may be other ways?

Answers (1)

Walter Roberson
Walter Roberson on 24 Mar 2014
There are a few different approaches:
  1. MATLAB Compiler can generate stand-alone executables for the operating systems that MATLAB itself runs on. These executables are essentially MATLAB without the command prompt.
  2. MATLAB Coder can generate C or C++ code that can then be compiled by any C compiler including by compilers for microcomputers. There are a bunch of restrictions, including that the generated code will not itself have any ability to display graphics
  3. Simulink Coder can generate C or C++ code corresponding to Simulink models; I am not sure what its limits are
  4. HDL Coder and Simulink HDL Coder require MATLAB Coder also, and can generate VHDL suitable for use on FPGA
  5. Real-Time Workshop for Simulink; I would have to review how it works before summarizing it
Graphics output will be a problem for you for anything other than MATLAB Compiler or perhaps Reat-Time Workshop. It is by no means impossible, but there are numerous ways of doing graphics and you would need to write C or C++ code to handle it (or to interface to manufacturer-provided libraries)

Community Treasure Hunt

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

Start Hunting!