comparing consecutive coordinate values in terms of X , Y and Z.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to compare the consecutive values of centroid(points generated randomly : p = rand(100,3)) in all the three axes individually so as the change in values of consecutive coordinates in any particular axes value leads me to velocity in that particular axes(by using a formula to relate distance with time).Then i wish to find the acceleration from that velocity value so that i have the axis of change in acceleration as well.
Any expert guidance with a descriptive explanation would be appreciated.
1 comentario
madhan ravi
el 6 de Nov. de 2018
upload your code and required datas and illustrate an example onto where your getting at
Respuestas (1)
KSSV
el 6 de Nov. de 2018
N = 100;
P = rand(N,3) ;
% Get distances
d = pdist2(P,P) ;
[Q,idx] = sort(d(:,1)) ; % arrange points according to nearest
P = P(idx,:) ;
15 comentarios
KSSV
el 7 de Nov. de 2018
It is simple right? If A(X1,y1,z1) point is changed to B(X2,y2,z2). Then velocity is given by:
((x2-x1)/dt,(y2-y1)/dt,(z2-z1)/dt).
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!