{"id":2430,"date":"2009-05-29T09:55:29","date_gmt":"2009-05-29T09:55:29","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/29\/arrows-of-all-kinds\/"},"modified":"2009-05-29T09:55:29","modified_gmt":"2009-05-29T09:55:29","slug":"arrows-of-all-kinds","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/29\/arrows-of-all-kinds\/","title":{"rendered":"Arrows of All Kinds"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\">Jiro<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/278-arrow\"><tt>arrow<\/tt><\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/2187\">Erik Johnson<\/a>.\r\n   <\/p>\r\n   <p>This brings back memories from my graduate school days. As you can see, this file by Erik was originally submitted back in\r\n      2000, which was the year I started using MATLAB. Soon after, I was looking for a function to create some custom arrows on\r\n      figures. I came across this entry and have used it many times in my research.\r\n   <\/p>\r\n   <p>A couple things I really like about this file are the fact that he maintains backwards compatibility to make sure it runs\r\n      in older releases of MATLAB (as old as MATLAB 6.x), and that you can customize everything about the arrow, ranging from arrow\r\n      head angles to width of the arrow stem.\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/arrow_demo.png\"> <\/p>\r\n   <p>Download and give it a try!<\/p>\r\n   <p><a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2430#respond\"><b>Comments?<\/b><\/a><\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_f0e440b031474a5984191cbdc27d614e() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='f0e440b031474a5984191cbdc27d614e ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' f0e440b031474a5984191cbdc27d614e';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Jiro Doke';\r\n        copyright = 'Copyright 2008 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<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');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_f0e440b031474a5984191cbdc27d614e()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.8<br><\/p>\r\n<\/div>\r\n<!--\r\nf0e440b031474a5984191cbdc27d614e ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/15007\r\n% Jiro>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/278-arrow\r\n% |arrow|> by \r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/2187\r\n% Erik Johnson>.\r\n%\r\n% This brings back memories from my graduate school days. As you can see,\r\n% this file by Erik was originally submitted back in 2000, which was the\r\n% year I started using MATLAB. Soon after, I was looking for a function to\r\n% create some custom arrows on figures. I came across this entry and have\r\n% used it many times in my research.\r\n%\r\n% A couple things I really like about this file are the fact that he\r\n% maintains backwards compatibility to make sure it runs in older releases\r\n% of MATLAB (as old as MATLAB 6.x), and that you can customize everything\r\n% about the arrow, ranging from arrow head angles to width of the arrow\r\n% stem.\r\n%\r\n% <<arrow_demo.png>>\r\n%\r\n% Download and give it a try!\r\n%\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2430#respond *Comments?*>\r\n\r\n##### SOURCE END ##### f0e440b031474a5984191cbdc27d614e\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is arrow by Erik Johnson.\r\n   \r\n   This brings back memories from my graduate school days. As you can see, this file by Erik was originally submitted back in\r\n      2000,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/29\/arrows-of-all-kinds\/\">read more >><\/a><\/p>","protected":false},"author":35,"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\/2430"}],"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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2430"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2430\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}