Table - Write results in a new rows

3 次查看(过去 30 天)
Mepe
Mepe 2019-3-28
From a measurement, only certain values should be written in a matlab table.
These should be written successively in new rows ob the table.
Whats the best way to do this?

回答(2 个)

StefBu
StefBu 2019-3-28
编辑:StefBu 2019-3-28
Hi, you can create a cell array and then add a new row to your table by concatenation.
For example if your table variables are double and you have 4 variables in total. now if you want to add a row with 9999 each try this.
newRow = {9999, 9999, 9999, 9999};
Table = [Table; newRow];
Greetings
Stefan

madhan ravi
madhan ravi 2019-3-28
doc array2table

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by