How to shift the origin of a Point Cloud

8 views (last 30 days)
Hi,
I am a beginner at Matlab and would like some suggestion regarding how to shift the origin of a point cloud to a desired point.
Thanks in advance.
PS: I looked into 'Plot3AxisAtOrigin' but it gives error of function not found.

Accepted Answer

Image Analyst
Image Analyst on 4 Apr 2021
Edited: Image Analyst on 4 Apr 2021
How about just adding a constant to the x and y vectors. Like to shift it by 5 in the x direction and 7 in the y direction
x = x + 5;
y = y + 7;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by