Code covered by the BSD License
Andrew French (view profile)
05 Jul 2011
18 Apr 2013)
Wield the power of OpenGL and create ammonites, Klein bottles and curious spheria!
function outstring = leadingzero(X,N)
outstring = [strrep(blanks(N-1 - fix(log10(X))),' ','0'),num2str(X,3)];