{"id":273,"date":"2011-04-28T12:07:58","date_gmt":"2011-04-28T12:07:58","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2011\/04\/28\/is-there-an-echo-out-there\/"},"modified":"2011-04-18T19:09:27","modified_gmt":"2011-04-18T19:09:27","slug":"is-there-an-echo-out-there","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2011\/04\/28\/is-there-an-echo-out-there\/","title":{"rendered":"Is There an echo Out There?"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p>If I wanted to act like an old fogey, I could reminisce and say I miss the good old days where we, at MathWorks, delivered\r\n         demos by using the function <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/echo.html\"><tt>echo<\/tt><\/a>.  But I can't honestly say I miss that aspect of writing demos. These days, we either create GUIs, often light-weight for\r\n         a demo, perhaps using <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/guide.html\"><tt>guide<\/tt><\/a> or nested functions such as <a href=\"https:\/\/blogs.mathworks.com\/loren\/2007\/08\/09\/a-way-to-create-reusable-tools\/\">this example<\/a>, OR, we write MATLAB code that we <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/publish.html\"><tt>publish<\/tt><\/a>.\r\n      <\/p>\r\n   <\/introduction>\r\n   <h3>Contents<\/h3>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"#1\">Do You Hear the echo?<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <h3>Do You Hear the echo?<a name=\"1\"><\/a><\/h3>\r\n   <p>My question to you this week is: do you use the function <tt>echo<\/tt> currently?  If so, can you please explain why\/how (e.g., see no reason to update code, don't want to take the time to write\r\n      a GUI, etc.).  Thanks. As always, let me know your thoughts <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=273#respond\">here<\/a>.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_f7d550dd76e540018cdfbd9e10202ff8() {\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='f7d550dd76e540018cdfbd9e10202ff8 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' f7d550dd76e540018cdfbd9e10202ff8';\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 = 'Loren Shure';\r\n        copyright = 'Copyright 2011 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_f7d550dd76e540018cdfbd9e10202ff8()\"><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.12<br><\/p>\r\n<\/div>\r\n<!--\r\nf7d550dd76e540018cdfbd9e10202ff8 ##### SOURCE BEGIN #####\r\n%% Is There an echo Out There?\r\n% If I wanted to act like an old fogey, I could reminisce and say I miss\r\n% the good old days where we, at MathWorks, delivered demos by using the\r\n% function\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/echo.html\r\n% |echo|>.  But I can't honestly say I miss that aspect of writing demos.\r\n% These days, we either create GUIs, often light-weight for a demo, perhaps\r\n% using\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/guide.html\r\n% |guide|> or nested functions such as\r\n% <https:\/\/blogs.mathworks.com\/loren\/2007\/08\/09\/a-way-to-create-reusable-tools\/\r\n% this example>, OR, we write MATLAB code that we\r\n% <https:\/\/www.mathworks.com\/help\/releases\/R2011a\/techdoc\/\/ref\/publish.html |publish|>.\r\n%% Do You Hear the echo?\r\n% My question to you this week is: do you use the function |echo|\r\n% currently?  If so, can you please explain why\/how (e.g., see no reason to\r\n% update code, don't want to take the time to write a GUI, etc.).  Thanks.\r\n% As always, let me know your thoughts\r\n% <https:\/\/blogs.mathworks.com\/loren\/?p=273#respond here>.\r\n##### SOURCE END ##### f7d550dd76e540018cdfbd9e10202ff8\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      If I wanted to act like an old fogey, I could reminisce and say I miss the good old days where we, at MathWorks, delivered\r\n         demos by using the function echo. ... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2011\/04\/28\/is-there-an-echo-out-there\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/273"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}