How to set the value of a variable in one function from another?
3 views (last 30 days)
I have a function in its own file that has the variable n. I want to run the function in a loop incrementing the value for n each time in another function file. I am able to access the value of n if its set prior but I dont know how to change it from my second function.
Any help would be greatly appreciated.
Its something like this.
function[n,x,y] = f1
//code that does stuff with n
Then in my second function I have the following loop where I call f1 and want to change the value of n each time/
[n,x,y] = f1