0

I have a struct with information. I want to put more field and put in the new fields information from other tables. How i put new fields in a struct that have information? At matlab!

Thanks

Suever
  • 64,497
  • 14
  • 82
  • 101
  • 4
    You just do it. For example if you have a struct `S` with field `F1` and now you want to add a field `F2` just do `S.F2 = 'blablabla....'` – Dan May 30 '16 at 11:52
  • But if i want later put the information? And that the field will be empty untill i will put there? – Nicole Preschel May 30 '16 at 12:38
  • 2
    `S.F2 = []` or from the [docs](http://www.mathworks.com/help/matlab/ref/struct.html) `s = struct(field1,value1,...,fieldN,valueN)` – Dan May 30 '16 at 12:40

0 Answers0