An EEG dataset .txt , I want to transpose the rows and columns for all files.
5 visualizaciones (últimos 30 días)
Star Strider el 7 de Sept. de 2023
I would still keep them as they are in the files, and transpose them after you read the files.
EEG = readmatrix('S9 HC.txt') % Original
EEGT = EEG.' % Transposed
You can also use the transpose, .' function for this.
In MATLAB there are two kinds of matrix transposition, ‘normal’ transposition (.') and complex conjugate transposition provided by the ctranspose, ' function ('). For real numbers, these are equivalent, however not for complex numbers. For N-dimensional matrices, there is also pagetranspose, that does a non-conjugate transposition, and for good measure, I will introduce you to the permute function.
Abderrahim. B el 3 de Sept. de 2023