C code generation, "unknown complier" occured

1 次查看(过去 30 天)
hi,when i studying how to generate c code using matlab in a book, an error in the code generation report occured:unknown complier. how can i overcome that error?
P.S. the function in my exercise is
function c=myadd(a,b)
c=a+b;

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-12-16
You have to chose your compiler. In Matlab command
mex -setup
Then choose your compiler
  2 个评论
Image Analyst
Image Analyst 2012-12-16
I also do "mcc -setup" - not sure if you have to do them both or not.
Azzi Abdelmalek
Azzi Abdelmalek 2012-12-16
I think it's not necessary if you don't use mcc command

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by