problem while converting .m file to .vhd using hdl coder, matlab 2012a for fixed point conversion
Show older comments
function [XC] = dwt_aut12(x)%#codegen assert(isreal(x)); coder.extrinsic('–sync:on','wavedec'); coder.extrinsic('–sync:on','wrcoef'); coder.extrinsic('–sync:on','conv2'); coder.extrinsic('–sync:on','ddencmp'); coder.extrinsic('–sync:on','wdencmp'); coder.extrinsic('–sync:on','subplot'); coder.extrinsic('–sync:on','plot'); [c,l] = wavedec(x,5,'sym10'); z=wrcoef('a',c,l,'sym10',5); [THR,~,KEEPAPP]=ddencmp('den','wv',z); [XC,~,~,~,PERFL2] = wdencmp('gbl',z,'sym4',4,THR,'h',KEEPAPP);
subplot(3,1,1);
plot(z);
subplot(3,1,2);
plot(XC);
% subplot(3,1,3)
%hold on;plot(z(1:400),'b');plot(XC(1:400),'r'); hold off;
//////////////////////////////////////////////
%calling through this function:
load s.mat;
dwt_aut12(s(1:400,2));
///////////////////////////////////////////////////////
while conversion to hdl file error is
: MATLAB command 'wavedec' failed: (MATLAB:UndefinedFunction) Undefined function 'conv2' for input arguments of type though there is no explicit mention of conv2 in my code.
Answers (0)
Categories
Find more on Speed and Area Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!