access data in a nested struct
3 views (last 30 days)
SC on 30 Jun 2020
Edited: SC on 30 Jun 2020
Let us name your string field inside L3 as 'Name'.
If you want to access data inside a nested struct,
You can do it by, s.L1.L2.L3.Name = 'String'
For more information on accessing nested structs refer to the following: https://www.mathworks.com/help/matlab/matlab_prog/access-data-in-nested-structures.html