Thread Subject: Wrinting text into a .txt file

Subject: Wrinting text into a .txt file

From: Luis Villamagua

Date: 2 Jan, 2012 16:38:08

Message: 1 of 2

I am trying to save the following text in a .txt file.

 '(1) x= -52 y= -22 z= +61; T = +4.78 (MNI: -52/-18/+56)'
 '(Left Postcentral Gyrus - Probably GM [52/23])'
"
 '(2) x= -42 y= -22 z= +71; T = +4.73 (MNI: -42/-18/+66)'
 '(Left Precentral Gyrus - Probably GM [58/16])'

I am editting a opens source code so that is what I got from that code. Everything (5 lines) is saved in a unique variable called MLev.

Thanks in advance,
Luis M. Villamagua
   

Subject: Wrinting text into a .txt file

From: Godzilla

Date: 2 Jan, 2012 18:24:09

Message: 2 of 2

"Luis Villamagua" <luis.villamagua@hotmail.com> wrote in message <jdsmhg$7hv$1@newscl01ah.mathworks.com>...
> I am trying to save the following text in a .txt file.
>
> '(1) x= -52 y= -22 z= +61; T = +4.78 (MNI: -52/-18/+56)'
> '(Left Postcentral Gyrus - Probably GM [52/23])'
> "
> '(2) x= -42 y= -22 z= +71; T = +4.73 (MNI: -42/-18/+66)'
> '(Left Precentral Gyrus - Probably GM [58/16])'
>
> I am editting a opens source code so that is what I got from that code. Everything (5 lines) is saved in a unique variable called MLev.
>
> Thanks in advance,
> Luis M. Villamagua
>

help fprintf

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com