I've been using fopen on a NAS regularly without a problem, but somehow I encounter a problem today, and fopen keeps failing to create a binary file.
fid = fopen(outfilename,'w');
folder = fileparts(outfilename);
Apparently, the folder exists and I have write access to the folder (UserWrite = 1), but I cannot create a file (fid = -1). The file name (2020-11-09_12-09-41_snr1a_01_iron.bin) doesn't contain illegal letters.
For comparision, I tried save and it doesn't work either.
Error using save
Unable to write file \\nasdrive\.....\yyyyyy\temp.mat: permission denied.
I'm using MATLAB R2020b and Windows 10.
Does anyone has a clue of how to fix this issue??? Why I cannot write a file even though UserWrite = 1? I have another folder on the same NAS, which has the same output for fileattrib, and fopen works in that folder.