Vote count:
0
I have a single column vector that is an average of the other multiple columns (in a vector). I wish to index when each element of the matrix is is greater than the average vector. I am able to do this one at a time with:
idx = y1<y2
however if y2 is a matrix it comes up with an error. My current solution to over come this is:
y1 = [y1;y1]
but this is rather inelegant and doesn't account for y2's of unknown sizes. Regards
asked 38 secs ago
How do I find multiple columns greater than a single column in MATLAB?
Aucun commentaire:
Enregistrer un commentaire