File Exchange

image thumbnail

quadforms

version 1.2 (2.82 KB) by

Convert quadratics from Homogeneous to Center form and back.

1 Download

Updated

View License

This zip file contains 2 functions to transform generic (nD) quadratic hyper-surfaces from homogeneous form (that is [x' 1]*E*[x;1]=0) to center form (that is (x'-c')*inv(Q)*(x-c)=1, which is used for example in the ellipsoidal toolbox).

Examples:
% zero-centered ellipse of semiaxes 1 and 2
% center to homogeneous form:
E=c2h(diag([1 4]),[0 0]')
% homogeneous to center form:
[Q,c]=h2c(E)

Comments and Ratings (0)

Updates

1.2

Added BSD license file

MATLAB Release
MATLAB 7.9 (R2009b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video