My goal is to delete the .html part of .edf.html-files.
Using the following code, gives the error:
'Error using movefile. Unknown error occurred.
Error in remove_html (line 7)
files = dir('/Users/haron/Desktop/Work/Haron/aprikose_edfs/*.edf.html');
oldname = files(ii).name;
[path,newname,ext] = fileparts(oldname);
In the first iteration I get as output for newname: 00008530_s001_t000.edf, which seems to be correct, but it got issues with 'movefile'...