How to remove markers from all scopes in simulink programmatically

6 ビュー (過去 30 日間)
F Reissner
F Reissner 2023 年 1 月 30 日
コメント済み: F Reissner 2023 年 2 月 20 日
Dear community,
I would like to remove markers from all lines in all scopes in a simulation.
How can I access the style object of the scope?
This is a start:
mdl = 'simulink_model';
scopes = find_system(mdl,'AllBlocks','on','BlockType','Scope')
%% open all scopes (only for a test)
for k=1:length(scopes)
open_system(scopes{k})
end
%% get the line handle of a scope
h_line = get_param(scopes{k},'LineHandles').Inport()
% but now, how can I change the style ?
Feedback is very appreciated.
Best,
Florian

採用された回答

Sugandhi
Sugandhi 2023 年 2 月 20 日
Hi,
I understand that you want to remove markers from all scopes in a model programmatically.
You can programmatically access configuration properties of scope, but the marker comes under style properties. For now, there is no workaround to access markers programmatically.
For more information, kindly go through the following link –
  1 件のコメント
F Reissner
F Reissner 2023 年 2 月 20 日
Bummer it is not possible, but thank you a lot for answering!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by