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

📄 getpos.m

📁 神经元信号处理软件
💻 M
字号:
function a = getpos(d,posType);% getpos - return the current position of the datastrm object (datastrm method)% a = getpos(d,posType) takes an datastrm object and the position type ('time','sweep','segment')
% return value is the current position of the datastrm object

if (strcmp(d.fileaccess,'ole'))
	error([mfilename ' not yet adapted for OLE-Object']);
end;

if (nargin == 1)
  posType = 'sweep';
end

if strcmp(posType,'sweep') | strcmp(posType,'segment')
  a = find(d.sweepStartPointer == ftell(d.fid));
else % posType == 'time'
  a = d.sweepStartTime(find(d.sweepStartPointer == ftell(d.fid)));
end

⌨️ 快捷键说明

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