How to convert level 2 s block to function ?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
digivjay pandey
am 9 Apr. 2015
Kommentiert: digivjay pandey
am 15 Apr. 2015
I am trying to convert a matlab level 2 s function block into a normal function script. For that I need to understand the working of S function. Specifically, how are the differential equations being solved by Derivative call back. Is it using simulation time step as the delta-time ? what other parameters it obtains from simulation environment for these calculations. Anyone having any Idea, please help me out. Also I want my functions to be c-coder compatible, so I am unable use of 'syms' or other c-coder incompatible stuff.
0 Kommentare
Akzeptierte Antwort
Abhishek GS
am 10 Apr. 2015
Hi digvijay,
Firstly, please go through this link to understand the concepts of how S-Function works in Simulink environment. Look at this link to understand the functionalities of different APIs used in MATLAB level 2 S-Functions. Type 'sfundemos' on your MATLAB Command prompt to look at a few demo examples on S-Functions that are shipped. These will help you get started in the right direction.
Hope it helps, Cheers, Abhishek
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!