I'm trying to perform a summation omega is a scaler and eigenVecs are vectors there are i (19) of them. I want to sum them into 1 vector I want to store that sumations in faceRecon{1} the next in faceRecon{2} so forth and so on.
for i =1:N/PicDup;
for j =1:k;
faceRecon{i} += mtimes(omega{i,j},eigenVecs{i});
end;
end;
%N/PicDup = 7; k = 35;
i get this error-> error: operator +: nonconformant arguments (op1 is 0x0, op2 is 11088x1);
I kind of understand the error i need to initialized op1 a cell array that is {1x7} and inside each one of those cells in need to make them 11088x1.
How do I do this? Is this even possible ? Is there a better cleaner way to do this ?
Many thanks in advanced. Any and all helps is greatly appreciated.
+=is not a valid MATLAB operator. - Suever