Sum all matrix elements - Newsreader - MATLAB Central - MathWorks

Sum all matrix elements - Newsreader - MATLAB Central - MathWorks

瀏覽:600
日期:2025-04-26
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(:))...看更多