MATLAB: Error when trying to open m-files from within a Matlab Instance

opening files

Hi everyone,
Whenever I try to open m-files from folders that have been added to the path from a directory in a matlab instance, I get the error as indicated in the image below.
This doesn't occur if I have not added the folders to the path or if I simply open the m-file directly outside of an instance of Matlab. I am using Matlab 8.1.0.604 (64 bit) on Windows 7.
Any suggestions?
Thanks, Borna

Best Answer

Thanks for the help guys!
Matt, doing what you had suggested made me realize something: as I was typing in the full path to call fopen, I realized that when I was adding that entire folder to path, I was also adding all the subfolders as well. I guess deep within one of the folders of the code I'm trying to use, there is an 'fopen.m' that conflicts with Matlab's own native fopen. Once I realized this and didn't add that particular folder to path, the error disappeared.
Thanks again to all for your comments. -Borna