由於不同的檔案放在不同的資料夾

然而每次重啟matlab未必在所要的資料夾位置

所以在.m檔中加了一行字

就能變更資料夾到配合該.m檔位置的路徑了

cd '檔案路徑'

cd 'C:\My Documents'

 

reference

Matlab 導引檔案與路徑Matlab Guide---File and Path

arrow
arrow
    文章標籤
    matlab
    全站熱搜

    kodakku 發表在 痞客邦 留言(0) 人氣()