translation matrix in OXY plane
5 views (last 30 days)
Let's say: I have matrix A=[x y z] with ~3.000 point data . Please see attachment file, and figure:
My question is: how can I translate all points with distance 1 in the black arrow direction (// with the long edge of the points), as illustrate figure?
KSSV on 30 Nov 2018
Edited: KSSV on 30 Nov 2018
You need to add that value to the coordinates. If you want to move along x-axes add 1 unit to x coordinates.
data = importdata('A.txt') ;
x = data(:,1) ;
y = data(:,2) ;
z = data(:,3) ;
%% Translate along x axis by unit 1
dx = 1. ;
x = x+dx ;