Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In MATLAB write a program/script that given the parameters from problem 15.120 (

ID: 2086021 • Letter: I

Question

In MATLAB write a program/script that given the parameters from problem 15.120 (in Vector mechanics for engineers - Beer- 11th edition chapter 15) that plots the acceleration of the piston “P” for angles of “theta” between 0 and 360 degrees. Fully document your script. Publish your MATLAB code file that includes a plot of the acceleration on the y axis and the angle (in degrees) on the x axis. In MATLAB write a program/script that given the parameters from problem 15.120 (in Vector mechanics for engineers - Beer- 11th edition chapter 15) that plots the acceleration of the piston “P” for angles of “theta” between 0 and 360 degrees. Fully document your script. Publish your MATLAB code file that includes a plot of the acceleration on the y axis and the angle (in degrees) on the x axis.

Explanation / Answer

X=[0.5 0.5;0.5 1;1 1.5;1.5 0.5;1.5 2;2 1;2.5 2;2.5 2.5];
Y=[-1;-1;-1;-1;1;1;1;1];
q=size(X,1);
eps=(1e-s);
N=zeros(q,q);
for i=1:q
for j=1:q
w(i,j)=Y(i)*Y(j)*X(i,1)*X(j,1);
end
end
f=-ones(q,1);
necons=1;
A=N';
b=o;
vlb=zeros(q,1);
vab=inf*ones(q,1);
x0=zeros(q,1);
[lamda alpha h]=q+(N,f,A,b,vlb,vab,x0,necons)
svindex=find(lamda>eps);
ns=length(svindex);
w0=(1/ns)*sum(Y(svindex)-N(svindex,svindex)*lamda(svindex)*Y(svindex);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote