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

16 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by