error in real time workshop

hello evry body; in may project i use the simulink to implemente an algorithm of automatic speech recognition by HMM. i use the embedded matlab fuction (EMF) to creat the blocks, for example: the feature extraction parametter mfcc i use the fellowing code in EMF:
function p =paramettremfcc(s)
eml.extrinsic('MFCCsimulinkmodifier');
eml.extrinsic('hamming');
eml.extrinsic('enframe');
eml.extrinsic('melbankm');
eml.extrinsic('idct');
eml.extrinsic('melcepst');
p=zeros(12,1);
[p]= MFCCsimulinkmodifier(s);
when i click on the generate code in the real time workshop they give me thise error:
Failed to eliminate a use of the MATLAB function 'MFCCsimulinkmodifier'. For non-simulation builds, uses of unsupported MATLAB functions are eliminated if they do not affect function outputs.
Function 'parametrisation/Embedded MATLAB Function' (#155.219.242), line 10, column 6:
"MFCCsimulinkmodifier(s)"

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 8 de Ag. de 2012

0 votos

Function declared using eml.extrinsic (or code.extrinsic) are not supported for code-generation, since they are not in the list of functions supported for code generation, or in case of user-defined functions, may use unsupported functions or unsupported MATLAB features. Therefore you cannot generate code from this block using Real-Time Workshop.

4 comentarios

latsi lab
latsi lab el 8 de Ag. de 2012
but how can i generat may code,please if you have any idea help me,i'm in the border of a piece of folly
Kaustubha Govind
Kaustubha Govind el 8 de Ag. de 2012
You might need to find equivalent C implementations for all those unsupported functions and call them using eml.ceval so that the generated code can call into the C libraries.
latsi lab
latsi lab el 9 de Ag. de 2012
where can i find the equivalent C implementation for all those unsupported functions
Kaustubha Govind
Kaustubha Govind el 9 de Ag. de 2012
latsi: Sorry, can't help you there!

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Ag. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by