How to access S3 browser buckets in matlab?
5 views (last 30 days)
Show older comments
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');
0 Comments
Answers (1)
Abhinav Aravindan
on 11 Dec 2024 at 12:31
Edited: Abhinav Aravindan
on 11 Dec 2024 at 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:
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!