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