hi guys, I need a way to sort the structured variable based on the size of the elements present in those respective structures.
CC=bwconncomp(imstack,26);stats = regionprops(CC,'pixellist');statss(8846,1)=0;for i=1:8846 statss(i,1) = size(stats(i,1).PixelList,1); endstatss=sort(statss,1);
statss gives the number on which the respective stats should be sorted…What matlab commands can i use to sort structure?
Best Answer