unable to convert 'rsgenpoly' even though support is provided for c/c++ conversion
Mostrar comentarios más antiguos
The function 'rsgenpoly' has the support for extended c/c++ library generation, but when converting it provides the error that
Code generation cannot handle Galois field output. Please set the parameter 'outputFormat' of rsgenpoly function to 'double'.
function [ g ] = gen_poly(n,k) %#codegen
g=rsgenpoly(n,k);
end
But MATLAB doesn't allow changes in the inbuilt function.
Please suggest!
4 comentarios
Walter Roberson
el 23 de En. de 2018
rsgenpoly(n, k, 'outputformat', 'double')
Possibly?
Puneet Khurana
el 23 de En. de 2018
Walter Roberson
el 23 de En. de 2018
I guessed at the syntax; the help file gives the example
g4 = rsgenpoly(7,3,[],[],'double') % Output the generator polynomial as a GF array
For code generation, all inputs must be constant. MATLAB will generate the values at the time of compile, so the code that is embedded will simply be a vector of doubles, which is what deconv expects.
Puneet Khurana
el 24 de En. de 2018
Respuestas (1)
Mike McLernon
el 22 de Feb. de 2018
0 votos
Categorías
Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!