How Simulink block works? How to program it?

2 views (last 30 days)
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?

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 20 Aug 2013
Both your blocks work on real time simulation
  2 Comments
Pramit Biswas
Pramit Biswas on 20 Aug 2013
I want to know how, the logic and programming behind it
Azzi Abdelmalek
Azzi Abdelmalek on 20 Aug 2013
Edited: Azzi Abdelmalek on 20 Aug 2013
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

Sign in to comment.


Ilham Hardy
Ilham Hardy on 20 Aug 2013

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!