필터 지우기
필터 지우기

generating 4 d tuple

조회 수: 4 (최근 30일)
EntisR Elmohbat
EntisR Elmohbat 2019년 11월 15일
댓글: EntisR Elmohbat 2019년 11월 18일
I have 2x25 matrix that describes x,y cordinates, I want to draw circles with radious r1 and r2 and adress each compination ! in other words :
i want to address (x1,y1,r1,r1), (x1,y1,r1,r2),,(x1,y1,r2,r2) to figure out the cases where there is an overlap or not. how to do that in matlab ?

답변 (1개)

Joe Vinciguerra
Joe Vinciguerra 2019년 11월 16일
Matlab doesn't have a tuple class, but uses arrays.
If I'm understanding you, you want to end up with a 4x100 array. The most straight forward approach is probably to start with your 2x25, then build it out using a For loop.
  댓글 수: 1
EntisR Elmohbat
EntisR Elmohbat 2019년 11월 18일
Thanks Joe, actually I should end up with 25 x25x2x2 to be precise , but i might create a 4d matrix with for loop as you mentioned!

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by