Need Help this assigment
조회 수: 1 (최근 30일)
이전 댓글 표시
GMDP.Ploc{1}(:,:,1)=repmat([0 1],4,1); Can anyone explain this ?
댓글 수: 0
채택된 답변
sloppydisk
2018년 5월 23일
GMDP is a struct
GMDP.Ploc is a field of GMDP
GMDP.Ploc{1} is a cell containing a 3D array
GMDP.Ploc{1}(:,:,1) is the first 2D slice along the third dimension
repmat([0 1],4,1) repeats the array [0 1] 4 times along the first dimension and once along the second dimension.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!