Dynamic array creation in s-function builder.
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I'm trying to build an s-function that can accept an array of a varying size, using the s-function builder block. As instructed in the 'Help', I made the number of rows equal to '-1' in the Data Properties -> Input Ports.
However, this is giving an error that says 'ERROR: Invalid setting for the input port dimensions' .
So is there a way to solve this problem? Or is it better to modify the generated C code and make the particular input dynamically sized?
0 Kommentare
Antworten (1)
Kaustubha Govind
am 21 Mai 2012
Does not support the following S-function features:
* Dynamically-sized input and output signals for an S-function with multiple input and output ports
Note: S-functions with one input and one output port can have dynamically-sized signals
So if you do have multiple inputs/outputs, the error makes sense. I do think it be might be better to modify the generated S-function wrapper as you mentioned.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Implement C/C++ Code Using S-Function Builder 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!