GMDP.Ploc{1}(:,:,1)=repmat([0 1],4,1); Can anyone explain this ?

 Accepted Answer

sloppydisk
sloppydisk on 23 May 2018
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.

More Answers (0)

Categories

Products

Release

R2018a

Asked:

on 23 May 2018

Answered:

on 23 May 2018

Community Treasure Hunt

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

Start Hunting!