www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/LabelxaxiswithNumericInputExample.m
%% Include Variable Value in x-Axis Label % Add a label with text and a variable value. Use the |num2str| function to % include a variable value in the label. plot((1:10).^2) year = 2014; xlabel(['Population for Year ',num2str(year)])