2013-06-29 1 views

Répondre

3

indexation de base:

A = [1,2,3,4,2,4,7; 1,2,3,4,5,6,7] 
% Index those columns which have a 2 in first row 
idx = A(1,:) == 2; 
% Take all rows, but only column that do not have a 2 in first row 
A = A(:,~idx); % equivalent to A(:,idx) = []; 
Questions connexes