From: Amit on
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
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
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.