Prev: axes in uipanel not clipping patches (yet another uipanel bug?)
Next: Matlab / VBA / Excel energy opportunity in Houston
From: Andrew Peckat on 23 Jul 2010 15:40 i'm attempting to save data to an ascii text file. Matlab will create the txt file and inserts some header: "MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jul 23 15:31:42 2010" and then begins to write my data, the only problem is that i get the following error because of this header: "Number of columns on line 2 of ASCII file C:\Program Files\MATLAB704\work\Peckat\2010_07_\data153141.txt must be the same as previous lines." how do i stop it from making the header or, adjust the columns. completely lost as to what i should do as a solution to this problem.
From: Steven_Lord on 23 Jul 2010 15:45 "Andrew Peckat" <apeckat(a)indiana.edu> wrote in message news:i2cr71$c2l$1(a)fred.mathworks.com... > i'm attempting to save data to an ascii text file. Matlab will create the > txt file and inserts some header: > > "MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jul 23 15:31:42 > 2010" That is a binary MAT-file, NOT an ASCII text file. > and then begins to write my data, the only problem is that i get the > following error because of this header: > > "Number of columns on line 2 of ASCII file C:\Program > Files\MATLAB704\work\Peckat\2010_07_\data153141.txt > must be the same as previous lines." > > how do i stop it from making the header or, adjust the columns. > completely lost as to what i should do as a solution to this problem. You probably forgot to include the -ascii flag in your call to SAVE. See HELP SAVE for more information on this flag. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: dpb on 23 Jul 2010 15:42
Andrew Peckat wrote: > i'm attempting to save data to an ascii text file. Matlab will create > the txt file and inserts some header: > > "MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Jul 23 15:31:42 > 2010" .... > how do i stop it from making the header or, adjust the columns. > completely lost as to what i should do as a solution to this problem. doc save Particularly read the part about -ASCII. The header is included only in binary files. -- |