MATLAB: I have 4X4 stiffness matrix and evey element in matrix is a vecor. How to write ‘for’ loop for this matrix so that I will get number of matrices according to variable as element in the matrix

index

I am trying to vary my matrix of size 4X4. The element in the given matrix are the vectors of 10X1. Please help

Best Answer

I don't see where is the problem. For example:
k1=2;
k2=3;
A=[112 2+k1; 2*k1+k2 12]
%If you want to change A, just change the values of k1 and k2,
k1=4;
k2=10;
A