Error on official example "Classify Videos Using Deep Learning"

1 view (last 30 days)
at line
averageImage = netCNN.Layers(1).Mean;
I get an error that there is no Mean property there. I think the correct is .AverageImage.
Is this correct?

Answers (2)

Steven Lord
Steven Lord on 25 Nov 2019
Which release are you using? The Release Notes for the most recent release (release R2019b as I type this) states that "AverageImage property of imageInputLayer and image3dInputLayer will be removed" and recommends using Mean instead.

dinos adamakos
dinos adamakos on 12 Dec 2019
Edited: dinos adamakos on 12 Dec 2019
I use 2019a . And the example is official matlab example at the page i have written above.
So i guess when writting examples , matlab should state those things for compatibility, which involves even so recent versions, let along past ones

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!