quadforms

Convert quadratics from Homogeneous to Center form and back.

https://github.com/giampy1969/quadratic-form-conversion

You are now following this Submission

quadratic-form-conversion

Convert quadratics from Homogeneous to Center form and back.

View quadratic-form-conversion on File Exchange

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)

Cite As

Giampiero Campa (2026). quadforms (https://github.com/giampy1969/quadratic-form-conversion/releases/tag/v1.2.1), GitHub. Retrieved .

Categories

Find more on Mathematics and Optimization in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.1

See release notes for this release on GitHub: https://github.com/giampy1969/quadratic-form-conversion/releases/tag/v1.2.1

1.2.0.0

Added BSD license file

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.