where commas separate columns on a row and the semicolon separates rows. In order to take the dot product between tow vectors we can do:A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ]
U = [ 1, 1, 1 V = [-1, 4, 1] dot(U, V) ans = 4
A blog to record helpful tips/hints/tricks/etc. that I come across during my scientific career regarding science, computers, and research. I love learning and disseminating Knowledge.
where commas separate columns on a row and the semicolon separates rows. In order to take the dot product between tow vectors we can do:A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ]
U = [ 1, 1, 1 V = [-1, 4, 1] dot(U, V) ans = 4
No comments:
Post a Comment