truncatezeronm.m
来自「Continuous Profile Models (CPM) Matlab T」· M 代码 · 共 22 行
M
22 行
function [dat nm] = truncateZeroNM(dat,nm)% remove all nm wavelengths that have no signal% such that all data has the same number of % wavelengthskeyboard;%% find common nm zero regionmaxNM = 1;for jj=1:length(dat) %% check that nms read in are all the same to start thisNM = nm{jj}; if ~all(thisNM==nm{1}) error('NMs dont match up'); end thisDat = dat{jj}; sumDat = sum(thisDat,1);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?