problem with mean function
Show older comments
hiiiii, i use another name for the variable to find the mean value in mean=mean(X).but in mean(X) an error occurred as undefined X.So how can i define the variable X which is number of frames extracted from a video.Can you please explain how the mean value can be calculated.
Answers (1)
Walter Roberson
on 9 Mar 2016
0 votes
Why would you bother to find the mean of the number of frames in the video? That would be the mean of a scalar, which would be the scalar itself. If you are processing a number of videos, then count their frames and store the frame count as elements of a vector and take the mean of that vector.
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!