Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题是我的文件夹包含 mat 格式的图像,我如何使用 for 循环读取这些 mat 文件???
试试这个。
folder = 'C:/foobar/'; files = dir([folder '*.mat'); for i = 1:numel(files) load(files(i).name; end