Effacer les filtres
Effacer les filtres

Convolution of two matrices

1 vue (au cours des 30 derniers jours)
Murali Krishna AG
Murali Krishna AG le 3 Fév 2022
Let A,B,C,D, are vectors of size 3*1.
S=[A*B,C*D]. Here * is linear convolution. How to rearrange A,C together and B,D together to maintain the S result as same. Need help on this.

Réponses (1)

William Rose
William Rose le 3 Fév 2022
A=rand(3,1); B=rand(3,1); C=rand(3,1); D=rand(3,1);
S1=[conv(A,B),conv(C,D)]; disp(S1)
0.5964 0.1768 0.9829 0.2741 1.4273 0.8505 0.8930 0.3858 0.4464 0.3428
S2=[conv(B,A),conv(D,C)]; disp(S2)
0.5964 0.1768 0.9829 0.2741 1.4273 0.8505 0.8930 0.3858 0.4464 0.3428
Do you consider this to be a rearrangment of A,C and B,D? It maintains S.
  1 commentaire
Murali Krishna AG
Murali Krishna AG le 4 Fév 2022
No, I want to rearrange A & C in a matrix and B & D in another matrix.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by