IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
set_title.m
Go to the documentation of this file.
1 %>@ingroup graphicsapi
2 %>@file
3 %>@brief Sets figure title sensitive to object passed
4 %>
5 %> Uses the objects's @ref irobj::title property. If it is empty, simply uses @c s
6 %
7 %> @param s Specific title
8 %> @param obj Object get @ref irobj::title from
9 function set_title(s, obj)
10 
11 st = s;
12 if ~isempty(obj.title)
13  st = ['"', obj.title, '" - ', st];
14 end;
15 title(st);