Force slope and return intercept value (assuming a non-zero intercept)
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marisabel Gonzalez
el 2 de Dic. de 2018
Respondida: Bruno Luong
el 2 de Dic. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!