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

📄 mfbox_getparam.m

📁 toolbox for spm 5 for data, model free analysis
💻 M
字号:
function [params,runflag]=mfbox_getparam(params,runflag,pyscript)% Copyright by Peter Gruber and Fabian J. Theis% 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.txterror(nargchk(2,3,nargin));error(nargchk(1,2,nargout));if (nargin<3) pyscript = 'mfbox_getparam.py'; endp = which('mfbox_version');[i,o,p] = popen2([p(1:(end-15)),pyscript]);fputs(i,mfbox_mat2xml(params));fclose(i); EAGAIN = errno('EAGAIN'); done = false; cs = '';while (~done)    s = fgets (o);    if (ischar (s))        cs = [cs,s];        ret = mfbox_xml2mat(cs);        if (isfield(ret,'buttons')&&isfield(ret,'params'))            b = ret.buttons;            c = struct2cell(b);            c = cat(1,c{:});            if (any(c==1))                done = true;                params = ret.params;                if (b.run==0)                    runflag = 0;                end            end            cs = '';        end    elseif (errno() == EAGAIN)         sleep(0.01);        fclear(o);    else        done = true;    endendreturn

⌨️ 快捷键说明

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