sim_regularize

PURPOSE ^

SIM_REGULARIZE Regularize the results of variable-step model simulation

SYNOPSIS ^

function varargout = sim_regularize(varargin)

DESCRIPTION ^

SIM_REGULARIZE Regularize the results of variable-step model simulation

 Usage: [Y1, Y2, ..., T] = SIM_REGULARIZE(Y1, Y2, ..., T, DTMIN)

 where  Y1, Y2, ... - time domain responses to regularize,
        T           - non-regularly spaced vector with time samples [s],
        DTMIN       - minimum allowed step size [s].

 The function will compute the time step sizes at all samples and remove
 all Y1, Y2, ... entries at times such that T<DTMIN. A new regularly
 spaced time vector will then be created and Y1, Y2 will be populated with
 values such that Y1(T1:T2) = Y(T1), where T2-T1 is the index of the
 corresponding step size in computation.

 Please note that interpolation is not used in this case. The user can
 interpolate the data per the objective using e.g. interp1() function.

 See also: fpid_optimize_sim

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 21-Sep-2012 09:46:34 by m2html © 2005