Generating C code from MATLAB can be a powerful tool for a wide range of engineering problems. Especially in cases where MATLAB excels, including matrix operations and some of the built-in functions, code conversion may represent a significant assistance in their development. The aim of this master's thesis is to explore the possibilities of generating C code using MATLAB Coder App. As the documentation for MATLAB Coder was not found sufficient a theoretical basis for the use of this tool was introduced along with simple examples of possible applications. Next, code generation for controlling a laboratory DC motor using a microcontroller dsPIC was made automatic and controlled directly from a single MATLAB script. Individual steps were described to supplement existing documentation and to allow for an easy use. Finally, selected functions were tested for code generation. As a result, certain limitations can be outlined, as well as suitability of both the created tool and the MATLAB Coder App.
Identifer | oai:union.ndltd.org:nusl.cz/oai:invenio.nusl.cz:402535 |
Date | January 2019 |
Creators | Mácha, Tomáš |
Contributors | Křivánek, Václav, Grepl, Robert |
Publisher | Vysoké učení technické v Brně. Fakulta strojního inženýrství |
Source Sets | Czech ETDs |
Language | Czech |
Detected Language | English |
Type | info:eu-repo/semantics/masterThesis |
Rights | info:eu-repo/semantics/restrictedAccess |
Page generated in 0.0018 seconds