NxA array and Nx1 array into Nx(A+1) table
显示 更早的评论
I have a variable x that is NxA and a variable y that is Nx1.
I just want to have a table that is Nx(A+1) that is essentially x and y concatenated horizontally.
When I do
table(x, y)
Instead of Nx(A+1) table, I get Nx2 table.
This seems simple, but somehow I can't work the table to do this properly.
Any help would be appreciated.
1 个评论
Stephen23
2023-2-8
"I just want to have a table that is Nx(A+1) that is essentially x and y concatenated horizontally."
Then concatenate x and y horizontally:
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!