for 𝑨 = [ 4 −1 −2 1 ], 𝑩 = [2 1 −1], 𝑪 = [−1 2 3 0 0 1], 𝑫 = [7 4] calculate the atd in matlab

main.m
A = [4, -1, -2, 1];
B = [2, 1, -1];
C = [-1, 2, 3, 0, 0, 1];
D = [7, 4];

atd_A = mean(A); % Average of elements in A
atd_B = mean(B); % Average of elements in B
atd_C = mean(C); % Average of elements in C
atd_D = mean(D); % Average of elements in D
250 chars
10 lines

related categories

gistlibby LogSnag