- https://www.mathworks.com/matlabcentral/answers/365308-manual-code-for-convolution
- https://www.mathworks.com/matlabcentral/fileexchange/23402-convolution-in-matlab-without-using-conv-x-h
- https://www.mathworks.com/matlabcentral/answers/388344-how-can-i-implement-a-convolution-function-in-matlab-and-perform-it-on-the-following-signals-and-plo
- https://www.mathworks.com/matlabcentral/answers/?search_origin=ans_leaf&term=convolution+code+
Convolution of two matrices with time index
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Van Cygnon Tango
am 1 Okt. 2021
Kommentiert: Van Cygnon Tango
am 6 Okt. 2021
This is just a part of my code and I'm almost done, and this is the only part I'm having a hard time. Let's say I have two vectors (in array or matrix form) and I am not allowed to use conv() and fliplr() built-in functions. I have two inputs(A and B) and each input can be two row matrices, first row is the input sequence and second row is the time index n. How will I do this? The output matrix needs to be a two row matrix also(C as output sequence and N as output time index). The CONVOLUTION's main operations needed are FOLDING, SHIFTING, MULTIPLICATION and ADDITION. Then I need to check with this trial(see attached photo).
I have my a user-defined function like this and I don't know what code I will put:
function [C, N] = CONVOLVE(A, B)
% Line below will just flip the given row matrix
B = B(end:-1:1);
end
To anyone who can/will help me, thank you so much in advance!
0 Kommentare
Akzeptierte Antwort
Srivardhan Gadila
am 4 Okt. 2021
You can refer to the following:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!