From: "Marcin " <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Rotate 3D object to align with x-y plane
Date: Thu, 20 May 2010 21:21:04 +0000 (UTC)
Organization: Bournemouth University
Lines: 5
Message-ID: <ht4940$b11$>
References: <hsvvv6$7rl$> <ht1pm2$1v$> <ht3go0$6hi$> <ht3l6v$51t$>
Reply-To: "Marcin " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1274390464 11297 (20 May 2010 21:21:04 GMT)
NNTP-Posting-Date: Thu, 20 May 2010 21:21:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2009445
Xref: comp.soft-sys.matlab:637809

> You must face facts, Marcin!  What you are asking for, you simply cannot accomplish without more information to go on.  You state that you have a set of points which "describe" a three-dimensional object, but how is anyone to tell how these points were originally oriented in space when the object was, as you say, "horizontal"?  Even if the points are known to have been originally lying in a horizontal plane, (which would mean that the points are also currently colinear) that still isn't enough information to determine what rotation has been performed.  Infinitely many are still possible as I have already pointed out to you at some length.
> Roger Stafford

That's the catch. Nobody knows that, so it must be some kind of guess. I think that PCA might do in this case. Anyway, I still don't know how to plot it though. The data is an output of a 3D scan, so I should be able to use mesh/surf or similar function.