<div dir="ltr">I'm trying to use dipoli algorithm for BEM generation using the function: <div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg = [];</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.method=<span class="gmail-s1" style="color:rgb(160,32,240)">'dipoli'</span>;</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">cfg.spmversion = <span class="gmail-s1" style="color:rgb(160,32,240)">'spm12'</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">vol = ft_prepare_headmodel(cfg, segmentedmri)</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">I get the following error: </p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">using the executable "/Users/pp/Documents/MATLAB/fieldtrip-20200408/external/dipoli/dipoli.maci"<br>/private/var/folders/bp/tc3bps1s72v2s4rqd82k1w8h0000gn/T/tp6c367f3f_b5f6_4086_8ccc_eed138d85f7c.sh: line 3: /Users/pp/Documents/MATLAB/fieldtrip-20200408/external/dipoli/dipoli.maci: Bad CPU type in executable<br>Error using ft_headmodel_dipoli (line 211)<br>an error ocurred while running the dipoli executable - please look at the screen output<br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica"><br></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:10px;line-height:normal;font-family:Helvetica">Can some one help me in solving this problem?</p><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><br><div><div dir="ltr"><div><div dir="ltr">Ing. Pierpaolo Croce, PhD.<br>Institute for Advanced Biomedical Technologies - ITAB<br>and<br>Department of Neuroscience and Imaging<br>University of Chieti "G. D'Annunzio"<br>Via dei Vestini, 33<br>66013 Chieti, Italy</div></div></div></div></font></span></div></div></div></div></div></div></div></div>