关于利用trapz对数组进行积分。
3 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
pgerden
2023 年 5 月 25 日
这样就好了
从2开始积分
t=-18.321:0.0022365:18.321;
platform_H=100;
platform_H_error=normrnd(0,1,1,16384)+platform_H;
Dslow_vector=ones(1,16384);
for m=2:16384
t_1=t(1:m);
platform_H_error_1=platform_H_error(1:m);
Dslow_vector(m)=trapz(t_1,platform_H_error_1);
end
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!