Need Help this assigment

1 Ansicht (letzte 30 Tage)
ugur arslan
ugur arslan am 23 Mai 2018
Beantwortet: sloppydisk am 23 Mai 2018
GMDP.Ploc{1}(:,:,1)=repmat([0 1],4,1); Can anyone explain this ?

Akzeptierte Antwort

sloppydisk
sloppydisk am 23 Mai 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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by