import to the workspace a .mat file saved in a folder other than pwd
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alberto Acri
le 22 Juil 2023
Modifié(e) : Stephen23
le 22 Juil 2023
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 commentaires
Réponse acceptée
Plus de réponses (1)
Bruno Luong
le 22 Juil 2023
Modifié(e) : Bruno Luong
le 22 Juil 2023
folder = 'C:\Users\Desktop\folder_test';
file = 'test.mat';
load([folder filesep() file])
0 commentaires
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!