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

📄 calcdeltatimes.m

📁 基于声源的方向定位程序
💻 M
字号:
function delta = CalcDeltaTimes (x,array,h1,h2,measuredDelay)% function delta = CalcDeltaTimes (x,array,h1,h2,measuredDelay)% % 	Computes theoretical time delays from given 2-d coordinates (x),%	assuming given hydrophone locations, and subtracts these%	from the given measured time delays, producing a vector of%	time delay errors.%%	x		2 x 1		Location to compute time delays for%	array		2 x n		Positions of hydrophones%	h1		1 x m		First hydrophone indices%	h2		1 x m		Second hydrophone indices%	measuredDelay	1 x m		Measured time delays between%					first and second hydrophones%	delta		m x 1		Time delay differencesm = length(measuredDelay);delta = zeros(m,1);for i=1:m,	delta(i) = dist(x,array(:,h1(i))) - ...	           dist(x,array(:,h2(i))) - ...	           measuredDelay(i);end

⌨️ 快捷键说明

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