how to access variable from another function

조회 수: 9 (최근 30일)
Alice Faisal
Alice Faisal 2018년 10월 19일
댓글: Stephen23 2018년 10월 20일
I want to build two functions, the first one has basic equations, and the second one for channel modeling, my question is how to access a variable from the first function in the second function? because I want to assign values for the variables available in the first function, in the second function for example I will try for different temperature values can any one help?
  댓글 수: 1
Stephen23
Stephen23 2018년 10월 20일
Either pass them as arguments or use nested functions. What have you tried so far?

댓글을 달려면 로그인하십시오.

답변 (1개)

madhan ravi
madhan ravi 2018년 10월 19일

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by