ab = double(lab_he(:,:,2:3)); nrows = size(ab,1); ncols = size(ab,2); ab = reshape(ab,nrows*ncols,2);
4 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Jan
2017-9-29
编辑:Jan
2017-9-29
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.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!