Hi Tide man,
thanks for reply. it works with "blanks"
Edward
TideMan <nztideman@yahoo.co.nz> wrote in message <j1ajo6$qvo$1@dontemail.me>...
> On 3/08/2011 2:45 p.m., edward kabanyas wrote:
> > Hi All,
> > I add some texts with the following code:
> >
> > hText = text(15, 32, ['a0=', num2str(a0, '%.2f\t')]) ,
> > hText = text(15, 31, ['a1, b1=', num2str(an(1), '%.2f\t\t'),
> > num2str(bn(1), '%.2f\t' )]) ,
> > hText = text(15, 30, ['a2, b2=', num2str(an(2), '%.2f\t\t'),
> > num2str(bn(2), '%.2f\t')]) ,
> >
> > output:
> > a0=25.95
> > a1, b1=3.853.34
> > a2, b2=2.391.45
> >
> > There is not space between the values, What I hope is:
> > a0= 25.95
> > a1, b1= 3.85 3.34
> > a2, b2= 2.39 1.45
> >
> > Do you have experience with such problems ? Thanks for sharing
> >
> > EDward
> Instead of tabs (i.e., \t) try using preceding spaces: ' %0.2f'
