In Matlab, you can transfer your Simulink scope data to the Matlab Workpace.
This post shows how to transfer the output graph of a scope to Workspace in such a way that you can avoid unnecessary usage of ink and make more analysis on your Matlab Simulink simulation.
First of all, double click the scope in your Simulink then select "Data history".
In this section:
Firstly, check the "Save data to workspace" box
Then, enter your desired variable name
After that, change its format to "Array" as shown in diagram below.
