inspection of linearity of data?
    8 views (last 30 days)
  
       Show older comments
    
    Khan Muhammad Adeel Khan
 on 24 Oct 2022
  
    
    
    
    
    Commented: Khan Muhammad Adeel Khan
 on 26 Oct 2022
            Hello ! I want to check the linearity between two data set named as L_comp and L? please find attached. How can I check the trend of the following dataset? Many thanks !
0 Comments
Accepted Answer
  Chunru
      
      
 on 25 Oct 2022
        load(websave("check_linearity.mat","https://www.mathworks.com/matlabcentral/answers/uploaded_files/1167363/check_linearity.mat"))
whos
% use curve fitting toolbox
f  = fit(L, L_comp, 'poly1')
plot(f, L, L_comp)
More Answers (0)
See Also
Categories
				Find more on Linear and Nonlinear Regression in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

