problem with mean function
显示 更早的评论
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.
回答(1 个)
Walter Roberson
2016-3-9
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Video Formats and Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!