cov in R2009b vs. R2010a

조회 수: 2 (최근 30일)
D
D 2011년 6월 29일
I used the cov function in R2009b and in R2010a and it returned different results.
I am aware of the fact that there are multiple functions named cov in Matlab, depending on your toolboxes; both functions are in the directory matlab/datafun
The revision date on both functions is $Revision: 5.16.4.8 $ $Date: 2009/03/16 22:17:40 $.
What could be producing this discrepancy?
edit: R2009b is on a Mac (OS X 10.5.8); R2010a is on a PC (7).
  댓글 수: 1
Laura Proctor
Laura Proctor 2011년 6월 29일
Could you post the code that you ran as well as the results?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2011년 6월 29일
This is not entirely unexpected. The BLAS toolboxes are optimized for specific processors, so differences in processors can result in differences in calculations. Likewise, differences in the JIT of the different versions of MATLAB can result in the same code producing different results.
If the differences are small relative to the results, the situation is probably normal.

추가 답변 (1개)

D
D 2011년 6월 29일
Sorry, it seems to be a question of precision. I subtracted the two matrices for comparison, but I missed the factor of 1.0e-15 that multiplied the resulting matrix.
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 6월 29일
"Time for another cup of coffee" moment.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by