This code takes an input of a set of given (x,y) points in the Cartesian coordinates and returns the center and radius of the minimum circle enclosing the points.
This code is based on that of Yazan Ahed, and contains no changes in the algorithm but only in the structure.
The previous code was written based on the very nice Java applet found here: http://heyoka.cs.uiuc.edu/~thite/mincircle/ Credit are due mainly to...
A variation of Matlab's cart2sph, that transforms a vector of Cartesian coordinates (East, North, Up) to radar coordinates (Range, Azimuth, Elevation). Note the different definition of radar coords vs. spherical coords, which require this...
Generate a Cartesian coordinates of the cubed-sphere of radius 1 the grid is gnomonic equiangular/equidistance central projection
Inspired from this thread http://www.mathworks.com/matlabcentral/new...w_thread/258457
ECEF2LLA - convert earth-centered earth-fixed (ECEF) cartesian coordinates to latitude, longitude, and altitude.
USAGE: [lat,lon,alt] = ecef2lla(x,y,z)
lat = geodetic latitude (radians) lon = longitude (radians)
This code takes an expression for a normalized AF in spherical coordinates and creates a 3D plot in cartesian coordinates. Examples are specific to Antenna Theory and Design (2nd Ed) by Stutzman and Thiele.
plot3AniAnaglyph(S,params) produces an anaglyph (red/cyan 3D) plot3 animation of the of arguments in cartesian coordinates (S = [X,Y,Z]).
The animation includes the evolution and rotation of the arguments confined to a 1x1x1 cube...
At last Matlab do it!!! Useful tool to plot a 3D implicit surface defined in cartesian coordinates. You can give f(x,y,z) = 0 as a string or as a function handle. Type <help ezimplot3> for usage. Remember to leave your comments and...
Set of tools to perform transformations between projection, ellipsoidal and cartesian coordinates in either direction.
Included are proj2ell - projection to ellipsoidal ell2cart - ellipsoidal to global cartesian d3trafo -...
Graphs a 3 dimensional logarithmic of a function named F(Theta,Phi), theta the elevation angle and phi the rotational angle. Converts to Cartesian coordinates and plots a surface plot with color pattern radiating from the origin.
Due my...
C-Library & Matlab Toolbox implement a numerical solution of Poisson equation
div(e*grad(u))=f
for Cartesian 1D, Cartesian 2D and axis-symmetrical cylindrical coordinates with respect to steeply varying dielectrical...
This function was originally designed as a replacement for the Mapping Toolbox function bufferm, which calculates a buffer zone around a polygon. The original bufferm function had some serious bugs that could result in incorrect buffer results...
SHPATH - shortest path with obstacle avoidance (ver 1.3) Given a "terrain" matrix consisting of zeros (for open space) and ones (for obstacles), this function computes the shortest path between two specified points while...
C-Library & Matlab Toolbox implement a numerical solution of Poisson equation
div(e*grad(u))=f
in Cartesizan 3D coordinates with respect to steeply varying dielectrical permittivity e. Library uses regular rectangular...
Conversion routines to take a surface (a function z of (x,y) or (theta,r)) and convert this into a solid; much as meshz does, but a little more useful for outputting as an STL for frabrication in a 3D printer. There are two cases, one in Cartesian...
moonpos calculates the moon position using the method in the book Astronomical Algorithms by Jean Meeus, Chapter 45, pp 307 - 313. The algorithm used is accurate to about 10 arcsec in longitude and 4 arcsec in latitude according to...
This block allows the use of aeronautics conventions to express orientation and position of an object in a virtual world.
Specifically, the object's orientation can be expressed by means of euler angles and its position by means of...
SHPATH - shortest path with obstacle avoidance (ver 1.3) Given a "terrain" matrix consisting of zeros (for open space) and ones (for obstacles), this function computes the shortest path between two specified points while...
% Based on - A simple method for fitting of bounding rectangle to closed regions - D. Chaudhuri a , A. Samal b. % fit_rectangle - Function provides a least squares fit to the % given boundary points of an object of unknown shape.
MESH_LAPLACIAN: Laplacian of irregular triangular mesh
Useage: [lap,edge] = mesh_laplacian(vertex,face)
Returns 'lap', the Laplacian (2nd spatial derivative) of an irregular triangular mesh, and 'edge', the linear distances...
03 Mar 2012 (Updated 06 Mar 2012)
Function to generate a listing of the coordinates for a specified Cartesian space. A = ENUM_COORDS(X) returns the matrix elements of a 2D region, where X contains a 4-element vector, X=[x y width... |