stuck on another code

Thread Starter

Psf1575

Joined Mar 2, 2018
16
Hello everyone, this is the task at hand: I have to calculate the convolution using matlab of this u[n]-u[n-3] and u[n]-u[n-5]

heres my work so far :

>> conv ([1 1 1 1], [1 1 1 1])

ans =
1 2 3 4 3 2 1
Is this correct?

Also, I must plot it and have no clue on how to do so. thanks
 

WBahn

Joined Mar 31, 2012
26,398
Suggestion: Try to use a meaningful thread title -- and assume that every thread is independent. Most people will actually see this thread's title before they see your earlier one since the default ordering of threads is newest first. A possible title for this thread might have been something like, "How to convolve and plot in MATLAB."
 
Top