version (2.26 KB) by Ohad Gal
Plots a hyperbola with it's asymptotes and axes.


Updated 23 Apr 2003

View License

This function receives 6 parameters which defines a hyperbola. The parameters are:
*) 4 basic parameters (a,b,x0,y0) which define one of the 2 hyperbola equations
*) hyperbola type which defines which of the equations to use
*) orientation degree (in radian) for rotation of the hyperbola ABOUT THE ORIGIN

a hyperbola is defined by one of the following equations:

vertical hyperbola: ((y-y0)^2/a^2) - ((x-x0)^2/b^2) = 1
horizontal hyperbola: ((x-x0)^2/a^2) - ((y-y0)^2/b^2) = 1

Cite As

Ohad Gal (2022). create_hyperbola (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!