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

2 Ansichten (letzte 30 Tage)
Luca
Luca am 22 Jul. 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

Antworten (1)

Divyajyoti Nayak
Divyajyoti Nayak am 3 Jun. 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