Thank you so much for your reply.
My code is as follows:
clc;clear;
X_All=readtable(‘data.csv’);
X=X_All{:,2:179}(1:20,:);
Y=X;
inputs.nTrials = 1; % use trial-averaged covariances in AR estimation
inputs.standardize = true; % zero mean and unit variance
inputs.flagFPE = true; % allow different orders for each pair of signals
inputs.lag = 3; % estimate causality in variance using lag-3 ARCH model
inputs.flagELM = true; % find the optimal lag rather than always given lag
inputs.rho = 50; % parameter to tune estimation of ARCH model
[inMean, inVariance] = bst_granger(X, Y, 5, inputs); % every pair in X
However, when I run the code, it shows the following error:
Transpose on ND array is not defined. Use PERMUTE instead.
Error in bst_correlation (line 122)
** connectivity(:, :, nSteps+1) = X*X’ / (size(X,2) - 1);**
Error in bst_vgarch (line 206)
** W = bst_correlation(epsilon, [], struct(‘normalize’, false, ‘nTrials’, 1, ‘maxDelay’, 0, ‘nDelay’, 1,**
** ‘flagStatistics’, false));**
Error in bst_granger (line 263)
** bst_vgarch(‘vec’, residual, inputs.nTrials, inputs.lag, 0, inputs.flagELM, 3, ‘on’, 999, [], inputs.rho,**
** false, [], [], [], []); %#ok**
Error in Yjl_test (line 11)
[inMean, inVariance] = bst_granger(X, Y, 5, inputs); % every pair in X