Table of Contents
qc_copy_model
Copies the model to the given filename without renaming the original model.
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
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.
model
A string containing the name of a model to be copied.
config_set
A Simulink.ConfigSet configuration set (see
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
doc getConfigSetfilename
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.
This function has no outputs.
qc_copy_model('q_a_lpbk', 'q_a_lpbk_copy'); % Copy the q_a_lpbk model to 'q_a_lpbk_copy.mdl'
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.