How to create a struct with field name numeric.
Show older comments
s = struct('1',{'110000'},'2',{'110001'});
Error using struct
Invalid field name "1".
How I can create a struct which have field name numeric value like the above example but i got a error as shown.
Thanks in advance.
3 Comments
Stephen23
on 17 Apr 2020
How is this any different to your earlier question?:
Balkar Singh
on 17 Apr 2020
Balkar Singh
on 17 Apr 2020
Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!