I haven't used cell arrays in Matlab and have question.
I have 2 cell arrays c and l. I want c to have 10 matrices of dimension 10 x 785. I want to loop through each row of the matrices in c.
For example, I want to replace each of these rows with another vector. How can I do it?
Here is the code that I currently have
k=10;
c={10};
l={10};
for v=1:10
c{v}=rand(k,d);
end
for a=1:10
l{a}=zeros(k,1);
end
for s=1 : 10
for j=1:k
l{s}=c{s,???}*xn';
end
end
in the final loop, I try to show which cell of c and l. But, how can I access each row of c{1}?