Answers for "matlab array of matrices"

0

matlab array of matrices

First create 1 matrix:
A = [1 2 3; 4 5 6; 7 8 9]
then expand it with the cat function as follows:
B = cat(3,A,[3 2 1; 0 9 8; 5 3 7])
The first argument indicates which dimension to concatenate along
Posted by: Guest on October-28-2021

Browse Popular Code Answers by Language