已回答
sorting Matrix in two coum matrix
reshape([M(:,1:2:end) M(:,2:2:end)],[],2) % M is your Matrix

12 years 前 | 1

| 已接受

已回答
Simplest way to add a legend to the groups of a scatter plot
Without gscatter fcn: [~, I] = unique(C); p = findobj(gca,'Type','Patch'); legend(p(I),'X','Y','Z')

12 years 前 | 1