MATLAB: There is a 549x800x6 matrix, I want to convert it to 549x2400x2. Please help. dimensionmatrix There is a 549x800x6 matrix, I want to convert it to 549x2400x2. Please help. Best Answer Try the reshape command. Related SolutionsMATLAB: I have code which reads-in a time series of 46 images, each 2400×2400 matrices. I have a variable ‘k’ which is a 10000×2 matrix which contains row/column locations of cells within the 2400×2400 matrices that I need to isolate. (In ‘k’: column 1…. timeseries=rand(2400,2400,46);idx=sub2ind([2400,2400],k(:,1),k(:,2));T=reshape(timeseries,[],46);result=permute(T(idx,:),[3,1,2]); MATLAB: I have a 2400×2400 matrix that I would like to use as a mask for each layer of a 2400x2400x46 matrix. Since the matrix dimensions are not equal, I cannot do so by simply multiplying the mask matrix by the larger matrix. How might I do this % Mask the image.maskedHyperSpectralImage = bsxfun(@times, HyperSpectralImage, cast(mask,class(HyperSpectralImage)));Note: the above is all one line of code. Related QuestionCreating a 512 x 512 image from 600 x 800Error code 0x800A03EC when using xlswrite
Best Answer