Effacer les filtres
Effacer les filtres

Simple function to transform matrix?

2 vues (au cours des 30 derniers jours)
Jonathan
Jonathan le 17 Sep 2013
Hi There,
I have a large matrix, 622080x5, elements that I'd like to have dimensions of 4320x720. Each line would be wrapped by taking elements (2,1:5), (3,1:5) and placing them in the new matrix as elements (1,6:10) and (1,11:15). I'm sure there's a simple function for this, but I'm having a hard time finding anything, since "transform matrix" tends to refer to different sorts of computations.
Thanks, Jonathan
  1 commentaire
Walter Roberson
Walter Roberson le 17 Sep 2013
What about the other 705 columns ?

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 17 Sep 2013
Modifié(e) : Azzi Abdelmalek le 18 Sep 2013
Edit
v=rand(622080,5);% your array
out=reshape(v',720,[])';
  2 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 17 Sep 2013
Look at edit
Jonathan
Jonathan le 18 Sep 2013
Thanks, that's the function.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by