Measurement time step and integration time step
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
i saw people using measurement time step and integration time step when performing the algorithmm using Matlab. What's the differences between these two?
Eg: T = 0.5; % measurement time step
tf = 30; % simulation length (seconds)
dt = 0.001; % time step for integration (seconds)
for t = T : T : tf % Simulate the system.
for tau = dt : dt : T
xdot(1,1) = x(2);
xdot(2,1) = rho0 * exp(-x(1)/k) * x(2)^2 / 2 * x(3) - g;
xdot(3,1) = 0; xdot = xdot + sqrt(dt * Q) * [randn; randn; randn];
x = x + xdot * dt;
end
.....
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Assembly についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!