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.
我是八度和学习它的新手。
假设我有一个矩阵 X = 1 2 3 4 5 6
我想从第二行访问这个矩阵,省略第一行。 它的语法是什么!?
我可以通过 X(1,:) = [] 删除该行,这将改变原始矩阵, 如何从八度的第二行访问?
使用冒号语法。要将第 2 行返回到最终用途:
X(2:end, :)
有关更多索引选项,请参阅GNU Octave 文档。