Codeswitching is a hallmark of the flexibility of bilingual language control. Yet the processes that mediate how listeners selectively attend to and control their languages during codeswitching remain poorly understood. Here, we demonstrate that a language switch during real-time listening induces a broad attentional state in which language membership is minimized and resources from both languages are explored. This feat speaks to the flexibility and efficiency to which bilinguals draw on resources associated with language control as they selectively attend to and extract linguistic information on the fly.
Matlab Scrambling Script
img=imread('Perro.jpg');
blockSize = 5;
nRows=size(img, 1)/blockSize;
nCols=size(img, 2)/blockSize;
scramble=mat2cell(img, ones(1, nRows) * blockSize, ones(1, nCols) * blockSize, size(img,3));
scramble=cell2mat(reshape(scramble(randperm(nRows*nCols)), nRows, nCols));
subplot(1,2,1), imshow(img); title('Source image');
subplot(1,2,2), imshow(scramble); title('Scramble image');
imwrite(scramble, 'Perro_scrambled_.jpg')