How can I solve the issue related to matlab compiler?

I am using matlab R2013a 64-bit version in windows 8.1. When i tried to simulate .m file,i got an error.The error is "Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler".How can i solve this?

Respuestas (3)

Steven Lord
Steven Lord el 13 de Sept. de 2015
What happened when you tried using "mex -setup" as the error message suggests?
Chetan Rawal
Chetan Rawal el 13 de Sept. de 2015
Akhil,
As the error suggests, you need to install a C-compiler to use some products. This is not installed by default. Try installing a free "mcc compiler" (google for it to download and install). Then use the "mex -setup" command in MATLAB to connect your newly installed Compiler to MATLAB. This should fix the issues you're facing.
Chetan

1 comentario

mcc is not a supported compiler that would be detected by mex -setup

Iniciar sesión para comentar.

Categorías

Más información sobre Troubleshooting in MATLAB Compiler SDK en Centro de ayuda y File Exchange.

Productos

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 13 de Sept. de 2015

Comentada:

el 13 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by