MATLAB Answers

New column to a table with the dynamic name

22 views (last 30 days)
I new to add a new column to a table. The name of column is like this:
and then I will add the 'column_name' to the table like this:
How can I merge these two lines to one line? I mean defining the table column and adding it to the table in one line?


Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 20 Nov 2019
Yourtable.(expression) = value
The () are part of the syntax.


Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by