From: Max Watson on

I have an empty file h.dat, and (fid=fopen('h.dat')) works, but using any of the non-default permissions like fid=fopen('h.dat','w') results in fid=-1. I also cannot create new files this way either. This is a real problem since it's preventing me from using dlmwrite. Please help!

Thanks!

--Max
From: Walter Roberson on
Max Watson wrote:
>
> I have an empty file h.dat, and (fid=fopen('h.dat')) works, but using
> any of the non-default permissions like fid=fopen('h.dat','w') results
> in fid=-1. I also cannot create new files this way either. This is a
> real problem since it's preventing me from using dlmwrite. Please help!

use cd to find out which directory you are in, and check the ownerships and
permissions of that directory. In some systems (e.g., unix type systems) you
might also need "execute" permission on every directory between the root
directory and the destination directory; in Windows with NTFS you might need
"Read Directory" permission on every directory between the root of the device
and the destination directory.
 | 
Pages: 1
Prev: 3D generation
Next: Plotting Quadrics