Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Constructing Matrices >

ConstantArray

ConstantArray[c, n]
generates a list of n copies of the element c.
ConstantArray[c, {n1, n2, ...}]
generates an n_1⨯n_2⨯... array of nested lists containing copies of the element c.
New in 6
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team