How to load data from a location other than current directory
Mostra commenti meno recenti
I would like to be able to load a .mat file from an arbitrary location that is not my currently selected folder.
Example: data is stored in C:\users\me\Documents\MATLAB\data\example_data.mat
current selected folder (where script is running) is C:\users\me\Documents\MATLAB\projects\project1\example_code.m
What code could I use to load example_data.mat in a some script (example_code.m) running from any arbitrary folder in MATLAB?
Thanks!
Risposta accettata
Più risposte (1)
PAVANRAJ PRAJJU
il 15 Mag 2022
0 voti
What is the command that is used to call data from a file which is saved in the same directory
Categorie
Scopri di più su Web Services in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!