Error: Unable to locate 'mexopts.bat'

11 ビュー (過去 30 日間)
satendra kumar
satendra kumar 2012 年 9 月 11 日
回答済み: Jesse Lee 2020 年 9 月 13 日
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 日
I would suggest you follow the advice of the error message! Type this at the command line:
mex -setup
  4 件のコメント
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 日
i am also getting this same error.please help me

Jesse Lee
Jesse Lee 2020 年 9 月 13 日
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

カテゴリ

Help Center および File ExchangeSolar Power についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by