Docs @ Psychtoolbox Wiki : FindRepeatAlongDims

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

FindRepeatAlongDims

PsychtoolboxPsychOneliners

find repeated rows or columns in a matrix.
inds = FindRepeatAlongDims(in,dim)
example:
in =
1 2 3
2 3 4
4 5 6
1 2 3
1 2 3
4 5 6
FindRepeatAlongDims(in,1) % check for repeated rows
ans =
5 % the fifth row is the same as the fourth row,
repeat!

for N-D dimensions, this function can also find repeats along the highest
dimension, such as finding repeated planes in a 3D matrix.




Path   Retrieve current version of FindRepeatAlongDims.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/FindRepeatAlongDims.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0218 seconds