Integration over log space

Approximates an integral with samples on a logarithmic scale

You are now following this Submission

Approximates integrals of functions which are sampled over a logarithmic space.
The integration is accurate where the function Y is smooth (piece-wise linear) on a logarithmic scale. For such functions the integral may be evaluated accurately, using fewer samples in comparison to linear sampling. A natural application is integration of transfer functions, for which the frequency samples are usually logarithmically spaced.
Inputs:
X - vector of samples.
Y - corresponding function values. If Y is a matrix, each of its columns is integrated with respect to X.
Output:
int - integration result.
Written by Dr. Yoash Levron, Dec. 2015

Cite As

yoash levron (2026). Integration over log space (https://www.mathworks.com/matlabcentral/fileexchange/54650-integration-over-log-space), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Get Started with Simulink in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Update: If Y contains zero columns the corresponding integrals are zero.

1.0.0.0