Compute the curl of a trajectory (identify clockwise or anti-clockwise motion)
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I want to calculate the curl from single trajectories.
Basically, I want to identify if the trajectory rotates clockwise of anti-clock wise and measure the rotation speed.
I use something like the below:
x = data(:,1);
y = data(:,2);
u = data(:,3);
v = data(:,4);
V = [u v];
R = [x y];
curlRes = curl(V,R);
The result is 0 everywhere.
'Index in position 1 is invalid. Array indices must be positive integers or logical values.'
the vectors u,v contain negative values as they indicate the direction of the velocity
Thank you
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!