Simulink MATLAB Function fully interpreted in MATLAB
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Piotr Pawlowski
am 5 Aug. 2019
Kommentiert: Piotr Pawlowski
am 8 Aug. 2019
Hi, I have some problem with MATLAB Function Simulink block.
I added this block to my simulink model and provided three inputs. All I want to do is to process those inputs at fixed sample time (say 0.1s) and cook out some outputs, all within MATLAB. Simulink constantly shows errors with code generation, even simple functions like size(x). Is there any way to process input data from simulink signal fully on MATLAB?
Thanks in advance
0 Kommentare
Akzeptierte Antwort
Jyotsna Talluri
am 8 Aug. 2019
Hi,
Some functions are not supported in MATLAB function block. Instead you can use S function block in Simulink which can incorporate a MATLAB code. Inputs from Simulink are automatically passed to S-function. We can specify sample time in code itself.
To know about S-functions refer to the below link
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!