HDL Coder Not Support Strings (smoothdata)
Show older comments
>> testing
Unrecognized function or variable 'eml_max'.
Error in smoothdata_mod>inputTextLength (line 501)
len = eml_max(ONE,lenTmp);
Error in smoothdata_mod>parseMethods (line 464)
len = inputTextLength(inputArg);
Error in smoothdata_mod>parseInputs (line 220)
[methodTmp, inputIsMethod] = parseMethods(varargin{nextArg});
Error in smoothdata_mod (line 43)
dataVars, sp] = parseInputs(A, varargin{:});
Error in WaveletFilteredSection (line 8)
w = smoothdata_mod(abs((w)), 'movmean' ,15);
Error in testing (line 6)
w = WaveletFilteredSection(coeffs,sig);
I am trying to use HDL coder to convert a matlab function I have into some VHDL code. When trying to run HDL Coder, it threw an error before I was using the function smoothdata which apparently has strings in it which are not supported in HDL coder. It took my to the code for smooth data and I saw the string portion was only being used in a single portion that didn't appear to really need a string, I tried saying my own version of smoothdata without the string and it threw a bunch of errors.
I tested it and even the unmodified version of smoothdata just stored as my own version throws these errors. What could I used to make this code able to be converted to HDL?
Sidenote: Previously I had used the smooth function but that was unsupported for C coder so I removed it. I doubt if it wasn't supported for C coder it would work for HDL coder.
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox 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!