Prev: Problem compiling CUDA
Next: Bilinear interpolation???
From: Rajkumar R on 29 Sep 2009 04:15 Hi.. I have a text file which is an output of some other program. Say this text file has strings like below. "Hi World Hi People Hi You" Now I have another program which needs to append a matrix with this text file from fourth line. If I give "dlmwrite(output_file, h{j}, 'delimiter', '\t', 'newline', 'pc')" it simply replaces the contents. How to append the matrix with the strings? Regards Raj
From: Nasser Abbasi on 29 Sep 2009 04:23 "Rajkumar R" <rrk_000(a)yahoo.co.in> wrote in message news:h9sfmo$ad1$1(a)fred.mathworks.com... > Hi.. > > I have a text file which is an output of some other program. Say this text > file has strings like below. > > "Hi World > Hi People > Hi You" > > Now I have another program which needs to append a matrix with this text > file from fourth line. If I give "dlmwrite(output_file, h{j}, 'delimiter', > '\t', 'newline', 'pc')" it simply replaces the contents. How to append the > matrix with the strings? > > Regards > Raj > Did not use dlmwrite. But why not simply fopen the file for append? using 'a' or 'a+' then every thing you write will be appended to the end. help fopen --Nasser __________ Information from ESET NOD32 Antivirus, version of virus signature database 4465 (20090928) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
|
Pages: 1 Prev: Problem compiling CUDA Next: Bilinear interpolation??? |