Main Content

simulink.schedule.createSchedule

Create a new schedule using provided schedule and ordering

Since R2020a

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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

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

A new or modified simulink.schedule.Orderedschedule object.

Version History

Introduced in R2020a