can any one solve this problem?

Error using construct_error (line 108) The current directory is c:\program files\matlab\r2012a\bin, which is reserved for MATLAB files. Please change your current directory to a writable directory preferably outside of MATLAB installation area

2 件のコメント

Star Strider
Star Strider 2015 年 8 月 2 日
No!
Unless you post relevant parts of your code so the error has a context.
ahmed al-kady
ahmed al-kady 2015 年 8 月 2 日
this error message appear without any coding just the default function of the Matlab function block in simulink

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

回答 (1 件)

Jan
Jan 2015 年 8 月 2 日

0 投票

If you post the code, which causes the error, a meaningful suggestion is possible. Without any details I repeat the suggestion given in the message already:
Please change your current directory to a writable directory preferably outside of MATLAB installation area
Eitehr use cd or even better create the file name with a full path. Relative file names are prone to errors.

3 件のコメント

ahmed al-kady
ahmed al-kady 2015 年 8 月 2 日
kindly, i need to reach how can i change the current directory to a writable one.
Walter Roberson
Walter Roberson 2015 年 8 月 2 日
cd(tempdir)
ahmed al-kady
ahmed al-kady 2015 年 8 月 3 日
another error happens ('Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.')

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

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

質問済み:

2015 年 8 月 2 日

コメント済み:

2015 年 8 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by