From: Walter Roberson on
Peter Smith wrote:
> walter that now works, but i still need to encoporate _chix.mat after
> the dates; i.e i need something like
>
>> FullFnames = sprintf('C:\\Users\\Alex Eptas\\Desktop\\ChiXDaily\\%s',
>> dates{i},_chix.mat);
>
> any solutions??

FullFnames = sprintf('C:\\Users\\Alex Eptas\\Desktop\\ChiXDaily\\%s_chix.mat',
dates{i});

Personally I wouldn't bother with sprintf since you do not need to do any
format conversions:

FullFnames = ['C:\Users\Alex Eptas\Desktop\ChiXDaily\' dates{i} '_chix.mat'];
From: Peter Smith on
Thanks Walter you are the man!
Just out of interest what would your reccomendation have been??

Walter Roberson <roberson(a)hushmail.com> wrote in message <i2t2fp$pkd$2(a)canopus.cc.umanitoba.ca>...
> Peter Smith wrote:
> > walter that now works, but i still need to encoporate _chix.mat after
> > the dates; i.e i need something like
> >
> >> FullFnames = sprintf('C:\\Users\\Alex Eptas\\Desktop\\ChiXDaily\\%s',
> >> dates{i},_chix.mat);
> >
> > any solutions??
>
> FullFnames = sprintf('C:\\Users\\Alex Eptas\\Desktop\\ChiXDaily\\%s_chix.mat',
> dates{i});
>
> Personally I wouldn't bother with sprintf since you do not need to do any
> format conversions:
>
> FullFnames = ['C:\Users\Alex Eptas\Desktop\ChiXDaily\' dates{i} '_chix.mat'];