Turquoise Blue Font in Matlab

I would like to know what the light blue/turquoise blue font in Matlab means. I am currently working on Bayesian Optimisation in Matlab and whilst going to some previous students' code, I came across a weird blue font colour I have never seen before in their function definition. I have checked my colour scheme settings in Matlab and this turquoise blue does not appear in the list of set colours. See the attached picture for reference.

Turquoise Blue Font colour in Matlab


Solution 1:

By default this color means that the corresponding variable has shared scope. This can be because it is

  • a global variable (its scope is shared with the command window);
  • a persistent variable (its scope is shared across subsequent calls to this function); or
  • a variable that is used in a nested function (its scope is shared between the nested and parent functions).

Thus, this color indicates in general that the value of that variable can be affected from outside the function.

The color can be changed in the Matlab preferences window. The window also shows some example code that illustrates this:

enter image description here