![]() ![]() Here we discuss an introduction to Matlab Plot Colors, along with color code table and respective examples. There could be instances when we have to plot multiple functions in a single plot, in such cases, colors become very handy to differentiate between different functions. ![]() ![]() MATLAB can be used to plot our data for visualizing and intuitively understanding it. Observe in the output that we have obtained a scatter plot of red color, as passed by us in the input argument. Observe in the code that we have passed pre-defined color code for red as an argument (Please refer to the table at the end of the article for pre-defined color codes) Note: For this example, we will be creating our functions in following colors: 1 st function in Green, 2 nd function in Blue and 3 rd function in Yellow example: plot (X, a, ‘g’, X, b, ‘b’, X, c, ‘y’) Plotting our functions Observe in the code that we have passed pre-defined color codes as arguments (Please refer to the table at. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |