To find the size of matrix m
such that size(reshape(m,1,1,25)) = (25,1,1)
, you can use the size
function in MATLAB after reshaping the matrix. This can be achieved as follows:
main.m236 chars14 lines
The size
function returns a row vector containing the number of elements in each dimension of the input matrix. Here, size_m_reshaped
contains [25 1 1]
, indicating that m_reshaped
has 25 elements along the first dimension and 1 element each along the second and third dimensions.
gistlibby LogSnag