How to add a file location in Matlab
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to run a code which requires a ".eps" file as input which is called "resource". The code convert the file into something else and save it in "destination".
function X(resource, destination)
Would you please let me know how I can enter these two variables via an example. Let's say the resource file is located in "C:\Test\res.eps" and I want to save it to "C:\Test\des"
0 commentaires
Réponse acceptée
Tom
le 18 Fév 2012
You can change the current directory (the folder Matlab is currently working in) using the cd function. e.g.
cd C:\Test\res.eps
Plus de réponses (0)
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!