How to remove markers from all scopes in simulink programmatically

9 views (last 30 days)
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

Accepted Answer

Sugandhi
Sugandhi on 20 Feb 2023
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 –

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!