Simulink numerical error?
古いコメントを表示
Hi,
I am using simulink to control a robotic arm.
I am facing a strange problem. When I am running the simulation, there are 2 values which should be equivalent (their expressions are same). When I simout those 2 variables, their errors are in the order for e-4, which my system can't accept.
But when I run the same corresponding code in matlab (.m file), errors are in the order of e-18 or exactly 0.
What does this mean? Should I develop my control system in matlab file itself?
Will attach those 2 files if required.
Thanks in advance.
2 件のコメント
Kaustubha Govind
2011 年 6 月 17 日
How are these expressions computed in Simulink (Simulink library blocks, Embedded MATLAB Block, Stateflow, etc.)? If using blocks, do you use the exact same blocks in both code-paths? What are the datatypes of your signals?
Shobhit Gupta
2011 年 6 月 18 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!