rri_remap.m
来自「绝对经典,老外制作的功能强大的matlab实现PLS_TOOBOX」· M 代码 · 共 20 行
M
20 行
%Function rri_remap
%syntax [outmat,coords]=rri_remap(datamat,mb)
% Selects only voxels that are identified as brain and writes them
% to a new matrix. Returns also the coordinates for each row so the
% voxels can be remapped to brain images
function[outmat,coords]=rri_remap(datamat,mb)
%Find brain pixels
coords=find(mb~=0);
[r c]=size(datamat);
%remaps datamat to have only brain voxels, will cut the problem in half
%voxels will be remapped later
for i=1:r
outmat(i,:)=datamat(i,coords);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?