Convolution in MATLAB(without conv function) | MATRIX Method | DSP

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 26

  • @KnowledgeAmplifier1
    @KnowledgeAmplifier1  5 років тому +8

    CODE:
    clc
    clear all
    close all
    x=input('Enter the first array');
    h=input('Enter the second array');
    z=[];
    for i=1:length(x)
    g=h.*x(i);
    z=[z;g];
    end
    [r c]=size(z);
    k=r+c;
    t=2;
    y=[];
    cd=0;
    while(t

  • @marwanal-yoonus280
    @marwanal-yoonus280 4 роки тому +3

    Thank you so much for your good illustrations. /Iraq

  • @parsamohammadi9766
    @parsamohammadi9766 2 роки тому +1

    Thanks, this video helped me a lot

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  2 роки тому

      Glad to know the video helped you Parsa Mohammadi! Happy Learning :-)

  • @lakshaynegi82
    @lakshaynegi82 4 роки тому

    But how cd is storing all the values?
    First cd stores 1 then in next loop it has to store 2+2=4 and cd already had 1,cd=cd(1)+4=5.

  • @chahinezhrzllh5797
    @chahinezhrzllh5797 2 роки тому

    Hey hope you're doing well?I don't understand very well english , i wantef to ask you what is cd and why we derminate it to 0?

  • @alecardona9661
    @alecardona9661 4 роки тому +1

    Thanks! I love the explanation!

  • @meghanareddy4211
    @meghanareddy4211 4 роки тому

    what is cd? and why did we define it as 0

  • @gannubhai9735
    @gannubhai9735 5 років тому +1

    Thanks buddy😊
    Helps alottt

  • @capnnemo5330
    @capnnemo5330 3 роки тому

    Thank you for sharing this. You have my like.

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  3 роки тому

      Thank You for liking , it motivates us to work harder Cap'n Nemo! Happy Learning :-)

  • @saichaitanya5006
    @saichaitanya5006 3 роки тому +1

    Thanks bro🤯🤯🤯🤯🤯

  • @dilveenalbufkani340
    @dilveenalbufkani340 4 роки тому +1

    Hi how are u ?I need your help please

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  4 роки тому

      Hi , Dilveen , I am fine . How do you do ? Tell me about your problem

  • @sriranjinirajgopal7919
    @sriranjinirajgopal7919 5 років тому

    Z=[Z; g] plz explain clearly

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  5 років тому +1

      This method is used to store array in it's next row ...for example z=[ ];
      Now , g=1;
      z=[z;g];
      After execution of this line , z=1;
      now suppose g=2;
      then if we execute z=[z;g]; then-->
      z=1
      2
      That means the element is stored in the next row .
      In this case , g has to be stored in next rows everytime...so that I have written that :-)

    • @thelight8
      @thelight8 5 років тому

      Knowledge Amplifier what is the need of jumping to next row using z[z;g] because as the value of loop variable i changes it will automatically be place in new row

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  5 років тому +1

      @@thelight8 No , you can not go to next row using that . Check in matlab

    • @thelight8
      @thelight8 5 років тому

      Knowledge Amplifier yes i already done that . You r right

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  5 років тому +1

      @@thelight8 Now the question is why this is happening ?
      You are correct that"... as the value of loop variable i changes it will automatically be place in new row " but this is only applicable if we give index position like z(i,j) ....otherwise it will not work as you have seen too :-)
      Hope you understand the reason