Documentation

Sections

Get array ofcoder.profile.ExecutionTimeSectionobjects for profiled code sections

Syntax

NthSectionProfile=myExecutionProfile.Sections(N)
numberOfSections= length(myExecutionProfile.Sections)

Description

NthSectionProfile=myExecutionProfile.Sections(N)returns ancoder.profile.ExecutionTimeSectionobject for theNth profiled code section.

numberOfSections= length(myExecutionProfile.Sections)returns the number of code sections for which profile data is available.

myExecutionProfileis a workspace variable generated by a simulation.

Input Arguments

N

Index of code section for which profile data is required

Output Arguments

NthSectionProfile

Object that contains profile information about the code section. You can use the followingcoder.profile.ExecutionTimeSectionmethods to retrieve the information:

numberOfSections

Number of code sections with profile data

Introduced in R2012b