首页 > 代码库 > 利用MATLAB计算三维坐标序列距离误差程序

利用MATLAB计算三维坐标序列距离误差程序

利用MATLAB计算三维坐标序列距离误差程序

1.三维坐标储存在文件中,格式如下:


各坐标间的距离真值是一定值,计算相邻距离的标准差。


2.MATLAB程序如下:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 名称:caculateAccuracy.m
% 功能:读取三维世界坐标,计算精度
% 作者:LYC
% 单位:中科院苏州医工所
% 日期:2014.5.5
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 清理各变量
clc, clear

%% 设定值
dataFile = ‘v20131114-2.txt‘; % 设定文件名称
errorFile = ‘v20131114-2_error.txt‘;

realValue = http://www.mamicode.com/1.00; % 设定真值>
3.误差分析结果储存在文件中,如下所示