Add a variable to a table

Suppose I have a table T. I want to add a variable x to T. Please advise the steps.

 采纳的回答

If your table is named T, and your workspace variable is named k, and you want the new variable in the table to be named k, then it's just
T.k = k

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Tables 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by