Error: Unable to locate 'mexopts.bat'

I am trying to simulate the file in the following link-
But i am getting a error message "Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds. Use 'mex -setup' to select a supported compiler." Please somebody suggest some solution of it.

 Respuesta aceptada

Matt Fig
Matt Fig el 11 de Sept. de 2012
I would suggest you follow the advice of the error message! Type this at the command line:
mex -setup

4 comentarios

Jan
Jan el 11 de Sept. de 2012
This a clear and clean answer, nevertheless, I'm amused.
Achu m k
Achu m k el 13 de Mzo. de 2013
thank you so much..it works... after entering mex -setup, you just need give yes to 1 or 2 qns and you are done.._Unable to locate mexopts.bat_ issue is resolved.
mohamed fathalla
mohamed fathalla el 13 de Mayo de 2013
Editada: mohamed fathalla el 13 de Mayo de 2013
hi all
i use (mex -setup)
  • the output is :
Select a compiler:
[0] None
Compiler:
i enter number 1
the output is
Please select from 0-0
Compiler:
i enter 0 the output is
mex: No compiler selected. No action taken.
i need help
Kaustubha Govind
Kaustubha Govind el 13 de Mayo de 2013
You need to install a supported compiler if you don't have one already. Look at the last column on this page against your MATLAB version: http://www.mathworks.com/support/sysreq/previous_releases.html

Iniciar sesión para comentar.

Más respuestas (2)

sandeep d
sandeep d el 15 de Jul. de 2015

0 votos

i am also getting this same error.please help me
Jesse Lee
Jesse Lee el 13 de Sept. de 2020

0 votos

I got the same question,"Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds.
And I try to enter 'mex -setup' the output is :
Unknown encoding 'cp65001' at D:\Program Files\MATLAB\R2010b\bin\/mexutils.pm line 154
??? Error using ==> mex at 208
Unable to complete successfully.
PS: my version is 2010b. And actually, I've already installed the compiler, which I can see on 2020a

Categorías

Preguntada:

el 11 de Sept. de 2012

Respondida:

el 13 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by