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.

 채택된 답변

Matt Fig
Matt Fig 2012년 9월 11일

2 개 추천

I would suggest you follow the advice of the error message! Type this at the command line:
mex -setup

댓글 수: 4

Jan
Jan 2012년 9월 11일
This a clear and clean answer, nevertheless, I'm amused.
Achu m k
Achu m k 2013년 3월 13일
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 2013년 5월 13일
편집: mohamed fathalla 2013년 5월 13일
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 2013년 5월 13일
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

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

sandeep d
sandeep d 2015년 7월 15일

0 개 추천

i am also getting this same error.please help me
Jesse Lee
Jesse Lee 2020년 9월 13일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 9월 11일

답변:

2020년 9월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by