idk im stuck much appreciated if someone can help me: %% A man weighing Wm Newto
ID: 3559838 • Letter: I
Question
idk im stuck much appreciated if someone can help me:
%% A man weighing Wm Newtons is lifting a load of WL Newtons.
%% The body is flexed at angle ? degrees at the waist and rotated to the right.
%% The upper body weighs 2/3 the weight of the man.For analytical purposes,
%% the origin is taken at the L-3:L-4 junction and the coordinate system
%% is aligned with the vertebral body with the x-axis anterior, the y-axis
%% to the left and the z-axis superior as shown in the figure. The upper
%% body weight vector Bw, the weight vector W, the muscle force of the
%% deep back muscle M, the disc force, S and the disc torque T are given as
%% a. Write a matlab code to determine the muscle (M), disc force(S) and
%% disc torque (T) when the angle ? changes from 15 degrees to 60 degrees.
%% Assume the man to weigh 600 Newton and the lifting load to be 500 Newton
%Bw = 2/3*Wm*(cos(thetai)+0j+sin(theta*k)); %% Upper body vector Newtons
%WL2= WL *(cos(thetai) + 0j+ sin(theta*k)); %% Newtons
%rbw = (0.127*cos(thetai))-(0.216j)+(0.0127*sin(theta*k)); %% meters
%rw = (0.283*cos(thetai)) - (0.283j) + (0.283*sin(theta * k)); %% meters
%rm = (-0.05i)+0j+0*k; %% meters
%rs = 0;
%torque = txi+0j+ty*k; %% Torque Newton meters
%S = sxi+ syj+ sz*k; %% Disc force Newtons
%M = 0i+0j+M*k; %% Muscle support force Newtons
%% Equilibrium equation
%force = Bw + WL+ M+ S;
%Ms = (rbw * Bw)+ (rw * WL) + (rm* M) + (rs * S);
WL = 500; %% mass of 500 Newtons
Wm = 600; %% mass of man Newtons
theta = [15: 25:50]; %% degree from 15 to 60 in degrees
%Equations:
for i = 1:length(theta)
Sx=(-2/3* Wm - WL) .*cosd(theta);
Sz=(-2/3* Wm + WL) .*sind(theta);
Tx=(-0.144*Wm-0.283*WL).*sind(theta);
Tz=(-0.169*Wm-0.566*WL).*cosd(theta).*sind(theta);
M= (-0.283*WL).*cosd(theta);
A = [1 0 0 0 0;
0 1 0 0 1 ;
0 0 1 0 0 ;
0 0 0 0 0.05;
0 0 0 1 0];
B = [ Sx; Sz; Tx; Tz; M];
x = AB;
end
%% b. Plot the above force and torque against the angle.
%% Be sure to label and title your graphs
figure (1)
plot(theta,x);
legend('Sx','Sz','Tx','Tz','M');
grid on;
xlabel('Angle(Degrees)');
ylabel('Torque (N*m)');
title('Reaction force and Tension at varying angles');
Explanation / Answer
i hope this matlab code is correct by logic. where are you getting errors? give me the lines in which you are getting error. i will check and correct those lines.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.