What are the differences (if any) between Matlab system objects and class objects?
古いコメントを表示
Matlab includes a wide variety of System Objects, that seem to be standard Matlab objects (typically singletons) which derive from matlab.System ( ref ).
My question: is there any real difference between System Objects and any other class object used in Matlab?
採用された回答
その他の回答 (2 件)
Arnav Mendiratta
2017 年 7 月 24 日
1 投票
Here is a good blog post about system objects: https://blogs.mathworks.com/simulink/2013/09/11/the-matlab-system-block/
This post is from 2013 and since then, the syntax for some functions (like step does not require a call like step(obj) anymore) might have changed.
Sean de Wolski
2013 年 1 月 10 日
0 投票
There are a few things that come with system objects. Most importantly: codegen support. Also, large data stream processing, saved state information and fixed-point support.
2 件のコメント
Yair Altman
2013 年 1 月 10 日
Kaustubha Govind
2013 年 1 月 10 日
Yair: I think the primary difference would be that all System objects have a standard interface, and the System object infrastructure automatically provides consistency checking, and possibly other services (can't think of more examples right now), that are shared by all System objects.
カテゴリ
ヘルプ センター および File Exchange で Create System Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!