How can you get/compare values of a struct in the UserData of a MATLAB/Simulink block
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'?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.