{"id":2079,"date":"2007-12-21T10:18:34","date_gmt":"2007-12-21T15:18:34","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2007\/12\/21\/matlab-basics-functions-and-subfunctions\/"},"modified":"2017-07-13T20:49:54","modified_gmt":"2017-07-14T00:49:54","slug":"matlab-basics-functions-and-subfunctions","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2007\/12\/21\/matlab-basics-functions-and-subfunctions\/","title":{"rendered":"MATLAB Basics: Functions and subfunctions"},"content":{"rendered":"<p>This six and a half minute video shows a function being created in MATLAB, then it shows a subfunction being added.  Functions are a way of adding to the MATLAB language.    This video shows the creation of a simple function, and then adding a subfunction to that original function.                           <\/p>\n<div><div class=\"row\"><div class=\"col-xs-12 containing-block\"><div class=\"bc-outer-container add_margin_20\"><videoplayer><div class=\"video-js-container\"><video data-video-id=\"3877438059001\" data-video-category=\"blog\" data-autostart=\"false\" data-account=\"62009828001\" data-omniture-account=\"mathwgbl\" data-player=\"rJ9XCz2Sx\" data-embed=\"default\" id=\"mathworks-brightcove-player\" class=\"video-js\" controls><\/video><script src=\"\/\/players.brightcove.net\/62009828001\/rJ9XCz2Sx_default\/index.min.js\"><\/script><script>if (typeof(playerLoaded) === 'undefined') {var playerLoaded = false;}(function isVideojsDefined() {if (typeof(videojs) !== 'undefined') {videojs(\"mathworks-brightcove-player\").on('loadedmetadata', function() {playerLoaded = true;});} else {setTimeout(isVideojsDefined, 10);}})();<\/script><\/div><\/videoplayer><\/div><\/div><\/div><\/div>\n<p>Other videos have been gathered here:<br \/>\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/category\/video\/\">https:\/\/blogs.mathworks.com\/pick\/category\/video\/<\/a><\/p>\n<p>Other MATLAB Basics posts have been gathered here:<br \/>\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/category\/matlab-basics\/\">https:\/\/blogs.mathworks.com\/pick\/category\/matlab-basics\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This six and a half minute video shows a function being created in MATLAB, then it shows a subfunction being added.  Functions are a way of adding to the MATLAB language.    This video shows the&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2007\/12\/21\/matlab-basics-functions-and-subfunctions\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,8,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2079"}],"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\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2079"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2079\/revisions"}],"predecessor-version":[{"id":8726,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2079\/revisions\/8726"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}