Prev: ksdensity
Next: Removing characters from a string?
From: Mark Hard on 12 Feb 2010 12:23 Hi, I have 2 strings, one called "nset=_PickedSet5," and one called "_PickedSet5," (both including the comma at the end) which are both read in automatically from a text file. I would like to add 2 bits of code after each of them that would make them both equal to "PickedSet5". Can anyone reccoment me a command to do this?I've tried experimenting with ismember and strread but can't seem to get it to work. Any help would be greatly appreciated. Mark.
From: Walter Roberson on 12 Feb 2010 12:27 Mark Hard wrote: > Hi, > > I have 2 strings, one called "nset=_PickedSet5," and one called > "_PickedSet5," (both including the comma at the end) which are both read > in automatically from a text file. I would like to add 2 bits of code > after each of them that would make them both equal to "PickedSet5". newstring1 = string1(7:end-1); newstring2 = string2(2:end-1);
|
Pages: 1 Prev: ksdensity Next: Removing characters from a string? |