{"id":137,"date":"2008-04-23T12:23:06","date_gmt":"2008-04-23T17:23:06","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2008\/04\/23\/matlab-publishing-for-teaching\/"},"modified":"2016-11-22T13:52:51","modified_gmt":"2016-11-22T18:52:51","slug":"matlab-publishing-for-teaching","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2008\/04\/23\/matlab-publishing-for-teaching\/","title":{"rendered":"MATLAB Publishing for Teaching"},"content":{"rendered":"<div class=\"content\">\n<p>Since MATLAB has had the capability to <a href=\"https:\/\/www.mathworks.com\/help\/matlab\/ref\/publish.html\"><tt>publish<\/tt><\/a> M-files, we have seen publishing being adopted at many educational institutions. And there is a variety of ways for you<br \/>\nto find out just what&#8217;s been published out there, perhaps so you can leverage it.<\/p>\n<p>&nbsp;<\/p>\n<h3>Contents<\/h3>\n<div>\n<ul>\n<li><a href=\"#1\">How to Find Published M-files<\/a><\/li>\n<li><a href=\"#3\">Some Good Educational Sites<\/a><\/li>\n<li><a href=\"#6\">Who Publishes?<\/a><\/li>\n<li><a href=\"#7\">What are People Using Published M-files for?<\/a><\/li>\n<li><a href=\"#8\">Homework Examples<\/a><\/li>\n<li><a href=\"#9\">Example of an Exam<\/a><\/li>\n<li><a href=\"#10\">Do You Publish from MATLAB for School?<\/a><\/li>\n<\/ul>\n<\/div>\n<h3>How to Find Published M-files<a name=\"1\"><\/a><\/h3>\n<p>First, how can you find published M-files on the web? Here are some techniques.<\/p>\n<div>\n<ul>\n<li>From the MATLAB Central Metrics page, select Web Demos and then look at the Domain Index.<\/li>\n<li>Using <a href=\"http:\/\/www.google.com\/search?q=%22Published+with+MATLAB%22&amp;sourceid=navclient-ff&amp;ie=UTF-8&amp;rlz=1B3GGGL_enUS177US229\">Google<\/a> (search for \u201cPublished with MATLAB\u201d) or look at the MathWorks-generated Web Demos index.<\/li>\n<\/ul>\n<\/div>\n<h3>Some Good Educational Sites<a name=\"3\"><\/a><\/h3>\n<p>You\u2019ll find pointers to a lot of educational sites at the web demos index. I know that some good files are to be found at<\/p>\n<div>\n<ul>\n<li>UMD,<\/li>\n<li><a href=\"\">Sussex<\/a>, and<\/li>\n<li>Swarthmore.<\/li>\n<\/ul>\n<\/div>\n<p>But you can just poke around and find a lot of good stuff up and down this list. Here&#8217;s a really good site I noticed recently<br \/>\nfor teaching <a href=\"http:\/\/www.math.umd.edu\/~jmr\/241\/calc.html\">Calculus<\/a>.<\/p>\n<h3>Who Publishes?<a name=\"6\"><\/a><\/h3>\n<p>I\u2019ve been very happy, as I look at the web demos coming in, to see that published M-files are being used by professors more<br \/>\nand more. Some of them are lovely and well made. Here are a few favorites of mine:<\/p>\n<div>\n<ul>\n<li><a href=\"http:\/\/www.math.umd.edu\/~jmr\/141\/SimpsonDemo.html\">Simpson&#8217;s rule<\/a><\/li>\n<li><a href=\"http:\/\/www.math.umd.edu\/~jmr\/246\/phase.html\">Linear systems<\/a><\/li>\n<li><a href=\"http:\/\/www.math.umd.edu\/~jmr\/241\/tripleint.html\">Triple integration<\/a><\/li>\n<li><a href=\"http:\/\/www.math.umd.edu\/~jmr\/241\/crits.html\">Critical points<\/a><\/li>\n<\/ul>\n<\/div>\n<h3>What are People Using Published M-files for?<a name=\"7\"><\/a><\/h3>\n<p>People seem to be using published M-files for educational purposes in three ways, sometimes melding together the first two.<\/p>\n<div>\n<ul>\n<li>demos, concepts, explanations, class notes<\/li>\n<li>homework assignments<\/li>\n<li>adminstering exams<\/li>\n<\/ul>\n<\/div>\n<h3>Homework Examples<a name=\"8\"><\/a><\/h3>\n<p>Sometimes they\u2019re used for homework assignments. Here are some examples from <a href=\"http:\/\/www.google.com\/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.njit.edu%2F&amp;ei=oIcPSK6vGoLSeeibuc0J&amp;usg=AFQjCNGSdTq2x4avMPGcvXjo2IlJVimDqA&amp;sig2=hUkGJbygiWKvxd6nHBUWrQ\">NJIT<\/a>.<\/p>\n<div>\n<ul>\n<li>MATLAB introduction<\/li>\n<li>Newton&#8217;s method<\/li>\n<li>Numerical integration<\/li>\n<li>Taylor series<\/li>\n<\/ul>\n<\/div>\n<h3>Example of an Exam<a name=\"9\"><\/a><\/h3>\n<p>And sometimes they\u2019re even used for exams.<\/p>\n<h3>Do You Publish from MATLAB for School?<a name=\"10\"><\/a><\/h3>\n<p>If you use publishing for some aspect of school work, post <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=137#respond\">here<\/a> and please post 1 (one) URL to your own best site. Please also post a URL to a site (new to you perhaps) that uses |publish<br \/>\nand you think has material potentially useful to you and others.<\/p>\n<p><script>\/\/ <![CDATA[\nfunction grabCode_5be53aa51eed4eab948fa5ee8a042164() {\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='5be53aa51eed4eab948fa5ee8a042164 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 5be53aa51eed4eab948fa5ee8a042164';\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 = 'Loren Shure';\n        copyright = 'Copyright 2008 The MathWorks, Inc.';\n\n        w = window.open();\n        d = w.document;\n        d.write('\n\n\n\n\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\n\n\\n');\n      \n      d.title = title + ' (MATLAB code)';\n      d.close();\n      }\n\/\/ ]]><\/script><\/p>\n<p style=\"text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;\"><a><span style=\"font-size: x-small; font-style: italic;\">Get<br \/>\nthe MATLAB code<br \/>\n<noscript>(requires JavaScript)<\/noscript><\/span><\/a><\/p>\n<p>Published with MATLAB\u00ae 7.6<\/p>\n<\/div>\n<p><!--\n5be53aa51eed4eab948fa5ee8a042164 ##### SOURCE BEGIN #####\n%% MATLAB Publishing for Teaching\n% Since MATLAB has had the capability to <https:\/\/www.mathworks.com\/help\/matlab\/ref\/publish.html |publish|>\n% M-files, we have seen publishing being adopted at many educational\n% institutions.  And there is a variety of ways for you to find out just\n% what's been published out there, perhaps so you can leverage it.\n%% How to Find Published M-files\n% First, how can you find published M-files on the web?  Here are some techniques.\n%%\n%\n% * From the\n% <https:\/\/www.mathworks.com\/matlabcentral\/reports\/fileexchange\/ MATLAB Central Metrics page>,\n% select\n% <https:\/\/www.mathworks.com\/matlabcentral\/reports\/fileexchange\/webdemos\/ Web Demos>\n% and then look at the\n% <https:\/\/www.mathworks.com\/matlabcentral\/reports\/fileexchange\/webdemos\/?page=CategoryIndex Domain Index>.\n% * Using <http:\/\/www.google.com\/search?q=%22Published+with+MATLAB%22&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enUS177US229 Google>\n% (search for \u00e2\u20ac\u0153Published with MATLAB\u00e2\u20ac\ufffd) or look at the MathWorks-generated Web Demos index.\n%\n%\n%\n%% Some Good Educational Sites\n% You\u00e2\u20ac\u2122ll find pointers to a lot of educational sites at the web demos\n% index. I know that some good files are to be found at\n%%\n%\n% * <https:\/\/www.mathworks.com\/matlabcentral\/reports\/fileexchange\/webdemos\/?page=www_math_umd_edu UMD>,\n% * < Sussex>, and\n% * <https:\/\/www.mathworks.com\/matlabcentral\/reports\/fileexchange\/webdemos\/?page=www_swarthmore_edu Swarthmore>.\n%%\n% But you can just poke around and find a lot of good stuff up and down this list.\n% Here's a really good site I noticed recently for teaching\n% <http:\/\/www.math.umd.edu\/~jmr\/241\/calc.html Calculus>.\n%% Who Publishes?\n% I\u00e2\u20ac\u2122ve been very happy, as I look at the web demos coming in, to see that\n% published M-files are being used by professors more and more. Some of\n% them are lovely and well made.  Here are a few favorites of mine:\n%\n% * <http:\/\/www.math.umd.edu\/~jmr\/141\/SimpsonDemo.html Simpson's rule>\n% * <http:\/\/www.math.umd.edu\/~jmr\/246\/phase.html Linear systems>\n% * <http:\/\/www.math.umd.edu\/~jmr\/241\/tripleint.html Triple integration>\n% * <http:\/\/www.math.umd.edu\/~jmr\/241\/crits.html Critical points>\n%\n%% What are People Using Published M-files for?\n% People seem to be using published M-files for educational purposes in\n% three ways, sometimes melding together the first two.\n%\n% * demos, concepts, explanations, class notes\n% * homework assignments\n% * adminstering exams\n%\n\n%% Homework Examples\n% Sometimes they\u00e2\u20ac\u2122re used for homework assignments.  Here are some\n% examples from <http:\/\/www.google.com\/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.njit.edu%2F&ei=oIcPSK6vGoLSeeibuc0J&usg=AFQjCNGSdTq2x4avMPGcvXjo2IlJVimDqA&sig2=hUkGJbygiWKvxd6nHBUWrQ NJIT>.\n%\n% * <http:\/\/cams.njit.edu\/Undergraduate\/Matlab\/M111MATLAB1S08\/ MATLAB introduction>\n% * <http:\/\/cams.njit.edu\/Undergraduate\/Matlab\/M111MATLAB2S08\/ Newton's method>\n% * <http:\/\/cams.njit.edu\/Undergraduate\/Matlab\/M112MATLAB1S08\/ Numerical integration>\n% * <http:\/\/cams.njit.edu\/Undergraduate\/Matlab\/M112MATLAB2S08\/ Taylor series>\n%\n%\n%% Example of an Exam\n% And sometimes they\u00e2\u20ac\u2122re even used for exams such as\n% <http:\/\/phonon.phys.unm.edu\/classes\/phys290s08\/tests\/midterm01\/html\/midterm01b_solutions.html this site>.\n\n%% Do You Publish from MATLAB for School?\n% If you use publishing for some aspect of school work, post\n% <https:\/\/blogs.mathworks.com\/loren\/?p=137#respond here> and please post 1\n% (one) URL to your own best site.  Please also post a URL to a site\n% (new to you perhaps) that uses |publish and you think has material\n% potentially useful to you and others.\n\n##### SOURCE END ##### 5be53aa51eed4eab948fa5ee8a042164\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\nSince MATLAB has had the capability to publish M-files, we have seen publishing being adopted at many educational institutions. And there is a variety of ways for you<br \/>\nto find out just what&#8217;s&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2008\/04\/23\/matlab-publishing-for-teaching\/\">read more >><\/a><\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[25,15,6,13],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/137"}],"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=137"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":2125,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/137\/revisions\/2125"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}