From: Sebastiaan on 2 Nov 2009 05:51 "Cedric " <cedriccioi(a)gmail.com> wrote in message <hcmcvt$m4e$1(a)fred.mathworks.com>... > "Sebastiaan " <s.breedveld(a)erasmusmc.REMOVE.BOO.BOO.nl> wrote in message <hcmbqd$2od$1(a)fred.mathworks.com>... > > If you modify your file slightly: > > > > > > % > > > % > > > % > > > % > > > DataFolder='..\..\Data\rtsc'; > > > UPath='SupportingData\um.txt'; > > > VPath='SupportingData\vm.txt'; > > > Mask='SupportingData\m.out'; > > > TestModelUMaskPath='%s TestModelVMaskPath=%s TestModelMask=%s' > > > > i.e. placing a ' ' around the strings, you can just run it in Matlab: > > run('control') > > it defines the variables DataFolder, UPath, etc. as above. > > > > An m-file is just a text file and is much easier to invoke in Matlab. > > > > Maybe not an answer to your question, but a nice alternative :) > > > > Sebastiaan > > Its a great alternative :) Thank you > > I m curious as to whether i was using textscan correctly in the code posted above? as ideally i would be reading the variable name and data from a text file. Well, my few attemps with textscan were not very fruitful either :) What I see in the example above is that the last line is not terminated with a ; but with a '. Sebastiaan
|
Pages: 1 Prev: Procrustes Analysis without Reflection Next: Always recieve error after m-file execution |