summation inside for loop
4 views (last 30 days)
Show older comments
Have a good day. I am trying to find an easy way of writing a loop below:
v=rand(100,3)
for iz=1:3
for iznext=1 expv(:,iz)=v(:,iz)*Q_z(iz,iznext)+v(:,iz)*Q_z(iz,iznext+1)+v(:,iz)*Q_z(iz,iznext+2);
end
end
Thanks in advance.
0 Comments
Answers (1)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!