|
|
Re: matlab version and "for" loops
Posted:
Jan 22, 2013 6:30 AM
|
|
Here is a simple example, feel free to adapt to your case:
GazeType={'Delete' 'Keep' 'Fruit' 'Delete' 'Benzen'} Picture={'Image' 'Picasso' 'Matisse' 'Dali' 'You'} Data = 1:5
delete_b = strcmp(GazeType,'Delete') & ~strcmp(Picture,'Image'); Data(delete) = []
% Bruno
|
|