Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
Heart Animation
Post Body

I'm trying to code this heart animation on MATLAB. The formulation and variation of variable a is from 0 to 50 and I have plotted in desmos.
My code is at the bottom and I'm not getting it right. Where am I going wrong?

https://preview.redd.it/n81x1qmu2j6d1.png?width=1413&format=png&auto=webp&s=760db0660d49de7fb6eafa3708b1eb67cab01c70

https://preview.redd.it/tjrehqmu2j6d1.png?width=1376&format=png&auto=webp&s=c8d5f35a87f4874f267ceed0f92f833214560268

https://preview.redd.it/065yopmu2j6d1.png?width=1364&format=png&auto=webp&s=a316a164c5289ec64fea3fc84c0580fa15559192

https://preview.redd.it/fazlkqmu2j6d1.png?width=1409&format=png&auto=webp&s=4e29ed2148d79eba1ea9b75a6207ea8d313175d0

clear;  close all;  clc;
x = linspace(-2, 2, 1000); 
a_values = linspace(0, 50, 100); 
e_over_3 = exp(1) / 3;figure;
for a = a_values    
  f_x = x.^(2/3)   e_over_3 * sqrt(pi - x.^2) .* sin(a * pi * x);        
  plot(x, f_x, 'DisplayName', sprintf('a=%.2f', a));    
  hold on; 
  pause(0.1);
end

Author
Account Strength
100%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
24,827
Link Karma
22,185
Comment Karma
2,642
Profile updated: 5 days ago
Posts updated: 3 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 months ago