Convert an [10,1] Array into an [1,10] Array

73 visualizzazioni (ultimi 30 giorni)
Hey Guys,
If u want to get the Data of a listbox, u always get an [n,1] Array. n = number of content in the listbox
However, I want the Array to be an [1,n] Array.
So how can I convert it ?

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 14 Lug 2014
Modificato: Azzi Abdelmalek il 14 Lug 2014
A=[1;2;3]
B=A'

Più risposte (1)

Prasad Kalane
Prasad Kalane il 14 Lug 2014
Assign variable & take transpose as suggested by azzi sir.

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by