Clear Filters
Clear Filters

How to read images from folder in online matlab

61 views (last 30 days)
I have 6000 images to train a model, in a folder in C drive. How to load these images to online matlab?

Answers (1)

Harsh Parikh
Harsh Parikh on 5 Jun 2020
Hi Keerthi,
MATLAB Online usually does not have a direct access to the local system you are working on.
However, MATLAB Online works by creating/accessing/modifying files to/from MATLAB Drive.
The following are the ways to use MATLAB Drive:
Since, you have a directory with 6000 of files, go for the second option.
  • Download MATLAB Drive Connector from the link mentioned above.
  • Go through the installation steps you encounter while installing the connector.
  • Sign in through your MathWorks account.
  • After the installation, you will have a folder in your local system which will work as MATLAB Drive folder.
  • Now, you can use this folder as any regular folder of your local system, however any file created/modified in that folder will be on MATLAB Drive and will be synced across all the devices which access MATLAB Drive through your account.
With the above approach, you will not have to hassle through the pain of uploading and downloading files through any Web Interface.
The folder will remain in your local system, as well as on MathWorks Cloud and works seamlessly across all your devices.
  5 Comments
Walter Roberson
Walter Roberson on 28 Oct 2021
It would have to prompt for each of the 10000 files.
Haroun Rababaah
Haroun Rababaah on 19 Dec 2023
@Walter Roberson: prompting for an img dir is done once, then the system can read all imgs in that dir.

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!