Back to Thomas Hulin's Homepage
Note: I programmed this in function 2014, i.e. before Matlab introduced their more beautiful grid function.
As I am using Matlab for some of my research work, I wondered if there is a way to obtain nice grids for the plots that I am using in my scientific publications. The standard Matlab grid function creates only a black grid of black dotted lines, which really does not look nice to my opinion. Unfortunately, I could not find any satisfactory alternative in the internet. Thus, I decided to implement an own grid function that draws a pretty grid with the following properties:
This is how the result may look like:
You can download and use the dlrGrid function for free (BSD 2Clause License). Before using it, you must rename the file to "dlrGrid.m" (it was not possible on this server to upload files with "m" as suffix). Hint: type set(gca,'Box','off') to turn off the black box around the current Matlab axis.
If you like this function, I would be happy if you could send me an email, if possible with a screenshot of your figure. If you wish, I post your sceenshot on this page.
You may also be interested in having a look at my journal article on "Passivity and Stability Boundaries for Haptic Systems with Time Delay" (IEEE Xplore account required), in which all figures were generated using this function.
Short Description
Credits 

Short Description
Credits 

Short Description
Credits 