Ho to modify Fixed-Point Matlab Function?
1 view (last 30 days)
Show older comments
Hello, I have converted a Matlab Function block using the Fixed-Point Tool. I now want to modify the behavior of the function but I cannot as the converted function is blocked on the Fixed-Point one. How can I unblock it to be able to apply the changes?
0 Comments
Answers (1)
Sachin Pagar
on 4 Jul 2020
Fixed-Point Designer™ software helps you design and convert your algorithms to fixed point. Whether you are simply designing fixed-point algorithms in MATLAB® or using Fixed-Point Designer in conjunction with MathWorks® code generation products, these best practices help you get from generic MATLAB code to an efficient fixed-point implementation. These best practices are also covered in this webinar: Manual Fixed-Point Conversion Best Practices Webinar
code:
% TEST INPUT
x = randn(100,1);
% ALGORITHM
y = zeros(size(x));
y(1) = x(1);
for n=2:length(x)
y(n)=y(n-1) + x(n);
end
% VERIFY RESULTS.
yExpected=cumsum(x);
plot(y-yExpected)
title('Error')
0 Comments
See Also
Categories
Find more on Fixed-Point Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!