constrain the csapi fitting to positive values
이전 댓글 표시
I have a vector x of size 25 x 1 and a vector y of size 25 x 1. I subject them to spline fitting function (as below) and I get a function whose values go in the negative range. I know apriori that the values should be positive. Is there any method to constrain the fitting according to this using csapi?

cs = csapi(x,y); % vectors of size 25 x 1
figure(11)
fnplt(cs,2);
hold on
plot(x,y,'o')
hold off
xlabel('pixel values from the intensity patch')
ylabel('pixel values from the IR patch')
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spline Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


