Here is the code for your problem.
% initializing given variables
E = 29000000
A = 3.4
L = 200
d = [0.02; 0.04]
% calculating temporary variable to calculate k
temp = E * A / L
% initializing k matrix
k = [temp -temp; -temp temp]
% result given y matrix product
f = k * d
Here is the screenshot of the code if the indentation is not clear.
Here is the output of the code.
Hope this helps.
Please rate the answer if you like it.
Do leave a comment.Any suggestion/query is much appreciated.
Problem MEX-02 (Points: 3/10). According to the matrix structural analysis theory, the internal force vec- tor...