Is it correct to write the following matlab code for the strong solution of SDE in the form of dx(t)=a*x(​t)+b*x(t)*​dw(t)? w(t) is brownian motion and a and b are constant

4 ビュー (過去 30 日間)
Fae ba
Fae ba 2020 年 4 月 26 日
編集済み: Fae ba 2020 年 4 月 26 日
N=1;%number of path
T=20;
x_0=1000;
x=zeros(T/dt+1,N);
for t=1:T/dt
dw=randn(T/dt,N);
x(t+1,:) = x(t,:) +a*x(t)*dt +b*x(t)*dw(t,:);
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Fundamentals についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by