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

global 変数がdirectry 変更で 空に なるのですが 原因、対策 知りたい

Answers (1)

Atsushi Ueno
Atsushi Ueno on 26 Jul 2023

0 votes

【想定する原因】startup.m ファイルのパスが通っていない場合に startup が動かない
【想定する対策】次のいずれかを実施し、startup.m ファイルのパスが常に通っている様にする

1 Comment

matlab 起動時には global 変数は正常です その後、path の通っていないdiectry の m file に
access したときに gobal 変数が [] (空)になってしまいます

Sign in to comment.

Categories

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

Products

Release

R2015a

Tags

Asked:

on 26 Jul 2023

Commented:

on 29 Jul 2023

Community Treasure Hunt

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

Start Hunting!