qc_build_model qc_download_model navigation bar

Table of Contents

qc_clean_model

Removes generated code for a model in preparation for a fresh build.

Syntax

qc_clean_model(model, option, ...) % Removes the generated code for the model, with options
qc_clean_model(model)              % Removes the generated code for the model
qc_clean_model(option, ...)        % Removes the generated code for the current model, with options
qc_clean_model                     % Removes the generated code for the current model
    

Description

Removes the generated code for a model. Normally only the generated code specific to the model is quietly cleaned out. However, this behavior can be modified by specifying one or more of the following options:

'all'

-

delete the shared code for the model in the slprj folder as well

'confirm'

-

require user confirmation before deleting the generated code

If no model is specified then the current model as returned by

bdroot

MATLAB Command Line

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

doc bdroot
is used.

Parameters

model

A string indicating the name of the model to clean. eg. 'q_a_lpbk'.

option

One of the option strings: 'all' or 'confirm'.

Outputs

This function has no outputs.

Examples

qc_clean_model('q_a_lpbk'); % Removes the generated code for the q_a_lpbk model
    

See Also

 

navigation bar