Documentation

isstruct

Determine whether input is structure array

Syntax

tf = isstruct(A)

Description

tf = isstruct(A)returns logical1(true) ifAis a MATLAB®结构体ure and logical0(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

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?