1
Open matlab, here I take my own as an example.
2
Open your program or simulink simulation diagram, both of which can set the oscilloscope output.
three
Run the program or simulation diagram to get the waveform. The following oscilloscope settings are the default settings of the system, and we will modify them below.
four
Go back to the Command Window and enter.
set(0,' ShowHiddenHandles ',' On ')
Collection (gcf,' menu bar',' graph')
Then press enter.
five
At this point, if you click the oscilloscope again, you will find a toolbar on the oscilloscope.
six
Select an axis under Insert.
seven
Double-click anywhere on the oscilloscope. Of course, it cannot be a "close" button.
eight
Now you can set up the oscilloscope, and here I change the background to white.
nine
You can also set the line type. I'll change this line to blue.
10
Finally, you get such a waveform and background. Of course, there are more settings. Set them according to your own needs.