Accessing Time-Scope block "Style" properties from Matlab command line

1 vue (au cours des 30 derniers jours)
Luca
Luca le 22 Juil 2013
Hello everybody! I'm wondering if there's a way to change line properties (the most important for me is line visibility) programmatically for the Time-Scope block in DSP System Toolbox. If there is, how?
Many thanks! Cheers, Luchka

Réponses (1)

Divyajyoti Nayak
Divyajyoti Nayak le 3 Juin 2025
Hi @Luca,
As of R2024b, the styling properties of the 'timescope' object are accessible in MATLAB. This includes line visibility.
scope = timescope %sample timescope object
scope =
timescope handle with properties: SampleRate: 1 TimeSpanSource: 'auto' TimeSpanOverrunAction: 'scroll' AxesScaling: 'onceatstop' Show all properties
scope.LineVisible
ans =
OnOffSwitchState enumeration on
scope.LineVisible = 'off';
scope.LineVisible
ans =
OnOffSwitchState enumeration off
More color and styling properties of the timescope object can be found in its documentation page:

Community Treasure Hunt

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

Start Hunting!

Translated by