How to write C code generation for ' not available function for standalone generation' ?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Julien Pelet
el 27 de Abr. de 2017
Comentada: Hari Ijjada
el 30 de Ag. de 2019
Hi, i can not transfert my matlab algorithme. When I use Matlab Coder to convert it into C code, it build failed with the following error:
The function 'designfilt' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
Then i think i need to write a bandpass filter in C code by myself using DFT and inverse fourier transformation, but i really don't know how to write it. May somebody help me ?
2 comentarios
Jan
el 27 de Abr. de 2017
Please do not use # characters in the tags. This is not twitter.
What kind of bandpass filter do you need? As long, as you do not explain this, it is hard to suggest a solution. A full replacement of the designfilt command would be an overkill.
Respuesta aceptada
Honglei Chen
el 27 de Abr. de 2017
Do you need to change your filter over the simulation, if not, then the coder.extrinsic approach, as outlined in the error message, would be a good way to go. Essentially you can use MATLAB to compute the coefficients and then perform the filtering.
HTH
8 comentarios
Hari Ijjada
el 30 de Ag. de 2019
i am facing the same issue but instead of bandpass filter i am using low pass filter. how to design the lowpass filter using firls syntax ?
Más respuestas (0)
Ver también
Categorías
Más información sobre Filter Design en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
