How to make 'blue' variable?
8 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I'm trying to make my own ImageViewer. Using some program as a template, I saw a lot of 'blue' variables in it (when I point on such variable there is a text "The scope of variable ... spans multiple function").
Now I understood, that I want to use such variables also - in callback functions to update text, data, and so on.
How can I create such variables? Short explanation of what does it mean is appreciated as well. Thanks.
0 件のコメント
採用された回答
Image Analyst
2014 年 9 月 12 日
Keywords are in pure blue. Global variables are in cyan. You can just put the line
global myVariable;
in any function that needs to see the global variable. Other than that, just create it and use it like any other variable.
2 件のコメント
Image Analyst
2014 年 9 月 15 日
Post a screenshot of your screen so we can see it. In nwindows type alt-PrintScreen, then go to http://snag.gy and paste it in and give us the url or click on the green and brown image icon to paste it in your response here.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MuPAD についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!