Im having trouble creating a function that calculate two vectors
1 view (last 30 days)
Show older comments
7 Comments
Geoff Hayes
on 27 Oct 2014
x1 and x2 (etc.) are vectors, so you should be subtracting columns to get your vectors v1 and v2.
v1 = B(:,2) - B(:,1); %x2 - x1
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!