function M = linkomb(v,A)
% Ugyanolyan meretu matrixok lin. kombinacioja
% v = {v1,v2,…,vm} a lin. komb. egyutthatoi (cellakent)
% A = {A1,A2,...,Am} ugyanannyi db matrix (cellakent)
m = length(v);
[k, l] = size(A{1});
M = zeros(k, l);
for i = 1:m
M = M + v{i}*A{i};
end
