28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

islogical<br />

2islogical<br />

Purpose Determine if input is a logical array<br />

Syntax tf = islogical(A)<br />

Description tf = islogical(A) returns logical true (1) if A is a logical array and logical<br />

false (0) otherwise.<br />

Examples Given the following cell array,<br />

2-1242<br />

C{1,1} = pi; % double<br />

C{1,2} = 1; % double<br />

C{1,3} = ispc; % logical<br />

C{1,4} = magic(3) % double array<br />

C =<br />

[3.1416] [1] [1] [3x3 double]<br />

islogical shows that only C{1,3} is a logical array.<br />

for k = 1:4<br />

x(k) = islogical(C{1,k});<br />

end<br />

x<br />

x =<br />

0 0 1 0<br />

See Also logical, isnumeric, ischar, isreal, logical operators (elementwise and<br />

short-circuit), isa, is*

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!