Programming, Matlab, Function, Basics, Electrical Engineering.
global v; now it can be accessible outside the function scope. Example: global v >> myRand(2,3) ans = 2.1361 2.5499 2.6221 2.4018 2.8693 2.1450 2.3510 2.0760 2.5797 2.8530 2.5132 2.2399 >> v v = 2.1361 2.8693 2.5797 2.5499 2.1450 2.8530 2.6221 2.3510 2.5132 2.4018 2.0760 2.2399 // Whatif the