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
darova 2020 年 5 月 20 日
If your data is the matrix A then
A(1,:) = 0;

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 5 月 20 日

0 投票

A(:, 2:end) = A(:, 2:end) - A(1,1:end) ;
This version of the code requires R2016b or later

カテゴリ

ヘルプ センター および File ExchangePolar Plots についてさらに検索

質問済み:

2020 年 5 月 20 日

回答済み:

2020 年 5 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by