[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file output
From: |
marco atzeri |
Subject: |
Re: file output |
Date: |
Thu, 15 Mar 2012 17:28:26 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
On 3/15/2012 4:50 PM, octave_newbie wrote:
I have an additional question regarding file outputs.
If I have a string matrix (I have a matrix of hex-colors), for example:
COLORS = [FFB400
FFB400
FFA400
FFA400
FF9400];
When I save to file using the command:
save output.txt COLORS
I get annoying # messages every other line. Is there a way to suppress
those?
Output file:
# elements: 10174
# length: 6
FFB400
# length: 6
FFB400
# length: 6
FFA400
# length: 6
FFA400
# length: 6
FF9400
in this case the best option seems
dlmwrite( "output.txt", COLORS, "")
I was suggesting
save( "-ascii", "output.txt", "COLORS")
but it seems that the strings are converted on decimal values
so not exactly what you are looking for..
Marco
- file output, octave_newbie, 2012/03/15
- Re: file output,
marco atzeri <=