using codegen hist(z, sqrt(length(z)) error scalar X must be constant
이전 댓글 표시
I use codegen to generate C code from Matlab code. in a Matlab sub-function, I have a line of code:
[nz, bins] = hist(z, sqrt(length(z)));
error message underlines this line, saying "scalar X must be constant". Does anyone know how to make it work the way it is designed but not violating codegen rules?
Thanks a lot!
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Function Definition에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!