Understanding about stacking in MATLAB
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello all, I am trying to replicate the results of one of the research paper and in that it is mentioned that ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315535/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315535/image.png)
Next, it is mentioned that matrix ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315540/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315540/image.png)
My query is what does the term stacking indicates and how does the dimension of ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315545/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1315545/image.png)
Any help in this regard will be highly appreciated.
0 commentaires
Réponse acceptée
Stephen23
le 6 Mar 2023
Modifié(e) : Stephen23
le 6 Mar 2023
"My query is what does the term stacking indicates..."
MATLAB does not use the term "stacking" to refer to these kinds of operations, so you would have to ask the author of that paper. Some possibly related terms in MATLAB: concatenation, reshape, permute, transpose...
"...and how does the dimension of "
As far as I can tell, the author is simply vertically concatenting some 1x2N vectors into an Lx2N matrix.
Here are three ways to concatenate some 1x2N vectors vertically into an Lx2N matrix:
[d1;d2;d3]
cat(1,d1,d2,d3)
vertcat(d1,d2,d3)
Instead of directly concatenating them vertically, the author seems to concatenate their transposes horizontally and then transposes the entire resulting matrix. You would have to ask its author why.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!