I could not find how to do the following in MATLAB, any help is appreciated:
- I have a matrix X of dimension (mxn) and I want to find which rows have the first element greater than the remaining elements of the same row. And then put the rows that satisfy this in a new matrix Y.
Example:
If X is
2 0 1
3 8 6
7 2 5
Y would be
2 0 1
7 2 5
You’re looking for
bsxfunandall: