MATLAB: How to extract the first row and first column of an array of matrix
arrayloopMATLABmatrix
I have an array of 10001 elements of which a 2×2 matrix is inside each element. How can I loop thru the array and extract the first row, first column of each matrix?
I'm going to guess it's because you are trying to combine 2+ arrays that have a different number of columns. Specifically, when you create b, you are combing three rows.
the first row has 3 elements
the second row has 3 elements
the third row and 1 element.
All rows must have the same number of elements in order to concatenate them together vertically.
Best Answer