Question: How would i go about solving this with the preset funcions being % define constants m 1 = 2 ; % kg m 2 =

How would i go about solving this
with the preset funcions being
% define constants
m1=2; %kg
m2=3;%kg
k1=1; %N/m
k2=2;
c1=0.2;
c2=0.1;
% set initial conditions
xold =[0.1;0]; %m
vold =[0;0]; %m/s
[xsave1,xsave2,timesave]= spring_mass(m1,m2,k1,k2,c1,c2,xold,vold);Simulate the response of a stacked spring mass dampener system using Euler's method.
k1=1,k2=2,m1=2,m2=3,c1=0.2,c2=0.1
See slides (CourseWork)017_0_COMP_CW3.pptx for equations of motion.
!!!DO NOT!!! change dt or maxsteps!
Function
function [xsave1,xsave2,timesave]= spring_mass , vold

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!