How to return a structure from c code in MATLAB function block of simulink (not c caller function)

Hi all, How to return a structure from c code in MATLAB function block of simulink (not c caller function). Thanks in advance. Karthik R

Answers (1)

as an alternative to MATLAB function block you can also make use of C function block to model your system, refer to one such example below:

Categories

Asked:

on 23 Oct 2019

Edited:

on 17 Apr 2025

Community Treasure Hunt

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

Start Hunting!