How do you quickly format plots from the scope in Simulink?

2 vues (au cours des 30 derniers jours)
Jesse Mikulec
Jesse Mikulec le 7 Avr 2022
Say you are generating lots of plots from the scope in simulink and you want to make them all look nicer using a consistent format (i.e. axis title and legend fond sizes and color, axis lables, gridlines etc.), what is the most efficient way to apply the same formatting to all these plots without having to use Property Inspector to manually change each feature of each plot?

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 7 Avr 2022
Instead of using Scope, save the signal data using "To Workspace" or "To File" block. Write a M-script function to plot.
see plot(), title(), grid(), axis(), legend()

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by