Why do I get this error Code generation does not support display for MATLAB classes. 'dsp.HDLIFFT' is a class. ?
Ältere Kommentare anzeigen
I am trying to call a function, which create dsp.IFFT system object, inside another for HDL Code generation.
My Code: %main function
function [out1,out2] = main(x,y,z)
%call subfunction 1
out1 = sub1(x);
%call subfunction 2
out2 = sub2(y,z);
end
subfucntion 2 codecode:
function [yOut,validOut] = HDLIFFT128(yIn,validIn)
persistent ifft128;
if isempty(ifft128)
ifft128 = dsp.HDLIFFT('FFTLength',128);
end
[yOut,validOut] = step(ifft128,yIn,validIn);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu HDL Code Generation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!