How to create a 2x2 matrix?
301 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello ,
i want to create a 2x2 matrix like that :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/252518/image.png)
So , i have to create a 2x2 matrix that each cell contains 2x500 matrix
I tried to write:
M = [h(1,:) h(2,:) ; h(2,:) h(1,:)]
But that ends up with a 2x1000 matrix .
What should i do ?
*Note that h is a complex array
thank you.
0 commentaires
Réponse acceptée
Plus de réponses (1)
Raj
le 4 Déc 2019
h1=rand(2,500)+i*rand(2,500) % Your first matrix
h2=rand(2,500)+i*rand(2,500) % Second matrix
M=[{h1} {h2};{h2} {h1}]
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!