⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mfbox_read_spmfiles.m

📁 toolbox for spm 5 for data, model free analysis
💻 M
字号:
function data=mfbox_read_spmfiles(filename)% data=mfbox_read_spmfiles(filename)% read in image data from spm ANALYZE files%% Copyright by Peter Gruber, Fabian J. Theis and Ingo R. Keck% Signal Processing & Information Theory group% Institute of Biophysics, University of Regensburg, Germany% Homepage: http://research.fabian.theis.name%           http://www-aglang.uni-regensburg.de%% This file is free software, subject to the % GNU GENERAL PUBLIC LICENSE, see gpl.txtdata = {};%load file infoswarning off allV = spm_vol(filename);warning query alldata.timesteps = 0;data.dim = [0,0];while (1)    no_volumes = numel(V);    if (no_volumes == 0)        return    end    n = 1;    while (all(V(1).dim == V(n).dim))        if (n == no_volumes)             break;         end,         n=n+1;     end    if (n == no_volumes)        break;    else        questdlg(sprintf('Not all volumes share the same dimensions\nCannot import\n'),'Info','Ok','Ok');        return    endendimagedim = V(1).dim; % the new image dimensionsdata.private = V;data.timesteps = no_volumes;data.dim = imagedim;return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -