![]() The sampling period is chosen automatically based on the system dynamics, except when a time vector t = 0:dt:Tf is supplied ( dt is then used as sampling period). To simulate this response, the system is discretized using zero-order hold on the inputs. Is equivalent to the following unforced response with initial state. The impulse response of a single-input state-space model The impulse response of the first input channel is then accessed byĬontinuous-time models are first converted to state space. (the first dimension is the length of t). You can store the impulse response data in MATLAB arrays byīecause this system has two inputs, y is a 3-D array with dimensions The left plot shows the impulse response of the first input channel, and the right plot shows the impulse response of the second input channel. To plot the impulse response of the second-order state-space model ![]() The dimensions of y are thenĪnd y(:,:,j) gives the response to an impulse disturbance entering the jth input channel. In the multi-input case, the impulse responses of each input channel are stacked up along the third dimension of y. For single-input systems, y has as many rows as time samples (length of t), and as many columns as outputs. Return the output response y, the time vector t used for simulation, and the state trajectories x (for state-space models only). = impulse(sys) % for state-space models only See "Plotting and Comparing Multiple Systems" and the bode entry in this section for more details.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |