Clear Filters
Clear Filters

Matlab 2007a debugging Problem in Win7 32bit System.

1 view (last 30 days)
Hi, I am using Matlab R2007a version in my machine. My machine has Win 7 32 bit OS. When I am simulating my system with matlab scripts(*.m files) , I have put some beak points in *.m files. I am not able to reach there. Is this is a OS problem or something wrong in my system which I am simulating? Its working fine with Win Xp. Please help in this regard.
Thanks, Bhavnish.
  2 Comments
Jan
Jan on 27 Dec 2011
What does "I am not able to reach this there" exactly mean? Does Matlab not stop at the breakpoints? Are you able to set the breakpoints? Are the files write protected?
Bhavnish
Bhavnish on 28 Dec 2011
Yes, Simon you got my point. Matlab does not stop at breakpoints.
I am able to set the break points. Yes, the files are write protected, they are read only.
But the same files were working fine in Win XP.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 27 Dec 2011
Which directory are your files stored in? Windows 7 has built-in protections to prevent writing files in directories that are considered to be reserved for the operating system, so if MATLAB is stored under one of those directories (not uncommon) and your working directory is inside the MATLAB directory, then you would not be able to write files. For reasons I have never determined, setting MATLAB breakpoints in a file requires write permissions to the file.
If the above is your problem, you need to move your files to another directory, and turning off UAC or running as Administrator will not be enough.

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!