why not this code run?

조회 수: 1 (최근 30일)
Kuheli Mondal
Kuheli Mondal 2016년 4월 2일
편집: Walter Roberson 2016년 4월 2일
N=10;
n=0:N-1;
d=zeros(1, N);
h(n)=[0 0 0 1 -2.7083 4.1861 -3.0451 0.73071 0 0];
x(n)=[0
1.9021
-1.1756
-1.1756
1.9021
0.0000
-1.9021
1.1756
1.1756
-1.9021]
d(n)=h(n)*x(n);
plot(d(n))
please help me.Thank you.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 2일
Your code should be something like this
N=10;
n=0:N-1;
h=[0 0 0 1 -2.7083 4.1861 -3.0451 0.73071 0 ];
x=[01.9021 -1.1756 -1.1756 1.9021 0.0000 -1.9021 1.1756 1.1756 -1.9021]
d=h.*x;
plot(d)
But it seems that you need to read basics of Matlab

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by