MATLAB Answers

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

121 views (last 30 days)
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 ?

  0 Comments

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 Jul 2014
Edited: Azzi Abdelmalek on 14 Jul 2014
A=[1;2;3]
B=A'

  1 Comment

Sign in to comment.

More Answers (1)

Prasad Kalane
Prasad Kalane on 14 Jul 2014
Assign variable & take transpose as suggested by azzi sir.

  0 Comments

Sign in to comment.

Sign in to answer this question.