Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

matlab code for 11-point sequence x(n) = 10 (0.8)n , 0 ≤ n ≤ 10, determine and plot x ((n − 6))15

1 Ansicht (letzte 30 Tage)
Gopika B M
Gopika B M am 13 Jan. 2022
Geschlossen: Dyuman Joshi am 18 Jun. 2025
pls someone do post the code

Antworten (1)

TED MOSBY
TED MOSBY am 18 Jun. 2025
Hi,
Asssuming the equations written in your question are these:
x(n)=10(0.8)^n, 0n10
x((n6))_15
To get started you can follow the steps below:
1. Generate the original sequence:
n0 = 0:10;
x0 = 10*(0.8).^n0;
2. Place it in a length-15 frame:
N = 15;
n = 0:N-1;
x = zeros(1,N);
x(1:numel(x0)) = x0;
3. Apply the circular shift. MATLAB’s built-in circshift shifts and automatically wraps modulo N. A positive shift on a row vector moves samples to the right.
k = 6;
y = circshift(x,k); % y = x((n-6))_15
4. Visualize:
stem(n,y,'filled'), grid on
title('x((n-6))_{15}')
xlabel('n'), ylabel('Amplitude')
Here is more information about "circshift" : https://www.mathworks.com/help/matlab/ref/circshift.html
Hope this helps!

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by