MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在Matlab中切出正方形矩阵的一部分 (https://www.labfans.com/bbs/showthread.php?t=23178)

poster 2019-12-10 20:30

在Matlab中切出正方形矩阵的一部分
 
是否有一个内置函数可以删除Matlab中方形矩阵的第K行和第一个列?

希望从图中清楚:

[URL="http://img121.imageshack.us/img121/8145/cutmatrix.png"]替代文字http://img121.imageshack.us/img121/8145/cutmatrix.png[/URL]



[B]回答:[/B]

这是两个简单的解决方案:

x([1:k-1 k+1:end],[1:k-1 k+1:end]) 要么:

x(k,:)=[];x(:,k)=[];

[url=https://stackoverflow.com/questions/2383518]更多&回答...[/url]


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

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