I would like to analyze and graph the causality direction from local field potential data recorded at two different brain regions. In the graph, I would like to show the x-axis(frequency: 1 to 100 Hz) and y-axis granger causality including each information which causality of form A to B, or B to A.
Could you show me a simple example script? I would like to have a simple script example.
Thank you.
I have tried analysis of Granger causality using toolbox, but I haven’t still rolve error.
The following error message appears:
Error while using: assert
some x indices out of range
error: autocov_to_smvgc (行 95)
assert(all(x >=1 & x <= n),’some x indices out of range’);
error: Granger_causality_ver1 (行 67)
[f,fres] = autocov_to_smvgc(G,x,y,fres,useFFT);
T.O is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.