登录论坛

查看完整版本 : 从mathematica展平到matlab


poster
2019-12-14, 20:13
我该如何从Mathematica到Matlab编写此命令?

total = Apply[Plus, Flatten[mlat]]/L2 ,其中L2是一个值,并且是一个矩阵。



回答:

只需写:

total = sum(mlat(:)) / L2

更多&回答... (https://stackoverflow.com/questions/5052534)