MATLAB Answers

Convert Composite to array?

조회 수: 23(최근 30일)
Erik S.
Erik S. 28 Mar 2015
Answered: Edric Ellis 30 Mar 2015
Is it possible to convert a Composite object created with spmd to an array?

  댓글 수: 0

로그인 to comment.

채택된 답변

Edric Ellis
Edric Ellis 30 Mar 2015
Yes, you can use Composite indexing (which behaves pretty much like cell array indexing), like this:
spmd
x = labindex;
end
xlocal = [x{:}]

  댓글 수: 0

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by