How to solve the error: 'Undefined function or variable 'aviread''

4 ビュー (過去 30 日間)
Aparna Mohan
Aparna Mohan 2019 年 5 月 9 日
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'.

回答 (2 件)

Stephane Dauvillier
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 件のコメント
Aparna Mohan
Aparna Mohan 2019 年 5 月 9 日
Matlab R2019a
Stephane Dauvillier
Stephane Dauvillier 2019 年 5 月 9 日
then use VideoReader has I've mentionned

サインインしてコメントする。


Walter Roberson
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.

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by