Products & Services Solutions Academia Support User Community Company

Learn more about Control System Toolbox   

isempty - Determine whether LTI model is empty

Syntax

isempty(sys)

Description

isempty(sys) returns TRUE (logical 1) if the LTI model sys has no input or no output, and FALSE (logical 0) otherwise. Where sys is a FRD model, isempty(sys) returns TRUE when the frequency vector is empty. Where sys is an array of LTI models, isempty(sys) returns TRUE when the array has empty dimensions or when the LTI models in the array are empty.

Example

Both commands

isempty(tf)   % tf by itself returns an empty transfer function
isempty(ss(1,2,[],[]))

return TRUE (logical 1) while

isempty(ss(1,2,3,4))

returns FALSE (logical 0).

See Also

issiso, size

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS