Hello,
Please how can I change this matrix:
coord =
0 0
10928 0
6928 4000
into this: coord = coord=[0 0 10928 0 6928 4000]
i.e. I want to place the rows next to each other
I want the general form for whatever coord's size is. Usually it's going to be nx2

 采纳的回答

madhan ravi
madhan ravi 2018-11-21
编辑:madhan ravi 2018-11-21
m=[ 0 0
10928 0
6928 4000]
m=m'
m=m(:).'

3 个评论

Hazem El Sankari
Hazem El Sankari 2018-11-21
编辑:madhan ravi 2018-11-21
Thank you so much for your quick reply!
madhan ravi's reply : Anytime :)
Another question please:
if I want to convert the new m vector back to the old one, how can I do that?
madhan ravi's reply :
reshape(m',3,2)
Thank you again for your quick help!

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Parallel Computing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by