|
|||
Department of Engineering | |
University of Cambridge > Engineering Department > computing help |
surf(peaks(10)); % Make the axis numbering smaller than usual set(gca,'FontSize',8) % Have z tic marks at intervals of 0.5 set(gca,'ZTick',-8:0.5:8) set(gca,'ZTickLabel',-8:0.5:8) % Label the Z axis zlabel = get(gca,'ZLabel'); set (zlabel,'String','D(b/3)') set (zlabel,'FontName','Symbol')
The text command can deal with maths and changes of font styles. For example,
text(0,1,'{\bf bold} \alpha=x^3. \Sigma x \leq \int y \forall x')works as LATEX users might expect. The title and labelling commands are similar. More colorful information can be added by using
| computing help | |