??? Unexpected MATLAB operator (:) when using codegen to generate C code
Mostrar comentarios más antiguos
I use codegen to generate C code from Matlab code. in the Matlab function, I have a line of code:
a=quantile(double(z(:)), [r 1-r]);
codegen has error when generating C code. Error message: Unexpected MATLAB operator. it is indicating : used in the above line of code. Does anyone know why and how to fix it?
Respuestas (1)
James Tursa
el 28 de Oct. de 2016
1 voto
In place of z(:) maybe try reshape(z,numel(z),1)
1 comentario
RW
el 28 de Oct. de 2016
it works. thanks
Categorías
Más información sobre MATLAB Coder 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!