MATLAB: Is it possible to load an array to the simulink workspace and call it in a matlab function

arraysimulinkworkspace

I have made and array in 3 dimensions initialize with zeros. I would like to import it in the simulink workspace and call it from a matlab function. Is that possible?

Best Answer

If it is a numeric array, then there are several possible ways. The easiest one is to use a constant block, write the name of the 3D variable as the value of the constant block, and then attach that constant block as input to the MATLAB function block.