- You can create an array for n and use array indexing to make the step function. Please refer to the below documentation to learn more about array indexing: https://www.mathworks.com/help/matlab/math/array-indexing.html
- You can use arithmetic operations to create the h and x discrete time signals. Please refer to the below documentation to convolve the two discrete time vectors: https://www.mathworks.com/help/matlab/ref/conv.html#:~:text=Create%20two%20vectors%20and%20convolve%20them.
- Please refer to the below documentation to learn how to plot the resulting discrete signal (y): https://www.mathworks.com/help/matlab/ref/plot.html
- A preferred alternative for plotting discrete time signals is “stem” plot. Please refer to the below documentation to learn more about stem plot: https://www.mathworks.com/help/matlab/ref/stem.html
Please help me the question about discrete time unit step function and convolution
8 views (last 30 days)
Show older comments
I want to make two discrete time functions and then calculate their convolution and plot it.
how do i do it?
h[n] = 0.8^n{u[n − 2] − u[n − 11]} and x[n] = 2{u[n + 2] − u[n − 10]}.
y[n]=(x[n])convolution(h[n])
I am stucked for a long time.Please help me.
0 Comments
Answers (1)
Sai Pavan
on 28 Sep 2023
Edited: Sai Pavan
on 28 Sep 2023
Hi Min-Da Yu,
I understand that you are trying to make two discrete time functions, convolve them and plot the output.
Hope it helps.
Regards,
Sai Pavan
0 Comments
See Also
Categories
Find more on Logical 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!