[R] Compute z

admin.dslcomputer at gmail.com admin.dslcomputer at gmail.com
Sun Jul 26 10:38:24 CEST 2015


Hi Everyone:


How do I correctly compute z? 



z = 0;
for i = 1:7
  z = z + v(i) * w(i)
end


If there are two column vectors v and w, each with 7 elements (i.e., they have dimensions 7x1). 


Regards,

Hal






Sent from Surface
	[[alternative HTML version deleted]]



More information about the R-help mailing list