How to add new field to existing structure?

369 views (last 30 days)
Thibedi Malotana
Thibedi Malotana on 30 May 2020
Commented: Thibedi Malotana on 30 May 2020
I would please like to know how to add a new field to a existing structure array.

Answers (1)

madhan ravi
madhan ravi on 30 May 2020
If S is your struct:
S.Newfield = "Hi there;)"

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!