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

  • @accord_euro_cu2
    @accord_euro_cu24 жыл бұрын

    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

    @GRMREAP3R97

    3 жыл бұрын

    same, some people are better at explaining things.

  • @alexsteahr8458
    @alexsteahr84584 жыл бұрын

    Years later, i still learn more about plots!

  • @ryoonoue1076
    @ryoonoue10762 жыл бұрын

    Great tutorial on plotting on MATLAB. It's been a minute for me so these videos are a tremendous help. Thanks!

  • @mitchellhubbard5727
    @mitchellhubbard57275 жыл бұрын

    Several of the plotting functions were new to me so this was especially helpful!

  • @brentpaul7650
    @brentpaul76504 жыл бұрын

    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

  • @selamhendrix5252
    @selamhendrix52525 жыл бұрын

    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.

  • @markmurphy5374
    @markmurphy53744 жыл бұрын

    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.

  • @Richard_Le
    @Richard_Le10 ай бұрын

    AE501 These Matlab tutorials have taught me more in half an hour than in some of my classes. Excellent explanations.

  • @mattschierholtz2554
    @mattschierholtz25545 жыл бұрын

    Thanks for the vid. These must take a lot of time, and it's really appreciated.

  • @thomasireson1427
    @thomasireson14274 жыл бұрын

    I was only aware of a few of these functions, so this was a lot of useful information.

  • @tarynz5622
    @tarynz56222 жыл бұрын

    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

    @jafaralturfy5053

    2 жыл бұрын

    What is AE 501?

  • @AshtonAVlogs
    @AshtonAVlogs Жыл бұрын

    4 years in the future and this is still life changing. God Bless You MAN!

  • @ChristopherLum

    @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

  • @daniellerogers5959
    @daniellerogers59594 жыл бұрын

    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)

  • @karlbalitaan
    @karlbalitaan4 жыл бұрын

    I didn't know about the pie plot before this. Thanks for the insight!

  • @jasondorn3514
    @jasondorn35144 жыл бұрын

    Thanks for the video. I'm sure I'll use the help function a lot when determining what my options are for plot formatting

  • @garrettdavis4665
    @garrettdavis46654 жыл бұрын

    Matlab is a great tool, looking forward to using it more often!

  • @jesusespinoza2349
    @jesusespinoza23494 жыл бұрын

    Useful resource for introducing Matlab 2d plotting features!

  • @charlesharmon9065
    @charlesharmon90654 жыл бұрын

    Nicely sequenced and put together. I'm sure that this will come in very handy - much appreciated!

  • @elishamakarevich2737
    @elishamakarevich27374 жыл бұрын

    I've only recently learned about these commands on the job, so this is good review, thanks!

  • @gurjeetjaggi8316
    @gurjeetjaggi83164 жыл бұрын

    Great reference for the plot function in MATLAB. Thanks for the video.

  • @matthewbajamundi8774
    @matthewbajamundi87744 жыл бұрын

    Did not know about plotyy, thank you for bringing that function to my attention.

  • @gitarplayer13
    @gitarplayer135 жыл бұрын

    AE511. Learned a new trick with the subplot command. Thanks!

  • @SScook206
    @SScook2064 жыл бұрын

    Thanks for the video! Plotting can be confusing on Matlab so this was a good refresher.

  • @kylekearsley9253
    @kylekearsley92535 жыл бұрын

    The subplots and overlaying plot commands seem useful. Thanks for helping me improve my graphing game.

  • @eowynfreedomfighter
    @eowynfreedomfighter5 жыл бұрын

    I did not know about the pie function. Thanks again, Dr. Lum.

  • @christophersanchez2256
    @christophersanchez22564 жыл бұрын

    Thanks for the video! I learned some new plotting functions from it.

  • @paulpietrowicz3916
    @paulpietrowicz3916 Жыл бұрын

    [AE 501 Student] Great understanding of many styles of MatLab plots and graphics now. Wonderful refresher. Thanks Prof.

  • @helentat121
    @helentat1215 жыл бұрын

    Didn't know about the pi and log plot functions, thanks!

  • @ryancazin5930
    @ryancazin59305 жыл бұрын

    Thanks for the helpful video showing many of the built in plotting tools of Matlab!

  • @HIEPNGUYEN-wb7yg
    @HIEPNGUYEN-wb7yg5 жыл бұрын

    it's good overview for plotting functions in Matlab. It's really helpful for me.

  • @wes1588
    @wes15885 жыл бұрын

    Learned some new plotting commands, thanks!

  • @goNAVYbeatARMY0909
    @goNAVYbeatARMY09094 жыл бұрын

    This is actually SUPER convenient, thanks!

  • @LorraineB_0911
    @LorraineB_09115 жыл бұрын

    Ready to start plotting! Thank you!

  • @ericwang161
    @ericwang1614 жыл бұрын

    This is really helpful! Thanks, I will use personally and for work!

  • @marissalamadrid8190
    @marissalamadrid81905 жыл бұрын

    Good to learn about plotyy being so easy in Matlab

  • @derekwflett
    @derekwflett4 жыл бұрын

    I didn't know you could plot double axis like that. Good stuff.

  • @masontelander3847
    @masontelander38474 жыл бұрын

    I didn't know about all these extra plotting functions that could be very useful.

  • @HealthyPanic
    @HealthyPanic3 жыл бұрын

    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

    @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

    @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

  • @balaghathussain1
    @balaghathussain14 жыл бұрын

    This is amazing sir! Thank you 😊

  • @mitchellnakaki7900
    @mitchellnakaki79004 жыл бұрын

    Great video. learned quite a bit from this tutorial

  • @fmusicede7384
    @fmusicede73842 жыл бұрын

    Thank you very much! very helpful! you helped me to be able to hand in my assignment!

  • @elijahleonen198
    @elijahleonen1989 ай бұрын

    AE501: Great video and I really liked seeing all the graphing settings.

  • @mrassbandit23
    @mrassbandit235 жыл бұрын

    Thanks for the tutorial!

  • @alanlee4326
    @alanlee43265 жыл бұрын

    Good overview of the plotting commands in MATLAB.

  • @minaanderberg884
    @minaanderberg8844 жыл бұрын

    Really interesting to know all the graph manipulations

  • @marcellodesario519
    @marcellodesario5195 жыл бұрын

    Thanks for the succinct video Prof. Lum!

  • @veekashpatel953
    @veekashpatel9535 жыл бұрын

    I have always had trouble getting my graphs to look clean. Video helped a lot.

  • @jackkaniowski1579
    @jackkaniowski15793 жыл бұрын

    This guy is an amazing teacher

  • @ajaysinghrathore1034
    @ajaysinghrathore10343 жыл бұрын

    great great great... really helpful lecture sir thank a lot... all type of possible graphs in one dose. wow

  • @jonathonlaird6279
    @jonathonlaird62794 жыл бұрын

    Thank you for the video on plotting in Matlab

  • @alisoncaprioli4861
    @alisoncaprioli48614 жыл бұрын

    Great video - scatter plot was new to me!

  • @sajeew
    @sajeew4 жыл бұрын

    this help me to refresh my matlab plotting Thank you Sam

  • @aga080
    @aga0803 жыл бұрын

    you are a great teacher, thank you

  • @johnsmail2819
    @johnsmail28195 жыл бұрын

    Thanks for the tutorial.

  • @michaelrudolf9988
    @michaelrudolf99884 жыл бұрын

    So much customization for plots!

  • @krystoflis7157
    @krystoflis71575 жыл бұрын

    great overview of plotting in Matlab.

  • @shahiedsalim
    @shahiedsalim3 жыл бұрын

    This is amazing!!!! Thank you good sir!!!

  • @cjyoo1410
    @cjyoo14104 жыл бұрын

    Thanks for the videos!

  • @nadianazhatsabeeh8131
    @nadianazhatsabeeh81312 жыл бұрын

    Thanks so much. It is a helpful review.

  • @mylesdeluca8789
    @mylesdeluca87895 жыл бұрын

    Thank you for the video!

  • @dimitriosamanatidis9284
    @dimitriosamanatidis92843 жыл бұрын

    Excellent Presentation. Very helpful and clear.

  • @Rainstorm121
    @Rainstorm1213 жыл бұрын

    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?

  • @JazminZenteno1
    @JazminZenteno13 жыл бұрын

    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?

  • @PNW_SportsCards
    @PNW_SportsCards5 жыл бұрын

    Good review on plotting in MATLAB

  • @kaisemuw7074
    @kaisemuw70745 жыл бұрын

    AE 511. Great overview of plot functions

  • @ahmeds9346
    @ahmeds93463 жыл бұрын

    very helpful thank you

  • @peilin2428
    @peilin24284 ай бұрын

    Omg I love u man,so clear ,I love when I totally understand what taught me justnow ❤❤❤

  • @peilin2428

    @peilin2428

    4 ай бұрын

    Tq somuch❤

  • @gurjeetjaggi8316
    @gurjeetjaggi83164 жыл бұрын

    Great Refresher!!

  • @rowellcastro2683
    @rowellcastro26836 ай бұрын

    AA516: Great refresher!

  • @renowhitcomb5505
    @renowhitcomb55053 жыл бұрын

    AE 501. Fall 2020. Thank you for the video

  • @gustavobrito532
    @gustavobrito532 Жыл бұрын

    thanks for the video it helped a lot

  • @larryfocus
    @larryfocus2 жыл бұрын

    Very concise and informative tutorial. Thank you.

  • @ChristopherLum

    @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

  • @sethwhittington28
    @sethwhittington283 жыл бұрын

    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!

  • @priyanshugupta812
    @priyanshugupta8122 жыл бұрын

    Thank a lot!

  • @jenniferjohnson9827
    @jenniferjohnson9827 Жыл бұрын

    [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

    @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.

  • @shakaboom-lq1gx
    @shakaboom-lq1gx Жыл бұрын

    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

    @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

  • @aishwaryabuyya3793
    @aishwaryabuyya37933 жыл бұрын

    so much useful :)

  • @npraneeth6743
    @npraneeth67432 жыл бұрын

    what a beautiful presentation of plotting . really marvelous.

  • @ChristopherLum

    @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

  • @mansitomar1065
    @mansitomar10653 жыл бұрын

    Superb Video!!

  • @edwardsanchez2331
    @edwardsanchez23315 жыл бұрын

    AE511. Good refresher on Matlab commands.

  • @iman6189
    @iman61894 жыл бұрын

    pretty well explained

  • @lienchang8391
    @lienchang83915 жыл бұрын

    It's nice to get exposed to various 2D plotting functions in Matlab

  • @melissawells8133
    @melissawells81334 жыл бұрын

    Great review for the various commands in matlab

  • @melissawells8133

    @melissawells8133

    3 жыл бұрын

    Reviewed again for AE511. Thank you again!

  • @poojitha
    @poojitha4 жыл бұрын

    Thanks, really helpful!

  • @ChristopherLum

    @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!

  • @bryanmasserang5190
    @bryanmasserang51905 жыл бұрын

    Shows some of the depths to Matlab plotting functions

  • @samnoerpel7677
    @samnoerpel76775 жыл бұрын

    Nice video!

  • @academicstuff548
    @academicstuff548 Жыл бұрын

    Outstanding Lecture.

  • @ChristopherLum

    @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

  • @intuitionpoint9078
    @intuitionpoint90783 жыл бұрын

    Well explained

  • @siddiqc871
    @siddiqc8715 жыл бұрын

    Make a session for full coarse This video was good

  • @glopez7967
    @glopez7967 Жыл бұрын

    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

    @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.

  • @masontelander3847
    @masontelander38474 жыл бұрын

    Great video

  • @lidular
    @lidular4 жыл бұрын

    I am very new to matlab and this was a very good tutorial even though it was really fast

  • @ChristopherLum

    @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!

  • @yeserashmekonnen1596
    @yeserashmekonnen15963 жыл бұрын

    Thank you

  • @febinroshin6968
    @febinroshin69683 жыл бұрын

    very helpful sir!

  • @ChristopherLum

    @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!

  • @damnli
    @damnli4 жыл бұрын

    Corona virus make me enjoy learning this👍🏻🔥

  • @ChristopherLum

    @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!

  • @darylfishback-duran3580
    @darylfishback-duran35805 жыл бұрын

    AE511, thanks for the info!

  • @tmendoza6
    @tmendoza63 жыл бұрын

    fantastic

  • @andreamaribel4038
    @andreamaribel40384 жыл бұрын

    hi, how could I join the point with a smooth line?

  • @samudravishalmukherji7329
    @samudravishalmukherji73294 жыл бұрын

    It would be great if you can show the STACKEDPLOT function and how to interact with the plot in it.

  • @arturosanmillan6668
    @arturosanmillan66684 жыл бұрын

    Thank u!

  • @ChristopherLum

    @ChristopherLum

    4 жыл бұрын

    I'm glad it was helpful, thanks for watching!