Is there a way to pass a cell array into a MATLAB Function Block in Simulink?

I have a matlab function block in Simulink that needs to use the data in a cell array but I'm struggling to find a way to do it.
Simulink apparently does not support cell array format so does it need to be converted into something else? Or is there some way of using busses to get it to work?
The cell array is in the base workspace so if theres a way to access it directly from there without it going through simulink that would do but the fucntion needs to be able to run while the simulink simulation is running.
Kind thanks to anyone who has any suggestions.
EDIT: Even a way to access the variable from a workspace instead of first putting it into Simulink would be great, but even that is proving tricky.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2018a

Asked:

Hew
on 31 Mar 2019

Edited:

Hew
on 1 Apr 2019

Community Treasure Hunt

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

Start Hunting!