MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] matlab中如何实现连乘 (https://www.labfans.com/bbs/showthread.php?t=12235)

heartrain1987 2010-11-06 14:03

matlab中如何实现连乘
 
例如使用牛顿插值20次多项式,其中
Π(x-xi)
如何实现?
(不希望使用for循环,matlab中是否有自带函数)

zsy312 2010-11-06 22:46

回复: matlab中如何实现连乘
 
当然是prod函数了:
PROD Product of elements.
For vectors, PROD(X) is the product of the elements of X. For
matrices, PROD(X) is a row vector with the product over each
column. For N-D arrays, PROD(X) operates on the first
non-singleton dimension.


所有时间均为北京时间。现在的时间是 14:29

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.