how can i add column in matrix?
1 次查看(过去 30 天)
显示 更早的评论
A is a matrix:
0 9 8 4 6
9 0 8 4 3
0 6 4 8 9
8 0 4 6 9
9 0 8 4 3
0 9 4 8 6
9 0 8 4 6
how to add another column at the end of matrix A?
0 个评论
采纳的回答
Turlough Hughes
2019-12-22
Depends what you want in that column but you could for example add a column of zeros as follows:
A = [A zeros(size(A,1),1)]
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!