How to solve this problem?

15 Ansichten (letzte 30 Tage)
Kuheli Mondal
Kuheli Mondal am 31 Mär. 2016
Kommentiert: Stephen23 am 31 Mär. 2016
??? Input argument "n" is undefined.
Error in ==> Impulse at 3
h=zeros(1, length(n));
My program is
function h=dd1(n)
N=10;
h=zeros(1, length(n));
h(n==0) = 1;
n=0:N-1;
h(n)=dd1(n-3)-2.7083*dd1(n-4)+4.1861*dd1(n-5)-3.0451*dd1(n-6)+0.73071*dd1(n-7);
stem(n, h)
xlabel('n')
ylabel('Impulse Function')
Please help me. Thank you.
  1 Kommentar
Stephen23
Stephen23 am 31 Mär. 2016
Please show us how you are calling your function dd1.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 31 Mär. 2016

Kategorien

Mehr zu Special Functions finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by