RF Geek

PLOTYY : 2-D line plots with y-axes on both left and right side

This section explains how to plot more than two graphs on two y-axes using plotyy function in MATLAB. plotyy(X1,Y1,X2,Y2) plots X1 versus Y1 with y-axis labeling on the left(y1-axis) and plots X2 versus Y2 with y-axis labeling on the right. plotyy(X1,Y1,X2,Y2,’function’) uses the plotting function specified by the string ‘function’ […]  Label Maximum and Minimum in MatLab Figure

Sometimes it is required to label the minimum and maximum values of a plot in a Matlab figure. The code snippet below demonstrate that functionality, for minimum and maximum values along the y-axis. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 […]

Legend Settings in MatLab

This post describes how to handle expression and background color of legend box in MatLab figures. We can print LaTex expressions in legend box, by instructing the legend to interpret the following string as latex expression. Create the handle to legend box and set the interpreter option to latex as […]  Numbering Subplots in MatLab

This post describes how to mark subplots as , , and and give a common title for all subplots. Consider the case where we want to mark subplot(2,2,1) as . The circle around the letter is produced using latex command textcircled{a}. MatLab understands it as a latex command due to […]

Symbol classifier for LaTex

It is not impossible, but difficult to remember the syntax for all the symbols we use in latex documents. Even I find it painful to go through a cheat-sheet that contain the syntax for the symbols. I came across an online tool, where you can scribble online with mouse and […]  LaTex Table with Colored alternate Rows

To highlight alternate rows in a table with different colors, use the command \rowcolors{1}{blue!15}{white} {2} row number from where alternate colors should start. Row ‘2’ in this case. {blue!15} start with blue color. {white} alternate row color is white Swap the colors, to change the colors ordering. You have to […]