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

2 ビュー (過去 30 日間)
Luca
Luca 2013 年 7 月 22 日
回答済み: Divyajyoti Nayak 2025 年 6 月 3 日
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:

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by