📄 plot_prev.m
字号:
function []= plot_prev(sample, prev_part)%sample is the original sample data%prev_part is the prevalent size 2 co-locationload feature0.txtload feature1.txtload feature2.txtload feature3.txtload feature4.txtload feature5.txtload feature6.txtload feature7.txtload feature8.txtload feature9.txtx0=feature0(:, 2);y0=feature0(:, 3);x1=feature1(:, 2);y1=feature1(:, 3);x2=feature2(:, 2);y2=feature2(:, 3);x3=feature3(:, 2);y3=feature3(:, 3);x4=feature4(:, 2);y4=feature4(:, 3);x5=feature5(:, 2);y5=feature5(:, 3);x6=feature6(:, 2);y6=feature6(:, 3);x7=feature7(:, 2);y7=feature7(:, 3);x8=feature8(:, 2);y8=feature8(:, 3);x9=feature9(:, 2);y9=feature9(:, 3);figure;axis([0 80 0 80])title('Co-location Patterns - Size 2 Co-locations (noise in blue)')xlabel('X')ylabel('Y')hold onplot(x0, y0, 'go');plot(x1, y1, 'g*');plot(x2, y2, 'gx');plot(x3, y3, 'g+');plot(x4, y4, 'gs');plot(x5, y5, 'gd');plot(x6, y6, 'g<');plot(x7, y7, 'g>');plot(x8, y8, 'gp');plot(x9, y9, 'g^');symbol = ['o','*','x','+', 's', 'd','<','>', 'p','^'];color= ['b', 'r','k', 'y','m','c'];for i=1:length(prev_part(:,1)) featurei_id = find(sample(:,2) == prev_part(i,2)); featurej_id = find(sample(:,2) == prev_part(i,3)); sample(featurei_id,3:4) plot(sample(featurei_id,3), sample(featurei_id,4), [color(i) symbol(1,prev_part(i,2)+1)]); sample(featurej_id,3:4) plot(sample(featurej_id,3),sample(featurej_id,4), [color(i) symbol(1,prev_part(i,3)+1)]);endhold off;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -