Clear Filters
Clear Filters

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

2 views (last 30 days)
rania
rania on 20 Jul 2015
Edited: Walter Roberson on 20 Jul 2015
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 Comment
Steven Lord
Steven Lord on 20 Jul 2015
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.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!