polyfit and code generation

Hi,
I am using polyfit in Simulink and i want to know if it is possible to generate code for polyfit with the Matlab coder.
thank you in advance

Réponses (1)

Nirmal Gunaseelan
Nirmal Gunaseelan le 4 Août 2011

0 votes

The list of supported functions doesn't seem to suggest that POLYFIT is supported.

4 commentaires

Safwan
Safwan le 4 Août 2011
Hi Nirmal,
thank you for your prompt response
but there is another list which suggests that POLYFIT is supported,
http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z7-11.html
Dose that mean that the functions in this list are only supported if they are included in an embedded Matlab function in Simulink. Or does it mean to support the code generation starting from Matlab but not from Simulink?
Nirmal Gunaseelan
Nirmal Gunaseelan le 4 Août 2011
It should be supported in both code generation from MATLAB through MATLAB Coder and through Embedded MATLAB block in Simulink.
Nirmal Gunaseelan
Nirmal Gunaseelan le 4 Août 2011
And apologies for pointing to the wrong page - my original link was talking about supported functions in the Signal Proc Toolbox alone.
Safwan
Safwan le 8 Août 2011
Hi Nirmal,
thank you agian for the response
I generate code for a Polyfit block in Simulink but only the declaration of the function will be generated without definition. Do you know any possible reason why no definition in generated. I got also the same problem by generating code for a matrix multiplication block or pseudoinverse block.
I appreciate your help

Connectez-vous pour commenter.

Question posée :

le 4 Août 2011

Community Treasure Hunt

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

Start Hunting!

Translated by