Clear Filters
Clear Filters

startup で 設定したglobal 変数(char)が ときにより空になるのですが 原因 対策 教えて

1 view (last 30 days)
Nobuo Tsukamoto
Nobuo Tsukamoto on 26 Jul 2023
Commented: Nobuo Tsukamoto on 29 Jul 2023
global 変数がdirectry 変更で 空に なるのですが 原因、対策 知りたい

Answers (1)

Atsushi Ueno
Atsushi Ueno on 26 Jul 2023
【想定する原因】startup.m ファイルのパスが通っていない場合に startup が動かない
【想定する対策】次のいずれかを実施し、startup.m ファイルのパスが常に通っている様にする
  1 Comment
Nobuo Tsukamoto
Nobuo Tsukamoto on 29 Jul 2023
matlab 起動時には global 変数は正常です その後、path の通っていないdiectry の m file に
access したときに gobal 変数が [] (空)になってしまいます

Sign in to comment.

Categories

Find more on 起動と終了 in Help Center and File Exchange

Tags

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!