Creating table with scalars in one column and vectors in another
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I'd like to create a table that contains scalars in the first column and vectors (arrays) in the second column. For example:
However, MATLAB will only let me add tables or cell arrays into an existing table.
I'd appreciate your help.
Thanks.
0 个评论
采纳的回答
Star Strider
2022-5-1
Try something like this —
theta = [30; -15];
Dm = [1 0 -1; 0 0 -1];
Data = table(theta, Dm)
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!