|On this page…|
Before you specify estimation data, create an experiment. At the MATLAB® prompt, open the nonlinear idle speed model of an automotive engine by typing
In the Simulink® model window, open the Parameter Estimation tool by selecting Analysis > Parameter Estimation.
In the Parameter Estimation tool, on the Parameter Estimation tab, click New Experiment.
This action creates an experiment called Exp in the Experiments list in the Data Browser panel and opens the experiment editor. To change the name of the experiment, right-click Exp and select Rename. If you rename it NewData, the Experiments list now looks like this:
To learn more about how to further modify an experiment using the experiment editor, see Experiment Editor.
After you create the experiment, you can import the estimation data into the experiment. Launch the experiment editor by right-clicking on NewData and selecting Edit....
The rows in the Inputs panel of the editor correspond to Inport block BPAV in the engine_idle_speed model. See Import Data.
The rows in the Outputs panel correspond to Outport block Engine Speed. You can import signal data from files or MATLAB workspace.
The idle-speed model of an automotive engine contains the measured data stored in the iodata array in the workspace. The array contains two columns: the first for input data, and the second for output data. The time data is in the time array in the workspace. You can import the input data by typing [time,iodata(:,1)] in the dialog box in the Inputs panel.
You can import the output data by typing [time,iodata(:,2)] in the dialog box in the Outputs panel.