Ellipse or Hyperbola Sample Points Generation Function

A function that generates sample points of ellipticalor hyperbolic patterns
260 Downloads
Updated 21 Apr 2014

View License

Explanation of parametrs in this function,
"mx" is the center of a pattern in x coordinate.
"my" is the center of a pattern in y coordinate
"a" & "b" are the axes.
"sita" is the rotation angle(radian)
"f" is the pattern-size constant.
The full equation is a((x-mx)*cos(sita)+(y-my)*sin(sita))^2 + b(-(x-mx)*sin(sita)+(y-my)*cos(sita))^2 = f.
The output paramter "SamplePoints" represents the sample points extracted according to the pattern. Each sample point corresponds to each column of "SamplePoints" respectively.

Cite As

I Chieh Chen (2024). Ellipse or Hyperbola Sample Points Generation Function (https://www.mathworks.com/matlabcentral/fileexchange/46297-ellipse-or-hyperbola-sample-points-generation-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Physics in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0