PWLINT: Piecewise Linear Integration

Return positive and negative areas, assuming a piecewise linear function

現在この提出コンテンツをフォロー中です。

PWLINT.m
Calculate the positive and negative area under a curve
using trapezoids, assuming a piecewise linear function

Requires insertrows:
http://www.mathworks.com/matlabcentral/fileexchange/9984

Inspired by this thread:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/252131

Usage:
[Apos, Aneg, Anet] = pwlint(x,y)
x: vector of independent variable
y: vector of dependent variable
Apos: area between y=0 and positive y values
Aneg: area between y=0 and negative y values
Anet: Apos+Aneg; equal to trapz(x,y)

See also TRAPZ, SUM

引用

Andrew Davis (2026). PWLINT: Piecewise Linear Integration (https://jp.mathworks.com/matlabcentral/fileexchange/34787-pwlint-piecewise-linear-integration), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: insertrows

カテゴリ

Help Center および MATLAB AnswersLinear Algebra についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0