Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能将这个命令从mathematica写到matlab?
total = Apply[Plus, Flatten[mlat]]/L2
,其中 L2 是一个值,而 mlat 是一个矩阵。
简单地写:
total = sum(mlat(:)) / L2
对 matlab 没有帮助,但在 Mathematica 中你可以简单地写
total = Total[mlat, -1]/L2
代替