Global variable definition change in 2020a
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Oz Kira
el 16 de Oct. de 2020
Comentada: Oz Kira
el 16 de Oct. de 2020
Hi
I am trying to run a model (not written by me). When I open it in 2019a matlab version I have a number of variables that are seen as global by matlab (change color). But when opening them in 2020a version these variables are not global. This is the same code in both cases. Did something changed in the global variable definition in 2020a?
Thanks for your answer
1 comentario
James Tursa
el 16 de Oct. de 2020
Please post a small example of your code that reproduces the issue.
Respuesta aceptada
Steven Lord
el 16 de Oct. de 2020
My suspicion is that you're not actually using global variables, you're using variables shared between a function and another function nested inside the first. There were some changes in release R2019b in this space; see the Release Notes for more information. My guess is that you were implicitly sharing those variables between the parent and nested functions.
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!