A为M行N列矩阵,删除第i列(1<=i<=N),则:
B=[A(:,1:i-1),A(:,i+1:N)];
或直接在A上修改,
A(:,i)=[];
http://topic.csdn.net/u/20080725/17/b30c6b03-12c6-4022-9df9-de7fd5e0cb4c.html
A为M行N列矩阵,删除第i列(1<=i<=N),则:
B=[A(:,1:i-1),A(:,i+1:N)];
或直接在A上修改,
A(:,i)=[];
http://topic.csdn.net/u/20080725/17/b30c6b03-12c6-4022-9df9-de7fd5e0cb4c.html
如果您使用了本文的内容,请按照以下方式引用:
gaoch (2011). matlab中如何删除矩阵的某一列元素. BIO-SPRING. /post/2011/02/19/2011-02-19-matlab-del-col/
BibTeX citation
@misc{
title = "matlab中如何删除矩阵的某一列元素",
author = "gaoch",
year = "2011",
journal = "BIO-SPRING",
note = "/post/2011/02/19/2011-02-19-matlab-del-col/"
}