Use a dashed line style for the stem, set the marker symbols to stars, and set the color to magenta. The colors of those plots are chosen automatically if you do not use the Color parameter. stem(Y) plots the data sequence Y as stems that extend from equally spaced and automatically generated values along the x-axis. Create a 3-D stem plot of cosine values between - and. Here we discuss an introduction to Matlab Plot Colors, along with color code table and respective examples. stem () applied to real () and imag () of that is going to create 40 different stem plots. 2 ) Example 2.15 : Plot line options Stem Plot A similar function to plot is the. 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. Table 2.2 : Plot line colors and styles in MATLAB Specifier Color. (-x2) stem (X,Y, 'filled', 'r') What i want to do is to have the two series with different color. MATLAB can be used to plot our data for visualizing and intuitively understanding it. Different colors for multiple data series with stem plot - MATLAB Ask Question Asked 8 years, 7 months ago Modified 8 years, 7 months ago Viewed 2k times 1 x1 0:1:10 x2 0.5:1:10 X x1, x2 Y (1/1.4).x1, (2). 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) For this example, we will scatter plot of red color
0 Comments
Leave a Reply. |