| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Model Predictive Control Toolbox |
| Contents | Index |
Exporting a Controller
To export a controller, do one of the following:
The MPC Controller Exporter dialog box opens (see example below). The following sections describe its options:
Dialog Box Options
The following sections describe the dialog box options.
Controller source
Use this to select the project/task containing the controller to be exported. It defaults to the project/task most recently active.
Controller to export
Use this to specify the controller to be exported. It defaults to the controller most recently selected in the tree.
Name to assign
Use this to assign a valid MATLAB® variable name (no spaces). It defaults to the selected controller's name (with spaces removed, if any).
Export to MATLAB workspace
Select this option if you want the controller to be exported to the MATLAB workspace.
Export to MAT-file
Select this option if you want the controller to be exported to a MAT-file.
Export
If you've selected the Export to MATLAB workspace option, clicking Export causes a new MPC object to be created in your MATLAB workspace. (If one having the assigned name already exists, you'll be asked if you want to overwrite it.) You can use the MATLAB whos command to verify that the controller has been exported.
If you've selected the Export to MAT-file option, clicking Export opens a standard file chooser that allows you to specify the file.
In either case, the dialog box remains visible, allowing you to export additional controllers.
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 Controller | Signal Definition View | ![]() |

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 |