x = linspace(0,2*pi,100) x = Columns 1 through 7 0 0.0635 0.1269 0.1904 0.2539 0.3173 0.3808 Columns 8 through 14 0.4443 0.5077 0.5712 0.6347 0.6981 0.7616 0.8251 Columns 15 through 21 0.8885 0.9520 1.0155 1.0789 1.1424 1.2059 1.2693 Columns 22 through 28 1.3328 1.3963 1.4597 1.5232 1.5867 1.6501 1.7136 Columns 29 through 35 1.7771 1.8405 1.9040 1.9675 2.0309 2.0944 2.1579 Columns 36 through 42 2.2213 2.2848 2.3483 2.4117 2.4752 2.5387 2.6021 Columns 43 through 49 2.6656 2.7291 2.7925 2.8560 2.9195 2.9829 3.0464 Columns 50 through 56 3.1099 3.1733 3.2368 3.3003 3.3637 3.4272 3.4907 Columns 57 through 63 3.5541 3.6176 3.6811 3.7445 3.8080 3.8715 3.9349 Columns 64 through 70 3.9984 4.0619 4.1253 4.1888 4.2523 4.3157 4.3792 Columns 71 through 77 4.4427 4.5061 4.5696 4.6331 4.6965 4.7600 4.8235 Columns 78 through 84 4.8869 4.9504 5.0139 5.0773 5.1408 5.2043 5.2677 Columns 85 through 91 5.3312 5.3947 5.4581 5.5216 5.5851 5.6485 5.7120 Columns 92 through 98 5.7755 5.8389 5.9024 5.9659 6.0293 6.0928 6.1563 Columns 99 through 100 6.2197 6.2832 myImage = sin(x)' * cos(x); whos Name Size Bytes Class Attributes ans 4x7 224 double laplacian 5x5 200 double myImage 100x100 80000 double x 1x100 800 double myImage = (myImage +1) * 32; figure(1);colormap(gray);axis off;axis equal; image(myImage) axis off; myImage(3:13,:) = 0; image(myImage) myImage(:,3:13) = 64; image(myImage) border = ones(size(myImage,1),15) * 52; image([myImage, border, myImage]) axis off; axis equal; image([myImage, border, flipup(myImage)]) {Undefined function 'flipup' for input arguments of type 'double'. } image([myImage, border, flipud(myImage)]) image([myImage, border, fliplr(myImage)]) image([myImage, border, rot90(myImage)]) axis off; axis equal; image([myImage, border, triu(myImage)]) image([myImage, border, tril(myImage)]) result = repmat(myImage, 3,4); image(repmat(myImage,3,4)) image(repmat(myImage,10,100)) clc myArray = rand(3,4) myArray = 0.6177 0.5767 0.8865 0.1679 0.8594 0.1829 0.0287 0.9787 0.8055 0.2399 0.4899 0.7127 myArray = randi(10,3,4) myArray = 6 7 6 9 5 1 1 8 1 1 9 2 reshape(myArray,2,6) ans = 6 1 1 6 9 8 5 7 1 1 9 2 myArray2 = randi(10,3,4) myArray2 = 7 7 5 2 6 9 9 2 10 5 1 4 myArray myArray = 6 7 6 9 5 1 1 8 1 1 9 2 myArray3(1:2:2*size(myArray,1),:) = myArray myArray3 = 6 7 6 9 0 0 0 0 5 1 1 8 0 0 0 0 1 1 9 2 myArray3(2:2:2*size(myArray,1),:) = myArray2 myArray3 = 6 7 6 9 7 7 5 2 5 1 1 8 6 9 9 2 1 1 9 2 10 5 1 4 A1 = myArray; A2 = myArray2; A3 = reshape([A1(:)';A2(:)'],size(A1).*[2,1]) A3 = 6 7 6 9 7 7 5 2 5 1 1 8 6 9 9 2 1 1 9 2 10 5 1 4 A1(:) ans = 6 5 1 7 1 1 6 1 9 9 8 2 A1(:)' ans = 6 5 1 7 1 1 6 1 9 9 8 2 A2(:)' ans = 7 6 10 7 9 5 5 9 1 2 2 4 myArray myArray = 6 7 6 9 5 1 1 8 1 1 9 2 find(myArray) ans =