Meesha Lini Eesan
2015년부터 활동
Followers: 0 Following: 0
Feeds
질문
I did this codes but its not working,can anyone figure out whats wrong?
T = imread('tanker.jpg'); imag = T; [m, n] = size(imag); m n figure, imshow(imag) I2 = zeros(floor(m/2),flo...
9년 초과 전 | 답변 수: 2 | 0
2
답변답변 있음
Write a function to determine which elements of an array are even numbers (i.e., …, -4, -2, 0, 2, 4, …). Your function should return a logical array of the same size as the input with 1s (TRUE) in the locations corresponding to even numbers.
A = [-10,-9,-8,-7,-6,-5,-4,-3,-2,1,0,1,2,3,4,5,6,7,8,9,10] % I assign -10 to 10 vector A. B = ~mod(A,2) %I used this funct...
Write a function to determine which elements of an array are even numbers (i.e., …, -4, -2, 0, 2, 4, …). Your function should return a logical array of the same size as the input with 1s (TRUE) in the locations corresponding to even numbers.
A = [-10,-9,-8,-7,-6,-5,-4,-3,-2,1,0,1,2,3,4,5,6,7,8,9,10] % I assign -10 to 10 vector A. B = ~mod(A,2) %I used this funct...
9년 초과 전 | 0