Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.
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
Here is my 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

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

Which form of proof do you find most persuasive? Why?

Answered: 1 week ago