Access is Denied error

I am trying to create a stateflow chart in the simulink model and have created two variables within the chart. I have a sine wave as input to the chart with the output fed to a scope. Now, when i run the simulation, i get an error message which says unable to create directory C:\windows\system32\slprj and it also says access is denied. I am using the software as administrator. What do I do ??

4 个评论

Hi before you start matlab program must right click on matlab program icon and select "Run as administrator" item. Good Luck
Thanks a lot!
THANK YOU IT'S GOOD
Thank you a lot

请先登录,再进行评论。

回答(2 个)

Kaustubha Govind
Kaustubha Govind 2013-6-18

1 个投票

Try changing your current working directory to something that's not under C:\windows.

7 个评论

sorry for my asking, but how do i do this ?
Hi, I have the a problem lke this please help me. when i want to simulate matlab function i have this error
"Unable to create directory: C:\Program Files\MATLAB\R2011a\slprj" !!!!!!!!!!!!
You can use the cd command to change the current directory.
Sorry for asking but i know that we change directory with cd command . but the problem is that i will change what and how "from what to what" sorry for asking much question but can you explain me what is the problem exactly and what is the solution to resolve it . thanks a lot .
also you can change your working directory from matlab curent folder location.
>> cd 'H:\Matlab_Programs_HD'
This command can also be used for changing directory in MATLAB. It allows MATLAB to save file in "MATLAB_Program_HD" folder present in "H" drive instead of "C" drive.
it's working thank U

请先登录,再进行评论。

Mahdi Mah
Mahdi Mah 2021-7-20

0 个投票

hello,excuse me
How can I enter the Arduino sensor code into the MATLAB simulator and print receive data?
thankyou.

2 个评论

Start a new question since you are introducing a new topic. That way you are more likely to get an answer.
Yes , thank you for your guidance .

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Environment and Settings 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by