How to delete entire row of an array?

Technical Source
1 min readJun 7, 2023

--

How can I remove the entire row if either value is less than 5:

Coord =
       2     3
2 39
1 88
9 74
10 93
16 28
16 50

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Use any and logical indexing:

>> Coord = [2,3;2,39;1,88;9,74;10,93;16,28;16,50];
>> Coord(any(Coord<5,2),:) = []
Coord =
9 74
10 93
16 28
16 50

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.