Start of trail qc_draw_text navigation bar

Table of Contents

qc_copy_model

Copies the model to the given filename without renaming the original model.

Syntax

        qc_copy_model(model, filename)      % Copies the model to the given file
        qc_copy_model(config_set, filename) % Copies the model associated with the specified configuration set to the given file
        qc_copy_model(filename)             % Copies the current model to the given file
        qc_copy_model                       % Copies the current model to the file returned by qc_get_model_copy
    

Description

Copies the model to the given file. The model is not renamed in the process. The user will be prompted if the model has not been saved because the model must be saved to be copied. If no extension is given on filename then the standard '.mdl' extension is added.

Parameters

model

A string containing the name of a model to be copied.

config_set

A Simulink.ConfigSet configuration set (see

getConfigSet

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc getConfigSet
). The model associated with the configuration set is copied.

filename

A string containing the name of the file to use for the copy. If no extension is specified then a default extension of '.mdl' is used.

Outputs

This function has no outputs.

Examples

qc_copy_model('q_a_lpbk', 'q_a_lpbk_copy'); % Copy the q_a_lpbk model to 'q_a_lpbk_copy.mdl'
    

See Also

 

navigation bar