Question: So I have to create the Right Hand Side function file of the function below in MATLAB. I NEED HELP WITH THE CODE given: g,k,m

So I have to create the "Right Hand Side" function file of the function below in MATLAB. I NEED HELP WITH THE CODE

given: g,k,m and the intial x,y,and zs and velocities

The right hand side is the (xdot,vxdot, ydot,vydot, zdot, vzdot) correct?.

s=sqrt(x^2+y^2+z^2)

delta s=sqrt(x^2+y^2+z^2)-s0

So I have to create the "Right Hand Side" function file ofthe "right hand side" to my knowledge is the equations to the right of the equal sign vdots

Example: "vdotx =-k/m deltaS(x/s)" the right hand side would be the -k/m Delta S(x/s)

I need to make a function that will work at system of dynamic equations that I am going to integrate.

The system of equations are the vdots and x,y,z dots

Would I put it into a matrix like [xdot; vxdot; ydot; vydot; zdot; vzdot]

3. DYNAMIC MODEL The states are: x-x position y y position z-z position Vx - x velocity vy-y velocity vz - z velocity The time derivative of each position is just the corresponding velocity: The time derivative of the velocity vector is the acceleration: U-a. The acceleration is the total force divided by the mass (10) Given the acceleration vector, the three components of the velocity state derivatives are, of course: (12) (13) Im 3. DYNAMIC MODEL The states are: x-x position y y position z-z position Vx - x velocity vy-y velocity vz - z velocity The time derivative of each position is just the corresponding velocity: The time derivative of the velocity vector is the acceleration: U-a. The acceleration is the total force divided by the mass (10) Given the acceleration vector, the three components of the velocity state derivatives are, of course: (12) (13) Im

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!