MATLAB Answers

discrete time signal, i am not able to generate a function for the following question

1 view (last 30 days)
Sean Faizal
Sean Faizal on 26 May 2021
Answered: Paul Hoffrichter on 27 May 2021
clc;
clear all;
close all;
n= [1 7 5 6 4 5];
N1 = input('enter value for N1 :');
N2 = input('enter value for N2 :');
alpha = input('enter the value of alpha:');
figure(1)
x= alpha ^ (N1:n:N2);
stem(x)
xlabel('time')
ylabel('amplitude')
title('plot-1')

Answers (1)

Community Treasure Hunt

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

Start Hunting!