Is it possible to eliminate multipe rows of a matrix using IF conditional?
A=[1 1875 5071 1880 508 %repeat
1 1885 508 %repeat (eliminate this row)
1 1890 508 %repeat 1 1895 5122 1720 5012 1730 502 %repeat 2 1740 502 %repeat (eliminate this row)2 1750 502 %repeat (eliminate this row)2 1760 502 %repeat 2 1770 505] Here, A(3,:), A(8:9,:) are to be eliminated. So that the the result would look like: B=[1 1875 5071 1880 5081 1890 5081 1895 5122 1720 5012 1730 5022 1760 5022 1770 505]
How can such elimination be done using IF loop for a matrix bigger than this where it is very inefficient to do so for every unique value in Column1?
Thank you
Best Answer