[Solved] How to measure user distance from wall

In the comments, you shared a link to a video: http://youtube.com/watch?v=PBpRZWmPyKo. That app is not doing anything particularly sophisticated with the camera, but rather appears to be calculate distances using basic trigonometry, and it accomplishes this by constraining the business problem in several critical ways: First, the app requires the user to specify the height … Read more

[Solved] distance points 3D [duplicate]

If you don’t have the statistics toolbox, it is not the correct function to use. If you do – then it is one of many functions you could use. You can also do something like: sz = size(A); A1 = reshape(A, [1 sz]); A2 = permute(A1, [2 1 3]); D = sqrt(sum(bsxfun(@minus, A1, A2).^2,3)); This … Read more