{"id":3761,"date":"2012-08-03T08:51:34","date_gmt":"2012-08-03T13:51:34","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=3761"},"modified":"2017-01-06T21:34:26","modified_gmt":"2017-01-07T02:34:26","slug":"3d-arrows","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2012\/08\/03\/3d-arrows\/","title":{"rendered":"3D arrows"},"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\/14056-arrow3-version-5\">Arrow3 Version 5<\/a> by <a href=\"http:\/\/www.mathworks.se\/matlabcentral\/fileexchange\/authors\/18628\">Tom Davis<\/a>.\r\n   <\/p>\r\n   <p>First of all, thanks to Bjorn for <a href=\"https:\/\/blogs.mathworks.com\/pick\/2012\/07\/13\/you-make-the-call-take-2\/#comment-14623\">suggesting<\/a> a number of great entries for the Pick of the Week. I liked them all and had a hard time deciding which one to pick this\r\n      week.\r\n   <\/p>\r\n   <p>For this one, I've decided to go back to one of my personal passions, graphics. I've already <a href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/05\/29\/arrows-of-all-kinds\/\">picked<\/a> another <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/278-arrow\">arrow<\/a> entry before, but this 3D version is a very nice one. Because it's 3D, it can be used in both 2D and 3D. When you rotate\r\n      the graph, the arrows show well. You can customize pretty much anything about the arrows.\r\n   <\/p>\r\n\r\n   <p>As with many of my picks, I really appreciate the effort Tom put into the documentation and examples. Type <tt>help arrow3<\/tt> to get detailed help, including examples. He also has an HTML file containing <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5\/content\/arrow3_examples.html\">16 examples<\/a> with code snippets you can copy\/paste and run. I also found this <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5\/content\/arrow3_messes_up_my_plots.html\">dialog<\/a> between a \"reasonable user\" and an \"arrow3 apologist\" regarding custom uses of <tt>arrow3<\/tt> very amusing and interesting.\r\n   <\/p>\r\n   <p>This entry is also a product of collaboration. Tom acknowledged <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/4410\">Jeff Chang<\/a>, who authored <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/1430-arrow3-version-4-58\">\"Arrow3 version 4.58\"<\/a>. It seems like they worked together on both entries. Nonetheless, I love seeing collaboration in MATLAB Central! Thanks to\r\n      both of you!\r\n   <\/p>\r\n   <p><b>Comments<\/b><\/p>\r\n   <p>Give this a try, and let us know what you think <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=3761#respond\">here<\/a> or leave a <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5#comments\">comment<\/a> for Tom.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_d34b0ccc6c2543198d37e2c87701e01e() {\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='d34b0ccc6c2543198d37e2c87701e01e ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' d34b0ccc6c2543198d37e2c87701e01e';\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 2012 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_d34b0ccc6c2543198d37e2c87701e01e()\"><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.14<br><\/p>\r\n<\/div>\r\n<!--\r\nd34b0ccc6c2543198d37e2c87701e01e ##### 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\/14056-arrow3-version-5 Arrow3 Version\r\n% 5> by <http:\/\/www.mathworks.se\/matlabcentral\/fileexchange\/authors\/18628\r\n% Tom Davis>.\r\n%\r\n% First of all, thanks to Bjorn for\r\n% <https:\/\/blogs.mathworks.com\/pick\/2012\/07\/13\/you-make-the-call-take-2\/#comment-14623\r\n% suggesting> a number of great entries for the Pick of the Week. I liked\r\n% them all and had a hard time deciding which one to pick this week.\r\n%\r\n% For this one, I've decided to go back to one of my personal passions,\r\n% graphics. I've already\r\n% <https:\/\/blogs.mathworks.com\/pick\/2009\/05\/29\/arrows-of-all-kinds\/ picked>\r\n% another <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/278-arrow arrow>\r\n% entry before, but this 3D version is a very nice one. Because it's 3D, it\r\n% can be used in both 2D and 3D. When you rotate the graph, the arrows show\r\n% well. You can customize pretty much anything about the arrows.\r\n%\r\n% <<https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/14056\/11\/screenshot.png>>\r\n%\r\n% As with many of my picks, I really appreciate the effort Tom put into the\r\n% documentation and examples. Type |help arrow3| to get detailed help,\r\n% including examples. He also has an HTML file containing\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5\/content\/arrow3_examples.html\r\n% 16 examples> with code snippets you can copy\/paste and run. I also found\r\n% this\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5\/content\/arrow3_messes_up_my_plots.html\r\n% dialog> between a \"reasonable user\" and an \"arrow3 apologist\" regarding\r\n% custom uses of |arrow3| very amusing and interesting.\r\n%\r\n% This entry is also a product of collaboration. Tom acknowledged\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/4410 Jeff\r\n% Chang>, who authored\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/1430-arrow3-version-4-58 \"Arrow3 version\r\n% 4.58\">. It seems like they worked together on both entries. Nonetheless,\r\n% I love seeing collaboration in MATLAB Central! Thanks to both of you!\r\n%\r\n% *Comments*\r\n%\r\n% Give this a try, and let us know what you think\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=3761#respond here> or leave a\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/14056-arrow3-version-5#comments\r\n% comment> for Tom.\r\n\r\n##### SOURCE END ##### d34b0ccc6c2543198d37e2c87701e01e\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   Jiro's pick this week is Arrow3 Version 5 by Tom Davis.\r\n   \r\n   First of all, thanks to Bjorn for suggesting a number of great entries for the Pick of the Week. I liked them all and had a hard... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2012\/08\/03\/3d-arrows\/\">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\/3761"}],"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=3761"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/3761\/revisions"}],"predecessor-version":[{"id":8344,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/3761\/revisions\/8344"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=3761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=3761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=3761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}