PhD Nerds – First Crush

On February 15, 2011, in Comics, PhD nerds, by Amiya

Everyone has a first crush...
Sometimes its the next door neighborer's cute daughter at other times it is some famous singer or actress. Geek or not one thing that happens when you see your crush pass by is that your heart goes...

First Crush

The function x^2 + (y-\sqrt[4]{x})^2 = 2+sin(t)  plot looks like this:

This is how the plot looks

For those who have access to Matlab check out the function for yourself:

  1. % My Heart Goes Animation
  2. % (c)
  4. function frames = myHeartGoes
  5. % Define number of frames
  6. nr_fr = 12;
  7. % Initialize matrix using 'moviein'
  8. frames = moviein(nr_fr);
  10. % Generate frames with easy plotting function.
  11. for i = 1 : nr_fr
  12. ezplot(['(x^2+(y-x^(1/4))^2)-',num2str(2+sin(i))],[-2.5,3]);
  13. title('My Heart Goes...')
  14. % Get every frame with 'getframe' and load the appropriate matrix.
  15. frames(:, i) = getframe;
  16. end
  17. movie(frames,10);
Related Posts Plugin for WordPress, Blogger... Print This Post Print This Post
Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...