How can I work matlab function on macbook?

hello i have problem. i have macbook and using yosemite 10.10.5 and i am using matlab 2014a
when i run matlab function on simulink, happened a problem
i got this error
Making simulation target "untitled_sfun", ...
/Applications/MATLAB_R2014a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I"/Applications/MATLAB_R2014a.app/extern/include" -I"/Applications/MATLAB_R2014a.app/simulink/include" -I"/Applications/MATLAB_R2014a.app/stateflow/c/mex/include" -I"/Applications/MATLAB_R2014a.app/rtw/c/src" -I"/Users/YusufAydin/Documents/MATLAB/slprj/_sfprj/untitled/_self/sfun/src" untitled_sfun.c
No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/maci64.
gmake: *** [untitled_sfun.o] Error 255

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 2 日

0 投票

You need to download XCode 7.1 from Apple and install it. After you install it from Apple, launch XCode and agree to the license terms.
You will also need the patch shown here.

2 件のコメント

yusuf aydin
yusuf aydin 2015 年 11 月 2 日
編集済み: yusuf aydin 2015 年 11 月 2 日
I tried but it did not work.
>> mex -setup
Warning: Xcode appears to be installed, but it has not been configured. Run "osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'" to configure Xcode. You must be an administrator of this computer to complete this action.
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2014a/maci64.
Walter Roberson
Walter Roberson 2015 年 11 月 2 日
Go into Applications Utilities and start Terminal . At the Terminal command line command
sudo xcode-select -switch /Applications/Xcode.app
and authenticate. Then try the mex -setup again.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

製品

質問済み:

2015 年 11 月 2 日

コメント済み:

2015 年 11 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by