VAriables of a function inside a function
Mostrar comentarios más antiguos
Good morning,
I am runnung iterative loop
loop(arg) where arg is a number to specify matlab how many times to run the loop(arg)
There are certain function inside the loop(arg) to run simulation and followed by convergence criteria inside a loop(arg)
My question is i need to extract global variable 'rxf' assigned and present inside a loop(arg) to be used in a function where loop(arg) executed inside that function. But i observe error Unrecognized function or variable 'rxf'.
Any idea how to resolve this issue.
Thank you in advance.
6 comentarios
KSSV
el 9 de Sept. de 2021
Show us your code and specify the error with line number.
RAKESH KUMAR TOTA
el 9 de Sept. de 2021
RAKESH KUMAR TOTA
el 9 de Sept. de 2021
RAKESH KUMAR TOTA
el 9 de Sept. de 2021
RAKESH KUMAR TOTA
el 9 de Sept. de 2021
DGM
el 9 de Sept. de 2021
FWIW, calling a function in an anonymous function doesn't imply the same variable scoping rules that apply to functions with nested scopes.
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!