Question

1. Perform the following operations in MATLAB a. Use diff to find the derivative of y = cx2 and use subs to evaluate the resulting function at x = 10 and c = 2.5. Solve dy/dt = The frame shown in the figures below has a load P-1000 lb applied at an angle α-30 degrees. The frame dimensions das and dAD are 16 and 12, respectively. Assuming the surface at each support is frictionless, the following equations can be developed b. ty using dsolve, y(0) = 3, and plot the solution in the interval t-lo 2]. 2. bin, 6 is Fy = 0 = D+E-Pcos (a) Write a MATLAB code to find the reaction forces using backlash. Print the answers to the screen using fprintf Ans (A-327 4 lb B = 827.4 lb, D-620.5 lb, e = 245.5 lb)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION TO PROBLEM 1

a)CODE:

**********************************************************************************

syms x
c=2.5;
y=c*x^2;
dy=diff(y)
subs(dy,x,10)

************************************************

OUTPUT:

dy =

5*x


ans =

50

b)CODE:

************************************************************************

syms y(t) t
eqn=diff(y,t)==t*y;
cond=y(0)==3;
ySol(t)=dsolve(eqn,cond)
t=0:2
plot(t,ySol(t))
xlabel('t');
ylabel('y')

**************************************************

OUTPUT;

ySol(t) =

3*exp(t^2/2)

PLOT:

25 20 15 10 5 0 0.2 0.4 0.6 0.8 1 12 1.4 1.6 1.8 2

Add a comment
Know the answer?
Add Answer to:
1. Perform the following operations in MATLAB a. Use diff to find the derivative of y...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle...

    write MATLAB scripts to solve differential equations. Computing 1: ELE1053 Project 3E:Solving Differential Equations Project Principle Objective: Write MATLAB scripts to solve differential equations. Implementation: MatLab is an ideal environment for solving differential equations. Differential equations are a vital tool used by engineers to model, study and make predictions about the behavior of complex systems. It not only allows you to solve complex equations and systems of equations it also allows you to easily present the solutions in graphical form....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT