2D Plotting in Matlab
Вставка
- Опубліковано 22 лип 2024
- 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!
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!!!!
same, some people are better at explaining things.
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!
Thanks for the vid. These must take a lot of time, and it's really appreciated.
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.
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.
What is AE 501?
I was only aware of a few of these functions, so this was a lot of useful information.
AE501 These Matlab tutorials have taught me more in half an hour than in some of my classes. Excellent explanations.
Thanks for the video. I'm sure I'll use the help function a lot when determining what my options are for plot formatting
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
I didn't know about the pie plot before this. Thanks for the insight!
I've only recently learned about these commands on the job, so this is good review, thanks!
Years later, i still learn more about plots!
Nicely sequenced and put together. I'm sure that this will come in very handy - much appreciated!
Matlab is a great tool, looking forward to using it more often!
Great reference for the plot function in MATLAB. Thanks for the video.
4 years in the future and this is still life changing. God Bless You MAN!
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
The subplots and overlaying plot commands seem useful. Thanks for helping me improve my graphing game.
Did not know about plotyy, thank you for bringing that function to my attention.
Useful resource for introducing Matlab 2d plotting features!
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)
Thanks for the video! Plotting can be confusing on Matlab so this was a good refresher.
This is actually SUPER convenient, thanks!
Thanks for the video! I learned some new plotting functions from it.
I did not know about the pie function. Thanks again, Dr. Lum.
AE511. Learned a new trick with the subplot command. Thanks!
Ready to start plotting! Thank you!
This is really helpful! Thanks, I will use personally and for work!
Learned some new plotting commands, thanks!
Thanks for the helpful video showing many of the built in plotting tools of Matlab!
Didn't know about the pi and log plot functions, thanks!
it's good overview for plotting functions in Matlab. It's really helpful for me.
I have always had trouble getting my graphs to look clean. Video helped a lot.
I didn't know you could plot double axis like that. Good stuff.
This is amazing sir!
Thank you 😊
I didn't know about all these extra plotting functions that could be very useful.
Great video. learned quite a bit from this tutorial
Thanks for the tutorial!
Thanks for the succinct video Prof. Lum!
Thank you very much! very helpful! you helped me to be able to hand in my assignment!
In case it is helpful, here are all my Matlab videos in a single playlist ua-cam.com/play/PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF.html. You can support this channel via Patreon at www.patreon.com/christopherwlum. Please let me know what you think in the comments. Thanks for watching!
I had plotted a circle in Matlab but even after using axis command my plot looks like a ellipse is there a way to fix this
this is helpful, can you please elaborate on how to have years on the x axis
pro trick: watch movies at Flixzone. Been using them for watching a lot of movies during the lockdown.
@Marcus Dylan Definitely, have been using Flixzone} for months myself :D
[AE 501 Student] Great understanding of many styles of MatLab plots and graphics now. Wonderful refresher. Thanks Prof.
Really interesting to know all the graph manipulations
AE501: Great video and I really liked seeing all the graphing settings.
Great video - scatter plot was new to me!
This guy is an amazing teacher
Good overview of the plotting commands in MATLAB.
you are a great teacher, thank you
great great great... really helpful lecture sir thank a lot... all type of possible graphs in one dose. wow
Thanks for the videos!
this help me to refresh my matlab plotting
Thank you
Sam
Good to learn about plotyy being so easy in Matlab
Thanks for the tutorial.
Thanks so much. It is a helpful review.
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
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!
@@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
Thank you for the video on plotting in Matlab
Thank you for the video!
This is amazing!!!! Thank you good sir!!!
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
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
Excellent Presentation. Very helpful and clear.
great overview of plotting in Matlab.
Omg I love u man,so clear ,I love when I totally understand what taught me justnow ❤❤❤
Tq somuch❤
Great Refresher!!
So much customization for plots!
thanks for the video it helped a lot
Very concise and informative tutorial. Thank you.
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
very helpful
thank you
AA516: Great refresher!
[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.
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.
AE 511. Great overview of plot functions
AE 501. Fall 2020. Thank you for the video
Thank a lot!
so much useful :)
what a beautiful presentation of plotting . really marvelous.
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
Good review on plotting in MATLAB
It's nice to get exposed to various 2D plotting functions in Matlab
pretty well explained
Superb Video!!
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!
Thanks, really helpful!
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!
Nice video!
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?
Outstanding Lecture.
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
Great review for the various commands in matlab
Reviewed again for AE511. Thank you again!
Great video
very helpful sir!
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!
Well explained
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
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.
Thank you
AE511. Good refresher on Matlab commands.
Make a session for full coarse
This video was good
fantastic
Shows some of the depths to Matlab plotting functions
It would be great if you can show the STACKEDPLOT function and how to interact with the plot in it.
I am very new to matlab and this was a very good tutorial even though it was really fast
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 u!
I'm glad it was helpful, thanks for watching!
Good info
AE511, thanks for the info!
Love plotting in matlab