how to access variable from another function

16 views (last 30 days)
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 Comment
Stephen23
Stephen23 on 20 Oct 2018
Either pass them as arguments or use nested functions. What have you tried so far?

Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 19 Oct 2018

Categories

Find more on Entering Commands in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!