フィルターのクリア

Nonlinear regression (비선형회귀)_ Express the formula for b.

1 回表示 (過去 30 日間)
도현 김
도현 김 2020 年 11 月 29 日
回答済み: Shubham Khatri 2020 年 12 月 4 日
Honestly, I don't know anything. plz help me.
Error : nlpredci (line 14)
[beta, R, J] = nlinfit(x, y, modelfun, b);
check the attachment file plz!.

回答 (1 件)

Shubham Khatri
Shubham Khatri 2020 年 12 月 4 日
Hello,
To my understanding, your code should be like as shown below
clc,
clear,
close all
modelfun= @(b,x)(b(1)+b(2)*exp(-b(3)*x));
x=[0;0.5;1;1.5;2;2.5;3;3.5;4;4.5;5];
y=[0; 0.223904; 0.323333; 0.372308; 0.359143; 0.332033; 0.278462; 0.243394; 0.232222; 0.198334; 0.173414];
b = 0:0.01:5;
[beta, R, J] = nlinfit(x, y, modelfun,b);
Please go through the following documentation link for more information.
Hope it helps

カテゴリ

Help Center および File Exchange테스트 프레임워크 についてさらに検索

Community Treasure Hunt

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

Start Hunting!