Need Help this assigment

3 次查看(过去 30 天)
GMDP.Ploc{1}(:,:,1)=repmat([0 1],4,1); Can anyone explain this ?

采纳的回答

sloppydisk
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 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by