thetha=0:1:90;for i=1:length(thetha)c(i)=cosd(thetha(i));s(i)=sind(thetha(i));T(i)=[c(i)^2 s(i)^2 -2*s(i)*c(i); s(i)^2 c(i)^2 2*s(i)*c(i);s(i)*c(i) -s(i)*c(i) (c(i)^2)-(s(i)^2)];end
MATLAB: Hello. I am new to matlab and I have this problem. I need to store 91 different 3×3 matrices. Yet I get this error ‘Subscripted assignment dimension mismatch.’ Can someone help me out. Many thanks
for loopmatrix
Best Answer