フィルターのクリア

simulink path error matlab function block

1 回表示 (過去 30 日間)
ozcan
ozcan 2012 年 11 月 1 日
Hi, I am using matlab 2012a and I try perform a simulink model which is kind of flow shop manufacturing model. I want to use matlab function block but when I add this block to model it made error like this;
"The current directory is c:\program files\matlab\r2012a\bin, which is reserved for matlab files"
When I try perform matlab examples that include matlab function block are in matlab library it made same error.
How can fix it ?

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 11 月 1 日
You just need to change your working directory to something that's not under Program Files:
>> cd C:\some\other\path
MATLAB Function blocks first generate a MEX-file from your MATLAB code into the current directory, before executing it. Since you are in "c:\program files\matlab\r2012a\bin" which is a read-only directory, it results in an error.
  1 件のコメント
Daniel Gutiérrez Díaz
Daniel Gutiérrez Díaz 2017 年 10 月 29 日
Gracias :)

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by