gistlib
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 chars14 lines
% 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);
gistlibby LogSnag