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.
例如,我创建了一个矩阵
a = [1, 2, 3; 4, 5, 6; 7, 8, 9]
我想提取变量r中的第二行,所以在那之后
r = [4, 5, 6].
我怎么能这样做?
要获得第二行使用
r = a(2,:);
r = a(2,$);
一个很好的教程可以在这里找到:http: //hkumath.hku.hk/~nkt/Scilab/IntroToScilab.html