Resolution differences between Matlab and Simulink

10 ビュー (過去 30 日間)
Thomas Marullo
Thomas Marullo 2012 年 8 月 31 日
I have a Matlab script and a Simulink model that perform the same algorithm. When I compare my results using the isequal function, the answer is "0". At the plotting level, all looks perfect, but at about 6+ decimal places in, the numbers start to diverge from each other. Is there a way to determine if Matlab and Simulink are using the same data types so I can achieve the exact same answers?

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 8 月 31 日

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by