フィルターのクリア

How to execute .c file on matlab 2012?

1 回表示 (過去 30 日間)
Chetana
Chetana 2014 年 5 月 14 日
編集済み: James Tursa 2014 年 5 月 14 日
Following error is generated while executing yprime.c file in matlab environment:
>>cd([matlabroot '\extern\examples\mex']) mex yprime.c
Error message LINK : fatal error LNK1104: cannot open file 'yprime.mexw64'
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Link of 'yprime.mexw64' failed.
Error using mex (line 206) Unable to complete successfully
Please guide me how to execute .c files on matlab

回答 (1 件)

James Tursa
James Tursa 2014 年 5 月 14 日
編集済み: James Tursa 2014 年 5 月 14 日
The fact that you can't open the output file possibly means you do not have write privileges into the \extern\examples\mex directory. You should copy the yprime.c file to a working directory that you do have write privileges in and then try the compile there. In fact, this should be a general advice for you ... don't alter anything in the original MATLAB directories.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by