Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
pls someone do post the code

Respuestas (1)

TED MOSBY
TED MOSBY el 18 de Jun. de 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!

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by