I am using 'fit' command for curve fitting. But my model equation is defined only for some range of input (x>5) . For x<5, model equation is y =2 (Having no constants). So How should I deal this problem ? Thanks in Advance.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Yugal Gupta
el 25 de Mayo de 2017
Editada: John D'Errico
el 25 de Mayo de 2017
I am using 'fit' command for curve fitting. But my model equation is defined only for some range of input (x>5) . For x<5, model equation is y =2 (Having no constants). So How should I deal this problem ? Thanks in Advance.
0 comentarios
Respuesta aceptada
John D'Errico
el 25 de Mayo de 2017
Editada: John D'Errico
el 25 de Mayo de 2017
You essentially have no model to fit, when x < 5. Even if you did, who cares? We already know what y is then! You know the model below that point. Any data that falls below x=5, just ignore it. It will not be needed for the fit, so there is no problem at all.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Interpolation 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!