Ho to modify Fixed-Point Matlab Function?

조회 수: 1 (최근 30일)
Matteo Manzini
Matteo Manzini 2020년 7월 4일
답변: Sachin Pagar 2020년 7월 4일
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?

답변 (1개)

Sachin Pagar
Sachin Pagar 2020년 7월 4일
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')

카테고리

Help CenterFile Exchange에서 Fixed-Point Designer에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by