Click on SHOW MORE , and you will get the code . Anyway I am posting here also for your convenience --> clc clear all close all x=input('Enter the signal'); k=input('Enter the required amount of expansion'); Y=[]; j=k-1; for i=1:length(x) Y=[Y x(i)]; if(i~=length(x)) for m=1:j Y=[Y 0]; end end end
what about x[3n] sir?
There is no code in the description
Click on SHOW MORE , and you will get the code . Anyway I am posting here also for your convenience -->
clc
clear all
close all
x=input('Enter the signal');
k=input('Enter the required amount of expansion');
Y=[];
j=k-1;
for i=1:length(x)
Y=[Y x(i)];
if(i~=length(x))
for m=1:j
Y=[Y 0];
end
end
end
Tell about time expansion
Like x[2n]
Thanks
Welcome Ashish Singhal. Happy Coding :-)