simulink.schedule.createSchedule

Create a new schedule using provided schedule and ordering

Description

outputSchedule = createSchedule(inputSchedule, partitionOrder) creates a new simulink.schedule.OrderedSchedule object, sch with all the partitions present in the simulink.schedule.OrderedSchedule object, inputSchedule, according to order specified by the vector, partitionOrder.

outputSchedule = createSchedule(inputSchedule, partitionOrder, 'IgnoreExtra',true) creates a new simulink.schedule.OrderedSchedule object, sch with all the partitions present in the simulink.schedule.OrderedSchedule, Schedule, according to order specified by the parameter, partitionOrder while ignoring any partitions that are not already present in sch. PartitionOrder must contain all partitions of inputSchedule.

Input Arguments

collapse all

An existing simulink.schedule.Orderedschedule object copied to create new schedule.

Partition names in the desired order, specified as a vector of strings.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'IgnoreExtra', true

When specified as true, the createSchedule function ignores any additional partitions in partitionOrder that are not present in the object, inputSchedule.

Output Arguments

collapse all

Introduced in R2020a