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

15 visualizzazioni (ultimi 30 giorni)
Given the URL of an image, I want to download the image. Can this be done in Matlab? With webread?

Risposta accettata

Branden Summa
Branden Summa il 14 Ott 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

Più risposte (0)

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by