I'm creating my own function in Matlab and I want to be able to display it like so below, when I type 'lookfor'.
>> lookfor mean
mean - Average or mean value.
msfun_metronomean - METRONOMANIMATION S-function for making metronomean animation.
mameannorm - normalizes microarray data by dividing by global mean.
distfcm - Distance measure in fuzzy c-mean clustering.
fcm - Data set clustering using fuzzy c-means clustering.
initfcm - Generate initial fuzzy partition matrix for fuzzy c-means clustering.
stepfcm - One step in fuzzy c-mean clustering.
I've heard it can be done by typing a line directly below the declaration of the function as can be seen below:
function [outputArgs] = TestFunction(inputArgs)
%TESTFUNCTION Summary of this function goes here
However I've tried this and it still doesn't appear in the list of lookups?
Any help would be greatly appreciated.
Thanks in advance!