{"id":6441,"date":"2021-10-25T19:00:36","date_gmt":"2021-10-25T23:00:36","guid":{"rendered":"https:\/\/blogs.mathworks.com\/student-lounge\/?p=6441"},"modified":"2021-10-25T19:11:20","modified_gmt":"2021-10-25T23:11:20","slug":"6-popular-how-to-videos-to-learn-matlab","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/student-lounge\/2021\/10\/25\/6-popular-how-to-videos-to-learn-matlab\/","title":{"rendered":"6 Popular \u201cHow-To\u201d Videos to Learn MATLAB"},"content":{"rendered":"<div class=\"rtcContent\">\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><em>In today&#8217;s post, <a href=\"https:\/\/www.linkedin.com\/in\/owen-paul\/\">Owen Paul<\/a> joins us to share some of the most popular YouTube videos on MATLAB&#8217;s <a href=\"https:\/\/www.youtube.com\/playlist?list=PLn8PRpmsu08oBSjfGe8WIMN-2_rwWFSgr\">&#8220;How-To&#8221; Playlist<\/a> for beginners to help you get started on your MATLAB journey. Over to you, Owen..<\/em><\/div>\n<div>&#8212;<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">You are sitting in front of a computer with a blank MATLAB screen in front of you. You have an assignment you need to finish but no clue where to start. Everything made sense when the professor was explaining the functions in class but now that you\u2019re on your own, MATLAB looks like another language. We\u2019ve all been there. Because learning any coding language or program is the same as learning a new language.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">As a visual learner, I always click on shorter videos when searching for MATLAB help. That\u2019s why I wanted to share 6 short videos that you can use to help you learn the basics needed for working in MATLAB. Whether you\u2019re new to MATLAB or want to learn new features to make coding faster, these videos are for you. All the videos come from the <a href=\"https:\/\/www.youtube.com\/playlist?list=PLn8PRpmsu08oBSjfGe8WIMN-2_rwWFSgr\"><span style=\"text-decoration: underline;\">How-to Playlist\u00a0<\/span><\/a>on the MATLAB YouTube Channel. For more short instructional videos on MATLAB and Simulink, be sure to check it out.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Live Scripts <\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">The first step to coding, is creating a new script to save all your code. Generally, people work with a regular MATLAB script (.m), which allows for code and comments. But MATLAB scripts are so last century. MATLAB Live Scripts (.mlx) enable you to have code, comments, text, and pictures all in one file. This makes it easy to create and document reports and assignments. Learn how to use live scripts in this first video.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/hUXTyPYRidM\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Scalar vs. Vector operations <\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">To use the dot operator or not to use the dot operator. This is a question that engineering students worldwide have been pondering since the beginning of time. This next video intends to break this cycle of confusion. This video demonstrates the difference between scalar, vector, and matrix variables and the operators necessary when working with each data type.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/3aiDmUZQaYo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Indexing Data Sets <\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">You now know how to divide matrices, but now you need the last 3 columns from the resulting matrix. Indexing data can take anywhere from a couple lines of code toover30. If it\u2019s the latter, sorry to burst your bubble but you are probably doing too much work. There\u2019s plenty of functions and features that MATLAB offers that allow you to quickly search and index large data sets. Learn how, in this next video.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/2BvbrcCiF1g\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Importing Excel Data<\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">These past couple videos have demonstrated how to work with data, but what do you do if that data is in excel? Import it! Excel is a great tool, but MATLAB offers a lot more features for data analysis and visualization. To leverage these features, you must import the data into MATLAB. You can do this without writing any code, and this next video will show you how.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/0hArv-UBKQQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Debugging MATLAB Code <\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">If you\u2019ve written any code by this point you have probably run into a few errors in your code. Finding and fixing these errors, also called debugging, can sometimes be a painful process. Even if you know where the error is occurring, sometimes it can be hard to determine what\u2019s causing the error. MATLAB has some neat features that streamline the debugging process. Learn about these features and the debugging process in this next video.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/VEqevFAZIQo\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<h2 style=\"margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: #3c3c3c; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: bold; text-align: left;\"><span style=\"font-weight: bold;\">Speed up MATLAB Code <\/span><\/h2>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">Now that you have your code working, it\u2019s time to speed it up. There is no one way to make MATLAB faster but you can certainly implement several techniques that increase the performance and speed of your code. Check out these techniques in this last video.<\/div>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/dXo191HvvY0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<\/div>\n<div class=\"rtcContent\">\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">\n<div><\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\">I hope you learned something new from watching these videos. If you want to see more of these style of MATLAB and Simulink videos be sure to check out the &#8220;<a href=\"https:\/\/www.youtube.com\/playlist?list=PLn8PRpmsu08oBSjfGe8WIMN-2_rwWFSgr\"><span style=\"text-decoration: underline;\">How-To&#8221; Playlist<\/span><\/a> on the MATLAB YouTube Channel. If you\u2019re searching for a more in depth course for MATLAB basics, MathWorks offers a free 2 hour self-paced course named <a href=\"https:\/\/www.mathworks.com\/learn\/tutorials\/matlab-onramp.html\"><span style=\"text-decoration: underline;\">MATLAB Onramp<\/span><\/a>. It\u2019s a great resource for learning a lot of the concepts in the videos above but in a hands-on way.<\/div>\n<div style=\"margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: #000000; font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left;\"><\/div>\n<\/div>\n<p><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script><a href=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2021\/10\/Oct25-3.mlx\"><button class=\"btn btn-sm btn_color_blue pull-right add_margin_10\">Download Live Script<\/button><\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/student-lounge\/files\/2021\/10\/Blog_IMG.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div>\n<p>\nIn today&#8217;s post, Owen Paul joins us to share some of the most popular YouTube videos on MATLAB&#8217;s &#8220;How-To&#8221; Playlist for beginners to help you get started on your MATLAB&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/student-lounge\/2021\/10\/25\/6-popular-how-to-videos-to-learn-matlab\/\">read more >><\/a><\/p>\n","protected":false},"author":183,"featured_media":6546,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[88],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/6441"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/users\/183"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/comments?post=6441"}],"version-history":[{"count":64,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/6441\/revisions"}],"predecessor-version":[{"id":6663,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/posts\/6441\/revisions\/6663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media\/6546"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/media?parent=6441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/categories?post=6441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/student-lounge\/wp-json\/wp\/v2\/tags?post=6441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}