Code covered by the BSD License  

Highlights from
transformCartCoord

image thumbnail

transformCartCoord

by

 

26 Mar 2013 (Updated )

Rotate, offset, transform Cartesian coordinates.

minExample.m
layer=[1 0 0; 0 1 0; 0 0 1; 1 0 0];

%try 'hold on' and rotate the layer for 0, 90, 180 and 270 degrees to form a
%pyramid
layer = transformCartCoord(layer, [3, deg2rad(0)])

plot3(layer(:,1),layer(:,2),layer(:,3));
hold on
xlabel 'x'
ylabel 'y'
zlabel 'z'
grid on

Contact us