PWLINT: Piecewise Linear Integration

버전 1.0.0.0 (1.73 KB) 작성자: Andrew Davis
Return positive and negative areas, assuming a piecewise linear function
다운로드 수: 558
업데이트 날짜: 2012/1/26

라이선스 보기

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 (2024). PWLINT: Piecewise Linear Integration (https://www.mathworks.com/matlabcentral/fileexchange/34787-pwlint-piecewise-linear-integration), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2011a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기
도움

받음: insertrows

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0