import to the workspace a .mat file saved in a folder other than pwd
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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 Commenti
Risposta accettata
Più risposte (1)
  Bruno Luong
      
      
 il 22 Lug 2023
        
      Modificato: Bruno Luong
      
      
 il 22 Lug 2023
  
      folder = 'C:\Users\Desktop\folder_test';
file = 'test.mat';
load([folder filesep() file])
0 Commenti
Vedere anche
Categorie
				Scopri di più su Data Import and Analysis in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!