Watch this Author's files
It can be a great tool...
But it only works if you give the row of firstcell is between 1 and 9.
Export2Excel(data,'B2') will work.
Export2Excel(data,'BB2') will work.
Export2Excel(data,'B22') will not work.
??? Undefined function or variable "lastcell".
Error in ==> Export2Excel at 84
lastcell = strcat(lastcell,num2str(m+(row_number-1)));
The nanmin.m and nanmax.m files can be downloaded here :
It could be nice if Ned adds these two files in his distribution.
You could have added an extra output which gives the values of the local peaks or throughs.