Hi everyone, I'm starting to use the field trip toolbox and I've read the example in the link below, to compute forward simulated data and apply dipole fitting, but the example describes how to do it for two dipoles only:<br>
<a href="http://fieldtrip.fcdonders.nl/example/compute_forward_simulated_data_and_apply_a_dipole_fit">http://fieldtrip.fcdonders.nl/example/compute_forward_simulated_data_and_apply_a_dipole_fit</a><br>my question is how to do it with more than two dipoles. I've tried to aply the same scheme for 128 dipoles <br>
I've done this for the dipole moments part:<br>>> for i=1:128<br>moms(i,3*(i-1)+1)=1;<br>end<br>>> moms=moms';<br>>>cfg.dip.mom=moms;<br>>> for i=1:128<br>si(i,:)=sin(i*3*time*2*pi);<br>end<br>
cfg.dip.signal={si};<br>and I'm getting the next error message in the dipolefitting part:<br>>> dip1 = dipolefitting(cfg, avg3);<br>the input is timelock data with 30 channels and 250 timebins<br>using headmodel specified in the configuration<br>
using electrodes specified in the configuration<br>selected 30 channels<br>selected 250 topographies<br>Warning: not enough channels to perform a dipole fit<br>> In dipolefitting at 438<br>??? Error using ==> dipolefitting at 471<br>
inconsistent number of dipoles in configuration<br><br>