| Contents | Index |
This section lists other limitations that apply when generating HDL code with the MATLAB Function block.
The HDL compatibility checker (checkhdl) performs only a basic compatibility check on the MATLAB Function block. HDL related warnings or errors may arise during code generation from a MATLAB Function block that is otherwise valid for simulation. Such errors are reported in a separate message window.
The MATLAB Function block does not support nested functions. Subfunctions are supported, however. For an example, see Tutorial Example: Incrementer.
Use of multiple values on the left side of an expression is not supported. For example, an error results from the following assignment statement:
[t1, t2, t3] = [1, 2, 3];
![]() | Language Support | Generating Scripts for HDL Simulators and Synthesis Tools | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |