I want to create an excel file called 'Results' in the same directory as my matlab file. This is the code I wrote so far:
fid = fopen(Result_File,'w');
when I run it, I get the error:
Error using EXP2_Ver12_Evaluation_of_Meteonorm_simulation (line 105)
Unable to write to file
Ensure the file is a valid spreadsheet file and is not password protected.
I dont understrand how it could be passwprd protected or not valid because my script creates the file that I am writing into.