{"id":11242,"topics":[{"id":710,"name":"Computer Science","icon":"RiRobot2Line","parent":698,"channel_url":"https://learn.mit.edu/c/topic/computer-science"},{"id":698,"name":"Data Science, Analytics & Computer Technology","icon":"RiRobot2Line","parent":null,"channel_url":"https://learn.mit.edu/c/topic/data-science-analytics-computer-technology"},{"id":747,"name":"Engineering","icon":"RiRobot2Line","parent":null,"channel_url":"https://learn.mit.edu/c/topic/engineering"},{"id":737,"name":"Mathematics","icon":"RiTestTubeLine","parent":731,"channel_url":"https://learn.mit.edu/c/topic/mathematics"},{"id":700,"name":"Programming & Coding","icon":"RiRobot2Line","parent":698,"channel_url":"https://learn.mit.edu/c/topic/programming-coding"},{"id":731,"name":"Science & Math","icon":"RiTestTubeLine","parent":null,"channel_url":"https://learn.mit.edu/c/topic/science-math"},{"id":757,"name":"Systems Engineering","icon":"RiRobot2Line","parent":747,"channel_url":"https://learn.mit.edu/c/topic/systems-engineering"}],"position":null,"offered_by":{"code":"ocw","name":"MIT OpenCourseWare","channel_url":"https://learn.mit.edu/c/unit/ocw","display_facet":true},"platform":{"code":"ocw","name":"MIT OpenCourseWare"},"course_feature":[],"departments":[],"certification":false,"certification_type":{"code":"none","name":"No Certificate"},"prices":[],"resource_prices":[],"runs":[],"image":{"id":9408,"url":"https://i.ytimg.com/vi/OisFNNzz3xQ/hqdefault.jpg","description":null,"alt":null},"views":374,"delivery":[{"code":"online","name":"Online"}],"free":true,"resource_type_group":"learning_material","format":[{"code":"asynchronous","name":"Asynchronous"}],"pace":[{"code":"self_paced","name":"Self-paced"}],"children":[],"best_run_id":null,"learn_url":"https://learn.mit.edu/video/11242/lecture-5-scripts-and-functions?playlist=11237","url_slug":"lecture-5-scripts-and-functions","resource_type":"video","video":{"id":4678,"caption_urls":[],"streaming_url":null,"cover_image_url":null,"duration":"PT9M53S"},"playlists":[11237],"content_files":[{"id":24586475,"run_id":2520,"direct_learning_resource_id":11242,"run_title":"Introduction To MATLAB Programming","run_slug":"courses/18-s997-introduction-to-matlab-programming-fall-2011","departments":[{"department_id":"18","name":"Mathematics","channel_url":"https://learn.mit.edu/c/department/mathematics","school":{"id":5,"name":"School of Science","url":"https://science.mit.edu/"}}],"semester":"Fall","year":2011,"topics":[{"id":710,"name":"Computer Science","icon":"RiRobot2Line","parent":698,"channel_url":"https://learn.mit.edu/c/topic/computer-science"},{"id":698,"name":"Data Science, Analytics & Computer Technology","icon":"RiRobot2Line","parent":null,"channel_url":"https://learn.mit.edu/c/topic/data-science-analytics-computer-technology"},{"id":747,"name":"Engineering","icon":"RiRobot2Line","parent":null,"channel_url":"https://learn.mit.edu/c/topic/engineering"},{"id":737,"name":"Mathematics","icon":"RiTestTubeLine","parent":731,"channel_url":"https://learn.mit.edu/c/topic/mathematics"},{"id":700,"name":"Programming & Coding","icon":"RiRobot2Line","parent":698,"channel_url":"https://learn.mit.edu/c/topic/programming-coding"},{"id":731,"name":"Science & Math","icon":"RiTestTubeLine","parent":null,"channel_url":"https://learn.mit.edu/c/topic/science-math"},{"id":757,"name":"Systems Engineering","icon":"RiRobot2Line","parent":747,"channel_url":"https://learn.mit.edu/c/topic/systems-engineering"}],"key":"courses/18-s997-introduction-to-matlab-programming-fall-2011/resources/lecture-5-scripts-and-functions/","uid":null,"title":"Lecture 5: Scripts and Functions","description":"<p><strong>Description:</strong> This video lecture demonstrates the concept of scope by example of a recursive function that produces the Fibonacci sequence.</p>\n<p><strong>Instructor:</strong> Yossi Farjoun</p>\n","require_summaries":false,"url":"https://ocw.mit.edu/courses/18-s997-introduction-to-matlab-programming-fall-2011/resources/lecture-5-scripts-and-functions/","content_feature_type":["Lecture Videos"],"content_type":"video","content_title":"Lecture 5: Scripts and Functions","content_author":null,"content_language":null,"checksum":"674e2a853edd9999765a84c2abe29d04","image_src":"https://i.ytimg.com/vi/OisFNNzz3xQ/hqdefault.jpg","resource_id":"3880","resource_readable_id":"18.S997+fall_2011","source_path":null,"course_number":["18.S997"],"file_type":"","file_extension":".mp4","offered_by":{"code":"ocw","name":"MIT OpenCourseWare","channel_url":"https://learn.mit.edu/c/unit/ocw","display_facet":true},"platform":{"code":"ocw","name":"MIT OpenCourseWare"},"run_readable_id":"df24ba19002e5b0339ab8ace6e254ffd","edx_module_id":null,"youtube_id":"OisFNNzz3xQ"}],"description":"<p><strong>Description:</strong> This video lecture demonstrates the concept of scope by example of a recursive function that produces the Fibonacci sequence.</p>\n<p><strong>Instructor:</strong> Yossi Farjoun</p>\n","created_on":"2024-03-13T13:06:22.402408Z","readable_id":"OisFNNzz3xQ","title":"Lecture 5: Scripts and Functions","full_description":"MIT 18.S997 Introduction to MATLAB Programming Fall 2011\nView the complete course: http://ocw.mit.edu/18-S997F11\nInstructor: Yossi Farjoun\n\nLicense: Creative Commons BY-NC-SA\nMore information at http://ocw.mit.edu/terms\nMore courses at http://ocw.mit.edu","last_modified":"2013-02-14T19:02:09Z","published":true,"languages":null,"url":"https://ocw.mit.edu/courses/18-s997-introduction-to-matlab-programming-fall-2011/resources/lecture-5-scripts-and-functions/","resource_category":"Lecture Video","ocw_topics":[],"professional":false,"next_start_date":null,"availability":"anytime","completeness":1.0,"license_cc":true,"test_mode":false,"continuing_ed_credits":null,"location":"","duration":"","min_weeks":null,"max_weeks":null,"time_commitment":"","min_weekly_hours":null,"max_weekly_hours":null,"require_summaries":false}