Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
HTMLPad 2018 15.5
MCU 8051 IDE 1.4.7
jQuery Slider Ken Burns 1.0
Extreme Injector 3.7
Azizi search engine script PHP 4.1.10
BedRock IDE 1.0
Email Grabber
Guest Book V. 2 V2
XML Products Showcase Slider 1.0
Free Pageant Contest Source Code 1.0
ActivePerl 5.8.4.810/5.6.1.638
Calendar 365 For Dynamics CRM 4.0
Gz Hotel Booking Script 2.0
Image Reconstruction Demo (GUI) 1.0
CardCheck COM DLL for Credit Card Processing 1.1
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
circlefit3d - fit circle to three points in 3d space 1.0
File ID: 85233






circlefit3d - fit circle to three points in 3d space 1.0
Download circlefit3d - fit circle to three points in 3d space 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 21
Submit Rating:
circlefit3d - fit circle to three points in 3d space 1.0 Description
Description: [center,rad,v1,v2] = circlefit3d(p1,p2,p3)

This function computes centers and radii of circles, that interpolate some given triples of points in 3d space.

The function accepts the input of matrices of trial points also, returning a matrix of corresponding centroids and a vector of corresponding radii. Corresponding points are assumed to be located in the same row in each matrix p1, p2 and p3.

Several error checks are done (collinearity, size of inputs) and return different error codes in return argument rad.

The function uses vector algebra only, is fully vectorized and should run quite fast.

Additional outputs are basis vectors v1 and v2 to describe the plane of the resulting circle.

Check:

p1=rand(4,3);p2=rand(4,3);p3=rand(4,3);
[center,rad,v1,v2] = circlefit3d(p1,p2,p3);
plot3(p1(:,1),p1(:,2),p1(:,3),'bo');hold on;plot3(p2(:,1),p2(:,2),p2(:,3),'bo');plot3(p3(:,1),p3(:,2),p3(:,3),'bo');
for i=1:361,
a = h(i)/180*pi;
x = center(:,1)+sin(a)*rad.*v1(:,1)+cos(a)*rad.*v2(:,1);
y = center(:,2)+sin(a)*rad.*v1(:,2)+cos(a)*rad.*v2(:,2);
z = center(:,3)+sin(a)*rad.*v1(:,3)+cos(a)*rad.*v2(:,3);
plot3(x,y,z,'r.');
end
axis equal;grid on;rotate3d on;

License: Shareware

Related: vectorized, additional, outputs, fully, algebra, return, inputs

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 21



More Similar Code

Orthogonal Linear Regression in 3D-space by using Principal Components Analysis

This is a wrapper function to some pieces of the code from the Statistics Toolbox demo titled "Fitting an Orthogonal Regression Using Principal Components Analysis"
(http://www.mathworks.com/products/statisti...thoregdemo.html),
which is Copyright by the MathWorks, Inc.

Input parameters:
- XData: input data block --...



ICP fit points in data to the points in model. Fit with respect to minimize the sum of square errors with the closest model points and data points.

Ordinary usage:

[R, T] = icp(model,data)

INPUT:

...



Lets you create a circle with N points in the current figure. Use the mouse to indicate the center and adjust the radius. Press ENTER to confirm the shape and output its X and Y values. The N parameter is optional. Default 20.
N = 3 can be...



Using Kalman filter to track object in 3D. Comparing Extended Kalman filter to its linear version.
Assume that we want to track an object moving in 3-D space with constant velocity. Our instruments observe bearing, range and high(cylindrical...



A C++ header library for fast operations on vectors/matrices (3D/3x3) using Streaming SIMD Extensions (SSE, SSE2, SSE3, SSE4); Tends to be used in 3D graphics applications and game developement.



This program is able to unscramble any word or short phrases (currently up to three words) in a very efficient manner; only one pass through the dictionary is needed. It is preloaded with a dictionary but also allows you to use your own dictionary .



DirectX Game code demonstrates how to use DirectX in a space-like game.



This program demonstrates procedural texture mapping in 3d by choosing the colors of the surface of a sphere according to a 3-dimensional coloring function.



Suppose we need to generate points equally spaced in logarithmic space. This is often useful with semilogx, semilogy, or loglog plots and can be easily accomplished by the logspace command. Let's generate 10 values between 1 and 1000 equally...



The program plots convex closed regions in 2D/3D. The region is a subset of R2 or R3 such that Ax>=b and lb<=x<=ub. It is also possible to plot points in the same plot.

(See help plotregion for more documentation)

User Review for circlefit3d - fit circle to three points in 3d space
- required fields
     

Please enter text on the image