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

Answers (1)

Nirmal Gunaseelan
Nirmal Gunaseelan on 4 Aug 2011
The list of supported functions doesn't seem to suggest that POLYFIT is supported.

4 Comments

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?
It should be supported in both code generation from MATLAB through MATLAB Coder and through Embedded MATLAB block in Simulink.
And apologies for pointing to the wrong page - my original link was talking about supported functions in the Signal Proc Toolbox alone.
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

Sign in to comment.

Asked:

on 4 Aug 2011

Community Treasure Hunt

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

Start Hunting!