How to solve the error: 'Undefined function or variable 'aviread''
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to run an old Matlab file which uses the function 'aviread'. I searched for the function in File Exchange but could not find it. I tried to use VideoReader instead of aviread. But it doesn't seem to have the the property 'cdata'.
0 个评论
回答(2 个)
Stephane Dauvillier
2019-5-9
Which version have you ?
aviread have been deprecated bfor releases before being removed completelly in the R2014b release. You have to use VideoReader function instead
2 个评论
Walter Roberson
2019-5-9
You will need to downgrade your MATLAB to about r2012a to duplicate the functionality of aviread.
We suggest that you consider modifying the code to use VideoReader and readframe, or the computer vision toolbox VideoFileReader which is designed for effecient streaming of frames.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!