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일

0 개 추천

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 :)
Hazem El Sankari
Hazem El Sankari 2018년 11월 21일
편집: madhan ravi 2018년 11월 21일
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)
Hazem El Sankari
Hazem El Sankari 2018년 11월 21일
Thank you again for your quick help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기

질문:

2018년 11월 21일

댓글:

2018년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by