Matlab function block parsing error
Show older comments
I have a matlab function block that solves the heat trasfer in a system using a finite difference scheme that I want to implement in a simulink system model. When i try to implement the code in a matlab function block I get the following error:
Errors occurred during parsing of MATLAB function 'Membrane1'(#144)
I has seen other folks have similar issues when variables are not preallocated correctly, but I don't think that is the issues here as all my inputs, outputs, and intermediates are preallocated.
I also don't think I am using any opperaters not supported by #codegen
Attached is the full code and an image of the way the matlab function block is connected. Please let me know if you have any ideas.
Answers (0)
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!