필터 지우기
필터 지우기

Info

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

create all possible combinations of vectors stored in a cell array

조회 수: 1 (최근 30일)
mohamed Faraj
mohamed Faraj 2019년 8월 16일
마감: madhan ravi 2019년 8월 16일
I have an array like this, i.e., it has two cells (we could have more cells) and the size of the first cell is 3 by N (length of vectors 1, 2 and 3) and the size of cell 2 is 2 by M (length of vectors 4 and 5). I want to construct an array that has all the possible combiations of vectors from the sets . However, we can not have two vectors from the same set, e.g., we can not hav vector 1 and vector 2 in the same cell. The result shlud be like this . Thus D should have 3*2=6 cells and each cell has two elements (vectors). Note that I will not enter the array V myself, it is generated by another matlab code so the code has to figure out the size of V and the length of all vectors if needed.
  댓글 수: 3
mohamed Faraj
mohamed Faraj 2019년 8월 16일
Hi madhan ravi, i am trying to give a better explanation here.
madhan ravi
madhan ravi 2019년 8월 16일
Give it in your previous question.

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by