Given the URL of an image, I want to download the image.

14 vues (au cours des 30 derniers jours)
Stuart Smith
Stuart Smith le 14 Oct 2022
Commenté : Stuart Smith le 14 Oct 2022
Given the URL of an image, I want to download the image. Can this be done in Matlab? With webread?

Réponse acceptée

Branden Summa
Branden Summa le 14 Oct 2022
You should be able to do this using websave
>> imageUrl = 'https://requestserver.mathworks.com/assets/computerVision.jpg';
>> imageName='image.jpg';
>> websave(imageName,imageUrl);
See https://www.mathworks.com/help/matlab/ref/websave.html for additional options and examples
  1 commentaire
Stuart Smith
Stuart Smith le 14 Oct 2022
Great! This is exactly what I wanted. Thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by