Wavelet and hdl coder
显示 更早的评论
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
2019-8-21
did you find a way to sort this out ?/
回答(1 个)
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!