In MATLAB/Simulink I got a Simulink model with blocks, there I have put a struct into the UserData of a block. How can I get or compare something with the data inside the struct?
I made it like this:
my_struct = struct('Function', 'receive', 'Version', '0.1');
set_param(gcb, 'UserData', my_struct);
Now how can i check in my matlab script which of the blocks that i found with:
all_blocks = find_system(gcs, 'Tag', 'All_blocks_have_this_tag');
have the value 'receive' in their 'UserData'.'Function'?
find_system
to get all blocks, then check the parameter. I am not aware of any better solution. – Daniel