Effacer les filtres
Effacer les filtres

print all elements of matrix in single row

2 vues (au cours des 30 derniers jours)
raj singh
raj singh le 13 Déc 2014
I have a matrix A=[1 2;3 4]; i wan to single row with all elements of A like like this
B=[1 2 3 4]
Please help me

Réponses (1)

Star Strider
Star Strider le 13 Déc 2014
This works:
A=[1 2;3 4];
B = A(:).';

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by