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

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

Respuestas (1)

Atsushi Ueno
Atsushi Ueno el 26 de Jul. de 2023

0 votos

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

1 comentario

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

Iniciar sesión para comentar.

Categorías

Más información sobre 起動と終了 en Centro de ayuda y File Exchange.

Productos

Versión

R2015a

Etiquetas

Preguntada:

el 26 de Jul. de 2023

Comentada:

el 29 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!