How can I apply the attached vector coding equation to a matrix in matlab?
Show older comments
I currently am using atan2d(y,x) but I am unsure whether that is accounting for the y(i+1)-y(i) and x(i+1)-x(i) nature of the equation. x and y are defined as the two matrices I am comparing (i.e. knee versus ankle joint angles during a gait cycle).
Accepted Answer
More Answers (1)
James Tursa
on 25 May 2016
Edited: James Tursa
on 25 May 2016
0 votes
atan2d(y,x) will not do any difference calculations such as y(i+1)-y(i) or x(i+1)-x(i) as part of the calculation. So you would need to do that calculation before using atan2d (e.g. using the diff function). Are x and y 1D vectors or 2D matrices?
1 Comment
Kylie Davis
on 26 May 2016
Categories
Find more on Programming 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!