MATLAB: [help] how to project 3D objects to plane (not coordinate plane)

MATLABprojectsphere

I have objects as a figure attached.
<<
<<
>>
>>
I want to project objects (blue color and small red color) to plane (yellow color) follow perpendicular.
I can project object to coordinate plane (oxy, oyz, oxz) by command: surf(x,y,0*z), surf(0*x,y,z), surf(x,0*y,z). How to project to any plane?
Thank

Best Answer

You fix an angle theta to which you want to rotate the points....and make Rotation matrix and multiply all the points with that rotation matrix.
Go through the link: