FUNCTION REFERENCE

initial

Zero-input state response from an initial state.

Zero-input state response from an initial state.

Syntax

[y,t,x] = initial(sys,x0[,t_or_final_time])

Syntax

initial(sys1,sys2,...,x0[,t_or_final_time])

Requires state-space models and a real vector x0 with one entry per state. Rows are times, with columns for outputs in y and states in x. Without outputs, draws one axes per output; multiple systems overlay using the same x0. Continuous propagation uses a matrix exponential; discrete propagation recurses at Ts.

Automatic time follows step: poles with abs(p)<=1e-10 are treated as integrators and contribute 10; other stable poles contribute 7/abs(real(p)), other unstable or imaginary poles 10/abs(p). Use the largest contribution, with a static fallback of 10 (100*Ts if discrete). Discrete poles use log(z)/Ts. Rates above the integrator threshold with abs(real(p))<=1e-10*abs(p) are treated as purely imaginary and contribute 10/abs(p), including rates obtained from discrete poles. Continuous grids use clamp(ceil(25*Tfinal*fastest_pole_rate)+1,100,10000) points; discrete grids have floor(Tfinal/Ts)+1 points at Ts, at most 10000. Default discrete counts are clamped to 100..10000 while keeping Ts, extending or truncating the horizon. Explicit time must start at zero and be uniform, with 2..10000 points and spacing Ts for discrete models.

Example

G=ss([0 1;-1 -0.4],[0;1],[1 0],0); [y,t]=initial(G,[1;0],0:0.1:10)

Differences from MATLAB: Only state-space models are accepted. Automatic grids differ, and nonuniform or nonzero-start time vectors are rejected.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.