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

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

 Respuesta aceptada

xapopi
xapopi el 19 de Nov. de 2022

0 votos

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

Más respuestas (0)

Categorías

Más información sobre MATLAB 快速入门 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Nov. de 2022

Respondida:

el 19 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!