title: How to replace obsolete knnclassify() function of matlab with the new fitcknn() function?
body: <p>I have a sample matrix, training matrix and a group matrix. I have used the obsolete <code>knnclassify()</code> function. I would like to replace it with the <code>fitcknn()</code> function. I'm new to matlab. How does the <code>fitcknn()</code> method work and what are the changes that i need to make to make my code work? Screenshot attached.<a href="https://i.stack.imgur.com/Qlo6m.jpg" rel="nofollow noreferrer">enter image description here</a></p>