1. 程式人生 > >影象處理Matlab(二)——生成隨機點

影象處理Matlab(二)——生成隨機點

figure;
set(gcf,'Position',[400,300,200,200]);
a1 = 40;
set(axes,'Color',[128/255 128/255 128/255]);
hold on
C = randi([-100,100],a1,1);   % 隨機生成整數型函式
C1 = randi([-100,100],a1,1);

plot(C,C1,'o','Color','r','MarkerfaceColor','r','MarkerSize',4);
hold on 
set(gca,'xtick',[],'xticklabel',[]);
hold on
set(gcf,'Color',[128/255 128/255 128/255]);