MatLab


Inset figure in MatLab 2

This post explains how to plot data in main-inset figure. In inset figure a portion of main figure data is plotted in close-up. Some people referred to it as figure-within-figure or figure-inside-figure. To plot main-inset figure, follow the steps here: Create a handle to main figure Plot the data of […]


MatLab Startup

At startup time, MATLAB automatically executes the file matlabrc.m . This function establishes the MATLAB path, sets the default figure size, and sets some uicontrol defaults. matlabrc At startup time, MATLAB automatically executes the file matlabrc.m . This function establishes the MATLAB path, sets the default figure size, and sets […]


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 […]