Highlighting fields of structures in Matlab editor?

9 views (last 30 days)
rokP
rokP on 1 Apr 2018
Answered: Aniket on 3 Mar 2025 at 6:29
When you select a structure in the Matlab Editor, it highlights the name of the structure throughout your script. But when you select a name of the field of the structure, they are not highlighted at all.
Is there a way or is Mathworks planing to fix this issue? That would be highly recommendable from very-long-scripts point of view.

Answers (1)

Aniket
Aniket on 3 Mar 2025 at 6:29
Hi @rokP,
I am able to observe that fieldnames of structs are not highlighted on selecting an instance of it in R2018a.
The issue seems to be addressed from R2023b onwards. I recommend upgrading to the latest version of MATLAB to observe this enhancement.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!