How do i sum the total elements in a vector, not whats in each element
Show older comments
Hi im doing a project involving movements and I have to calculate the path each itteration takes, and i also have to see which path is overall the shortest (the best in this case). Is there anyway to use the sum function to sum the total number of movements and not the cordiantes inside the vector. if i have [ 3 4, 2 5] I want it to sum the total movements as two and not combine the numbers.
Accepted Answer
More Answers (0)
Categories
Find more on Lengths and Angles 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!