Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isempty

Determine whether dynamic system model is empty

Syntax

isempty(sys)

Description

isempty(sys) returns a logical value of 1 (true) if the dynamic system model sys has no input or no output, and a logical value of 0 (false) otherwise. Where sys is a frd model, isempty(sys) returns 1 when the frequency vector is empty. Where sys is a model array, isempty(sys) returns 1 when the array has empty dimensions or when the LTI models in the array are empty.

Examples

Both commands

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

return 1 while

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

returns 0.

See Also

|

Introduced before R2006a

Was this topic helpful?