showmzabun.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 41 行
M
41 行
% function showMZAbun(mza,numDig,LOW)%% Displays the abundance at each mz slice.% If a cell array is given, then it treats each one% as a seperate plot on the same graph.% % numDig has to do with how the mz data was quantized% see quantizeMS() for more detailsfunction showMZAbun(mza,numDig,LOW)if (~(exist('numDig')==1)) numDig=2;endif (~(exist('LOW')==1)) LOW=400;endif (~iscell(mza)) figure,plot(mza,'+-','MarkerSize',2);else %then there are multiple things to plot myLeg=cell(1:length(mza)); linespecs=getLineSpecs; figure, for jj=1:length(mza) myLeg{jj} = num2str(jj); plot(mza{jj},linespecs{jj},'MarkerSize',2); hold on; end legend(myLeg);endxlabel('Different M/Z Slices');ylabel('Total Abundance Over All Scans');title('Abundance At Each M/Z Slice'); labels=get(gca,'XTickLabel');newLabels=str2num(labels)/numDig+LOW;set(gca,'XTickLabel',newLabels);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?