Meijjer G function implementation

Need Matlab implementation of the following Meijer G function. Here alpha, beta, gamma and theta are positive numbers.

Answers (2)

Star Strider
Star Strider on 19 Feb 2023
Edited: Star Strider on 19 Feb 2023
The meijerG function exists in the Symbolic Math Toolbox.
EDIT — (19 Feb 2023 mat 21:57)
With respect to its being written correctly, if the arguments are appropriate to the function, and if it gives an appropriate result in the context of the problem being solved, then it is likely written correctly.
.
When the G notation is used, then each of m, n, p, q are expected to be scalars, and z is expect to be scalar (or at least that the previous coefficients apply equally to each element in z)
With the vectors given for some of the m n p q, it is difficult to tell what is happening, and the z values do not form an array. I get the impression that different m n p q values are intended to apply to different z entries, but it is difficult to say what the mapping would be -- or what the horizontal lines in z are, or what is intended by the semi-colon in the bottom z row.
I would say that it is almost certain that you have not written the code in a manner that corresponds to MeijerG notation.
In particular it looks to me as if you have reversed the roles of the a b matrices and the z matrices when you wrote your code. In G notation, everything after the vertical line is z value, which should be the last parameter of meijerG

Tags

Asked:

on 19 Feb 2023

Commented:

on 9 Mar 2023

Community Treasure Hunt

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

Start Hunting!