Lydos.Matlab

Matrix.FromScalar Method 

Creates a 1x1 matrix from a scalar.

[Visual Basic]
Shared Public Function FromScalar( _ 
   ByVal scalar As Double _ 
) As Matrix
[C#]
public static Matrix FromScalar(
   double scalar
);
[C++]
public: static Matrix* FromScalar(
   double scalar
);
[JScript]
public static function FromScalar(
   double scalar
): Matrix;

Parameters

scalar
The 1x1 matrix as a single value.

Return Value

A matrix corresponding to the specified scalar.

See Also

Matrix Class | Lydos.Matlab Namespace