How to access S3 browser buckets in matlab?

7 次查看(过去 30 天)
Hello
I am new to matlab and I wanted to access to open source S3 bucket IN the S3 browser not AWS website(I dont have any link). I have installed S3 browser and have access to all my datasets inside the browser. Now I want to read those data sets inside matlab. But I dont know how can I do that. I would appriciate it if you could help me with my problem.
So far I have done this but did not worked:
setenv('AWS_ACCESS_KEY_ID', '{ID}');
setenv('AWS_SECRET_ACCESS_KEY','{ID}');
setenv('AWS_REGION', 'us-east-1');

回答(1 个)

Abhinav Aravindan
Abhinav Aravindan 2024-12-11,12:31
编辑:Abhinav Aravindan 2024-12-11,12:33
The “setenv” commands you have used are to specify your AWS access key ID, secret access key, and region of the bucket as system environment variables and are to be defined in your MATLAB Parallel Server command window as per the documentation. To access data from Amazon S3 in MATLAB, you can utilize the URL of your S3 bucket which may be generated using the S3 Browser. For instance, to read images from the S3 bucket, you can do so as follows where “s3://MyCloudData” is the URL of your bucket:
img = imread("s3://MyCloudData/FoodImageDataset/french_fries/french_fries_90.jpg");
imshow(img)
Please refer to the below link for detailed information on the steps to access data from Amazon S3 Buckets using MATLAB:

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by