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 (최근 30일)
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.

채택된 답변

John D'Errico
John D'Errico 2017년 5월 25일
편집: John D'Errico 2017년 5월 25일
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개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by