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

15 Ansichten (letzte 30 Tage)
Stuart Smith
Stuart Smith am 14 Okt. 2022
Kommentiert: Stuart Smith am 14 Okt. 2022
Given the URL of an image, I want to download the image. Can this be done in Matlab? With webread?

Akzeptierte Antwort

Branden Summa
Branden Summa am 14 Okt. 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

Weitere Antworten (0)

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by