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

조회 수: 1 (최근 30일)
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')

답변 (1개)

Paul Hoffrichter
Paul Hoffrichter 2021년 5월 27일
Try this to fix the error:
N1 = 0; N2 = 8; alpha = 0.8;
figure(1)
x= alpha .^ (N1:N2);
plot(x)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by