
Creating, Concatenating, and Expanding Matrices - MATLAB
A matrix is a two-dimensional, rectangular array of data elements arranged in rows and columns. The elements can be numbers, logical values (true or false), dates and times, strings, …
Matrices and Arrays - MATLAB & Simulink - MathWorks
MATLAB is an abbreviation for "matrix laboratory." While other programming languages mostly work with numbers one at a time, MATLAB® is designed to operate primarily on whole …
Creating Matrices and Arrays - MATLAB & Simulink - MathWorks
This example shows basic techniques for creating arrays and matrices using MATLAB.
Basic Matrix Operations - MATLAB & Simulink Example
This example shows basic techniques and functions for working with matrices in the MATLAB® language.
Multidimensional Arrays - MATLAB & Simulink - MathWorks
You can create a multidimensional array by creating a 2-D matrix first, and then extending it. For example, first define a 3-by-3 matrix as the first page in a 3-D array.
Create Arrays of Random Numbers - MATLAB & Simulink
You can use the randperm function to create a double array of random integer values that have no repeated values. For example, create a 1-by-5 array containing integers randomly selected …
Matrices in the MATLAB Environment - MATLAB & Simulink
This topic contains an introduction to creating matrices and performing basic matrix calculations in MATLAB ®. The MATLAB environment uses the term matrix to indicate a variable containing …
repmat - Repeat copies of array - MATLAB - MathWorks
To create block arrays and perform a binary operation in a single pass, use bsxfun. In some cases, bsxfun provides a simpler and more memory efficient solution.
zeros - Create array of all zeros - MATLAB - MathWorks
X = zeros(sz) returns an array of zeros where size vector sz defines size(X). For example, zeros([2 3]) returns a 2-by-3 matrix.
diag - Create diagonal matrix or get diagonal elements of matrix
This MATLAB function returns a square diagonal matrix with the elements of vector v on the main diagonal.