MATLAB: How to process in descending order

data miningflipudsortrows

Sir I have done as per your command,but please tell how to do it in descending order,I used the word descend ,but it showed an error ,please can u help
data = reshape({5 'R' 3 'E' 1 'A' 4 'P'},2,[])' out = sortrows(data,1)
or
out = reshape(sortrows(data,1)',1,[])
if
data(:,1)=cellfun(@num2str,data(:,1),'un',0) out = sortrows(data,1)

Best Answer

out = flipud(sortrows(data,1))