Can I save a MATLAB variable generated by a function into another MATLAB function?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I know how to save a variable to a matlab script. But I need to save the variable into another function. Does any body know is it possible to do?
Thanks
댓글 수: 0
답변 (1개)
Asad (Mehrzad) Khoddam
2020년 9월 17일
You can use global variables by this line of code in all functions that share the same variables:
global var1 var2 var3
댓글 수: 0
참고 항목
카테고리
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!