Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は matlab を初めて使用し、既に持っている nxn 行列の行に等しい新しいベクトルを作成したいと考えています。ループでそれを行う方法は知っていますが、コマンドはありますか? 何かのようなもの
vector1=matrix1(row5)
ありがとう!
はい、これは簡単です。構文は次のとおりです。
row5Vector = matrix1(5,:);
また、列を取得するには、次のことができます。
col5Vector = matrix1(:,5);