Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I do this problem in Matlab help, code want run eval command and I need help corecting the code. Please do not answer

How do I do this problem in Matlab help, code want run eval command and I need help corecting the code. Please do not answer if you do not konw how to fix the code. Please insure the code runs befor answering. Please note that the e^-st not e^-5t.
Calculate and plot the total response of the springmassdamper system with m =100 kg,\zeta =0.1, and k =1000 N>m to the signal defined by:
with maximum force of 1 N. Assume that the initial conditions are zero, and let T =2\pi s.
F(t)={4Tt-1,0tT21-4T(t-T2),T2tT
Code:
clc,clear,close all;
m =100;
c =63.25;
k =1000;
T =2*pi;
syms s t
expr1=(exp(-s*t)*((t/T)-1));
expr2=(exp(-s*t)*((1-(1/T)*(t-(T/2)))));
F =(4/(1-exp(-2*pi*s)))*(int(expr1,t,0,pi)+(int(expr2,t,pi,2*pi)));
X = F/(m*s^2+c*s+k);
x = simplify(ilaplace(X));
t =0:0.001:3;
xn = eval(x);
plot(t,xn)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions