isempty - Determine whether LTI model is empty

Syntax

isempty(sys)

Description

isempty(sys) returns 1 (true) if the LTI model sys has no input or no output, and 0 (false) otherwise.

Example

Both commands

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

return 1 (true) while

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

returns 0 (false).

See Also

issiso, size

  


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