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

📄 getcntrlpttimemap.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function [timePts sMinus sPlus]= getCntrlPtTimeMap(G)%% get the time points that are effected by each cntrlPt% so that we can do the u updates when USE_CPM2=1.%% timePts is 1xnumCtrlPts and each cell entry retursn the list% of tau which are effected by that control point%% sPlus and sMinus correspond to the sets in my latex document,% where the union of these makes up S==timePts% (sPlus includes the state=pt.)function [timePts sMinus sPlus]= getCntrlPtTimeMap(G)timePts = cell(1,G.numCtrlPts);sMinus = cell(1,G.numCtrlPts);sPlus = cell(1,G.numCtrlPts);%% there is always a control point right at the start, and right%% at the end, i.e. for tau=1 and tau=numTauallTau = 1:G.numTaus;timePts{1} =   allTau(G.cntrlPts(1):(G.cntrlPts(2)-1));timePts{end} = allTau((G.cntrlPts(end-1)+1):G.cntrlPts(end));sMinus{1} = [];sMinus{end} = allTau((G.cntrlPts(end-1)+1):G.cntrlPts(end));sPlus{1} = timePts{1};sPlus{end} = [];for pt = 2:(G.numCtrlPts-1)    firstInd = G.cntrlPts(pt-1)+1;    lastInd = G.cntrlPts(pt+1)-1;    timePts{pt} = allTau(firstInd:lastInd);    sMinus{pt} = allTau(firstInd:(G.cntrlPts(pt)-1));    sPlus{pt} = allTau(G.cntrlPts(pt):lastInd);    if ~isempty(intersect(sMinus{pt},sPlus{pt}))        keyboard;    endend

⌨️ 快捷键说明

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