行列の一行目を消す方法

行列の1行目を消す方法を知りたいです。
例えば A = [1 2 3; 4 5 6 ; 7 8 9] のような 3×3の行列があるとすると
B = [4 5 6; 7 8 9] の 2×3行列にしたいです。
よろしくお願いします。

 Respuesta aceptada

Hiroshi Miyagawa
Hiroshi Miyagawa el 18 de Dic. de 2020

0 votos

A = [1 2 3;4 5 6;7 8 9];
B = A(2:end,:); % 行列Aの2行目以降を取り出します
% 2行目以降を 2:end と表現しています

1 comentario

可野 谷上
可野 谷上 el 18 de Dic. de 2020
解決しました。
ありがとうございます。

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Dic. de 2020

Comentada:

el 18 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!