how to sort a cell array based on another cell array
显示 更早的评论
basically i have this cell array:
A = {1,18,2,1,6,8,3,1,1,1}
B = {the,keep,up,run,a,fear,have,tik,love,vik}
basically each element in B have the number of occurances in A, what i need to do is i want to sort A in descendant order ( 18,8,6...) but also i want its corresponding B to sort with it how can i achieve that ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!