<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Davide,<div><br></div><div>Perhaps putting the filename as a 'string' may do the trick. In that case it was indeed silly ;-).</div><div><br></div><div>BW,</div><div><br></div><div>JM</div><div><br><div><div>On Feb 22, 2012, at 11:04 AM, Davide Rivolta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks again for the help. I still get an error regarding the name. Maybe is silly.</div>
<div> </div>
<div>This is my script:</div>
<div> </div>
<div> </div>
<div>for i = 1:size(mri,1)<br>    fullname = strcat(inpath, mri{i,1}, '_V2.mri');<br>    mri_V2 = ft_read_mri(fullname);<br>    <br>    cfg = [];<br>    cfg.parameter = 'anatomy';<br>    cfg.filename = mri_V2;<br>
    cfg.filetype = 'nifti';<br>    ft_volumewrite(cfg, mri_V2);<br>    <br>end;<br><br></div>
<div>?? Error using ==> fileparts at 17<br>Input must be a row vector of characters.</div>
<div>Error in ==> ft_volumewrite at 411<br>    [pathstr, name, ext] = fileparts(cfg.filename);</div>
<div> </div>
<div> </div>
<div> </div>
<div>
<div>Thanks again,</div>
<div>Davide</div></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Wed, Feb 22, 2012 at 10:47 AM, jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div style="WORD-WRAP:break-word">Dear Davide, 
<div><br></div>
<div>Did you try 'anatomy' ?</div>
<div><br></div>
<div>BW,</div>
<div><br></div>
<div>Jan-Mathijs</div>
<div>
<div class="h5">
<div><br></div>
<div><br>
<div>
<div>On Feb 22, 2012, at 10:05 AM, Davide Rivolta wrote:</div><br>
<blockquote type="cite">
<div>Thank you for the replies.</div>
<div>I am trying with ft_volumewrite.</div>
<div> </div>
<div>I have a small problem. the configuration wants me to specify the cfg.parameter, that is a "string, describing the functional data to be processed, e.g. 'pow', 'coh' or 'nai' ".</div>

<div>I am a bit confused, since I have anatomical data, and I am not sure what to put here. </div>
<div> </div>
<div>Any ideas?</div>
<div> </div>
<div>Thanks a lot,</div>
<div>Davide<br><br><br></div>
<div class="gmail_quote">On Tue, Feb 21, 2012 at 6:05 PM, jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div style="WORD-WRAP:break-word">Hi Davide, 
<div><br></div>
<div>If you use ft_read_mri to read in your *.mri you can use ft_volumewrite to save the volumetric data as nifti. You can look into the documentation of ft_volumewrite to see how this works.</div>
<div><br></div>
<div>Best,</div>
<div><br></div>
<div>Jan-Mathijs</div>
<div><br>
<div>
<div>
<div>
<div>On Feb 21, 2012, at 11:17 AM, Davide Rivolta wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div>
<div style="MARGIN:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font face="Calibri">Dear all,</font></font></span></div><p style="MARGIN:0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Calibri"> </font></span></p>
<div style="MARGIN:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font face="Calibri">I wish to ask whether there is a way to import anatomical CTF files (.V2) into SPM.</font></font></span></div><p style="MARGIN:0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Calibri"> </font></span></p>
<div style="MARGIN:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font face="Calibri">Thanks,</font></font></span></div>
<div style="MARGIN:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font face="Calibri">Davide</font></font></span></div><br clear="all"><br>-- <br>Davide Rivolta, PhD<br><br></div></div>
<div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote></div><br>
<div><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word">
<div>Jan-Mathijs Schoffelen, MD PhD </div>
<div><br></div>
<div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div>
<div><br></div>
<div>Max Planck Institute for Psycholinguistics,</div>
<div>Nijmegen, The Netherlands</div>
<div><br></div>
<div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a></div>
<div>Telephone: <a href="tel:%2B31-24-3614793" target="_blank" value="+31243614793">+31-24-3614793</a></div></div></span></div></span></div></span></div></span></div></span></span></div><br></div></div><br>_______________________________________________<br>
fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Davide Rivolta, PhD<br><br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote></div><br>
<div><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word">
<div>Jan-Mathijs Schoffelen, MD PhD </div>
<div><br></div>
<div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div>
<div><br></div>
<div>Max Planck Institute for Psycholinguistics,</div>
<div>Nijmegen, The Netherlands</div>
<div><br></div>
<div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a></div>
<div>Telephone: <a href="tel:%2B31-24-3614793" target="_blank" value="+31243614793">+31-24-3614793</a></div></div></span></div></span></div></span></div></span></div></span></span></div><br></div></div></div></div><br>_______________________________________________<br>
fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Davide Rivolta, PhD<br><br>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>