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
1 次查看(过去 30 天)
显示 更早的评论
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fixed-Point Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!