MATLAB: Audiowrite and audioread is not case-sensitive

audioreadaudiowritecase sensitive

I am using MATLAB 2016b on Mac with Sierra, and MATLAB 2010a on Windows 10. For some reason, the commands AUDIOREAD and AUDIOWRITE become case-insensitive. For example,
audiowrite('test.wav', 0.1, 44100);
audioread('TEST.wav')
This returns 0.1 (although the second line reads the audio file with the capital 'TEST'). Furthermore,
audiowrite('TEST.wav', 0.2, 44100);
overwrites 'test.wav', meaning that 'test.wav' is automatically deleted and 'TEST.wav' is generated.
Please help with this. Thanks in advance.

Best Answer

Are you using the new MacOs file system in Sierra, APFS, or are you using an HFS+ file system? The default for HFS+ file systems is to be case insensitive and you need to specifically go into Disk Utility and reformat the partition as HFS+ (Journaling) (Case Sensitive) if you want to be able to distinguish case.