MATLAB Function Reference | Go to function: | Search Help Desk

regress |

extracts the regressors from the data

Syntax

    [r_in,r_out]=get_regressors(m)

    [r_in,r_out]=get_regressors(m,j)

Description

`[r_in,r_out]=get_regressors(m)` extracts the regressors from the model `m`, for all the outputs of the system.

`[r_in,r_out]=get_regressors(m,j)` extracts the regressors from the model `m`, for all the outputs of the system defined in the array `j`.

Remarks

This function uses the dynamical system representation stored in the 'dynamics' field to extract the regressors form the input-output data stored in the 'data' field. The function returns the input regressors `r_in` in a cell array. Each element of the cell array is a regressor associated with an output. Each regressor is an array of size `size_regressor * num_exaples`, where `size_regressor` depends from the structure of the regressor defined in the dynamical description of the system, and `num_exaples` is the number of exaples given in the input-output data set. `r_in` is a cell array returing the corrispondent output of each regressor taken from the output data set. Each entry in the cell array is a vector of size `1 * num_exaples`.

[ Help Desk ]