經安全檢測,此網站為安全網站,請放心前往原始網址!

Sum all matrix elements - Newsreader - MATLAB Central - MathWorks

Pat wrote: > > > Does matlab have a function for summing all the elments in a > matrix? > > Thanks. -Pat > > > > Hi, The sum function will do it. Like this: sum(A(:))

www.mathworks.com

網址安全性掃描由 google 提供