transfer function to c code

8 views (last 30 days)
Anantha Padmanabha
Anantha Padmanabha on 19 May 2011
how to convert a transfer function to c code
  4 Comments
Arnaud Miege
Arnaud Miege on 19 May 2011
Are you using just MATLAB (and probably also Control System Toolbox) or also Simulink to model your transfer function?
Anantha Padmanabha
Anantha Padmanabha on 19 May 2011
I am using MATLAB. How can I convert the .M file generated by the MATLAB to .C file.

Sign in to comment.

Answers (1)

Arnaud Miege
Arnaud Miege on 19 May 2011
The code generation products have been repackaged in the latest release, R2011a.
If you are using R2011a, you can use MATLAB Coder. Have a look at the MATLAB Coder Overview video. If this is for creating production software, you might also want to consider Embedded Coder.
In previous releases, you would need to use Embedded MATLAB with Real-Time Workshop (and also Real-Time Workshop Embedded Coder if production software). This required you to also have Simulink. That's no longer the case with MATLAB Coder.
HTH,
Arnaud
  1 Comment
Anantha Padmanabha
Anantha Padmanabha on 19 May 2011
Thanks a lot Arnaud.
I wiil implement the same.
Regards
Ananth

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!