Force slope and return intercept value (assuming a non-zero intercept)
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Marisabel Gonzalez
le 2 Déc 2018
Réponse apportée : Bruno Luong
le 2 Déc 2018
Hi, I would like to force a slope value and know the intercept for that particular slope value....
Const = polyfit(log10(x),log10(y), 1);
m = Const(1);
k = Const(2);
b_fit = (10^k) * (x.^m);
This is the one that I use to return both... I want to force m and return k
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots 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!