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

5 次查看(过去 30 天)
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

回答(1 个)

Divyajyoti Nayak
Divyajyoti Nayak 2025-6-3
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