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.
![nmin % initializing given variables E = 29000000 A = 3.4 L = 200 d = [0.02; 0.04] % calculating temporary variable to calcula](http://img.homeworklib.com/questions/2da62020-f12a-11eb-b0c0-bb85637c2103.png?x-oss-process=image/resize,w_560)
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...