1.a: I have a piece of code that generates a particular text 10 times (see below), how can I do this without a loop?
1.b. I have also a text file somewhere in which there is a particular symbol "[$1]" (excluding the quotation marks), I would like to replace [$1] with the resulting string in 1.a. ( If I use a loop as above to generate the string, it is easy, but I want to be able to do this operation without a loop)
s1= 'this is a new house';
s2='Gas 1000 2 3 4 water ';
s3=[s2,' ', r, char(10)];
s6= [s6 s1,char(10),s3,s4,char(10),rr];
I appreciate your comments and help.