2D Plotting in Matlab
This tutorial illustrates how to generate 2D plots in Matlab.
Topics and timestamps:
0:00 - Introduction
2:35 - Using the ‘plot’ command
4:26 - Decorating a plot (labeling axes, title, grid lines, legend, text, etc.)
7:46 - Multiple plots on the same axes
10:07 - Adding a legend
11:15 - Setting axes limits
12:19 - Adding text to the plot
13:40 - histograms
15:50 - subplots
17:35 - plotyy
20:53 -logarithmic scaling (semilogx)
21:49 - pie charts
22:54 - scatter plots (scatter)
Other videos in this series:
-Getting Started with Matlab ( • Getting Started with M... )
-Working with Matrices in Matlab ( • Working with Matrices ... )
-2D Plotting in Matlab (this video)
-3D Plotting in Matlab ( • 3D Plotting in Matlab )
All Matlab videos in a single playlist ( • Working with Matlab )
#Matlab
You can support this channel via Patreon at / christopherwlum . Thank you for your help!
Пікірлер: 157
I cannot describe with words how much this video has helped me. I was watching my lectures for a few hours, not being able to plot a sin curve, but 4 minutes into watching this video , plotting started to seem like a piece of cake. THANK YOU SO MUCH!!!!
@GRMREAP3R97
3 жыл бұрын
same, some people are better at explaining things.
Years later, i still learn more about plots!
Great tutorial on plotting on MATLAB. It's been a minute for me so these videos are a tremendous help. Thanks!
Several of the plotting functions were new to me so this was especially helpful!
Plotting in matlab is so much better than excel, I will always go to matlab to plot data over excel. the double Axis function is great, thanks for the video
Fast way to review plots, thanks for the video. Matlab was telling me to use yyaxis instead of plotyy but they both gave me the same plots.
The ability to move the legend to the 'best' was new to me! I also didn't know about the pie plot so that could come in handy one day.
AE501 These Matlab tutorials have taught me more in half an hour than in some of my classes. Excellent explanations.
Thanks for the vid. These must take a lot of time, and it's really appreciated.
I was only aware of a few of these functions, so this was a lot of useful information.
AE 501 - Thanks for putting this together. It's a great overview for plotting and I've learnt a few more commands that will make plots cleaner.
@jafaralturfy5053
2 жыл бұрын
What is AE 501?
4 years in the future and this is still life changing. God Bless You MAN!
@ChristopherLum
Жыл бұрын
Hi Ashton, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
Nice coverage of 2D plotting in matlab! The text and plotyy plotting functions were new to me and very useful to finally know. (AE 501)
I didn't know about the pie plot before this. Thanks for the insight!
Thanks for the video. I'm sure I'll use the help function a lot when determining what my options are for plot formatting
Matlab is a great tool, looking forward to using it more often!
Useful resource for introducing Matlab 2d plotting features!
Nicely sequenced and put together. I'm sure that this will come in very handy - much appreciated!
I've only recently learned about these commands on the job, so this is good review, thanks!
Great reference for the plot function in MATLAB. Thanks for the video.
Did not know about plotyy, thank you for bringing that function to my attention.
AE511. Learned a new trick with the subplot command. Thanks!
Thanks for the video! Plotting can be confusing on Matlab so this was a good refresher.
The subplots and overlaying plot commands seem useful. Thanks for helping me improve my graphing game.
I did not know about the pie function. Thanks again, Dr. Lum.
Thanks for the video! I learned some new plotting functions from it.
[AE 501 Student] Great understanding of many styles of MatLab plots and graphics now. Wonderful refresher. Thanks Prof.
Didn't know about the pi and log plot functions, thanks!
Thanks for the helpful video showing many of the built in plotting tools of Matlab!
it's good overview for plotting functions in Matlab. It's really helpful for me.
Learned some new plotting commands, thanks!
This is actually SUPER convenient, thanks!
Ready to start plotting! Thank you!
This is really helpful! Thanks, I will use personally and for work!
Good to learn about plotyy being so easy in Matlab
I didn't know you could plot double axis like that. Good stuff.
I didn't know about all these extra plotting functions that could be very useful.
At first I thought why is a simple plot concept is 25 minutes long. After watching the video, I was like "Wow! I don't even know half of what's in there". Thanks a lot. You made everything look so easy
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. In case you are interested, I have a related video on 3D plotting. Please feel free to check it out and let me know what you think. Thanks for watching!
@HealthyPanic
3 жыл бұрын
@@ChristopherLum Sure, I saved this playlist and I'm working on it. Please do try to upload more content like this. I saw a playlist where you used Arduino with Matlab. It would be great if you can walk us through some mini-projects where we can build some mobile robots or UAV's, as your content involves flight mechanics. Thanks
This is amazing sir! Thank you 😊
Great video. learned quite a bit from this tutorial
Thank you very much! very helpful! you helped me to be able to hand in my assignment!
AE501: Great video and I really liked seeing all the graphing settings.
Thanks for the tutorial!
Good overview of the plotting commands in MATLAB.
Really interesting to know all the graph manipulations
Thanks for the succinct video Prof. Lum!
I have always had trouble getting my graphs to look clean. Video helped a lot.
This guy is an amazing teacher
great great great... really helpful lecture sir thank a lot... all type of possible graphs in one dose. wow
Thank you for the video on plotting in Matlab
Great video - scatter plot was new to me!
this help me to refresh my matlab plotting Thank you Sam
you are a great teacher, thank you
Thanks for the tutorial.
So much customization for plots!
great overview of plotting in Matlab.
This is amazing!!!! Thank you good sir!!!
Thanks for the videos!
Thanks so much. It is a helpful review.
Thank you for the video!
Excellent Presentation. Very helpful and clear.
Thanks much sir. I have plotted a bar graph with years (1970 to 2000). I wanted to add a trend line to it. What is the function to add trendline, apart from using the 'tool' on the menu?
Is there a way that when we click "Run" it generates a code so you can enter for example, 5 data points (x,y) you want plotted as a scatter plot?
Good review on plotting in MATLAB
AE 511. Great overview of plot functions
very helpful thank you
Omg I love u man,so clear ,I love when I totally understand what taught me justnow ❤❤❤
@peilin2428
4 ай бұрын
Tq somuch❤
Great Refresher!!
AA516: Great refresher!
AE 501. Fall 2020. Thank you for the video
thanks for the video it helped a lot
Very concise and informative tutorial. Thank you.
@ChristopherLum
2 жыл бұрын
Hi Linquan, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
I can tell that I will be needing to refer to this video throughout the duration of AE501 for the purpose to detailing plots. This is the type of thing I tend to not remember very well.... Fortunately while in industry you don't have to memorize syntax that you dont use frequently, you can just look it up! AE501 is really going to break some rust these skills!
Thank a lot!
[AE 501 JENNIFER JOHNSON] This is a great review for plotting in MATLab. I totally forgot how to write the code for plotting. This is everything I need for completing my assignment in terms of plotting.
@ChristopherLum
Жыл бұрын
Great, I'm glad it was helpful. Let me know if you run into issues with plotting. Several other students have contacted me asking about plotting and I was able to send them a sample script to get them started.
love from Pakistan .I appreciate your hard work and you are doin great work for students .Hats off to you for helping students over worldwide. Bundle of thanks
@ChristopherLum
Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
so much useful :)
what a beautiful presentation of plotting . really marvelous.
@ChristopherLum
2 жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. Thanks for watching! -Chris
Superb Video!!
AE511. Good refresher on Matlab commands.
pretty well explained
It's nice to get exposed to various 2D plotting functions in Matlab
Great review for the various commands in matlab
@melissawells8133
3 жыл бұрын
Reviewed again for AE511. Thank you again!
Thanks, really helpful!
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel. Please feel free to check them out and let me know what you think. Thanks for watching!
Shows some of the depths to Matlab plotting functions
Nice video!
Outstanding Lecture.
@ChristopherLum
Жыл бұрын
Hi, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
Well explained
Make a session for full coarse This video was good
enjoyed another one of your great videos. I need to look up the grid function and see if there is a way to make grid-lins and not just the grid marks that the grid function does for you. Thanks! AE501
@ChristopherLum
Жыл бұрын
There is an endless amount of customization you can do in Matlab. Regarding the grid, you can check out the documentation at www.mathworks.com/help/matlab/ref/grid.html . You'll see there are many ways to skin this cat.
Great video
I am very new to matlab and this was a very good tutorial even though it was really fast
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. I have other similar videos on the channel. Please feel free to check them out and let me know what you think in the comments. I hope to catch you at another video. Thanks for watching!
Thank you
very helpful sir!
@ChristopherLum
3 жыл бұрын
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Corona virus make me enjoy learning this👍🏻🔥
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out. Thanks for watching!
AE511, thanks for the info!
fantastic
hi, how could I join the point with a smooth line?
It would be great if you can show the STACKEDPLOT function and how to interact with the plot in it.
Thank u!
@ChristopherLum
4 жыл бұрын
I'm glad it was helpful, thanks for watching!