{"id":7,"date":"2012-06-03T04:02:00","date_gmt":"2012-06-03T10:02:00","guid":{"rendered":"https:\/\/blogs.mathworks.com\/cleve\/?p=7"},"modified":"2017-01-06T09:50:04","modified_gmt":"2017-01-06T14:50:04","slug":"cleves-corner-blogs-edition","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/cleve\/2012\/06\/03\/cleves-corner-blogs-edition\/","title":{"rendered":"Cleve&#8217;s Corner, Blogs Edition"},"content":{"rendered":"<!DOCTYPE html\r\n  PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\">\r\n<style type=\"text\/css\">\r\n\r\nh1 { font-size:18pt; }\r\nh2.titlebg { font-size:13pt; }\r\nh3 { color:#4A4F55; padding:0px; margin:5px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:11pt; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }\r\nh4 { color:#4A4F55; padding:0px; margin:0px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:10pt; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }\r\n   \r\np { padding:0px; margin:0px 0px 20px; }\r\nimg { padding:0px; margin:0px 0px 20px; border:none; }\r\np img, pre img, tt img, li img { margin-bottom:0px; } \r\n\r\nul { padding:0px; margin:0px 0px 20px 23px; list-style:square; }\r\nul li { padding:0px; margin:0px 0px 7px 0px; background:none; }\r\nul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; }\r\nul li ol li { list-style:decimal; }\r\nol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; }\r\nol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; }\r\nol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; }\r\nol li ol li { list-style-type:lower-alpha; }\r\nol li ul { padding-top:7px; }\r\nol li ul li { list-style:square; }\r\n\r\npre, tt, code { font-size:12px; }\r\npre { margin:0px 0px 20px; }\r\npre.error { color:red; }\r\npre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; }\r\npre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; }\r\n\r\n@media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } }\r\n\r\nspan.keyword { color:#0000FF }\r\nspan.comment { color:#228B22 }\r\nspan.string { color:#A020F0 }\r\nspan.untermstring { color:#B20000 }\r\nspan.syscmd { color:#B28C00 }\r\n\r\n.footer { width:auto; padding:10px 0px; margin:25px 0px 0px; border-top:1px dotted #878787; font-size:0.8em; line-height:140%; font-style:italic; color:#878787; text-align:left; float:none; }\r\n.footer p { margin:0px; }\r\n\r\n  <\/style><div class=\"content\"><!--introduction--><p>This is the debut of the MATLAB Central Blogs edition of Cleve's Corner. For years, I have been writing a column named <a href=\"https:\/\/www.mathworks.com\/company\/newsletters\/clevescorner.html\">Cleve's Corner<\/a> in MathWorks News and Notes. The News and Notes Edition is in an electronic magazine format that is published once or twice a year and that has very specific length and word count constraints. The Blogs Edition can be any length, and I hope to have enough time and interesting material to post a couple of times per month. In fact, I may revive some old newsletter Corners, bring them up to date, and post them here.<\/p><!--\/introduction--><p>I am pleased to be able to use MATLAB and its <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2012a\/techdoc\/matlab_env\/f6-14058.html\">publish<\/a> command as my Web authoring environmnent.  I have been writing MATLAB code for even longer than I have been writing newsletter columns.  Now I can write a blog without learning a new word processor.<\/p><p>I am also pleased to be able to use <a href=\"http:\/\/www.mathjax.org\">MathJax<\/a> to display typeset mathematics. MathJax is, among other things, a LaTex interpreter written in JavaScript that displays mathematics properly in modern Web browsers.  Here's an example.  My next blog posting will involve a discussion of <span class=\"MathJax_Preview\"><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"><\/span><script type=\"math\/tex\">\\phi<\/script>, the Golden Ratio.  Now look again at that Greek letter <span class=\"MathJax_Preview\"><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"><\/span><script type=\"math\/tex\">\\phi<\/script>.  It should have the correct font size and, most importantly, have the same baseline as the surrounding text. This is how <img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"> would have looked before MathJax. The old <img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"> is a .png image. Some browsers place it far above the baseline of rest of the sentence. If you zoom in on the page, or print the page, the new <span class=\"MathJax_Preview\"><img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"><\/span><script type=\"math\/tex\">\\phi<\/script> should scale and print nicely, but the old <img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/cleve\/debut_eq26509.png\" alt=\"$phi$\"> will show the pixelation inherent in an sampled image.<\/p><p>MathJax has been developed by Davide Cervone of Union College and at Design Science, the makers of the MathType equation editor. MathJax has the support of SIAM (Society for Industrial and Applied Mathematics), the AMS (American Mathematical Society), the AIP (American Institute of Physics), a few other professional societies, and several publishers.  For more about MathJax, see the recent <a href=\"http:\/\/www.ams.org\/notices\/201202\/rtx120200312p.pdf\">article<\/a> by Cervone in the AMS Notices.<\/p><script language=\"JavaScript\"> <!-- \r\n    function grabCode_8f40517435ff47bb9d8555c04722874f() {\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='8f40517435ff47bb9d8555c04722874f ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 8f40517435ff47bb9d8555c04722874f';\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        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 copyright line at the bottom if specified.\r\n        if (copyright.length > 0) {\r\n            d.writeln('');\r\n            d.writeln('%%');\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     --> <\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_8f40517435ff47bb9d8555c04722874f()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n      the MATLAB code <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.14<br><\/p><p class=\"footer\"><br>\r\n      Published with MATLAB&reg; 7.14<br><\/p><\/div><!--\r\n8f40517435ff47bb9d8555c04722874f ##### SOURCE BEGIN #####\r\n%% Cleve's Corner, Blogs Edition\r\n% This is the debut of the MATLAB Central Blogs edition of Cleve's Corner.\r\n% For years, I have been writing a column named\r\n% <https:\/\/www.mathworks.com\/company\/newsletters.htmlnews_notes\/clevescorner\r\n% Cleve's Corner> in MathWorks News and Notes.\r\n% The News and Notes Edition is in an electronic magazine format that is published\r\n% once or twice a year and that has very specific length and word count\r\n% constraints.\r\n% The Blogs Edition can be any length, and I hope to have enough time and\r\n% interesting material to post a couple of times per month.\r\n% In fact, I may revive some old newsletter Corners, bring them up to date,\r\n% and post them here.\r\n\r\n%% \r\n% I am pleased to be able to use MATLAB and its\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2012a\/techdoc\/matlab_env\/f6-14058.html publish>\r\n% command as my Web authoring environmnent.  I have been writing MATLAB code for even\r\n% longer than I have been writing newsletter columns.  Now I can write a blog\r\n% without learning a new word processor.\r\n\r\n%%\r\n% I am also pleased to be able to use <http:\/\/www.mathjax.org MathJax>\r\n% to display typeset mathematics. MathJax is, among other things, a LaTex\r\n% interpreter written in JavaScript that displays mathematics properly in\r\n% modern Web browsers.  Here's an example.  My next blog posting will\r\n% involve a discussion of $phi$, the Golden Ratio.  Now look again at that\r\n% Greek letter $phi$.  It should have the correct font size and, most\r\n% importantly, have the same baseline as the surrounding text.\r\n% This is how $phi$ would have looked before MathJax. \r\n% The old $phi$ is a .png image.  Some browsers place it far above the\r\n% baseline of rest of the sentence.\r\n% If you zoom in on the page, or print the page, the new $phi$ should scale\r\n% and print nicely, but the old $phi$ will show the pixelation inherent in an\r\n% sampled image.\r\n\r\n%%\r\n% MathJax has been developed by Davide Cervone of Union College and\r\n% at Design Science, the makers of the MathType equation editor.\r\n% MathJax has the support of SIAM (Society for Industrial and Applied\r\n% Mathematics), the AMS (American Mathematical Society), the AIP\r\n% (American Institute of Physics), a few other professional societies,\r\n% and several publishers.  For more about MathJax, see the recent\r\n% <http:\/\/www.ams.org\/notices\/201202\/rtx120200312p.pdf article> by\r\n% Cervone in the AMS Notices.\r\n\r\n##### SOURCE END ##### 8f40517435ff47bb9d8555c04722874f\r\n-->","protected":false},"excerpt":{"rendered":"<!--introduction--><p>This is the debut of the MATLAB Central Blogs edition of Cleve's Corner. For years, I have been writing a column named <a href=\"https:\/\/www.mathworks.com\/company\/newsletters\/clevescorner.html\">Cleve's Corner<\/a> in MathWorks News and Notes. The News and Notes Edition is in an electronic magazine format that is published once or twice a year and that has very specific length and word count constraints. The Blogs Edition can be any length, and I hope to have enough time and interesting material to post a couple of times per month. In fact, I may revive some old newsletter Corners, bring them up to date, and post them here.... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/cleve\/2012\/06\/03\/cleves-corner-blogs-edition\/\">read more >><\/a><\/p>","protected":false},"author":78,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":38,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":2253,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/posts\/7\/revisions\/2253"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/cleve\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}