From: us on 25 Jul 2010 15:01 "rajesh " <rajesh.shaw(a)gmail.com> wrote in message <i2i0c7$hfj$1(a)fred.mathworks.com>... > Hi , > I have a text file, with following entries(for example).. > > 120 4; 5; 6; 7 > 130 8; 1; 4; 6 > > Now I want to remove all the semicolon from the text file so that the output becomes following: > > 120 4 5 6 7 > 130 8 1 4 6 > > I am trying to use 'textread' or 'textscsan' function but not able to get the desired output. > Any help/suggestion would be appreciated. show CSSM the code you've used to slurp your data... us
From: Walter Roberson on 25 Jul 2010 16:09 rajesh wrote: > I have a text file, with following entries(for example).. > > 120 4; 5; 6; 7 > 130 8; 1; 4; 6 > > Now I want to remove all the semicolon from the text file so that the > output becomes following: > > 120 4 5 6 7 > 130 8 1 4 6 > > I am trying to use 'textread' or 'textscsan' function but not able to > get the desired output. > Any help/suggestion would be appreciated. textscan() with ';' included in the Whitespace characters.
|
Pages: 1 Prev: What is wrong on this animation code? Next: reading textfile ! |