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

📄 showalignedall.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function garb = showAlignedAll(G,allSamples,scaleAndTimes,newTrace,SHOWSCALE)%% display all the 1D aligned samples%% if SHOWSCALE exists and equals zero, then the scaling is not% performed, and the latent trace not displayedfunction myMax = showAlignedAll(G,allSamples,scaleAndTimes,newTrace,showScale,linespecs)fontSize=18;if ~exist('linespecs','var')    linespecs=getLineSpecs(1);endlegCount=1;if ~isempty(newTrace)    plot(newTrace,'c-','MarkerSize',2,'LineWidth',2.5);    myleg{legCount}='Latent Trace';    legCount=legCount+1;endmyMax=0;for ii=1:G.numSamples  st = squeeze(scaleAndTimes(ii,:,:));    a=allSamples{ii};   b=G.u(ii)*2.^(G.scales(st(:,1)));   if (showScale)    myTemp=a(:)./b(:);  else    myTemp=a(:);  end    plot(st(:,2)',myTemp,linespecs{ii},'MarkerSize',2);  hold on;  myleg{legCount} = ['Rep. ' num2str(ii)];  legCount=legCount+1;  myMax=max(myMax,max(myTemp));endhold off;hx=legend(myleg);axis('auto');ylabel('Amplitude','FontSize',fontSize);xlabel('Latent Time','FontSize',fontSize);myLength=G.numTaus;tmp=axis; tmp(1:2)=[1,myLength]; tmp(4)=myMax*1.05; axis(tmp);set(hx,'FontSize',4);title('Aligned Time Series','FontSize',fontSize);legend off;set(gca,'FontSize',fontSize);

⌨️ 快捷键说明

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