# How to generate functional connectivity matrices after first-level analysis in CONN toolbox?

I have a single subject data(T1w and rs-fMRI BOLD). I am wanting to generate functional connecitivty matrix after preprocessing the raw fMRI. I already used CONN toolbox to do the entire preprocessing. I have now completed the first-level analysis as well.

Since I am wanting to calculate FC matrix, I have computed ROI-to-ROI connectivty during first-level analysis. I belieive this is the correct way forward. I am having the output file named "resultsROI_Subject###_Condition###.mat". Can someone please show me how to compute FC matrix values using this file.

I am extracting 'Z' values from "resultsROI_Subject###_Condition###.mat". I am then calculating correlation coefficients of Z using MATLAB 'corrcoef' function. So the resultant matrix that I get after doing this MATLAB operation, is it the FC matrix that I want?

Here is the Z matrix obtained after running CONN preprocessing pipeline. Z is of size (RoI$$\times$$RoI). Here, the number of RoI is 105. Z represents Fischer-transformed correlation coefficient between each source and target RoI.

Here is the result after applying MATLAB tanh function. MATLAB code -> Z_tanh = tanh(Z);

• I haven't used that specific toolbox, but is this not covered at web.conn-toolbox.org/tutorials ? Jul 5 '19 at 19:37
• No, its not given there. Jul 6 '19 at 8:41
• Given that FC is kind of the bread and butter of fMRI I am skeptical you should need to do this manually with a distributed package... Jul 6 '19 at 9:01
• I've been talking behind the scenes with other mods. Across the SE network we kind of lack the expertise in this field. Another mod suggested you 'computerize' your Q and enter some code and some outputs so people can have more insight in the code issues. Even then it may not be answerable, but then we could migrate it to another site for you with more computer science experts.
– AliceD
Jul 6 '19 at 11:22
• Added matrix visualizations and MATLAB function for transformation. Jul 9 '19 at 9:15