Beating (cartoon) Heart

版本 1.0.0 (1.3 KB) 作者: Nathaniel Barlow
Fun Valentine's Day animation: An implicit "heart" surface is diffused forwards and backwards to simulate (cartoon) heart beating.
353.0 次下载
更新时间 2019/2/6

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

The implicit heart surface Phi=2-(2*X.^2 + Y.^2 + Z.^2 -1).^3 + 0.2*X.^2.*Z.^3 + Y.^2.*Z.^3 is diffused using the 3-D heat partial differential equation in a periodic box via the Fourier spectral method. After using fft's to handle the space derivatives, the remaining ordinary differential equation has an analytic solution in time. Once melted, the solution is run in reverse to simulate beating (this reversal part added by Luke Dosiek).

引用格式

Nathaniel Barlow (2024). Beating (cartoon) Heart (https://www.mathworks.com/matlabcentral/fileexchange/70206-beating-cartoon-heart), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Cardiology 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0