Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Can anyone help me using Matlab code Generation?.

Asked by Josef

Josef

on 27 Mar 2013
Accepted Answer by Wayne King

Wayne King

Hi all,

I am new to Matlab Coder and am trying to convert some .m files into .c files. I read and watched tutorials that current versions of matlab have a built-in coder which could help me with my task.

What do I need except for matlab? Are there any other requirements?

Cheers.

0 Comments

Josef

Josef

Products

1 Answer

Answer by Wayne King

Wayne King

on 27 Mar 2013
Accepted answer

You do have MATLAB Coder right? You need the MATLAB Coder product installed. Assuming that, have you tried a simple function for code generation first?

2 Comments

Josef

Josef

on 27 Mar 2013

Hi Wayne, Thanks for your reply. I do have a matlab coder installed and I also tried a simple function but recreived this error. Do you have any suggestions?:

>> coder -build Untitled1.prj ??? Unknown compiler ''.

Error in ==> foo Line: 1 Column: 1 Code generation failed: Open error report.

Kaustubha Govind

Kaustubha Govind

on 27 Mar 2013

Josef: Could you run "mex -setup" and select a supported compiler. Then try the coder command again.

Wayne King

Wayne King

Contact us