www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/IncludeVariablesValueinTitleExample.m

    %% Include Variable's Value in Title  
% Include the value of variable |c| in a title.   

% Copyright 2015 The MathWorks, Inc.


%%  
figure
plot((1:10).^2)
f = 70;
c = (f-32)/1.8;
title(['Temperature is ',num2str(c),' C'])