フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

(REPOST) Global Function not working

1 回表示 (過去 30 日間)
Trevor Zane Simko
Trevor Zane Simko 2015 年 5 月 8 日
閉鎖済み: Walter Roberson 2015 年 5 月 8 日
Let me start this off saying that I'm not very familair with MATLAB. I'm a first year engineering student working on a final project and I might have decided to try a project a tad out of my lead. So please specific with your advice. With that said, here's my problem:
I have a total of 5 figures (GUI's) with pushbuttons. Under the pushbuttons function I have written:
global Variable_One Variable_One={1 'Name'}; close Then, in my script, I assign Variable_One to my workspace by using:
openfig('Figure1','reuse'); uiwait(Figure1) global Variable_One; With my first two figures, this works perfectly. However when trying to do the same with the third figure later on in the script, Variable_Three is assigned to [] rather than {3 'Name'} .
So frustrating! I'm so close to finishing this project. Plese, all help appreciated thank you.
  2 件のコメント
John D'Errico
John D'Errico 2015 年 5 月 8 日
Wow! What a good advertisement for why NOT to use globals.
Walter Roberson
Walter Roberson 2015 年 5 月 8 日

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by