using codegen hist(z, sqrt(length(z)) error scalar X must be constant
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
RW
el 31 de Oct. de 2016
0 votos
Categorías
Más información sobre Function Definition en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!