line equation from (x,y)
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
Hi Friend I have 1000 x and y s . how i can find line equation for these points?
댓글 수: 0
답변 (1개)
  Star Strider
      
      
 2016년 8월 4일
        
      편집: Star Strider
      
      
 2016년 8월 4일
  
      For a linear fit, use the mldivide,\ operator:
b = [ones(size(x(:)))  x(:)]\y(:);
slope = b(2)
intercept = b(1)
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

