<div dir="ltr">Hello,<div><br></div><div>I want to simulate a dipole with different orientation</div><div>and compare eeg to meg</div><div><br></div><div><br></div><div>I find in your script this:</div><div>%% Evaluate the quality of the result using RDM and MAG<br>rdms = zeros(1,size(lf_openmeeg,2));<br>for ii=1:size(lf_openmeeg,2)<br>  rdms(ii) = norm(lf_openmeeg(:,ii)/norm(lf_openmeeg(:,ii)) - lf_sphere(:,ii)/norm(lf_sphere(:,ii)));<br>end<br>mags = sqrt(sum(lf_openmeeg.^2))./sqrt(sum(lf_sphere.^2));<br>disp(['RDMs: ',num2str(rdms)]);<br>disp(['MAGs: ',num2str(mags)]);<br></div><div><br></div><div>does 

RDM and MAG is suitable to my comparing? if no, can you please let me know which I should use?</div><div><br></div><div>Regards</div><div>AQ</div></div>