Ranking of a cell array
问题 Take the following example: clear all Name1 = {'Data1','Data2','Data3','Data4'}; Data = {6.2,6,3.2,8}; CombnsName = nchoosek(Name1,2); CombnsData = nchoosek(Data,2); for i = 1:length(CombnsData); multiplied{i} = CombnsData{i,1}.*CombnsData{i,2}; end multiplied = multiplied'; Final = [CombnsName, multiplied]; Rankd = sort(cell2mat(multiplied)); Here, Final represents the values gained by multiplying every possible combination of 'Name1'. Now, I'm trying to find a way of changing the order of