matlab中如何用不同矩阵中的列构成新矩阵。

比如A=[1,2]
B=[3,4]
上边均是一行两列
新矩阵
C=[1,4]

 采纳的回答

xapopi
xapopi 2022-11-19

0 个投票

你这直接取出A B的列然后构成矩阵C不就好了吗
C=[A(:,1),b(:,2)]

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 快速入门 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!