필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

save 3 Matrix as two coloum matrices

조회 수: 1 (최근 30일)
sita
sita 2015년 2월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, My code has mtrix as mentioned I would like to use convexhull for this matrix f or that i need to store below matrix as two colom matrices.how do i save this data in 2 coloums.
matpts=[setpts(1,1,:) setpts(1,2,:)];
matpts
matpts
matpts(:,:,1) =
-4.970886374019546 4.237487759841643
matpts(:,:,2) =
-4.984744034584843 4.447834658981146
matpts(:,:,3) =
-3.145339742390348 -0.801158546448830
matpts(:,:,4) =
-4.486832980505138 1.837722339831622
matpts(:,:,5) =
14.261961488692858 8.770420319005613
matpts(:,:,6) =
1.875728478802678 -4.499417216957859
matpts(:,:,7) =
3.910285866432918 -4.940448838312289
matpts(:,:,8) =
14.403855973994119 8.401101706855462
matpts(:,:,9) =
-5 5
matpts(:,:,10) =
13 11
matpts(:,:,11) =
14.928203230275509 6.196152422706632
Thanks, Sita
  댓글 수: 1
sita
sita 2015년 2월 10일
편집: per isakson 2015년 2월 10일
x=matpts(1,1,:)
y=matpts(1,2,:)
convhull(x(:),y(:))
worked for me

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by