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

6 次查看(过去 30 天)
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 个评论
Amadeus Dieter
Amadeus Dieter 2023-1-27
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 2023-1-27
"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'.

请先登录,再进行评论。

回答(1 个)

Suman
Suman 2024-9-26
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.

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by