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

📄 showresults.m

📁 基于声源的方向定位程序
💻 M
字号:
function sigma = showResults(xopt, m1, m2, act, calc, err, m, c)%SHOWRESULTS	Display results of the localization algorithm.%% sigma = showResults(xopt, m1, m2, act, calc, err, m, c)%    Plot the best point.  Also print the coords of the best point%    and per-delay information.global scale scaleTextcheckScale('init')hold onplot(xopt(1), xopt(2), 'o', 'LineWidth', 3)hold offdisp(' ')disp(sprintf('Best location:  [x y] = [%.3f  %.3f]', xopt(1), xopt(2)))disp(' ')disp(sprintf('    phone1    phone2    Actual  Calculated  Error%s', scaleText))disp([m1' m2' act calc err*scale])n = length(m1);sigma = sqrt(m/(n-2))*1000/c;disp(sprintf('Mean error is %g ms',sigma))% Generate mesh plot of error surface%figure(2)%clf%contour(x(:,1),y(1,:),log(e'),12)%title('Log of error function')%figure(3)%clf%meshc(x(:,1),y(1,:),log(e'))%title('Log of error function')

⌨️ 快捷键说明

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