<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.ie8.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.mouse.woff') format('woff'),         url('https://r4.res.outlook.com/owa/prem/15.0.908.10/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}
<!--
.hmmessage p
        {margin:0px;
        padding:0px}
body.hmmessage
        {font-size:12pt;
        font-family:Calibri}
-->
--></style>
</head>
<body dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello Stefania,</p>
<p><br>
</p>
<p>If you asked about how to write&nbsp;a Stejskal-Tanner scheme file, which is a text file, you could use Matlab.</p>
<p><br>
</p>
<p>After constructing the matrix,&nbsp;e.g.: </p>
<p><em>ST_scheme=[directions; |G|;&nbsp; DELTA; delta TE];</em></p>
<p>you can write it out via:</p>
<p><br>
</p>
<p><em>scheme_str=strcat('data.scheme');</em><br>
<em>dlmwrite(scheme_str, ST_scheme, 'delimiter', ' ', 'precision', '%.6f');</em><br>
<em>% write first line</em><br>
<em>dlmwrite('output.txt', 'VERSION: STEJSKALTANNER', 'delimiter', '');</em><br>
<em>% append rest of file</em><br>
<em>dlmwrite('output.txt', fileread(scheme_str), '-append', 'delimiter', '');</em><br>
<em>% overwrite on original file</em><br>
<em>movefile('output.txt', scheme_str);</em></p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> camino-users-bounces@www.nitrc.org &lt;camino-users-bounces@www.nitrc.org&gt; on behalf of stefania oliviero &lt;stefania.oliviero@hotmail.it&gt;<br>
<b>Sent:</b> 24 March 2014 7:35 AM<br>
<b>To:</b> camino-users@www.nitrc.org<br>
<b>Subject:</b> [Camino-users] schemefile generation</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr"><style>
<!--
.hmmessage p
        {margin:0px;
        padding:0px}
body.hmmessage
        {font-size:12pt;
        font-family:Calibri}
-->
</style>
<div dir="ltr">Hi All, <br>
I have a question about the generation of a schemefile. I have an acquisition scheme like this:<br>
<br>
nx ny nz&nbsp; delta&nbsp; DELTA&nbsp; G&nbsp;&nbsp;&nbsp; &nbsp; TE<br>
<br>
0&nbsp;&nbsp; 0&nbsp;&nbsp; 0&nbsp; &nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 0 &nbsp;&nbsp;&nbsp; 30<br>
5&nbsp;&nbsp; 10 0&nbsp; &nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 80&nbsp;&nbsp; 50<br>
... <br>
<br>
with nx, ny and nz as gradient directions. <br>
How can I report all these information in a scheme file? I would like to explicit in the file.scheme the values of delta, DELTA, G and TE. Which schemefile version can I use, please?<br>
The only scheme file version explained in the DTI tutorial is the BVECTOR one. <br>
<pre class="escaped">VERSION: BVECTOR
nx_1 ny_1 nz_1 b1</pre>
Thanks a lot<br>
Cheers<br>
<br>
Stefania Oliviero<br>
Universit&agrave; degli Studi di Napoli Federico II<br>
ITAB, Universit&agrave; degli Studi G. d'Annunzio di Chieti<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>