Extract fitting results in a vector
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello
i would like to extract a vector from the fitting results. the vector length is 360.
Ph=200;
Pc=100;
w=220;
x=[0 w/2 w w+(360-w)/2 360];
y=[0 Ph -Pc 0];
[xData,yData] = prepareCurveData (x,y);
ft='pchipinterp'
fitresult=fit(xData, yData,ft,'Normalize','on');
댓글 수: 1
dpb
2019년 6월 28일
>> Ph=200;
Pc=100;
w=220;
x=[0 w/2 w w+(360-w)/2 360];
y=[0 Ph -Pc 0];
[xData,yData] = prepareCurveData (x,y);
ft='pchipinterp'
fitresult=fit(xData, yData,ft,'Normalize','on');
Error using prepareCurveData>iAssertInputsHaveSameNumElements (line 47)
Data sizes do not match. All the data for curve fitting must have the same number of elements.
Error in prepareCurveData (line 37)
iAssertInputsHaveSameNumElements( varargin{:} );
>>
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!