How to pass a variable from one function to another without declaring it as global

1 回表示 (過去 30 日間)
Bashir Yusuf Bichi
Bashir Yusuf Bichi 2017 年 12 月 5 日
コメント済み: Bashir Yusuf Bichi 2017 年 12 月 6 日
Fn1
{
a;
b;
}
Fn2
{
c=a;
}

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 12 月 5 日
I am not sure which language you are writing your code in, but if you are interested in MATLAB then see http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by