📄 showmzabun.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -