Plot the following analog signals in MATLAB Plzz Help?

3 views (last 30 days)
Plot the following analog signals in MATLAB(30)
T= 0:0.001:5
1. x(t) = sin(t)
2. x(t) = u(t-1) + delta(t-2)
3. x(t) = u(t-1) -u(t-3)
Plot the following discrete signals in MATLAB(30)
N= -5:5
1. x[n] = u[n-2]+u[n+1]
2. x[n] = u[n+1]-u[n-3]
3. x[n] = 4*u[n-1]-2*u[n]
Check the system (30)
X[n] = (0.8) ^n * u[n]
1. memoryless?
2. Stable?
3. Causal?
Define (10)
1. Causality
2. Stability
3. Memoryless in signals

Answers (1)

Image Analyst
Image Analyst on 21 Oct 2015
Hint: (Assuming T and t are the same):
t = 0:0.001:5
x = sin(t);
plot(t, x, 'b-', 'LineWidth', 2);
grid on;
xlabel('t', 'FontSize', 20);
ylabel('x', 'FontSize', 20);
For the ones that deal with n and n-1, you'll need a for loop. Look up "for" in the help
> doc for
I assume you can finish it now. Post your code with any problems. I would also assume that by N they also mean n. MATLAB is case sensitive, and the problem writers don't seem to know this fact.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!