- Create a new filter via the 'New Filter' button in the toolstrip.
- For the first rule, change the text in the first column to 'PortProperties' and delete the Parameter condition by clicking in the Parameter Name section and clicking the minus button. Since 'PortProperties' is currently not included in the drop-down list, you will need to manually type 'PortProperties' and then remove the parameter conditions.
- Click 'Add Rule' and repeat the same steps but adding 'Port' to the second rule's first column instead of 'PortProperties'.
How to hide 'PortProperties' and child elements when using compare tool in Simulink R2024b?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 22 Aug 2025
Answered: MathWorks Support Team
on 5 Nov 2025 at 14:50
I am trying to use the 'compare' tool in Simulink. When I compare two versions of a model, the 'PortProperties' and child items are shown for one of the Simulink models but not for the other one, as shown below:

I would like to hide 'PortProperties' and child elements. I am able to hide the 'Type', 'PropagatedSignals' and 'Index' items by creating filters, but not the 'Port' and 'PortProperties'. How do I create a filer for hiding these properties?
Accepted Answer
MathWorks Support Team
on 22 Aug 2025
Filters for 'Port' and 'PortProperties' nodes can be created by doing the following:
Alternatively, an XML file, similar to 'portFilter.xml' (attached), can be created and imported to implement these rules.
Starting with R2025a, filtering has been completely redesigned and now works very differently. Therefore, we encourage upgrading to R2025a.
0 Comments
More Answers (0)
See Also
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!