This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Shivam Gupta
on 30 May 2021
Guys, first of all sort the weight column of table in ascending order by sortrows function and proceed further.....
and one more thing don't forget to convert table into array by table2array function otherwise it will showing an error.
Jose Matos
on 2 Dec 2021
Thanks for the hint!
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!