numsum(numsum(...)), how it works?

2 次查看(过去 30 天)
rania
rania 2015-7-20
this is some of code lines
kin=zeros(12960,1);
for k=1:12960
kin(k)=numsum(numsum(unew(1:end,:).*unew(1:end,:)+vnew(1:end,:).*vnew(1:end,:)));
I know it is not correct, the unew and vnew are 100*100 (dimensions) How can i write in in a right way?
  1 个评论
Steven Lord
Steven Lord 2015-7-20
What is "numsum"? There's no function by that name in any MathWorks toolboxes, and a search for that on mathworks.com found exactly one hit, this question.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by