MATLAB Answers

How to combine the name of struct together

1 ビュー (過去 30 日間)
Sharah 2016 年 11 月 16 日
回答済み: Alexandra Harkai 2016 年 11 月 16 日
I am trying to add data into few struct with different name, say if
k = 'TD',
put data into
and if
k = 'AB',
put some data into
can anyone enlighten me?


Alexandra Harkai
Alexandra Harkai 2016 年 11 月 16 日
Data.(k)(i).somethingelse = your_value
See the Documentation for reference.

その他の回答 (0 件)


Community Treasure Hunt

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

Start Hunting!

Translated by