![]() ![]() In this example, we have added another line to the existing line as mentioned in the above example. To plot another line and specify the labels of the legend using DisplayName property of the legend in the plot command. ![]() In the above example, the legend for the two lines is shown in the top right corner of the plot, one line depicting the values for the function sin(a) and the other line depicting the values for the function sin(2a). To plot two lines and display the legend in the present chart. Please find the below examples that explain the use of legends in Matlab: Example #1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |