createAllocationSet

Create a new allocation set

    Description

    example

    allocSet = systemcomposer.allocation.createAllocationSet(name, sourceModel, targetModel) creates a new allocation set with the given name in which the source and target models are provided.

    Examples

    collapse all

    % Create the allocation set with name MyNewAllocation.
    systemcomposer.allocation.createAllocationSet('MyNewAllocation',...
         'Source_Model_Allocation','Target_Model_Allocation');
    
    % Open the allocation editor 
    systemcomposer.allocation.editor()

    Input Arguments

    collapse all

    Name of allocation set, specified as a systemcomposer.arch.Model object or the name of a model as a character vector.

    Source model for allocation, specified as a systemcomposer.arch.Model object or the name of a model as a character vector.

    Target model for allocation, specified as a systemcomposer.arch.Model object or the name of a model as a character vector.

    Output Arguments

    collapse all

    Allocation set created, returned as a systemcomposer.allocation.AllocationSet object.

    Introduced in R2020b