{"id":10498,"date":"2019-02-15T09:00:40","date_gmt":"2019-02-15T14:00:40","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=10498"},"modified":"2019-02-13T18:05:54","modified_gmt":"2019-02-13T23:05:54","slug":"beating-cartoon-heart","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2019\/02\/15\/beating-cartoon-heart\/","title":{"rendered":"Beating (Cartoon) Heart"},"content":{"rendered":"<div xmlns:mwsh=\"http:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\n   <introduction><\/p>\n<p><a href=\"http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/3208495\">Sean<\/a>&#8216;s pick this week is <a href=\"http:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/70206\">Beating (cartoon) Heart<\/a> by <a href=\"http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/9069783\">Nathaniel Barlow<\/a>.\n      <\/p>\n<p>   <\/introduction><\/p>\n<p>In the spirit of celebrating Valentine&#8217;s day with heart inspired FEX submissions (<a href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/02\/13\/heart-model-for-valentines-day\/\">[1]<\/a>, <a href=\"https:\/\/blogs.mathworks.com\/pick\/2016\/02\/19\/arduino-blinking-heart-motion-sensor\/\">[2]<\/a>), we add to the list with another.  This is an animated cartoon heart that beats!\n   <\/p>\n<p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/beatingheart.gif\"> <\/p>\n<h3>Comments<a name=\"2\"><\/a><\/h3>\n<p>Give it a try and let us know what you think <a href=\"http:\/\/blogs.mathworks.com\/pick\/?p=10498#respond\">here<\/a> or leave a <a href=\"http:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/70206#comments\">comment<\/a> for Nathaniel.\n   <\/p>\n<p><script language=\"JavaScript\">\n<!--\n\n    function grabCode_437d5e3d0b294319858a1510d93abb7a() {\n        \/\/ Remember the title so we can use it in the new page\n        title = document.title;\n\n        \/\/ Break up these strings so that their presence\n        \/\/ in the Javascript doesn't mess up the search for\n        \/\/ the MATLAB code.\n        t1='437d5e3d0b294319858a1510d93abb7a ' + '##### ' + 'SOURCE BEGIN' + ' #####';\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 437d5e3d0b294319858a1510d93abb7a';\n    \n        b=document.getElementsByTagName('body')[0];\n        i1=b.innerHTML.indexOf(t1)+t1.length;\n        i2=b.innerHTML.indexOf(t2);\n \n        code_string = b.innerHTML.substring(i1, i2);\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\n\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \n        \/\/ in the XML parser.\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\n        \/\/ doesn't go ahead and substitute the less-than character. \n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\n\n        author = 'Sean de Wolski';\n        copyright = 'Copyright 2019 The MathWorks, Inc.';\n\n        w = window.open();\n        d = w.document;\n        d.write('\n\n<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\n\n\\n');\n      \n      d.title = title + ' (MATLAB code)';\n      d.close();\n      }   \n      \n-->\n<\/script><\/p>\n<p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><a href=\"javascript:grabCode_437d5e3d0b294319858a1510d93abb7a()\"><span style=\"font-size: x-small;        font-style: italic;\">Get<br \/>\n            the MATLAB code<br \/>\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><\/p>\n<p>      Published with MATLAB&reg; R2019a<\/p>\n<\/div>\n<p><!--\n437d5e3d0b294319858a1510d93abb7a ##### SOURCE BEGIN #####\n%% Beating (Cartoon) Heart\n%\n% <http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/3208495 Sean>'s pick this week is\n% <http:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/70206 Beating (cartoon) Heart> by\n% <http:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/9069783 Nathaniel Barlow>.\n% \n\n%% \n% In the spirit of celebrating Valentine's day with heart inspired FEX\n% submissions (<https:\/\/blogs.mathworks.com\/pick\/2009\/02\/13\/heart-model-for-valentines-day\/ [1]>,\n% <https:\/\/blogs.mathworks.com\/pick\/2016\/02\/19\/arduino-blinking-heart-motion-sensor\/\n% [2]>), we add to the list with another.  This is an animated cartoon\n% heart that beats! \n%\n% <<beatingheart.gif>>\n%\n% \n\n%% Comments\n% \n% Give it a try and let us know what you think\n% <http:\/\/blogs.mathworks.com\/pick\/?p=10498#respond here> or leave a\n% <http:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/70206#comments\n% comment> for Nathaniel.\n%\n \n\n##### SOURCE END ##### 437d5e3d0b294319858a1510d93abb7a\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/beatingheart.gif\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>Sean&#8216;s pick this week is Beating (cartoon) Heart by Nathaniel Barlow.<\/p>\n<p>In the spirit of celebrating Valentine&#8217;s day with heart inspired FEX submissions ([1], [2]), we add&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2019\/02\/15\/beating-cartoon-heart\/\">read more >><\/a><\/p>\n","protected":false},"author":87,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10498"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=10498"}],"version-history":[{"count":4,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10498\/revisions"}],"predecessor-version":[{"id":10518,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/10498\/revisions\/10518"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=10498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=10498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=10498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}