multiple scatter plots with different sizes
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Please how can want I do a scatter plot of data in A,B,C,D on the same graph where A and B have same sizes and C and D have same sizes but different from the sizes of A and B. Thanks.
댓글 수: 0
채택된 답변
  Joseph Cheng
      
 2014년 9월 18일
        
      편집: Joseph Cheng
      
 2014년 9월 18일
  
      Use the hold functionality and plot them as you will do normally for a plot.
example:
x = linspace(0,3*pi,200);
rng(0,'twister');
y = cos(x)+ rand(1,200);
figure
scatter(x,y)
hold on
scatter(x,2*y,'r')
x(length(x)/2:end)=[];
y(length(y)/2:end)=[];
scatter(x,y/2,'g')
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!