MATLAB: Unzip throws ZIP file not found error in “Classify ECG Signals Using LSTM Networks Example”

MATLAB

Looking at the example from the documentation "Classify ECG Signals Using LSTM Networks Example",
I get the following error when I run "ReadPhysionetData" from the "ClassifyECGSignalsUsingLSTMNetworksExample.mlx" deep learning example.
Error using checkfilename>validateFilename (line 165)
Function UNZIP was unable to find file ''/physionet.org/challenge/2017/training2017.zip''.
Error in checkfilename (line 49)
[fullfilename, fid] = validateFilename( ...
Error in parseUnArchiveInputs (line 81)
[archiveFilename, url] = checkfilename(archiveFilename, validExtensions, ...
Error in unzip (line 57)
[zipFilename, outputDir, url, urlFilename] = parseUnArchiveInputs( ...

Best Answer

In MATLAB versions after R2017b and before R2019b Update 2, it is likely that the URL for the location of the data set is outdated or incorrect.
Link : <https://physionet.org/challenge/2017/training2017.zip>
should be updated to
Please replace the URL in the file "ReadPhysionetData.m" on line 8:
unzip('https://physionet.org/challenge/2017/training2017.zip')
with the archive link:
unzip('https://archive.physionet.org/challenge/2017/training2017.zip')