{"id":156,"date":"2008-10-03T13:45:00","date_gmt":"2008-10-03T18:45:00","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2008\/10\/03\/matlab-for-teaching\/"},"modified":"2018-10-02T10:46:25","modified_gmt":"2018-10-02T15:46:25","slug":"matlab-for-teaching","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2008\/10\/03\/matlab-for-teaching\/","title":{"rendered":"MATLAB for Teaching"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p>I occasionally get involved in activities at MathWorks that aren't strictly focused on development.  These activities often\r\n         include interacting with customers, giving seminars, writing articles, for example.  Early this summer, for instance, I spent\r\n         a little bit of time creating a webinar about using MATLAB for Teaching. I tried to design it with the goal of reaching people already familiar with MATLAB as well as those who are not yet acquainted\r\n         with it.\r\n      <\/p>\r\n      <p>For those of you already using MATLAB, whether for teaching or not, the earlier demo in the webinar is fairly rudimentary,\r\n         since I give an introductory demo of MATLAB, including numerical calculations, visualization, finding information, and using\r\n         the editor to create an M-file.\r\n      <\/p>\r\n      <p>Even for those of you not new to MATLAB, you may find the latter part interesting. I show a rich example, motivated by the\r\n         work of Professor Joseph M. Mahaffy of San Diego State University.  The example illustrates how to estimate the physical characteristics\r\n         of a spring pendulum.  It's an example of how you might connect work in the laboratory with analyzing the collected data,\r\n         incorporating mathematical modeling and visualization, common denominators for MATLAB users.  Along the way I also use cell\r\n         mode execution, a technique that allows the student to interactively test out various parameters.  And I show the published\r\n         report, a way to share the results without writing a separate report.\r\n      <\/p>\r\n   <\/introduction>\r\n   <p>There are additional resources for those of you interested in incorporating MATLAB into your curricula.  I list a few of them\r\n      here.\r\n   <\/p>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/academia.html\">MathWorks Academia Home<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/company\/edu_digest\/current.html\">MATLAB Digest : Academic Edition<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/academia\/books\/\">MATLAB and Simulink Based Books<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/matlabcentral\">MATLAB Central<\/a><\/li>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/academia\/courseware.html\">MATLAB Courseware<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <p>And here are resources for your students, especially if you want to have your students gain familiarity with MATLAB in advance\r\n      of your classes.\r\n   <\/p>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"https:\/\/www.mathworks.com\/academia\/student_version\/\">MATLAB and Simulink Student Version<\/a><\/li>\r\n         <li><a href=\"https:\/\/matlabacademy.mathworks.com\">MATLAB and Simulink Tutorials<\/a><\/li>\r\n      <\/ul>\r\n   <\/div><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_8d8a3ea0294c4d10969336637310ecc0() {\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='8d8a3ea0294c4d10969336637310ecc0 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 8d8a3ea0294c4d10969336637310ecc0';\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 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_8d8a3ea0294c4d10969336637310ecc0()\"><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.6<br><\/p>\r\n<\/div>\r\n<!--\r\n8d8a3ea0294c4d10969336637310ecc0 ##### SOURCE BEGIN #####\r\n%% MATLAB for Teaching\r\n% I occasionally get involved in activities at MathWorks that aren't\r\n% strictly focused on development.  These activities often include\r\n% interacting with customers, giving seminars, writing articles, for\r\n% example.  Early this summer, for instance, I spent a little bit of time\r\n% creating a webinar about using \r\n% <https:\/\/www.mathworks.com\/wbnr30880 MATLAB for Teaching>. \r\n% I tried to design it with the goal of reaching people\r\n% already familiar with MATLAB as well as those who are not yet acquainted\r\n% with it.\r\n%\r\n% For those of you already using MATLAB, whether for teaching or not, the\r\n% earlier demo in the webinar is fairly rudimentary, since I give an\r\n% introductory demo of MATLAB, including numerical calculations,\r\n% visualization, finding information, and using the editor to create an\r\n% M-file.\r\n%\r\n% Even for those of you not new to MATLAB, you may find the latter part\r\n% interesting. I show a rich example, motivated by the work of Professor\r\n% Joseph M. Mahaffy of San Diego State University.  The example illustrates\r\n% how to estimate the physical characteristics of a spring pendulum.  It's\r\n% an example of how you might connect work in the laboratory with \r\n% analyzing the collected data, incorporating mathematical modeling and\r\n% visualization, common denominators for MATLAB users.  Along the way I\r\n% also use cell mode execution, a technique that allows the student to \r\n% interactively test out various parameters.  And I show the published\r\n% report, a way to share the results without writing a separate report.\r\n%\r\n%% \r\n% There are additional resources for those of you interested in\r\n% incorporating MATLAB into your curricula.  I list a few of them here.\r\n%\r\n% * <https:\/\/www.mathworks.com\/academia.html MathWorks Academia Home>\r\n% * <https:\/\/www.mathworks.com\/company\/edu_digest\/current.html MATLAB Digest : Academic Edition>\r\n% * <https:\/\/www.mathworks.com\/academia\/books\/ MATLAB and Simulink Based Books>\r\n% * <https:\/\/www.mathworks.com\/matlabcentralMATLAB Central>\r\n% * <https:\/\/www.mathworks.com\/academia.htmlfaculty_center\/curriculum\/ Curriculum Exchange>\r\n%\r\n% And here are resources for your students, especially if you want to have\r\n% your students gain familiarity with MATLAB in advance of your classes.\r\n%\r\n% * <https:\/\/www.mathworks.com\/academia\/student_version\/ MATLAB and Simulink Student Version>\r\n% * <https:\/\/matlabacademy.mathworks.com MATLAB and Simulink Tutorials>\r\n\r\n\r\n##### SOURCE END ##### 8d8a3ea0294c4d10969336637310ecc0\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      I occasionally get involved in activities at MathWorks that aren't strictly focused on development.  These activities often\r\n         include interacting with customers, giving seminars,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2008\/10\/03\/matlab-for-teaching\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/156"}],"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=156"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":3093,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/156\/revisions\/3093"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}