https://github.com/fangfufu/ipeg
Image Parametric Equation Generator
https://github.com/fangfufu/ipeg
mathematica matlab parametric parametric-equation
Last synced: 3 months ago
JSON representation
Image Parametric Equation Generator
- Host: GitHub
- URL: https://github.com/fangfufu/ipeg
- Owner: fangfufu
- License: mit
- Created: 2017-02-14T14:51:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T21:00:14.000Z (over 8 years ago)
- Last Synced: 2025-01-26T17:47:19.203Z (5 months ago)
- Topics: mathematica, matlab, parametric, parametric-equation
- Language: Mathematica
- Size: 588 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPEG -- Image Parametric Equation Generator
This repository allows you to create parametric equation for arbitary images. The code itself was shamelessly copied from Wolfram Alpha Blog [1]. I basically stripped out the useless bits, and added a few lines so it spits out Matlab compatible equations. I also added a template, so you can basically copy the output from Mathematica, and paste it into Matlab, and plot the graph.
To run the code, open ``parametric_equation_generator.nb`` in Mathematica. If you want to generate code for Matlab, you need ``ToMatlab``[2][3]. If you want to plot the generated Matlab code, you can copy them into ``plot_parametric_matlab.m``.
## References
[1] http://blog.wolframalpha.com/2013/05/17/making-formulas-for-everything-from-pi-to-the-pink-panther-to-sir-isaac-newton/[2] http://library.wolfram.com/infocenter/MathSource/577/
[3] http://mathematica.stackexchange.com/questions/14035/is-it-possible-to-export-the-equations-from-mathematica-to-matlab