bloc MATLAB function directory error
显示 更早的评论
Hello, I have a little problem with the "MATLAB function" bloc of simulink. I'm using matlab 2011a, I made a very basic circuit, in input of the bloc "MATLAB function" there is a bloc "Repeating Sequence" and in output just a scope. I didn't change the code of fcn bloc. However, when I launch the simulation the following error appear:
The current directory is c:\program files\matlab\r2011a\bin, which is reserved for MATLAB files. Please change your current directory to a writable directory preferably outside of MATLAB installation area
I tried to change the saving directory, but nothing changed, always the same error. Do you have any idea how I could solve this problem?
Thank you,
1 个评论
Hasan Basri Altintas
2021-12-1
编辑:Image Analyst
2021-12-11
How to change current directory without coding in MATLAB Simulink.
采纳的回答
更多回答(4 个)
Jerem
2012-1-27
1 个投票
4 个评论
thiru berg
2016-2-13
Hey jerem, can you please help me with how you cleared this error. with some clear steps. Thanks in advance
marwa moustafa
2017-1-20
you first make new folder in any other place for example you will make new folder "Ahmad"in the Local Disk (D) then write in command window in matlab >> cd D:\Ahmad
hesham ibrahim
2017-7-29
thanks marwa its the only way working on my prog
Jan
2018-3-10
[MOVED from flag]:
Sherif Said wrote: Thanks Marwa.
@Sherif Said: Please use flags only to inform admins and editors about contents, which might conflict with the terms of use, e.g. by rudeness or spam. Thanks.
M Asif
2013-12-18
1 个投票
How can I change current saving directory?
Many thanks in advance.
1 个评论
Kaustubha Govind
2013-12-18
You can use "cd C:\some\other\path" at the MATLAB prompt to change the current directory.
Jerem
2012-1-27
编辑:Walter Roberson
2015-12-22
2 个评论
Kaustubha Govind
2012-1-27
You also need to change your MATLAB current directory to the folder containing the file. Use the cd command.
Kaustubha Govind
2012-1-27
After that, "pwd" should return the folder where your model is saved.
shantanu srivastava
2018-1-28
0 个投票
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks. Use 'mex -setup' to select a supported C-compiler.
类别
在 帮助中心 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!