Feeds
已回答
Keep only one set-cordinate (x,y) per x.
xy=[1 2; 1 3; 1 3; 2 4; 2 4; 2 6; 3 7; 3 8; 5 6; 5 8]; [~,ind] = unique(xy(:,1)) xy(ind,:)
Keep only one set-cordinate (x,y) per x.
xy=[1 2; 1 3; 1 3; 2 4; 2 4; 2 6; 3 7; 3 8; 5 6; 5 8]; [~,ind] = unique(xy(:,1)) xy(ind,:)
7 years 前 | 0
| 已接受
提问
Keep only one set-cordinate (x,y) per x.
I have: x y 1 2 < 1 3 1 3 2 4 < 2 4 2 6 3 7 < 3 8 5 6 < 5 8 I want to keep: x y 1 2 2 4 3 7 5 6 How to do...
7 years 前 | 2 个回答 | 0
2
个回答提问
Convert datenum to datetime for multiple holded plots
My code: h1 = plot(handles.x_datenum,handles.y,'.b'); hold on; h2 = plot(ffitresult) hold off; X axis is datenum*10^9 bec...
7 years 前 | 1 个回答 | 0
