Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

Array Creation and Concatenation

Create or combine scalars, vectors, matrices, or arrays

Functions

accumarray Construct array with accumulation
blkdiag Construct block diagonal matrix from input arguments
diag Get diagonal elements or create diagonal matrix
eye Identity matrix
false Logical 0 (false)
freqspace Frequency spacing for frequency response
linspace Generate linearly spaced vectors
logspace Generate logarithmically spaced vectors
meshgrid Rectangular grid in 2-D and 3-D space
ndgrid Rectangular grid in N-D space
ones Create array of all ones
rand Uniformly distributed pseudorandom numbers
true Logical 1 (true)
zeros Create array of all zeros
cat Concatenate arrays along specified dimension
horzcat Concatenate arrays horizontally
vertcat Concatenate arrays vertically
Was this topic helpful?