フィルターのクリア

Does the matlab version affect on your code's output ?

5 ビュー (過去 30 日間)
riddhi desai
riddhi desai 2016 年 6 月 24 日
編集済み: Stephen23 2016 年 7 月 4 日
Does the matlab version affect on your code's output ?
  1 件のコメント
KSSV
KSSV 2016 年 6 月 24 日
No it should not....

サインインしてコメントする。

採用された回答

Stephen23
Stephen23 2016 年 6 月 24 日
編集済み: Stephen23 2016 年 7 月 4 日
Yes.
  • Some MATLAB versions changed the order of results (for an example see unique, setdiff, etc, and search for "legacy").
  • Functions get rewritten to accept different inputs, which means the outputs may also change (see example).
  • Bugs get fixed, which may change the output.
  • Changes to the underlying algorithms also occur, which can change numeric results at the lowest precision digits (see example). Christine Tobler (who works for TMW (which makes MATLAB)), said "The reason that the results changed is likely due to a difference in the order of operations. This will affect the results in small ways, without there necessarily being a better or worse result. Such small changes are likely to happen between any two MATLAB versions". So even TMW say that changes happen between MATLAB versions.
  • LAPACK and other supporting libraries can change the outputs. For example qr changed dramatically (although mathematically equally correct) between LAPACK versions, and hence between MATLAB versions as well, as explained here.
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 6 月 28 日
This is the correct answer. The "No" answers are not correct.

サインインしてコメントする。

その他の回答 (1 件)

Andreas Goser
Andreas Goser 2016 年 6 月 24 日
It rarely does. Mostly it is not the release, but you also changed from 32 to 64 bit at the same time. This is an entirely differnt topic though. Sometimes, default options for some functions change. I e.g. recall something in Optimization Toolbox a couple of years ago.
If you suspect a bug, please get in touch with Technical Support.
  3 件のコメント
Andreas Goser
Andreas Goser 2016 年 6 月 28 日
This background information is not enough. My answer remains unchanged. You should provide all code and data needed to technical support.
Walter Roberson
Walter Roberson 2016 年 6 月 28 日
As Stephen correctly indicated, there are a number of reasons why output can be different. The output is not usually very different, but it can happen, as there are some algorithms that are very sensitive to numeric round-off. Also, some MATLAB functions change default settings.
Some aspects of the random number generator system changed in R2013a and so could potentially have made a difference between R2012* and R2014*.
I would not suggest going to technical support with this quite yet; I suggest posting the code here, as people here might be able to point out reasons the output might have changed.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by