Effacer les filtres
Effacer les filtres

How do i manipulate matrix in form given below??

1 vue (au cours des 30 derniers jours)
Paranshu
Paranshu le 18 Oct 2013
Commenté : Paranshu le 18 Oct 2013
1 2; 3 4; 5 6; 7 8;
as
1 2 3 4; 5 6 7 8;
  1 commentaire
Jos (10584)
Jos (10584) le 18 Oct 2013
Homework? I suggest you read the help of RESHAPE and TRANSPOSE

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 18 Oct 2013
Modifié(e) : Azzi Abdelmalek le 18 Oct 2013
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
  3 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 18 Oct 2013
Modifié(e) : Azzi Abdelmalek le 18 Oct 2013
Please copy and paste the code
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',4,[])'
The result
>>BB =
1 2 3 4
5 6 7 8
%or maybe you want this
A=[1 2; 3 4; 5 6; 7 8]
BB=reshape(A',[],2)'
Paranshu
Paranshu le 18 Oct 2013
It was really helpfull..thanks

Connectez-vous pour commenter.

Plus de réponses (1)

Andrei Bobrov
Andrei Bobrov le 18 Oct 2013
reshape(a',size(a))';

Catégories

En savoir plus sur Resizing and Reshaping 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!

Translated by