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

15 次查看(过去 30 天)
Given the URL of an image, I want to download the image. Can this be done in Matlab? With webread?

采纳的回答

Branden Summa
Branden Summa 2022-10-14
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

更多回答(0 个)

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by