for j=1:length(p)
stress(:,:,j)=(Q(:,:,1)*strain(:,:,j)); if mod(j, 2) == 0 % j is even
else % j is odd
end
end
for loopif statement
stress(:,:,j)=(Q(:,:,1)*strain(:,:,j)); if mod(j, 2) == 0 % j is even
else % j is odd
end
Best Answer