Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
matlab code of shifting and folding of two sequences
1. % MATLAB CODE for folding of sequence
close all;
clear all;
clc;
p=input('enter the value of p');
q=input('enter the value of q');
n=-p:q;
xn=input ('enter the sequence x(n) of length p+q+1');
subplot(211)
stem(n,xn)
xlabel('---->n');
ylabel(' input sequence x(n)');
title('plot of x(n)');
grid on;
subplot(212)
stem(-n,xn);
xlabel('---->n');
After running the program put the value of p, q , sequence x(n) like below
enter the value of p3
enter the value of q 2
enter the sequence x(n) of length p+q+1 [ 1 2 3 4 5 6]