Question
Transform the next code from Mathematica into Matlab. Also add at the end a table where the results can be seen, we are seeking for
Transform the next code from Mathematica into Matlab. Also add at the end a table where the results can be seen, we are seeking for the highest value. And if possible, a plot or graph. Thanks.
W = 105; (*Peso del objeto [N]*) P = 0.279; (*Largo de la plataforma [m]*) x = 0.1395; (*Distancia de la carga W en relacion a Ay [m]*) L = 0.2; (*Longitud de las tijeras [m]*) {Slider[Dynamic[t], {15, 70, 5}], Dynamic[t]} (*Angulo de las tijeras*) Ay = (x/P - 1) W; (*Reaccin en Ay*) By = (x/P) W; (*Reaccin en By*)
sol = Solve[{ Cx + Ex == 0, Cy + Ey == Ay, ((L/2*Sin[t]) Cx) + ((L/2*Cos[t]) Cy) == (L*Cos[t]*Ay), -Cx + Dx == 0, -Cy + Dy == By, ((L/2*Sin[t]) Dx) - ((L/2*Cos[t]) Dy) == (L/2*Cos[t]*By), Fy + Gy == Ey, Fx + Gx == -Ex, ((L*Cos[t]) Ey) + ((L*Sin[t]) Ex) - ((L/2*Cos[t]) Fy) + ((L/2* Sin[t]) Fx) == 0, Fx - Hx == Dx, Fy - Hy == Dy, ((L/2*Sin[t]) Dx) + ((L/2*Cos[t]) Dy) + ((L/2*Sin[t]) Hx) + ((L/ 2 Cos[t]) Hy) == 0}, {Cx, Ex, Cy, Ey, Dx, Dy, Fy, Gy, Fx, Gx, Hx, Hy}]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started