| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Model Predictive Control Toolbox |
| Contents | Index |
Importing a Controller
To import a controller, do one of the following:
The MPC Controller Importer dialog box opens. The following sections describe its options:
Import from
Use these options to set the location from which the controller will be imported.
MATLAB® Workspace
This is the default option and is the case shown in the above example. The Items in your workspace area in the upper-right corner lists all MPC objects in your workspace. Select one by clicking it. The Properties area lists the properties of the selected model.
MAT-File
The upper part of the dialog box changes as shown below.
The MAT-file name edit box becomes active. Type the desired MAT-file name here (if it's not on the MATLAB® path, enter the complete file path). You can also use the Browse button which opens a standard file chooser dialog box.
In the above example, file Controllers.mat contains two MPC objects. Their names appear in the Items in your MAT-file area in the upper-right corner.
Import to
This allows you to specify the MPC task into which the controller will be imported (see example below). It defaults to that most recently active.
Import
Select the controller you want to import from the Items list in the upper-right corner. Verify that the Import to option designates the correct project/task. Click the Import button to import the controller.
The new controller should appear in the tree as a subnode of Controllers. (See Tree View.)
The imported controller contains a plant model, which appears in the Plant models list. (See Plant Models View.)
| Note If the selected controller is incompatible with any others in the designated project, the design tool will not import it. |
Close
Click Close to close the dialog box. You can also click the Close icon on the title bar.
| Provide feedback about this page |
![]() | Importing a Plant Model | Exporting a Controller | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |