I had trouble replacing some trouble when the string I wanted to replace had '.' symbol. I am using MATLAB 2013b on Ubuntu 12.04 kernel 3.2.0-58-generic.
I ran the function like this:
This function worked correctly for one line of my file (the one I wanted to change):
sOpt.suffix = '.iq';
sOpt.suffix = '.buf';
The problem occurred for this line (which I did not want to change):
sOpt.datadir = 'iqdata/';
sOpt.datadir = .bufdata/';
I found I had no problems if I ran the function either of the following ways:
Maybe this is a trait of PERL, not sure. Thought I'd share on the off chance that anyone else runs into that problem.
Thanks for the code.
18 Feb 2014
Exports figures nicely to a number of vector & bitmap formats.