use vector and scalar multiplication to evaluate the following linear combination: 3       3 2 1 0 −1       + 1.52       −2 0 2 4 6       − √3       −2 1 4 7 10] in matlab

main.m
% Define the matrices
A = [3 2 1 0 -1];
B = [-2 0 2 4 6];
C = [-2 1 4 7 10];

% Define the scalar values
alpha = 3;
beta = 1.52;
gamma = -sqrt(3);

% Evaluate the linear combination
result = alpha * A + beta * B + gamma * C;
disp(result);
239 chars
14 lines

related categories

gistlibby LogSnag