Skip to Main Content Skip to Search
Product Documentation

isstruct - Determine whether input is structure array

Syntax

tf = isstruct(A)

Description

tf = isstruct(A) returns logical 1 (true) if A is a MATLAB structure and logical 0 (false) otherwise.

Examples

patient.name = 'John Doe';
patient.billing = 127.00;
patient.test = [79 75 73; 180 178 177.5; 220 210 205];

isstruct(patient)

ans =

     1

See Also

is* | isa | iscell | ischar | isfield | islogical | isnumeric | isobject | struct

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS