Loading a random file from a directory
14 views (last 30 days)
Show older comments
Kevin Akash Rajasekaran
on 24 Jun 2021
Commented: Kevin Akash Rajasekaran
on 1 Jul 2021
Hey all! So I'm looking to write a program which involves randomly loading a .mat file from a directory containing a number of .mat files in a directory (C/toolbox/files). What's the best way to go about selecting a random .mat file from the directory and loading it? Thanks!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on File Operations 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!