startup で 設定したglobal 変数(char)が ときにより空になるのですが 原因 対策 教えて
Show older comments
global 変数がdirectry 変更で 空に なるのですが 原因、対策 知りたい
Answers (1)
Atsushi Ueno
on 26 Jul 2023
0 votes
【想定する原因】startup.m ファイルのパスが通っていない場合に startup が動かない
【想定する対策】次のいずれかを実施し、startup.m ファイルのパスが常に通っている様にする
- startup.mが存在するフォルダを MATLAB 検索パスに追加する
- startup.mが存在するフォルダを userpathに追加する(起動時に上記が自動実行される)
- startup.mが存在するフォルダを 初期作業フォルダーに指定(固定)する (起動時にstartup実行の場合)
1 Comment
Nobuo Tsukamoto
on 29 Jul 2023
Categories
Find more on 起動と終了 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!