Also see my other question on the reason why I created such an embedded matlab function: http://www.mathworks.com/matlabcentral/answers/33009-simulink-block-to-extract-signal-at-index-from-vector-signal-doesn-t-exist
Fixed Point Tool not working with Matlab Function Block in Simulink
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I have a rather simple model containing two Matlab function blocks with the following code:
function valueAtIndex = fcn(tappedDelays, index)
% Extracts the value of a vector signal at a specified index.
valueAtIndex = tappedDelays(index);
Now I'm trying to use the Simulink Fixed-Point Tool to derive an appropriate fixed-point representation of the model.
However, the Fixed-Point Advisor keeps telling me that my system contains blocks that do not support fixed-point data types and lists the MATLAB function blocks I mentioned above.
How can that be? In the Model Explorer, I can without any problems specify my function to take fixed-point arguments, therefore I'd say the error message is plain nonsense!
What I wanted to do is let the Fixed-Point Advisor propose optimal fixed-point types to me. Is there any possibility to have it do so?
Kind Regards and thanks in advance,
Eike
Antworten (0)
Siehe auch
Kategorien
Mehr zu Iterative Fixed-Point Conversion in Simulink 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!