isscalar

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Added "dim" to list of related functions)
m (Added to "Davinci Variable Information" category)
 
Line 47: Line 47:
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:User Defined Functions]]
 
[[category:User Defined Functions]]
 +
[[category:Davinci Variable Information]]
 
[[category:Math]]
 
[[category:Math]]

Latest revision as of 09:26, 24 June 2008


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

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-25-2008
Modified On: 06-24-2008

Personal tools