Effacer les filtres
Effacer les filtres

How to change array to be a special matrix ..??

1 vue (au cours des 30 derniers jours)
Noru
Noru le 29 Jan 2013
Let's try with me to solve this problem.
How to change array like example below
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ]
into
Ar2Mat = [ 2 0.5
6 7.3
15 5.6
4 3.3
12 8.2]
i've already tried and just make the matrix like this
Ar2Mat = [ 2 5.6
0.5 4
6 3.3
7.3 12
15 8.2]
Does anyone has the solution..?
thanks

Réponse acceptée

José-Luis
José-Luis le 29 Jan 2013
Modifié(e) : José-Luis le 29 Jan 2013
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ];
Ar2Mat = reshape(Ar2Mat,2,5)'
Are you taking the same course as Vishnu?
  1 commentaire
Noru
Noru le 30 Jan 2013
No, I don't taking the same course as Vishnu And thanks for your answer.. :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional 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!

Translated by