Skip to content

Instantly share code, notes, and snippets.

@noio
Created November 9, 2012 13:25
Show Gist options
  • Save noio/4045657 to your computer and use it in GitHub Desktop.
Save noio/4045657 to your computer and use it in GitHub Desktop.
function DrawAcube(location, scale)
newcube = createCube(scale, location);
cubert(:,1) = reshape(newcube(:,:,1), 1, 30);
cubert(:,2) = reshape(newcube(:,:,2), 1, 30);
cubert(:,3) = reshape(newcube(:,:,3), 1, 30);
calip = importdata('calibrationpoints.mat');
matrix = Create3DMatrix(calip.XYZ, calip.xy);
to2d = cubert * matrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment