Get "Unrecognized function or variable 'H'." when try to plot graph using variable imported from simulink using "To Workspace" block diagram in MATLAB
5 views (last 30 days)
Navya Singam on 10 Jan 2022
From my understanding you are trying to save the output data to the MATLAB workspace using the To Workspace Block.
To Workspace Block saves the output to the workspace in the form of structure. It is saved inside the structure out. So variable 'H' can be accessed using the out.H, as the variable is stored in the structure out.
If you want to save the data in the array format in the structure, double click on the To workspace block and in the choose Array in the Save Format.