Download zip file from url in MATLAB

39 vues (au cours des 30 derniers jours)
PeymanS
PeymanS le 7 Juin 2022
Commenté : Stephen23 le 14 Août 2025
I would like to download a zip file from a url.
Here is the webpage:
and I would like to download "CSR_CSR-Release-06_96x96_unfiltered.zip"
Thanks in advance.

Réponse acceptée

Sourav Sukumaran
Sourav Sukumaran le 29 Juin 2022
Hi,
Please refer to this MATLAB Answer.You have to use the websave option with the your url and filename
Thanks
  3 commentaires
Damon
Damon le 13 Août 2025
This doesn't work in many cases, it seems to just download an .html file pointing to the file you're telling it to download.
This bug really limits the utility of websave. Fixes using curl or other approaches are problematic. This is a very commonly used function (or would be if it worked) for many of us.
Please fix this bug.
Stephen23
Stephen23 le 14 Août 2025
@Damon: make a bug report / enhancement request: https://www.mathworks.com/support/contact_us.html

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Downloads dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by