Prev: optimized values plot
Next: how to create an array with 2 rows and 4096 columns for storing image intensity values using for loops
From: Amit on 3 Apr 2010 18:06 Hi everyone, I have a very simple question. I'm writing a matrix to a txt file using dlmwrite, but i wish to improve my code and for that I need to do the following: I want to have a string header in the first 5 rows of the txt file Then, I want a matrix to follow Then another 4 rows of string Then another matrix and finally, another row of string. Is that possible? Thanks in advanced!
From: ImageAnalyst on 3 Apr 2010 18:44 I have a very simple answer: fprintf() It's no more difficult than dlmwrite but it will give you much more flexibility over what you write out.
From: Amit on 3 Apr 2010 18:56
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <b83c678b-9552-4d87-b735-eaf91c787ebb(a)k15g2000vbd.googlegroups.com>... > I have a very simple answer: fprintf() > > It's no more difficult than dlmwrite but it will give you much more > flexibility over what you write out. Thanks a lot ImageAnalyst, it sure is simple. |