Code covered by the BSD License  

Highlights from
quadforms

  • E=c2h(Q,c) E=c2h(Q,c); Transforms a quadratic surface from center to homogeneous form.
  • [Q,c]=h2c(E) [Q,c]=h2c(E); Transforms a quadratic surface from homogeneous to center form.
  • View all files
Be the first to rate this file! 1 Download (last 30 days) File Size: 2.82 KB File ID: #25798
image thumbnail

quadforms

by Giampiero Campa

 

10 Nov 2009 (Updated 20 Oct 2010)

Convert quadratics from Homogeneous to Center form and back.

| Watch this File

File Information
Description

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)

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
20 Oct 2010

Added BSD license file

Tag Activity for this File
Tag Applied By Date/Time
mathematics Giampiero Campa 12 Nov 2009 09:29:58
geometry Giampiero Campa 12 Nov 2009 09:29:58
algebra Giampiero Campa 12 Nov 2009 09:29:58
quadratic Giampiero Campa 12 Nov 2009 09:29:58

Contact us at files@mathworks.com