!--
##### SOURCE BEGIN #####
%% MRE Examples
% Using the MRE Matlab Toolbox
%%

%% Open an MRI image
% MRI2MAT opens common image formats such as DICOM and NIFTI
%
% * <matlab:doc('mri2mat') Help for mri2mat.m>
% * <matlab:run('mri2mat') Run mri2mat.m>
%
%   >> [M,info] = mri2mat();
%
% <<filepicker.png>>
[M,info] = mri2mat();

%%
% The file you select in the file browser is opened as a matrix, which we
% can see has the same dimensions as those specified in the NIFTI header:
%
%   info.dime.dim(1)
%   leng