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!

КОМЕНТАРІ • 157

  • @accord_euro_cu2
    @accord_euro_cu2 3 роки тому +25

    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 роки тому +1

      same, some people are better at explaining things.

  • @ryoonoue1076
    @ryoonoue1076 2 роки тому +1

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

  • @mitchellhubbard5727
    @mitchellhubbard5727 5 років тому +6

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

  • @mattschierholtz2554
    @mattschierholtz2554 5 років тому +5

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

  • @selamhendrix5252
    @selamhendrix5252 5 років тому +2

    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
    @markmurphy5374 4 роки тому +1

    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.

  • @tarynz5622
    @tarynz5622 2 роки тому +3

    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.

  • @thomasireson1427
    @thomasireson1427 4 роки тому +5

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

  • @Richard_Le
    @Richard_Le 9 місяців тому +1

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

  • @jasondorn3514
    @jasondorn3514 4 роки тому +1

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

  • @brentpaul7650
    @brentpaul7650 4 роки тому +2

    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

  • @karlbalitaan
    @karlbalitaan 4 роки тому +1

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

  • @elishamakarevich2737
    @elishamakarevich2737 4 роки тому

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

  • @alexsteahr8458
    @alexsteahr8458 4 роки тому +14

    Years later, i still learn more about plots!

  • @charlesharmon9065
    @charlesharmon9065 4 роки тому +1

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

  • @garrettdavis4665
    @garrettdavis4665 4 роки тому +1

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

  • @gurjeetjaggi8316
    @gurjeetjaggi8316 4 роки тому +1

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

  • @AshtonAVlogs
    @AshtonAVlogs Рік тому +1

    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

  • @kylekearsley9253
    @kylekearsley9253 5 років тому

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

  • @matthewbajamundi8774
    @matthewbajamundi8774 4 роки тому

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

  • @jesusespinoza2349
    @jesusespinoza2349 4 роки тому +1

    Useful resource for introducing Matlab 2d plotting features!

  • @daniellerogers5959
    @daniellerogers5959 4 роки тому +1

    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)

  • @SScook206
    @SScook206 4 роки тому +1

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

  • @goNAVYbeatARMY0909
    @goNAVYbeatARMY0909 4 роки тому

    This is actually SUPER convenient, thanks!

  • @christophersanchez2256
    @christophersanchez2256 4 роки тому +1

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

  • @eowynfreedomfighter
    @eowynfreedomfighter 5 років тому

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

  • @gitarplayer13
    @gitarplayer13 5 років тому +1

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

  • @LorraineB_0911
    @LorraineB_0911 5 років тому

    Ready to start plotting! Thank you!

  • @ericwang161
    @ericwang161 4 роки тому +1

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

  • @wes1588
    @wes1588 5 років тому +1

    Learned some new plotting commands, thanks!

  • @ryancazin5930
    @ryancazin5930 5 років тому

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

  • @helentat121
    @helentat121 5 років тому +1

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

  • @HIEPNGUYEN-wb7yg
    @HIEPNGUYEN-wb7yg 5 років тому +1

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

  • @veekashpatel953
    @veekashpatel953 5 років тому

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

  • @derekwflett
    @derekwflett 4 роки тому

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

  • @balaghathussain1
    @balaghathussain1 4 роки тому +4

    This is amazing sir!
    Thank you 😊

  • @masontelander3847
    @masontelander3847 4 роки тому +1

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

  • @mitchellnakaki7900
    @mitchellnakaki7900 4 роки тому +1

    Great video. learned quite a bit from this tutorial

  • @mrassbandit23
    @mrassbandit23 5 років тому +1

    Thanks for the tutorial!

  • @marcellodesario519
    @marcellodesario519 5 років тому

    Thanks for the succinct video Prof. Lum!

  • @fmusicede7384
    @fmusicede7384 2 роки тому

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

  • @ChristopherLum
    @ChristopherLum  4 роки тому +8

    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!

    • @rajupadhyay694
      @rajupadhyay694 4 роки тому

      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

    • @josephinemendela8775
      @josephinemendela8775 4 роки тому

      this is helpful, can you please elaborate on how to have years on the x axis

    • @marcusdylan8390
      @marcusdylan8390 3 роки тому

      pro trick: watch movies at Flixzone. Been using them for watching a lot of movies during the lockdown.

    • @orlandomordechai7012
      @orlandomordechai7012 3 роки тому

      @Marcus Dylan Definitely, have been using Flixzone} for months myself :D

  • @paulpietrowicz3916
    @paulpietrowicz3916 Рік тому +1

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

  • @minaanderberg884
    @minaanderberg884 4 роки тому +1

    Really interesting to know all the graph manipulations

  • @elijahleonen198
    @elijahleonen198 9 місяців тому

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

  • @alisoncaprioli4861
    @alisoncaprioli4861 4 роки тому

    Great video - scatter plot was new to me!

  • @jackkaniowski1579
    @jackkaniowski1579 3 роки тому +1

    This guy is an amazing teacher

  • @alanlee4326
    @alanlee4326 5 років тому

    Good overview of the plotting commands in MATLAB.

  • @aga080
    @aga080 3 роки тому

    you are a great teacher, thank you

  • @ajaysinghrathore1034
    @ajaysinghrathore1034 3 роки тому

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

  • @cjyoo1410
    @cjyoo1410 4 роки тому

    Thanks for the videos!

  • @sajeew
    @sajeew 4 роки тому +1

    this help me to refresh my matlab plotting
    Thank you
    Sam

  • @marissalamadrid8190
    @marissalamadrid8190 5 років тому +1

    Good to learn about plotyy being so easy in Matlab

  • @johnsmail2819
    @johnsmail2819 5 років тому

    Thanks for the tutorial.

  • @nadianazhatsabeeh8131
    @nadianazhatsabeeh8131 2 роки тому

    Thanks so much. It is a helpful review.

  • @HealthyPanic
    @HealthyPanic 3 роки тому +1

    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

  • @jonathonlaird6279
    @jonathonlaird6279 4 роки тому

    Thank you for the video on plotting in Matlab

  • @mylesdeluca8789
    @mylesdeluca8789 5 років тому

    Thank you for the video!

  • @shahiedsalim
    @shahiedsalim 3 роки тому

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

  • @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  Рік тому +1

      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

  • @dimitriosamanatidis9284
    @dimitriosamanatidis9284 3 роки тому

    Excellent Presentation. Very helpful and clear.

  • @krystoflis7157
    @krystoflis7157 5 років тому

    great overview of plotting in Matlab.

  • @peilin2428
    @peilin2428 4 місяці тому

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

  • @gurjeetjaggi8316
    @gurjeetjaggi8316 4 роки тому

    Great Refresher!!

  • @michaelrudolf9988
    @michaelrudolf9988 4 роки тому +1

    So much customization for plots!

  • @gustavobrito532
    @gustavobrito532 Рік тому

    thanks for the video it helped a lot

  • @larryfocus
    @larryfocus 2 роки тому

    Very concise and informative tutorial. Thank you.

    • @ChristopherLum
      @ChristopherLum  2 роки тому +1

      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

  • @ahmeds9346
    @ahmeds9346 3 роки тому

    very helpful
    thank you

  • @rowellcastro2683
    @rowellcastro2683 6 місяців тому

    AA516: Great refresher!

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

  • @kaisemuw7074
    @kaisemuw7074 5 років тому

    AE 511. Great overview of plot functions

  • @renowhitcomb5505
    @renowhitcomb5505 3 роки тому

    AE 501. Fall 2020. Thank you for the video

  • @priyanshugupta812
    @priyanshugupta812 2 роки тому

    Thank a lot!

  • @aishwaryabuyya3793
    @aishwaryabuyya3793 3 роки тому

    so much useful :)

  • @npraneeth6743
    @npraneeth6743 2 роки тому

    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

  • @PNW_SportsCards
    @PNW_SportsCards 5 років тому

    Good review on plotting in MATLAB

  • @lienchang8391
    @lienchang8391 5 років тому +1

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

  • @iman6189
    @iman6189 4 роки тому

    pretty well explained

  • @mansitomar1065
    @mansitomar1065 3 роки тому

    Superb Video!!

  • @sethwhittington28
    @sethwhittington28 3 роки тому

    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!

  • @poojitha
    @poojitha 4 роки тому +1

    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!

  • @samnoerpel7677
    @samnoerpel7677 5 років тому +1

    Nice video!

  • @Rainstorm121
    @Rainstorm121 3 роки тому

    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?

  • @academicstuff548
    @academicstuff548 Рік тому +1

    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

  • @melissawells8133
    @melissawells8133 4 роки тому

    Great review for the various commands in matlab

  • @masontelander3847
    @masontelander3847 4 роки тому

    Great video

  • @febinroshin6968
    @febinroshin6968 3 роки тому

    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!

  • @intuitionpoint9078
    @intuitionpoint9078 3 роки тому

    Well explained

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

  • @yeserashmekonnen1596
    @yeserashmekonnen1596 2 роки тому

    Thank you

  • @edwardsanchez2331
    @edwardsanchez2331 5 років тому

    AE511. Good refresher on Matlab commands.

  • @siddiqc871
    @siddiqc871 5 років тому +1

    Make a session for full coarse
    This video was good

  • @tmendoza6
    @tmendoza6 3 роки тому

    fantastic

  • @bryanmasserang5190
    @bryanmasserang5190 5 років тому +1

    Shows some of the depths to Matlab plotting functions

  • @samudravishalmukherji7329
    @samudravishalmukherji7329 4 роки тому

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

  • @lidular
    @lidular 4 роки тому +1

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

    • @ChristopherLum
      @ChristopherLum  4 роки тому +1

      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!

  • @arturosanmillan6668
    @arturosanmillan6668 4 роки тому

    Thank u!

    • @ChristopherLum
      @ChristopherLum  4 роки тому

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

  • @humankrazykidz7565
    @humankrazykidz7565 3 роки тому

    Good info

  • @darylfishback-duran3580
    @darylfishback-duran3580 5 років тому +1

    AE511, thanks for the info!

  • @davedesmond1574
    @davedesmond1574 4 роки тому +1

    Love plotting in matlab