stripg.m

来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 38 行

M
38
字号
% function strippedG = stripG(G,justParams)% % takes a structure G, and removes the bulky matrices which% we don't need (because they can easily be recreated).% in this way, it is feasible to save this stripped down G to% a workspace filefunction strippedG = stripG(G,justParams)%if (~exist('justParams'))  justParams=0;%endif (justParams)  strippedG.S=G.S;  strippedG.D=G.D;  strippedG.u=G.u;  strippedG.z=G.z;  strippedG.z=G.z;  strippedG.sigmas=G.sigmas;else  strippedG = G;  strippedG.stMap='';  %strippedG.stateToScaleTau='';  strippedG.timeJump='';  strippedG.scaleJump='';  %strippedG.traceLogConstant='';  strippedG.stateLogPrior='';  strippedG.statePrior='';  strippedG.scaleTransLog='';  strippedG.timeTransLog='';  strippedG.scaleTrans='';  strippedG.stateTransLog='';  strippedG.stateTrans='';  strippedG.prec='';end

⌨️ 快捷键说明

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