Question: Calculate Piecewise Function and its Visualization 0 solutions submitted ( max: Unlimited ) Write a MATLAB program to evaluate and plot the piecewise function f

Calculate Piecewise Function and its Visualization
0 solutions submitted (max: Unlimited)
Write a MATLAB program to evaluate and plot the piecewise function f(t) described below versus t. The plot should be appropriately annotated.
f(t)={A1cos(1t+1),0t0.5sA1cos(1t+1)e-bt,0.5t1.5s
Execute your program for two cases:
A1=8.5,1=20rads,1=-2rad,b=1.75
and
A1=8.5,1=20rads,1=-2rad,b=2.75
Hints: you can create separate arrays for the two time ranges t1 and t2, evaluate the piece-wise function f(t) for each piece t1 and t2(creating f1 and f2), and then concatenating the t pieces and the f(t) pieces for plotting f(t) versus t.
In MATLAB the function exp(x) gives the value of the exponential function ex.
Use something like )(0.5 as the end boundary of the first range.
 Calculate Piecewise Function and its Visualization 0 solutions submitted (max: Unlimited)

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!