How to transfer a .m file in another folder

2 ビュー (過去 30 日間)
Oriane Lagrabe
Oriane Lagrabe 2019 年 3 月 29 日
編集済み: Stephen23 2019 年 3 月 31 日
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!

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 3 月 29 日
Add folder B to the MATLAB path. You will not need to cd to there.
  3 件のコメント
Stephen23
Stephen23 2019 年 3 月 29 日
編集済み: Stephen23 2019 年 3 月 31 日
Oriane Lagrabe
Oriane Lagrabe 2019 年 3 月 29 日
Thanks a lot :) !

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by