# How to find Convolution in Matlab? (Easy Approach)

convolution matlab
This is a topic that many people are looking for. thevoltreport.com is a channel providing useful information about learning, life, digital marketing and online courses …. it will help you have an overview and solid multi-faceted knowledge . Today, thevoltreport.com would like to introduce to you How to find Convolution in Matlab? (Easy Approach). Following along are instructions in the video below:

hello so this is a continuation of the of the last lecture I have taken titled ammunition in MATLAB okay so in this what we are going to do is we going to use a different method the method is very simple again explain it to you okay so we want to continue it you know this signal X of n where is this signal HSN now in this method we create a people language okay the table how to create the table tennis the depreciated in this value we will do X of n multiplied by the front value of HSN okay and this X of n will write it as a column and multiply it with one so you will get in a 1 into M is all of these means multiplied into one you can say that is one one two and three furthermore what well do is we multiply the same room will the second value of each other giving us one in x 2 2 1 x 2 2 2 then 2 4 & 3 general statistics now we see that you know H that deducted in H of n NZ so for for simplicity sake you know for right now is to just show off the table books what are done is put 0 0 so that we end up with a square matrix okay whole rows and 4 columns once that is done so we have created are developing this table will help us find out the convolution market so well mark them we must reach tables and you know these kind of diagonals and this will be like one section this is the other section is the third section sports and so on okay in each of these sections well be adding it across the diagonally if these are not you know the the normal diagonals that you talk about markets this one but these are you know in this fashion okay now this is the important part for the first element of the convolution if you remember the answer that we had got you know in the last example the same example you continue from blasting get down to answers 1 3 4 7 & 6 you can verify from the last video here if you if you add these numbers across these the lines that I have taken we will get the terms of a condition like for example this you know across the first Aguilar we have 1 which is the first term here across the second diagonal we have 1 plus 2 which gives 3 which is the second term the third diagonal is our stupid – 4 which is the third term and so on ok so if we just keep adding you know numbers across the diagonals of this table then we will find a condition as so this is also a way of finding conclusions it is you know one of the shortcut or one of the easier ways of finding it and as we go to implement this in MATLAB you see that as we focus women listen math labs you will see that this is much simpler mean within the last method that I deserve so thats it I will just go to MATLAB and you know we can see how the camera okay so coming back to our favorite software MATLAB we will see how we can you know establish the logic that we just read in so to test this files and using the same input same data signal and as we had considered in last examples the only change in this test program Im doing the only change in this test order I am doing is Im changing the function from convolution 1 to convolution – okay attaining the function from convolution 1 to condition 2 so this is the advantage of using functions is that even if you change you know a small part of the coherence of the change in a lot of things this entire program is same as the bus program Ill just change this way then dilution is implemented I have also kept the input and output formats same so that you know nothing else needs to begin so let us now see how the confucian program is you can the community to program this is a much shorter code than before Im using none of the the earlier functions that we have used all the functions used in this fight are all defined in MATLAB we do need to feed anything extra okay so this part of the poor should be pretty much clear to you if you have seen the last video whatever it is basically is just reading the time access for community okay now the task we had in hand was like stood on my glasses are X X was 1 1 one one two three days it is pretty difficult but is that your ex was 1 1 2 3 and our H and n was H was 1 & 2 okay so the matrix is lets say the message that you want to create is called Y and we know that it will look something like this 1 1 2 3 & 2 2 4 6 okay the first column comes because you know this thing into 1 the second column comes because of the same thing into 2 okay now how do you create this matrix so the codes are written to you know to create this matrix is this one okay I you know I largely depend on vectors notations or the subscript notation that I was talking about and the reason I stick to it is very because it is very interesting and it makes the code simple so to get the first column what we can do is we can multiply this entire matrix with 1 now this entire matrix is a row matrix okay and youre multiplying it is 1 which is just a single constant see when we consider of you know the entire H we know H is a 1 cross 2 matrix and X is a or 1 / 4 matrix but now I am NOT interested in multiplication of X and H Im interested in multiplication of X the entire row matrix into H 1 right so this multiplication in the normal multiplication it is like multiplying a row matrix or multiplying formatters any matrix with a scalar value so the dimensions of it will not change but is what we have is 1 1 2 3 into 1 will give you 1 1 2 3 now this 1 1 2 3 I want to save it in white as a column method again it is X is a row matrix multiplying with edge with scalars will just give you again the same row matrix but I want to save it and buy as a column okay so how am i saving it and why I am painting it white as you know different rows and the first column okay because this is like you know your Row 1 Row 2 Row 3 Row 4 and this is your first call okay so the way to change this is you write a simple instruction I would like okay let me change the color I will write Y okay y colon comma 1 equals x into h1 okay just there should be an asterisk in between the X into H 1 is simple 1 1 2 3 into 1 okay and I change this as by colon comma 1    