How can I remove the error " Not enough input arguments" related to bootci function?

1 回表示 (過去 30 日間)
Ashkan Rigi
Ashkan Rigi 2021 年 10 月 30 日
編集済み: DGM 2021 年 10 月 30 日
Hi everybody. I will be thankful if some one help me. this is my code:
t=0:0.1:pi;
y=sin(t);
k=1;
a=[1 2 3 4];
b=[5 6 7 8];
c=[9 10 11 12];
d=[13 14 15 16];
for i=1:length(t)
B = [-.161 0 1 0];
beta0(i,:)=[a(i) b(i) c(i) d(i)];
s_i{i}=@(x) a(i)*(x-t(i)).^3+b(i)*(x-t(i)).^2+c(i)*(x-t(i))+d(i);
modelfunc(i)=s_i{i};
beta(i) = @(predictor,response)nlinfit(predictor,response,modelfunc(i),beta0(i,:))
c(:,k) = bootci(1000,{beta(i),t',y},'Type','norm');
k=k+2;
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeResampling Techniques についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by