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

조회 수: 79 (최근 30일)
Max Müller
Max Müller 2014년 7월 14일
댓글: Max Müller 2014년 7월 14일
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 ?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 14일
편집: Azzi Abdelmalek 2014년 7월 14일
A=[1;2;3]
B=A'

추가 답변 (1개)

Prasad Kalane
Prasad Kalane 2014년 7월 14일
Assign variable & take transpose as suggested by azzi sir.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by