Removing rows and columns of a matrix
July 28, 2003
1:36 p.m.
Hi all, How can I delete a column/row from a matrix. In Matlab:
a=rand(4,4)
a = 0.9501 0.8913 0.8214 0.9218 0.2311 0.7621 0.4447 0.7382 0.6068 0.4565 0.6154 0.1763 0.4860 0.0185 0.7919 0.4057 use
a(:,2)=[]
a = 0.9501 0.8214 0.9218 0.2311 0.4447 0.7382 0.6068 0.6154 0.1763 0.4860 0.7919 0.4057
a(2,:)=[]
a = 0.9501 0.8214 0.9218 0.6068 0.6154 0.1763 0.4860 0.7919 0.4057
Is there something similar in scipy, numpy or numarray ? Any suggestion ? Nils
8322
Age (days ago)
8322
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nils Wagner