I do not understnad the reason why MATLAB display error when I type the following lines in the command line.
k=2;
c=[0 0 0 1 0 0 0 0;0 0 0 0 1 0 0 0];
temp1=[1 0;2 0;1 0;5 0;9 0;5 0;6 0;7 0];
s=c*temp1;
w(2,k)=s
Subscripted assignment dimension mismatch.
>> s
s =
5 0
9 0
where w(2,k) is nothing but a 2x2 matrix and assigned 2x2 matrix and it still display that error. I would like to thank the person who ever out there can help better my understandings on this topic.
wwith the contents ofs? Also, what isw? You didn't define it in your example code. - Marius