Normalizing 3D coordinates: start in 0,0
이전 댓글 표시

I've got a long list of x,y,z-coordinates and I want the first one to be 0,0,0. The other coordinates should translate in a way that my plot of the coordinates remains the same. How can I make this happen?
댓글 수: 1
darova
2020년 5월 20일
If your data is the matrix A then
A(1,:) = 0;
답변 (1개)
Walter Roberson
2020년 5월 20일
A(:, 2:end) = A(:, 2:end) - A(1,1:end) ;
This version of the code requires R2016b or later
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!