PWLINT: Piecewise Linear Integration
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
Citar como
Andrew Davis (2025). PWLINT: Piecewise Linear Integration (https://la.mathworks.com/matlabcentral/fileexchange/34787-pwlint-piecewise-linear-integration), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Linear Algebra >
 
Etiquetas
Agradecimientos
Inspirado por: insertrows
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 | 
