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
Rentonn - Airbnb clone 1.0
VisualNEO for Windows 18.08.31.0
SentiVeillance SDK Trial 7.0.191272
dbForge SQL Complete 6.1
Uber for E-Scooters 1.0
ODBC Driver for MySQL 2.4
dbForge Schema Compare for MySQL 4.4
dbForge Studio for MySQL 8.1
dbForge Query Builder for MySQL 4.4
dbForge Data Compare for MySQL 5.5
Aqua Data Studio 19.5
ConyEdit for Windows 1.1.1
GetOrgChart 2.5.3.0
Database Workbench Pro 5.6.0
.Net VCL for Delphi 1.0.0.0
Top Code
MCU 8051 IDE 1.4.7
Readability Analyzer 7.x-1.0-rc2
Cuckoo Search (CS) Algorithm 1.0
C/C++ GRAPHICAL LIBRARY NE 1.0
Faculty Evaluation System 1.1
HTML Color Parser 0.1
Azizi search engine script PHP 4.1.10
PHP Product Order Form 1.0
PHP MLM Software 2.0.1
Restaurant Table Booking System 2.0
jClientUpload 1.0
Online Food Ordeing System 1.0
SimpleForms 1.0
heap sort
Library Management System 1.0
Top Rated
Paste phpSoftPro 1.4.1
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
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
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
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