Ho to modify Fixed-Point Matlab Function?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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')
댓글 수: 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!