You can use the From Workspace
block to read the data( lets say simin ) from the worspace.
The variable simin should a structure with following fields:
That's for importing data into Simulink. For exporting the data, you can use the To Workspace block in the Simulink library.
Notice, that the output will also be a structure unless, you specify in the properties of the To Workspace to be an array.
You can refer to the documentation here
Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…