From: Walter Roberson on 29 Jul 2010 19:18 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 29 Jul 2010 19:29 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'];
First
|
Prev
|
Pages: 1 2 Prev: How to turn matrix elements into Ones? Next: Data Cursor in Matlab Figure |