![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6323233_1522113608430_DEF.jpg)
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 years 前 | 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 years 前 | 0