Hi, I'm new to use the HDL coder.The val vector is sine with noise .My problem in fixed-point conversion :
function base=baseline(val)
n=10;
[e,f]=wavedec(val,n,'db6');
for i=1:f(1);e(i)=0;
end
base=waverec(e,f,'db6');
end
Error:
Expression must be numeric. Found it to be
embedded.fi {ufix5}
Possible error? Thank you

댓글 수: 1

Aloka Perera
Aloka Perera 2019년 8월 21일
did you find a way to sort this out ?/

댓글을 달려면 로그인하십시오.

답변 (1개)

Yuebin Zhou
Yuebin Zhou 2017년 5월 23일

0 개 추천

You can check the documentation of wavedec and waverec and see if you passed in the right arguments.

카테고리

도움말 센터File Exchange에서 HDL Code Generation에 대해 자세히 알아보기

질문:

2017년 5월 17일

댓글:

2019년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by