ab = double(lab_he(:,:,2:3)); nrows = size(ab,1); ncols = size(ab,2); ab = reshape(ab​,nrows*nco​ls,2);

2 views (last 30 days)
ab = double(lab_he(:,:,2:3)) what this line means?

Accepted Answer

Jan
Jan on 29 Sep 2017
Edited: Jan on 29 Sep 2017
lab_he(:, :, 2:3)
is the [M x N x 2] subarray taken from the [M x N x P] array called lab_he. double() converts it to the type double.
These are elementary Matlab methods. If is not efficient to ask such general and basic questions in the forum. Better read the "Getting Started" chapters of the documentation to learn how to use this powerful language.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!