Ho to modify Fixed-Point Matlab Function?

1 visualización (últimos 30 días)
Matteo Manzini
Matteo Manzini el 4 de Jul. de 2020
Respondida: Sachin Pagar el 4 de Jul. de 2020
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?

Respuestas (1)

Sachin Pagar
Sachin Pagar el 4 de Jul. de 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')

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by