Main Content

slreportgen.utils.hasUniqueModelNotes

R2026b

Check if system has unique model notes

Since R2025a

    Description

    tf = slreportgen.utils.hasUniqueModelNotes(src) returns 1 (true) if the input source has model notes and 0 (false) if the input source inherits notes from its parent or does not use notes.

    You can use this function to check if a source has model notes before you try to use the source with an slreportgen.report.Notes reporter.

    example

    Examples

    collapse all

    modelname = "sldemo_autotrans";
    openExample(modelname);
    tf = slreportgen.utils.hasUniqueModelNotes(modelname)
    tf =
    
      logical
    
       1

    Input Arguments

    collapse all

    Source to check for model notes, specified as a character vector or string scalar that contains the path to the system or a handle to a Simulink® model or subsystem.

    Output Arguments

    collapse all

    Whether source has unique model notes, returned as 1 (true) if the input source has unique model notes or 0 (false) if the input source inherits notes from its parent or does not use notes.

    Version History

    Introduced in R2025a