Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: multi
See also: zeros matrix

Quantlet: ones
Description: creating a n x d dimensional matrix of ones

Usage: x = ones(n,d)
Input:
n integer, number of rows
d integer, number of columns
Output:
x n x d matrix of ones

Example:
library("multi")
ones(2,3)

Result:
Contents of x
[1,]   1   1   1
[2,]   1   1   1



Author: C. Hafner, S. Sperlich, W. Haerdle, 19971023 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006