How Simulink block works? How to program it?

How matlab simulink works?
What actually happen on this blocks?
logic/math to program it in real time;
I know that integration can be written as summation. but that theory not works on real time/simulation mode
I want to learn programing a simple block(say integrator).
Can you help me?

回答(2 个)

Both your blocks work on real time simulation

2 个评论

I want to know how, the logic and programming behind it
We have not access to the code behind those blocks, but you can use your own code to make integration or derivation, by using numerical methods. You can also use built-in Matlab function like quad or int for integration and diff for derivation

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by