inspection of linearity of data?
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Chunru
2022-10-25
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)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!