inspection of linearity of data?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Khan Muhammad Adeel Khan
le 24 Oct 2022
Commenté : Khan Muhammad Adeel Khan
le 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 commentaires
Réponse acceptée
Chunru
le 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)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!