Quad_M and Quadl_M are speed optimized versions of Quad and Quadl that accept vector arguments (not vector integration limits, like quadg).
Possible usage: Numerical integration of a inverse Fourier transform over a given frequency range at several points in time.
Note: matrix arguments can be used when they are transformed into vectors.
Speed up factor ~100
Mischa Tolsma (2020). quad_M;quadl_M (https://www.mathworks.com/matlabcentral/fileexchange/1260-quad_m-quadl_m), MATLAB Central File Exchange. Retrieved .
I seem to get errors with this ....
> [q,f] = quad_M(c4,100,100)
??? Error using ==> fcnchk
FUN must be a function, a valid string expression,
or an inline function object.
Error in ==> quad_M at 83
f = fcnchk(funfcn);
I thought it could take vectors ... ?
I know the following integration equals one
(this function is a normal distribution).
function y = pa22(w)
Unfortunately MATLAB code
I give a rating at least 4 because
quad_M(@pa11,-1217,-1215) gives correct
I tried this file and it is really fast. However when I use the file for integration with very small values, say bit error rate in terms of 10^(-7) for example, the program will give a extremely small value (say 10^(-100)) which is not the desired answer. Except that, it is a perfect tool.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!