Meijer G function vectorization

3 次查看(过去 30 天)
Bhekisizwe
Bhekisizwe 2012-7-25
回答: Ayz Jarwar 2015-4-23
Hi, i would like to know if anyone knows how to make the MeijerG function accept vector inputs for the parameter "z" in Matlab? I know how to call the MeijerG function defined in the MuPad library from Matlab, but i do not know how to make it accept vector inputs for "z" as i want to speed up my Matlab program. If anyone has done this before please help?
  1 个评论
Vahraz Jamnejad
Vahraz Jamnejad 2013-5-20
Very good question. I have the same question.
And besides, why isn't there a numerical MeijerG function directly in MATLAB without resorting to MUpad? Then, the vectorization, of course, would be a moot point, if we had the function directly in MATLAB, where vectorization is done almost by default. Could somebody in MATLAB please look into this? Thanks.

请先登录,再进行评论。

回答(1 个)

Ayz Jarwar
Ayz Jarwar 2015-4-23
If you have the Symbolic Math Toolbox use meijerG
An example:
evalin(symengine,'meijerG([[1], []], [[1], [1/2]], 3.0)')

类别

Help CenterFile Exchange 中查找有关 Get Started with MuPAD 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by