Variable highlighting sometimes doesn't work (Editor)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
With some variables, clicking on them in the Editor does not highlight other occurrences of that same variable within the current script, as would be expected.
Not sure why that is the case, since those variables are no different from those for which highlighting works normally; and there are no syntax errors in my script. Any ideas? Using R2016a.
3 comentarios
Respuesta aceptada
Más respuestas (1)
An
el 25 de Dic. de 2023
Editada: An
el 25 de Dic. de 2023
It seems that only variables defined locally are highlighted. Added a "global varname" at the beginning (varname the variable that was not being hightlighted) and it started being highlighted.
Hope this helps (me) or anyone else.
0 comentarios
Ver también
Categorías
Más información sobre Function Creation 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!