How to access S3 browser buckets in matlab?

7 ビュー (過去 30 日間)
yasaman
yasaman 2022 年 12 月 4 日
編集済み: Abhinav Aravindan 2024 年 12 月 11 日
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 日
編集済み: Abhinav Aravindan 2024 年 12 月 11 日
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 Center および File ExchangeParallel and Cloud についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by