isscalar
From DavinciWiki
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.11
Description Test for scalar (1x1x1) numeric input.
Arguments and Return Values Arguments: A single input (any format) Return Value: 1 if input is a scalar numeric value (1x1x1 - just one element), 0 otherwise If no arguments are input, isscalar() prints its description, as shown below.
Usage Syntax: isscalar(x) 'x' - anything
Examples dv> isscalar() isscalar - test for scalar input Returns 1 if input is a scalar (1x1x1) number, 0 otherwise S.Marshall 02-15-2008 0 dv> isscalar(1) 1 dv> isscalar(pi) 1 dv> isscalar(1//2//3) 0 dv> isscalar("Hello world!") Input must be numeric 0 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Library Changes Created On: 02-25-2008 |