Main Content


Get number that uniquely identifies profiled code section (MATLAB code generation)



SectionNumber = NthSectionProfile.Number returns a number that uniquely identifies the profiled code section.


collapse all

To get the number that identifies the profiled code section, use the Number property of the NthSectionProfile object.

SectionNumber = NthSectionProfile.Number;

Input Arguments

collapse all

The NthSectionProfile is a coder.profile.ExecutionTimeSection object generated by the coder.profile.ExecutionTime property Sections.

Example: NthSectionProfile

Output Arguments

collapse all

The SectionNumber is the number of the profiled code section.

Introduced in R2012b