MATLAB控制运算精度
生活随笔
收集整理的這篇文章主要介紹了
MATLAB控制运算精度
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
先來看一段MATLAB代碼
clear;
theta = 264.3783;
t1 = [cos(theta); cos(2*theta);cos(3*theta); cos(4*theta); sin(theta); sin(2*theta); sin(3*theta);sin(4*theta); 1];
t2 =[0.8849 0.5661 0.1170 -0.3591 0.4658 0.8243 0.9931 0.9333 1.0000]';
Ximage = [7.8013 -10.5825 -12.7495 4.806716.3082 7.2674 1.5018 0.0946-12.8618]';
result1 = t1'*Ximage;
result2 = t2'*Ximage;
在MATLAB控制臺下查看t1與t2的值是一樣的,但是結果卻相差很多:
result1
總結
以上是生活随笔為你收集整理的MATLAB控制运算精度的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL函数集锦
- 下一篇: MySQL如何向表中增加、修改字段