Cody

Problem 1995. Loading/Expanding a ZIP file from File Exchange

Solution 352828

Submitted on 16 Nov 2013 by Alfonso Nieto-Castanon
  • Size: 10
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%url_link='http://www.mathworks.com/matlabcentral/fileexchange/44314-cody-knotssample-zip-file?download=true'; url_link='https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/44314/versions/3/download/zip' load_file(url_link); z=dir; valid=0; for k=1:size(z,1) if strcmp(z(k).name,'Knots_sample.mat') valid=1; break; end end assert(valid==1); assert(z(k).bytes==58803)

url_link = 'https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/44314/versions/3/download/zip'