CHAR convert a pole object into a string. M Hewitson 02-04-07 $Id: char.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $
0001 function pstr = char(p) 0002 0003 % CHAR convert a pole object into a string. 0004 % 0005 % M Hewitson 02-04-07 0006 % 0007 % $Id: char.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $ 0008 % 0009 0010 pstr = ['pole(' num2str(p.f)]; 0011 if p.q > 0.5 0012 pstr = [pstr ',' num2str(p.q)]; 0013 end 0014 pstr = [pstr ')']; 0015 0016 pstr = strrep(pstr, '_', '\_'); 0017 0018 % END