MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]如何缩减矩阵? (https://www.labfans.com/bbs/showthread.php?t=2351)

ilikehere 2008-04-17 21:05

[求助]如何缩减矩阵?
 
在计算过程中得到一个矩阵,但矩阵中有无用的数据,希望删除几行,用循环写了几次都不成功,希望高手指点。
例如:A=[2 1 3 5;
3 2 4 8;
2 7 9 0;
0 0 0 0;
0 0 0 0;];想要删掉最后两行,用for循环怎么写?谢谢了!

watcher 2008-04-18 09:50

请查看帖子
[URL="http://www.labfans.com/showthread.php?t=3204"]http://www.labfans.com/showthread.php?t=3204[/URL]


所有时间均为北京时间。现在的时间是 12:27

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.