How to add new field to existing structure?

186 visualizzazioni (ultimi 30 giorni)
Thibedi Malotana
Thibedi Malotana il 30 Mag 2020
Commentato: Thibedi Malotana il 30 Mag 2020
I would please like to know how to add a new field to a existing structure array.

Risposte (1)

madhan ravi
madhan ravi il 30 Mag 2020
If S is your struct:
S.Newfield = "Hi there;)"
  5 Commenti
madhan ravi
madhan ravi il 30 Mag 2020
Thank you Stephen ;)
Thibedi Malotana
Thibedi Malotana il 30 Mag 2020
Thank you to both of you

Accedi per commentare.

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by