Info
此问题已关闭。 请重新打开它进行编辑或回答。
matlab code for 11-point sequence x(n) = 10 (0.8)n , 0 ≤ n ≤ 10, determine and plot x ((n − 6))15
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
TED MOSBY
2025-6-18
Hi,
Asssuming the equations written in your question are these:
x(n)=10(0.8)^n, 0≤n≤10
x((n−6))_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!
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!