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

16 views (last 30 days)
Given the URL of an image, I want to download the image. Can this be done in Matlab? With webread?

Accepted Answer

Branden Summa
Branden Summa on 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

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!