scalearray()

Scalar times a vector (array) function

Syntax
scalearray(Scalar, Array)

Name Description Range Type Required
Scalar Scalar value (-∞, ∞) integer, real or complex yes
Array Array to be scaled   integer, real or complex array yes

Examples

rA = makearray(1, 1, 2.0, 3.0)
returns an array of three real numbers
srA = scalearray(19, rA)
returns array (19, 38, 57)
cA = makearray(2, 1+j*1, 2+j*2)
returns an array of three complex numbers
scA = scalearray(10, cA)
returns array (10+j*10, 20+j*20)

See Also

get_array_size(), length(), list(), makearray()

Notes/Equations

This function scales an array of integer, real, or complex data type by the specified scalar value.

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources