r/matlab•
IAmMDM

How to inspect an array of structs in 2025

TechnicalQuestion

I am pretty sure it worked in earlier versions... (though I can't check now)

enter

x(1).a.s = 1
x(2).a.s = 2
x(1).a.t = 1
x(2).a.t = 19

In Workspace window list double-click x to open that variable for inspection in Variables.

I am getting

https://preview.redd.it/lo4q51nnrzmf1.png?width=272&format=png&auto=webp&s=0ffb99e34071c9262324fa2bc43a35bd89636b4e

Now I would think that double-clicking on one of blue "1 x 1 struct" (say the second one) would show me what's in x(2).s and x(2).t but it does not.

Is this a bug of 2025? Or has it been always like that previously? Any workarounds other than typing:

y = x(2);

and double-clicking on y which gives

https://preview.redd.it/9x1mywqqszmf1.png?width=789&format=png&auto=webp&s=6e9a81baa17dbc03c2038a523b7109378433e91f

and 1 x 1 struct is still not clickable and the arrow next to "a" allows seeing the subfields s and t?

https://preview.redd.it/6jwzdcblszmf1.png?width=775&format=png&auto=webp&s=c92694cb884baae079cdb9120c99a23081ee735e

That workaround is not really good for me because I am dealing with structures much more complex and deep than my illustration example

Posted Sep 3, 2025, 6:27 PM UTC

215
Loading comments…