what is size(matrix,2)? in matlab

To get the size of a matrix specifically along the second dimension in MATLAB, you can use the following syntax:

main.m
matrixSize = size(matrix, 2);
30 chars
2 lines

This will return the size of the matrix along the second dimension and store it in the variable matrixSize.

related categories

gistlibby LogSnag