ellipticPI with 2 vector input

1 回表示 (過去 30 日間)
Avi
Avi 2013 年 7 月 30 日
編集済み: Avi 2014 年 4 月 16 日
I am using ellipticPi(n,m) (complete elliptic integral of the third kind). The function can accept as input 2 scalars, or, one scalar and one vector. But, it can not accept 2 vectors.
In order to avoid using a loop, is there a version of ellipticPi(n,m) that can accept 2 vectors as input?
Thanks in advance,
Avi
  2 件のコメント
Roger Stafford
Roger Stafford 2013 年 7 月 30 日
The documentation for ellipticPI indicates that both inputs can be vectors or matrices. In your case which failed were these of the same size? If this function is like many others in matlab these vectors (or matrices) must always be of the same size. Otherwise it would be unclear what output was desired.
Avi
Avi 2014 年 4 月 16 日
編集済み: Avi 2014 年 4 月 16 日
It does not allow me to enter two vector inputs:
>> ellipticPi([0.1 0.1],[0.2 0.2])
Error using mupadmex
Error in MuPAD command: One argument must be a scalar.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by