How do I select data from one vector based upon the values of another vector?
Ältere Kommentare anzeigen
I am attempting to select data from a vector v() based upon another vector, s(). These vectors are already ordered based upon participant, i.e., the first element in vector v() and vector s() are from the same participant, the second element in both are from the same participant, etc.
Vector s() is a binary value (sex). I am attempting to select all participants who are male from vector v() to determine the mean of these data. How can I go about accomplishing this?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Repeated Measures and MANOVA finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!