I am trying to close 1 of 4 open text files (leaving the other 3 open). I referred to the website above 'fclose'. When I try and close the file using: fclose(myfileid) the following error is shown "Error using fclose String argument must be 'all'"
fclose('all') works for closing ALL files but I NEED to keep the other 3 files open. Is this because I am working with an other version of MatLab? (R2011b) If so is there a workaround?
>> x = 'Cycle_HS1.txt'
>> fclose(x) Error using fclose String argument must be 'all'.