How to pass a variable from one function to another without declaring it as global
조회 수: 1 (최근 30일)
이전 댓글 표시
Fn1
{
a;
b;
}
Fn2
{
c=a;
}
답변 (1개)
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 Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!