import to the workspace a .mat file saved in a folder other than pwd
1 view (last 30 days)
Show older comments
How can I import a .mat file saved in a folder other than pwd to the workspace?
folder = 'C:\Users\Desktop\folder_test';
file = 'test.mat';
0 Comments
Accepted Answer
More Answers (1)
Bruno Luong
on 22 Jul 2023
Edited: Bruno Luong
on 22 Jul 2023
folder = 'C:\Users\Desktop\folder_test';
file = 'test.mat';
load([folder filesep() file])
0 Comments
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!