MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   从mathematica展平到matlab (https://www.labfans.com/bbs/showthread.php?t=26377)

poster 2019-12-14 20:13

从mathematica展平到matlab
 
我该如何从Mathematica到Matlab编写此命令?

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



[B]回答:[/B]

只需写:

total = sum(mlat(:)) / L2

[url=https://stackoverflow.com/questions/5052534]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:48

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