This function will rotate a a 2nd rank spherical tensor using reduced Wigner rotations.
Chemical shift anisotropy is often described by a 2nd rank spherical tensor in the Principal Axis System(PAS):
R(2,m)(PAS)=sqrt(3/2)*aniso*[-sqrt(6)*eta/6 0 1 0 -sqrt(6)*eta/6]
This tensor will be described in the laboratory frame (LAB) by applying some wigner rotations, e.g.
As input data, one has
A: a 2xN or 3xN matrix whos columns are the coordinates of N source points.
B: a 2xN or 3xN matrix whos columns are the coordinates of N target points.
This code solves biot savarts law to evaluate magnetic field from a circular coil at all points in the plane which is perpendicular to the plane of the coil.
coil is situated in the X-Y plane centered at origin having radius =6 and we want to...
FEM simulation of voltage and electrical field distributions in a microstrip
Written for Course :-
Computational Electromagnetics, Fall 2011
Department of Electrical Engineering
Indian Institute of Technology Madras (IITM)
The fitting of smooth curve through a set of data points and extention to this is the fitting of 'best fit' spline to a large set of data points which show the cerrent trend but which do not all lie above the curve. The method involves cluster...
This is a DHTML script that rotates and displays any number of messages, with a unique dissolving effect applied during each rotation.
The effect is archived by first positioning a semi transparent, "spotty" image behind the...
The script will best work with Microsoft Internet...
This function creates a 3D stacked block drawing of a binary mask by drawing square patch objects at each face of the mask which borders empty space. It is similar to isosurface, and useful for visualizing a 3D binary mask in its entirety (with no...
Trying to visualize a huge triangulation with trisurf or triplot is often very slow and frustrating. Solution : use Paraview, a very powerful and free 3D data viewer. But it could be complicated to generate the input file specially with binary...
This is a GUI for DTMF generator-decoder using Goertzel's algorithm.Has options to change Number of samples and Noise power that could be added at the generator.Suggestions and comments is always welcome.Now i am working on medical image pattern...
vectline is "vector field line plotter". Depending on the dimension of coordinate axis, vectline can plot both 3D and 2D vector field line.
Example for 2D field
>> syms x y
>> F = [-y, x];
I was playing the game Scramble on my iPod touch, and I realized that I wasn't very good. But the algorithmic challenge of writing a program to solve the Scramble (same as Boggle) game was too tasty to pass up. It was indeed quite challenging, but...
Computes the Gaussian function in 1D:
x = Co-ordinate
x0 = Centre of function
FWHM = Full Width Half Max of the function
order = Gaussian order
Simple gui widget to get the coordinate change between two points.
just type getdelta and a button with three fields will appear. click the button and then two points in a plot. The change in x, change in y, and slope will be...
2D FDTD with courant factor give an overoptimal value of 1.001*sqrt(0.5)
<!--dp_youtube_begin:http://www.youtube.com/watch?v=006ec8nyuDQ--><object width="425" height="344"><param...
Build an Octree representation of a set of (x,y,z) points in space. The function is called,
Octree = BuildOctree(x,y,z,MinCubeSide)
[x_i, y_i, z_i], i = 1:N define points in space
This function carries out the following tasks:
1) Allows the user to define a series of waypoints from which to create a polyline.
2) Creates a polyline based on a given interpolation method and resolution.
A functions that draws a crosshair on a plot and returns the X&Y coordinate when the left button is clicked. Right button exits function and returns empty set.State of button press is also returned.
By itself it can be used to get...
Polar Parallel Coordinate Geometry (PPCG) plots standardardised time series data. Colour is used to demonstrate data through time; black being the oldest to white being the newest. 2 - 3 Std deviation warning/action limits are also highlighted by...
Simple program to generate the inner and outer parallel curves in rectangular coordinates. inner parallel is toward the center of curvature and outer parallel is away from the center of curvature. Use option flag1=0 to keep the parallels on the...