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?

Réponses (1)

Sachin Pagar
Sachin Pagar le 4 Juil 2020

0 votes

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')

Catégories

En savoir plus sur Modeling dans Centre d'aide et File Exchange

Produits

Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by