How to transfer a .m file in another folder

1 vue (au cours des 30 derniers jours)
Oriane Lagrabe
Oriane Lagrabe le 29 Mar 2019
Modifié(e) : Stephen23 le 31 Mar 2019
Hello everyone!
I've got one simple question (yet I struggle to get through it) : I'm working with .m files that requires themselves others .m files functions to work. So, everything is in a folder A and it's working great. But if I create a folder B inside of A, and put every scripts on B, it doesn't work anymore. And yes, I've changed the "current folder" to B before starting those scripts. I can't find any solutions to this problem. I'd be grateful if someone could help! :)
Thanks in advance!

Réponses (1)

Walter Roberson
Walter Roberson le 29 Mar 2019
Add folder B to the MATLAB path. You will not need to cd to there.
  3 commentaires
Stephen23
Stephen23 le 29 Mar 2019
Modifié(e) : Stephen23 le 31 Mar 2019
Oriane Lagrabe
Oriane Lagrabe le 29 Mar 2019
Thanks a lot :) !

Connectez-vous pour commenter.

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!

Translated by