how to plot v=exp(-5*t​)*(-2*cos(​14*t)+(exp​(-5*t)*(0.​068*sin(14​*t)))+10);

Answers (5)

First you must create a array t, this array has the posible values of t. By example, if you want plot t in the interval [0,10] with 1001 points in the interval, use the next code:
t=linspace(0,10,1001);
Next you must calculate the value of v to each element of the vector t, use this code:
v=e.^(-5*t).*(-2*cos(14*t)+(e.^(-5*t).*(0.068*sin(14*t)))+10);
The last command is plot:
plot(t,v);
To get more information go to plot function's online documentation
For each one of the following signals:
1. x(t) = cos (2πt/5) + sin(2πt/15)
2. g(t) = e^tu(t)
3. v(t) = {2, −5 ≤ t < −1
−2sin(πt), −1 ≤ t < 0
2sin (πt), 0 ≤ t < 1
−2, 1 ≤ t < 5
Using MATLAB:
a) Plot the signal
b) Find whether the signal is power or energy signal or neither power nor energy.
c) Plot the instantons energy or power & fill the area under the curve.
d) Compute the size of the signal

1 Comment

I do not understand how this answers the question that Othman posted?

Sign in to comment.

Generate the following signal using MATLAB/Python and plot to visualize the
generated signal. Also, use the “sound” command to observe the evoked sensation.
5exp(-2t) * sin(2πft) where, f=20 Hz and total time duration 3 seconds.

1 Comment

I do not understand how this answers the question that Othman posted?

Sign in to comment.

h(t) = 2[3exp(2t)-exp(-2t)]/[3exp(2t)+exp(-2t)]

2 Comments

No, that is not valid MATLAB syntax: MATLAB has no implied multiplication. This will not solve the problem that was asked for.
Note that in practice you will probably need to use ./ instead of /

Sign in to comment.

Tags

No tags entered yet.

Asked:

on 20 Dec 2015

Commented:

on 23 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!