matlabコードでの積分のやり方

simulinkモデルのintegratorブロックはmファイルの場合はどんなコードでしょうか?
積分にもいろいろ種類があるようですが、以下simukinkで回した結果です。
A=[1,2,3,4];
%これを積分して
simout 0 1.5 4 7.5
mファイル上でこのように同じ結果で出力をしたいです。
宜しくお願い致します。

 Accepted Answer

Kazuya
Kazuya on 19 Nov 2019
Edited: Kazuya on 19 Nov 2019

1 vote

A=[1,2,3,4];
Q = cumtrapz(A)

1 Comment

qrqr
qrqr on 20 Nov 2019
ありがとうございます!

Sign in to comment.

More Answers (0)

Categories

Find more on プログラミング in Help Center and File Exchange

Products

Asked:

on 18 Nov 2019

Commented:

on 20 Nov 2019

Community Treasure Hunt

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

Start Hunting!