What is the difference between 'none' and 'off' using find_system with 'LookUnderMasks' (MATLAB 2017b)?

9 views (last 30 days)
What is the difference between the two following commands:
find_system(gcs, 'LookUnderMasks', 'none', 'FollowLinks', 'on')
find_system(gcs, 'LookUnderMasks', 'off', 'FollowLinks', 'on')
MATLAB Help says for both values "Search skips masked subsystems". I tried both commands and the behavior is different but I don't understand the difference with respect to the description in the MATLAB Help. The different behavior I see is that with 'none' the function doesn't search inside linked libraries in some cases but with 'off' it does.
Is there a more detailed description of the behavior of these two values? In some cases I see a difference but the MATLAB Help doesn't explain that difference.
I'm using MATLAB 2017b but in e.g. 2022b the description of these two values in the MATLAB Help is the same, too.
Thank you!
  3 Comments
Amadeus Dieter
Amadeus Dieter on 27 Jan 2023
Thank you for your reply.
Yes, I know that "linked libraries" is actually determined by "FollowLinks". In my example above "FollowLinks" should be "on". I'm going to correct my original post.
Anyway, the described behavior is what I see. But maybe the different behavior doesn't originate from linked libraries and appears with normal subsystems, too. I have to test this.
But this will not answer the question of different behavior of "none" and "off".
Fangjun Jiang
Fangjun Jiang on 27 Jan 2023
"The different behavior I see is that with 'none' the function doesn't search inside linked libraries in some cases but with 'off' it does."
Can you provide an example to show the problem? 'none' or 'off' means the same for 'LookUnderMasks'.

Sign in to comment.

Answers (1)

Suman
Suman on 26 Sep 2024
The 'none' and 'off' are exactly the same for 'LookUnderMasks'. Similarly, 'all' and 'on' are also equivalent. In fact, in the later releases, the 'on' and 'off' have been replaced with 'all' and 'none' as mentioned here.

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!