![]() ![]() B has the same values of A but the order of. In general, the ith dimension of the output array is the dimension dimorder (i) from the input array. B permute(A,order) rearranges the dimensions of A so that they are in the order specified by the vector order. For example, permute (A, 2 1) switches the row and column dimensions of a matrix A. Then I get the same array of matrices in lnA for both the MATLAB and R implementations. Description example B permute (A,dimorder) rearranges the dimensions of an array in the order specified by the vector dimorder. ![]() If I add lnA = cell(T, NumModalities) to the MATLAB script before your final for loop and then modify the inside of the loop to be lnA(outcomes(modal,tau),:,:,:,:,:),) Permute values in a specific column of a matrix. R does that by default unless you specify drop = FALSE when you subset an array, e.g., lnA] <- a],drop = FALSE] MATLAB - Permute columns of a matrix given a matrix of indices. ![]() In the MATLAB script, permute appears to be simply dropping excess dimensions. I don't think you actually need an equivalent for permute. The test statistic is T-Sum - the total of t-values within a cluster of contingent above-threshold data points. permute (MATLAB Functions) permute Rearrange the dimensions of a multidimensional array Syntax B permute (A,order) Description B permute (A,order) rearranges the dimensions of A so that they are in the order specified by the vector order. Based on Maris & Oostenveld 2007 for 1-D and 2-D vectors. I believe I successfully replicated the MATLAB script in R. Permutation test (non-parametric test for significance) for dependent or independent measures of 1-D or 2-D data. hanges the dimensions of the handle object array to the specified dimensions. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |