plotz.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 37 行
M
37 行
% function garb = plotZ(G)%% plots each class of z one axis at a time, and then the% difference between them. does not work well for more% than two classes, does not work well for numBins>1function garb = plotZ(G)if (G.numBins>1) | (G.numClass>2) error('only works with numBins=1, numClass<2');endallAx=splitAxes(G.numClass+1,1,'latent trace');ms=2;maxVal = maxx(G.z);for cc=1:G.numClass axes(allAx{cc}); tmpDat = G.z(:,cc); %imstats(tmpDat); %whos tmpDat plot(tmpDat,'MarkerSize',ms); title(['Class ' num2str(cc)]); tmpAx = axis; tmpAx(4)=maxVal; axis(tmpAx);endzdiff = (G.z(:,2)-G.z(:,1));axes(allAx{G.numClass+1});plot(zdiff,'MarkerSize',ms);title('Class 2 - Class 1');hold on;plot(zeros(size(zdiff)),'r-');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?