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