MATLAB Answers

Digital signal processing LINEAR AND CIRCULAR CONVOLUTION length-N sequences error

20 views (last 30 days)
Mohsen Salimy
Mohsen Salimy on 23 Dec 2019
Edited: Ridwan Alam on 25 Dec 2019
Here is my code for --- Write a program to compute the circular convolution of two length-N
sequences via the DFT-based approach.
clc; clear all; close all;
x =[2+j3 3-1j -1+j2 j3 2+j4];
h =[-3-j2 1+j4 1+j2 5+j3 1+j2];
y = conv(x,h);
plot(x,h);
stem(x);
ylabel( 'AMPLITUDE');
xlabel('First Sequence');
subplot(3,1,2);stem(h);
ylabel( 'AMPLITUDE');xlabel('Second Sequence') ;
subplot(3,1,3);stem(y);
ylabel( 'AMPLITUDE');xlabe1('Output Sequence');
disp( 'The Resultant Signal is: ');y
Here i am getting error stating
Error in (line 3) x =[2+j3 3-1j -1+j2 j3 2+j4]
can someone help me as i am not sure if there somthing wrong this ''x =[2+j3 3-1j -1+j2 j3 2+j4''
I have been trying this sequnce with varies of other codes and method but still getting same error..

  0 Comments

Sign in to comment.

Accepted Answer

Ridwan Alam
Ridwan Alam on 23 Dec 2019

  5 Comments

Show 2 older comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.